@knight-lab/timelinejs 3.8.15 → 3.8.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +1 -2
- package/{CHANGELOG → CHANGELOG.md} +70 -8
- package/DEPLOYING.md +4 -0
- package/README.md +21 -19
- package/RELEASING.md +4 -4
- package/dist/css/fonts/font.abril-droidsans.css +143 -0
- package/dist/css/fonts/font.amatic-andika.css +143 -0
- package/dist/css/fonts/font.bevan-pontanosans.css +141 -0
- package/dist/css/fonts/font.bitter-raleway.css +149 -0
- package/dist/css/fonts/font.clicker-garamond.css +141 -0
- package/dist/css/fonts/font.dancing-ledger.css +143 -0
- package/dist/css/fonts/font.default.css +155 -0
- package/dist/css/fonts/font.fjalla-average.css +141 -0
- package/dist/css/fonts/font.georgia-helvetica.css +123 -0
- package/dist/css/fonts/font.knightlab.css +125 -0
- package/dist/css/fonts/font.lustria-lato.css +147 -0
- package/dist/css/fonts/font.medula-lato.css +149 -0
- package/dist/css/fonts/font.oldstandard.css +135 -0
- package/dist/css/fonts/font.opensans-gentiumbook.css +155 -0
- package/dist/css/fonts/font.playfair-faunaone.css +156 -0
- package/dist/css/fonts/font.playfair.css +143 -0
- package/dist/css/fonts/font.pt.css +153 -0
- package/dist/css/fonts/font.roboto-megrim.css +143 -0
- package/dist/css/fonts/font.rufina-sintony.css +149 -0
- package/dist/css/fonts/font.ubuntu.css +145 -0
- package/dist/css/fonts/font.unicaone-vollkorn.css +143 -0
- package/dist/css/icons/tl-icons.eot +0 -0
- package/dist/css/icons/tl-icons.svg +63 -0
- package/dist/css/icons/tl-icons.ttf +0 -0
- package/dist/css/icons/tl-icons.woff +0 -0
- package/dist/css/icons/tl-icons.woff2 +0 -0
- package/dist/css/themes/timeline.theme.contrast.css +3125 -0
- package/dist/css/themes/timeline.theme.dark.css +3125 -0
- package/dist/css/timeline.css +3128 -0
- package/dist/css/timeline.css.map +1 -0
- package/dist/embed/compare.html +91 -0
- package/dist/embed/index.html +170 -0
- package/dist/embed/old-index.html +170 -0
- package/dist/embed/popular_timelines.json +1 -0
- package/dist/js/locale/af.json +75 -0
- package/dist/js/locale/ar.json +76 -0
- package/dist/js/locale/be.json +75 -0
- package/dist/js/locale/bg.json +75 -0
- package/dist/js/locale/ca.json +75 -0
- package/dist/js/locale/cz.json +108 -0
- package/dist/js/locale/da.json +75 -0
- package/dist/js/locale/de.json +76 -0
- package/dist/js/locale/el.json +75 -0
- package/dist/js/locale/en-24hr.json +75 -0
- package/dist/js/locale/en-week.json +75 -0
- package/dist/js/locale/en.json +152 -0
- package/dist/js/locale/eo.json +75 -0
- package/dist/js/locale/es.json +76 -0
- package/dist/js/locale/et.json +75 -0
- package/dist/js/locale/eu.json +75 -0
- package/dist/js/locale/fa.json +74 -0
- package/dist/js/locale/fi.json +95 -0
- package/dist/js/locale/fo.json +75 -0
- package/dist/js/locale/fr.json +119 -0
- package/dist/js/locale/fy.json +75 -0
- package/dist/js/locale/ga.json +75 -0
- package/dist/js/locale/gl.json +75 -0
- package/dist/js/locale/he.json +76 -0
- package/dist/js/locale/hi.json +76 -0
- package/dist/js/locale/hr.json +75 -0
- package/dist/js/locale/hu.json +114 -0
- package/dist/js/locale/hy.json +75 -0
- package/dist/js/locale/id.json +75 -0
- package/dist/js/locale/is.json +75 -0
- package/dist/js/locale/it.json +92 -0
- package/dist/js/locale/iw.json +76 -0
- package/dist/js/locale/ja.json +75 -0
- package/dist/js/locale/ka.json +75 -0
- package/dist/js/locale/ko.json +75 -0
- package/dist/js/locale/lb.json +75 -0
- package/dist/js/locale/lt.json +75 -0
- package/dist/js/locale/lv.json +75 -0
- package/dist/js/locale/ms.json +75 -0
- package/dist/js/locale/my.json +124 -0
- package/dist/js/locale/ne.json +75 -0
- package/dist/js/locale/nl.json +75 -0
- package/dist/js/locale/no.json +76 -0
- package/dist/js/locale/pl.json +75 -0
- package/dist/js/locale/pt-br.json +78 -0
- package/dist/js/locale/pt.json +78 -0
- package/dist/js/locale/rm.json +75 -0
- package/dist/js/locale/ro.json +75 -0
- package/dist/js/locale/ru.json +75 -0
- package/dist/js/locale/si.json +74 -0
- package/dist/js/locale/sk.json +75 -0
- package/dist/js/locale/sl.json +75 -0
- package/dist/js/locale/sr-cy.json +75 -0
- package/dist/js/locale/sr.json +75 -0
- package/dist/js/locale/sv.json +86 -0
- package/dist/js/locale/ta.json +75 -0
- package/dist/js/locale/te.json +74 -0
- package/dist/js/locale/th.json +108 -0
- package/dist/js/locale/tl.json +75 -0
- package/dist/js/locale/tr.json +75 -0
- package/dist/js/locale/uk.json +75 -0
- package/dist/js/locale/ur.json +123 -0
- package/dist/js/locale/vi.json +74 -0
- package/dist/js/locale/zh-cn.json +76 -0
- package/dist/js/locale/zh-tw.json +75 -0
- package/dist/js/timeline-min.js +12 -0
- package/dist/js/timeline.js +12 -0
- package/dist/js/timeline.js.map +1 -0
- package/dist/timeline3.zip +0 -0
- package/index.js +1 -0
- package/package.json +5 -5
- package/src/embed/old-index.html +128 -18
- package/src/js/core/Browser.js +19 -19
- package/src/js/index.js +1 -1
- package/src/js/language/locale/zh-cn.json +1 -1
- package/src/js/media/MediaType.js +1 -1
- package/src/js/media/types/Audio.js +9 -0
- package/src/js/media/types/Video.js +11 -0
- package/src/js/timeline/Timeline.js +25 -20
- package/src/less/fonts/font.knightlab.less +2 -2
- package/src/template/all-media-types.json +61 -24
- package/src/template/index.html +39 -19
- package/{contrib/women_in_computing.csv → src/template/my-own-timeline.csv} +5 -5
- package/contrib/README.md +0 -13
- package/contrib/csv_to_json.py +0 -106
- package/contrib/docs/ImageHosting.md +0 -120
- package/contrib/examples/autoload.html +0 -44
- package/contrib/examples/iBooksAuthor/README.md +0 -37
- package/contrib/examples/iBooksAuthor/TimelineJS.wdgt/Default.png +0 -0
- package/contrib/examples/iBooksAuthor/TimelineJS.wdgt/Info.plist +0 -27
- package/contrib/examples/iBooksAuthor/TimelineJS.wdgt/index.html +0 -13
- package/contrib/examples/react.html +0 -40
- package/contrib/examples/vue.html +0 -29
- package/contrib/fedorbeets/README.md +0 -3
- package/contrib/fedorbeets/timeline.py.txt +0 -56
- package/contrib/iamamoose/README.md +0 -3
- package/contrib/iamamoose/timeline.py.txt +0 -53
- package/contrib/women_in_computing.json +0 -263
- package/fabfile.py +0 -64
- package/requirements.txt +0 -29
- package/util/convert_json.py +0 -96
- package/website/__init__.py +0 -0
- package/website/app.py +0 -101
- package/website/core/__init__.py +0 -0
- package/website/core/settings/__init__.py +0 -0
- package/website/core/settings/base.py +0 -6
- package/website/core/settings/loc.py +0 -16
- package/website/examples.json +0 -114
- package/website/faq.json +0 -81
- package/website/static/css/desert.css +0 -34
- package/website/static/css/site.css +0 -74
- package/website/static/img/TimelineJSTags.jpg +0 -0
- package/website/static/img/examples/houston/eyesclosedftm_10001.jpg +0 -0
- package/website/static/img/examples/houston/family.jpg +0 -0
- package/website/static/img/examples/houston/family.png +0 -0
- package/website/static/img/examples/houston/wh1.jpg +0 -0
- package/website/static/img/examples/houston/wh2.jpg +0 -0
- package/website/static/img/examples/houston/wh3.jpg +0 -0
- package/website/static/img/examples/houston/whChild.jpg +0 -0
- package/website/static/img/examples/houston/whlead.jpg +0 -0
- package/website/static/img/examples/houston/young.jpg +0 -0
- package/website/static/img/examples/logos/Northwestern University.png +0 -0
- package/website/static/img/examples/logos/Social-Logos.png +0 -0
- package/website/static/img/examples/logos/knightlab-logo-background.png +0 -0
- package/website/static/img/examples/logos/knightlab-logo-small.png +0 -0
- package/website/static/img/examples/logos/knightlab-logo.png +0 -0
- package/website/static/img/examples/logos/less-small.png +0 -0
- package/website/static/img/examples/logos/logo_aljazeera.png +0 -0
- package/website/static/img/examples/logos/logo_arte.png +0 -0
- package/website/static/img/examples/logos/logo_beyondtheseal.png +0 -0
- package/website/static/img/examples/logos/logo_centerforpublicintegrity.png +0 -0
- package/website/static/img/examples/logos/logo_cnn.png +0 -0
- package/website/static/img/examples/logos/logo_denverpost.png +0 -0
- package/website/static/img/examples/logos/logo_engadget.png +0 -0
- package/website/static/img/examples/logos/logo_gigaom.png +0 -0
- package/website/static/img/examples/logos/logo_ibt.png +0 -0
- package/website/static/img/examples/logos/logo_knightlab.png +0 -0
- package/website/static/img/examples/logos/logo_ksat.png +0 -0
- package/website/static/img/examples/logos/logo_lemonde.png +0 -0
- package/website/static/img/examples/logos/logo_maneater.png +0 -0
- package/website/static/img/examples/logos/logo_mashable.png +0 -0
- package/website/static/img/examples/logos/logo_radiolab.png +0 -0
- package/website/static/img/examples/logos/logo_time.png +0 -0
- package/website/static/img/examples/logos/logo_vh1.png +0 -0
- package/website/static/img/examples/logos/logo_vinepair.png +0 -0
- package/website/static/img/examples/logos/logo_wbur.png +0 -0
- package/website/static/img/examples/thumbs/thumb_akira.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_aljazeera.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_artetv.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_banana.png +0 -0
- package/website/static/img/examples/thumbs/thumb_bulger.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_denver_shooting.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_houston.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_isis.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_lemonde.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_malaysia-airlines.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_mandela.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_mobile_device.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_northkorea.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_perpwalk.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_radiolab-colorwalking.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_republican.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_shtpeoplesay.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_supremecourt.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_univofmissouri.jpg +0 -0
- package/website/static/img/examples/thumbs/thumb_userinterface.png +0 -0
- package/website/static/img/examples/thumbs/thumb_wine.jpg +0 -0
- package/website/static/img/examples/user-interface/4s.jpg +0 -0
- package/website/static/img/examples/user-interface/apple.jpg +0 -0
- package/website/static/img/examples/user-interface/input.png +0 -0
- package/website/static/img/examples/user-interface/palm.png +0 -0
- package/website/static/img/examples/user-interface/pascaline.jpg +0 -0
- package/website/static/img/examples/user-interface/univac.JPG +0 -0
- package/website/static/img/font-options.png +0 -0
- package/website/static/img/kl-og.png +0 -0
- package/website/static/img/knightlab_logo.png +0 -0
- package/website/static/img/loading.gif +0 -0
- package/website/static/img/make/abril-droidsans.png +0 -0
- package/website/static/img/make/amatic-andika.png +0 -0
- package/website/static/img/make/bevan-pontanosans.png +0 -0
- package/website/static/img/make/bitter-raleway.png +0 -0
- package/website/static/img/make/clicker-garamond.png +0 -0
- package/website/static/img/make/dancing-ledger.png +0 -0
- package/website/static/img/make/default.png +0 -0
- package/website/static/img/make/fakedropdown.svg +0 -1
- package/website/static/img/make/fjalla-average.png +0 -0
- package/website/static/img/make/font-options.png +0 -0
- package/website/static/img/make/georgia-helvetica.png +0 -0
- package/website/static/img/make/lustria-lato.png +0 -0
- package/website/static/img/make/medula-lato.png +0 -0
- package/website/static/img/make/oldstandard.png +0 -0
- package/website/static/img/make/opensans-gentiumbook.png +0 -0
- package/website/static/img/make/playfair-faunaone.png +0 -0
- package/website/static/img/make/playfair.png +0 -0
- package/website/static/img/make/pt.png +0 -0
- package/website/static/img/make/publish_to_web_browser_url.png +0 -0
- package/website/static/img/make/publish_to_web_button_small-od1.png +0 -0
- package/website/static/img/make/publish_to_web_button_small.png +0 -0
- package/website/static/img/make/publish_to_web_small.png +0 -0
- package/website/static/img/make/publish_to_web_url_small.png +0 -0
- package/website/static/img/make/roboto-megrim.png +0 -0
- package/website/static/img/make/rufina-sintony.png +0 -0
- package/website/static/img/make/unicaone-vollkorn.png +0 -0
- package/website/static/img/make/v4_step_1.png +0 -0
- package/website/static/img/make/v4_step_2.png +0 -0
- package/website/static/img/timeline.png +0 -0
- package/website/static/img/timeline3_intro_image.png +0 -0
- package/website/static/js/faq-generator.js +0 -20
- package/website/static/js/main.js +0 -240
- package/website/static/welcome/step3.png +0 -0
- package/website/static/welcome/welcome.json +0 -266
- package/website/templates/_about.html +0 -23
- package/website/templates/_analytics.html +0 -10
- package/website/templates/_banner.html +0 -26
- package/website/templates/_demo.html +0 -5
- package/website/templates/_developers.html +0 -19
- package/website/templates/_examples.html +0 -156
- package/website/templates/_faq.html +0 -117
- package/website/templates/_footer.html +0 -54
- package/website/templates/_head.html +0 -38
- package/website/templates/_header.html +0 -18
- package/website/templates/_help.html +0 -50
- package/website/templates/_make.html +0 -291
- package/website/templates/_nav.html +0 -24
- package/website/templates/_overview.html +0 -32
- package/website/templates/_roadmap.html +0 -27
- package/website/templates/_storytelling_tools.html +0 -35
- package/website/templates/base.html +0 -37
- package/website/templates/docs/faq.html +0 -223
- package/website/templates/docs/index.html +0 -57
- package/website/templates/docs/instantiate-a-timeline.html +0 -207
- package/website/templates/docs/json-format.html +0 -477
- package/website/templates/docs/license.html +0 -29
- package/website/templates/docs/media-types.html +0 -82
- package/website/templates/docs/options.html +0 -472
- package/website/templates/docs/overriding-styles.html +0 -357
- package/website/templates/docs/using-spreadsheets.html +0 -94
- package/website/templates/error.html +0 -28
- package/website/templates/examples/_common_example_embed.html +0 -27
- package/website/templates/examples/embed-test/index.html +0 -41
- package/website/templates/examples/example.json +0 -328
- package/website/templates/examples/houston/index.html +0 -40
- package/website/templates/examples/houston/timeline2.json +0 -218
- package/website/templates/examples/houston/timeline3.json +0 -271
- package/website/templates/examples/mediatypes/index.html +0 -61
- package/website/templates/examples/mediatypes/timeline3.json +0 -421
- package/website/templates/examples/republican/index.html +0 -49
- package/website/templates/examples/republican/timeline2.json +0 -0
- package/website/templates/examples/republican/timeline3.json +0 -238
- package/website/templates/examples/shit-people-say/index.html +0 -39
- package/website/templates/examples/shit-people-say/timeline2.json +0 -243
- package/website/templates/examples/shit-people-say/timeline3.json +0 -336
- package/website/templates/examples/soundcite/index.html +0 -42
- package/website/templates/examples/soundcite/timeline3.json +0 -271
- package/website/templates/examples/timeline3.json +0 -271
- package/website/templates/examples/twain/index.html +0 -85
- package/website/templates/examples/twain/marktwain.json +0 -502
- package/website/templates/examples/user-interface/index.html +0 -40
- package/website/templates/examples/user-interface/timeline2.json +0 -260
- package/website/templates/examples/user-interface/timeline3.json +0 -327
- package/website/templates/index.html +0 -17
- package/website/templates/mediatype-tests.html +0 -121
- package/website/templates/test/GoogleSpreadsheetFeedLegacyFormat.json +0 -1
- package/website/templates/test/GoogleSpreadsheetFeedTJS3Format.json +0 -1
- package/website/templates/test/maps.html +0 -4
- package/website/templates/unit-tests.html +0 -775
package/util/convert_json.py
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
import json
|
|
3
|
-
import sys
|
|
4
|
-
import re
|
|
5
|
-
|
|
6
|
-
if len(sys.argv) != 2:
|
|
7
|
-
print "Usage: %s [file.json]" % sys.argv[0]
|
|
8
|
-
sys.exit(0)
|
|
9
|
-
def process_date(date_str):
|
|
10
|
-
if re.match("^\d{4}$", date_str):
|
|
11
|
-
return { "year": date_str}
|
|
12
|
-
try:
|
|
13
|
-
year,month,day = re.match("^(\d{4})[/,\-](\d+)[/,\-](\d+)$",date_str).groups()
|
|
14
|
-
return { "year": year, "month": month, "day": day }
|
|
15
|
-
except AttributeError:
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
sys.stderr.write("*** weird date: %s\n" % date_str)
|
|
19
|
-
return {}
|
|
20
|
-
|
|
21
|
-
def process_slide(s):
|
|
22
|
-
d = {"start_date": {}, "media": {}, "text": {}}
|
|
23
|
-
d['text']['headline'] = s.get('headline',"")
|
|
24
|
-
d['text']['text'] = s.get('text','')
|
|
25
|
-
try:
|
|
26
|
-
asset = s['asset']
|
|
27
|
-
d['media']['url'] = asset.get('media','')
|
|
28
|
-
d['media']['caption'] = asset.get('caption','')
|
|
29
|
-
d['media']['credit'] = asset.get('credit','')
|
|
30
|
-
except KeyError:
|
|
31
|
-
pass
|
|
32
|
-
|
|
33
|
-
d['start_date'] = process_date(s['startDate'])
|
|
34
|
-
try:
|
|
35
|
-
d['end_date'] = process_date(s['endDate'])
|
|
36
|
-
except KeyError:
|
|
37
|
-
pass
|
|
38
|
-
|
|
39
|
-
return d
|
|
40
|
-
data = json.load(open(sys.argv[1]))
|
|
41
|
-
slides = []
|
|
42
|
-
newdata = { "timeline": {"slides": slides}}
|
|
43
|
-
|
|
44
|
-
timeline = data['timeline']
|
|
45
|
-
dates = timeline.pop('date')
|
|
46
|
-
if (len(timeline)):
|
|
47
|
-
slides.append(process_slide(timeline))
|
|
48
|
-
for date in dates:
|
|
49
|
-
slides.append(process_slide(date))
|
|
50
|
-
|
|
51
|
-
json.dump(newdata,sys.stdout,indent=2)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"""
|
|
55
|
-
The data file should be in JSON format with the following structure
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
"timeline": {
|
|
59
|
-
"slides": [
|
|
60
|
-
{
|
|
61
|
-
"start_date": {
|
|
62
|
-
"year": "1900",
|
|
63
|
-
"month": "01",
|
|
64
|
-
"day": "05",
|
|
65
|
-
"hour": "",
|
|
66
|
-
"minute": "",
|
|
67
|
-
"second": "",
|
|
68
|
-
"millisecond": "",
|
|
69
|
-
"format": ""
|
|
70
|
-
},
|
|
71
|
-
"end_date": {
|
|
72
|
-
"year": "1900",
|
|
73
|
-
"month": "06",
|
|
74
|
-
"day": "07",
|
|
75
|
-
"hour": "",
|
|
76
|
-
"minute": "",
|
|
77
|
-
"second": "",
|
|
78
|
-
"millisecond": "",
|
|
79
|
-
"format": ""
|
|
80
|
-
},
|
|
81
|
-
"media": {
|
|
82
|
-
"caption": "",
|
|
83
|
-
"credit": "",
|
|
84
|
-
"url": "url_to_your_media.jpg",
|
|
85
|
-
"thumbnail": "url_to_your_media.jpg"
|
|
86
|
-
},
|
|
87
|
-
"text": {
|
|
88
|
-
"headline": "Headline Goes Here",
|
|
89
|
-
"text": "Your slide text goes here."
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
"""
|
package/website/__init__.py
DELETED
|
File without changes
|
package/website/app.py
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
'''
|
|
2
|
-
Main entrypoint file. To run:
|
|
3
|
-
|
|
4
|
-
$ python serve.py
|
|
5
|
-
|
|
6
|
-
'''
|
|
7
|
-
from flask import Flask
|
|
8
|
-
from flask import request
|
|
9
|
-
from flask import render_template
|
|
10
|
-
from flask import json
|
|
11
|
-
from flask import send_from_directory
|
|
12
|
-
import importlib
|
|
13
|
-
import traceback
|
|
14
|
-
import sys
|
|
15
|
-
import os
|
|
16
|
-
|
|
17
|
-
# Add current directory to sys.path
|
|
18
|
-
site_dir = os.path.dirname(os.path.abspath(__file__))
|
|
19
|
-
examples_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'examples.json')
|
|
20
|
-
faq_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'faq.json')
|
|
21
|
-
|
|
22
|
-
if site_dir not in sys.path:
|
|
23
|
-
sys.path.append(site_dir)
|
|
24
|
-
|
|
25
|
-
# Set default FLASK_SETTINGS_MODULE for debug mode
|
|
26
|
-
if not os.environ.get('FLASK_SETTINGS_MODULE', ''):
|
|
27
|
-
os.environ['FLASK_SETTINGS_MODULE'] = 'core.settings.loc'
|
|
28
|
-
|
|
29
|
-
# Import settings module for the inject_static_url context processor.
|
|
30
|
-
settings_module = os.environ.get('FLASK_SETTINGS_MODULE')
|
|
31
|
-
|
|
32
|
-
try:
|
|
33
|
-
importlib.import_module(settings_module)
|
|
34
|
-
except ImportError, e:
|
|
35
|
-
raise ImportError(
|
|
36
|
-
"Could not import settings '%s' (Is it on sys.path?): %s" \
|
|
37
|
-
% (settings_module, e))
|
|
38
|
-
|
|
39
|
-
settings = sys.modules[settings_module]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
app = Flask(__name__)
|
|
43
|
-
|
|
44
|
-
dist_dir = os.path.join(settings.PROJECT_ROOT, 'dist')
|
|
45
|
-
|
|
46
|
-
@app.context_processor
|
|
47
|
-
def inject_static_url():
|
|
48
|
-
"""
|
|
49
|
-
Inject the variables 'static_url' and 'STATIC_URL' into the templates to
|
|
50
|
-
avoid hard-coded paths to static files. Grab it from the environment
|
|
51
|
-
variable STATIC_URL, or use the default. Never has a trailing slash.
|
|
52
|
-
"""
|
|
53
|
-
static_url = settings.STATIC_URL or app.static_url_path
|
|
54
|
-
if static_url.endswith('/'):
|
|
55
|
-
static_url = static_url.rstrip('/')
|
|
56
|
-
return dict(static_url=static_url, STATIC_URL=static_url)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
@app.context_processor
|
|
60
|
-
def inject_index_data():
|
|
61
|
-
return dict(examples=json.load(open(examples_json)),faqs=json.load(open(faq_json)))
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
@app.route('/dist/<path:path>')
|
|
65
|
-
def catch_build(path):
|
|
66
|
-
"""
|
|
67
|
-
Serve /dist/... urls from the build directory
|
|
68
|
-
"""
|
|
69
|
-
return send_from_directory(dist_dir, path)
|
|
70
|
-
|
|
71
|
-
@app.route('/')
|
|
72
|
-
@app.route('/<path:path>')
|
|
73
|
-
def catch_all(path='index.html', context=None):
|
|
74
|
-
"""Catch-all function which serves every URL."""
|
|
75
|
-
context = context or {}
|
|
76
|
-
if not os.path.splitext(path)[1]:
|
|
77
|
-
path = os.path.join(path, 'index.html')
|
|
78
|
-
return render_template(path, **context)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if __name__ == "__main__":
|
|
82
|
-
import getopt
|
|
83
|
-
|
|
84
|
-
ssl_context = None
|
|
85
|
-
port = 5000
|
|
86
|
-
|
|
87
|
-
try:
|
|
88
|
-
opts, args = getopt.getopt(sys.argv[1:], "sp:", ["port="])
|
|
89
|
-
for opt, arg in opts:
|
|
90
|
-
if opt == '-s':
|
|
91
|
-
ssl_context = 'adhoc'
|
|
92
|
-
elif opt in ('-p', '--port'):
|
|
93
|
-
port = int(arg)
|
|
94
|
-
else:
|
|
95
|
-
print 'Usage: app.py [-s]'
|
|
96
|
-
sys.exit(1)
|
|
97
|
-
except getopt.GetoptError:
|
|
98
|
-
print 'Usage: app.py [-s] [-p port]'
|
|
99
|
-
sys.exit(1)
|
|
100
|
-
|
|
101
|
-
app.run(host='0.0.0.0', port=port, debug=True, ssl_context=ssl_context)
|
package/website/core/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"""Local settings and globals."""
|
|
2
|
-
import sys
|
|
3
|
-
from os.path import normpath, join
|
|
4
|
-
from .base import *
|
|
5
|
-
|
|
6
|
-
# Import secrets (no project-specific secrets)
|
|
7
|
-
#sys.path.append(
|
|
8
|
-
# abspath(join(PROJECT_ROOT, '../secrets/storymapjs/stg'))
|
|
9
|
-
#)
|
|
10
|
-
#try:
|
|
11
|
-
# from secrets import *
|
|
12
|
-
#except ImportError, e:
|
|
13
|
-
# print 'WARNING: Could not import project secrets (%s). You will not be able to deploy.' % (e)
|
|
14
|
-
|
|
15
|
-
# Set static URL
|
|
16
|
-
STATIC_URL = '/static'
|
package/website/examples.json
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"link": "http://world.time.com/2013/12/05/nelson-mandelas-extraordinary-life-an-interactive-timeline/",
|
|
4
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_mandela.jpg",
|
|
5
|
-
"source": "Time Magazine",
|
|
6
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_time.png",
|
|
7
|
-
"title": "Mandela: A Life of Purpose"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"link": "http://www.lemonde.fr/election-presidentielle-2012/visuel/2012/04/21/chronologie-une-si-longue-campagne-presidentielle_1681661_1471069.html#meter_toaster",
|
|
11
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_lemonde.jpg",
|
|
12
|
-
"source": "Le Monde",
|
|
13
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_lemonde.png",
|
|
14
|
-
"title": "Chronology of the French Presidential Race"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"link": "http://www.themaneater.com/special-sections/mu-fall-2015/",
|
|
18
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_univofmissouri.jpg",
|
|
19
|
-
"source": "The Maneater",
|
|
20
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_maneater.png",
|
|
21
|
-
"title": "Historic Fall at University of Missouri"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"link": "http://www.cnn.com/2016/04/20/asia/north-korea-restaurant-defectors/index.html",
|
|
25
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_northkorea.jpg",
|
|
26
|
-
"source": "CNN",
|
|
27
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_cnn.png",
|
|
28
|
-
"title": "North Korea's Nuclear Ambitions"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"link": "http://bulger.wbur.org/story/1977/?location=44444",
|
|
32
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_bulger.jpg",
|
|
33
|
-
"source": "WBUR",
|
|
34
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_wbur.png",
|
|
35
|
-
"title": "Bulger on Trial"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"link": "https://www.publicintegrity.org/2014/07/15/15037/decades-making-decline-irs-nonprofit-regulation",
|
|
39
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_supremecourt.jpg",
|
|
40
|
-
"source": "Center for Public Integrity",
|
|
41
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_centerforpublicintegrity.png",
|
|
42
|
-
"title": "The Decline of IRS Nonprofit Regulation"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"link": "http://www.denverpost.com/breakingnews/ci_21119904",
|
|
46
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_denver_shooting.jpg",
|
|
47
|
-
"source": "Denver Post",
|
|
48
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_denverpost.png",
|
|
49
|
-
"title": "Aurora, Colorado Movie Theater Shooting"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"link": "https://www.engadget.com/2016/04/22/microsoft-mobile-timeline/",
|
|
53
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_mobile_device.jpg",
|
|
54
|
-
"source": "Engadget",
|
|
55
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_engadget.png",
|
|
56
|
-
"title": "The Collapse of Microsoft and Nokia's Mobile Business"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"link": "http://www.ibtimes.com/islamic-state-timeline-shows-how-isis-expanded-one-year-two-countries-ten-1959705",
|
|
60
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_isis.jpg",
|
|
61
|
-
"source": "International Business Times",
|
|
62
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_ibt.png",
|
|
63
|
-
"title": "How ISIS Spread to 10 Countries"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"link": "http://www.ksat.com/news/texas/middle-school-teacher-had-sexual-relationship-with-student-authorities-say_",
|
|
67
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_perpwalk.jpg",
|
|
68
|
-
"source": "KSAT",
|
|
69
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_ksat.png",
|
|
70
|
-
"title": "Reported Sexual Assault Cases by Texas Educators"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"link": "http://vinepair.com/wine-colonized-world-wine-history/#1",
|
|
74
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_wine.jpg",
|
|
75
|
-
"source": "VinePair",
|
|
76
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_vinepair.png",
|
|
77
|
-
"title": "A History of Wine Around the World"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"link": "http://mashable.com/2014/03/13/timeline-malaysia-airlines-flight-370/?utm_cid=mash-com-Tw-main-link#hzbp7TyJREqX",
|
|
81
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_malaysia-airlines.jpg",
|
|
82
|
-
"source": "Mashable",
|
|
83
|
-
"source_logo": "https://timeline.knightlab.com/static/img/examples/logos/logo_mashable.png",
|
|
84
|
-
"title": "The Mystery of Malaysia Airlines Flight 370"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"link": "https://timeline.knightlab.com/examples/user-interface/index.html",
|
|
88
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_userinterface.png",
|
|
89
|
-
"source": "Knight Lab",
|
|
90
|
-
"source_logo": "/static/img/examples/logos/logo_knightlab.png",
|
|
91
|
-
"title": "Revolutionary User Interfaces"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"link": "http://beyondtheseal.com/chapter3/slide-3/",
|
|
95
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_banana.png",
|
|
96
|
-
"source": "Beyond the Seal",
|
|
97
|
-
"source_logo": "/static/img/examples/logos/logo_beyondtheseal.png",
|
|
98
|
-
"title": "A Brief History of the Banana Business"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"link": "https://timeline.knightlab.com/examples/republican/index.html",
|
|
102
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_republican.jpg",
|
|
103
|
-
"source": "Knight Lab",
|
|
104
|
-
"source_logo": "/static/img/examples/logos/logo_knightlab.png",
|
|
105
|
-
"title": "The Republican Run-Up"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"link": "https://timeline.knightlab.com/examples/houston/index.html",
|
|
109
|
-
"thumbnail": "https://timeline.knightlab.com/static/img/examples/thumbs/thumb_houston.jpg",
|
|
110
|
-
"source": "Knight Lab",
|
|
111
|
-
"source_logo": "/static/img/examples/logos/logo_knightlab.png",
|
|
112
|
-
"title": "Whitney Houston: 1963-2012"
|
|
113
|
-
}
|
|
114
|
-
]
|
package/website/faq.json
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
[{
|
|
2
|
-
"slug": "how-do-i-edit-my-timeline",
|
|
3
|
-
"question": "How do I edit my timeline?",
|
|
4
|
-
"answer": "Once you've created a timeline, you can make changes by going back to your Google spreadsheet. Changes you make to the spreadsheet are automatically available to your Timeline—you don't need to repeat the 'publish to the web' step (step #2). If you want to make changes to the optional settings, you will need to update your embed code, but if you are only changing content in the spreadsheet, then there's nothing else to do."
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"slug": "what-web-browsers-does-timelinejs-work-with",
|
|
8
|
-
"question": "What web browsers does TimelineJS work with?",
|
|
9
|
-
"answer": "Our primary development and testing browser is Google Chrome. We adhere closely to web standards, so we believe that TimelineJS should work effectively in all modern web browsers. TimelineJS is known to not work with Internet Explorer versions before IE10."
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"slug": "missing-slides",
|
|
13
|
-
"question": "Some of my slides aren't showing up. Where are they?",
|
|
14
|
-
"answer": "If the slides which aren't appearing are at the end of your timeline, look for a blank spreadsheet row right after the last slide which is appearing. When TimelineJS asks Google for your data, Google only sends up to the first blank row, so TimelineJS is actually showing everything that it can. Don't forget to look for hidden spreadsheet rows or rows with a very small height."
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"slug": "what-are-my-options-for-changing-how-my-timeline-works",
|
|
18
|
-
"question": "What are my options for changing how my Timeline looks?",
|
|
19
|
-
"answer": "First, make sure you know everything you can do in the spreadsheet configuration, like background colors and images. Also, check out the optional settings part of 'step 3' of the authoring tool. You can change the fonts, the position of the timeline navigation, and the initial zoom level. If you still want to do more, there are some configuration options available. Most of those are for fine tuning, but some of them may be helpful."
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"slug": "can-i-change-things-using-css",
|
|
23
|
-
"question": "There aren't enough options. I want more control over the [font size/color/etc]. Can I change things using CSS?",
|
|
24
|
-
"answer": "Because there are so many details to the styling, this is not exactly simple, but, if you have some technical capacity, you can override TimelineJS's <abbr title='Cascading Style Sheets'>CSS</abbr> rules and have complete control over the look of the timeline. For details, see <a href='/docs/overriding-styles.html'>Overriding Timeline's Styles</a>."
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"slug": "how-can-i-categorize-or-group-my-events",
|
|
28
|
-
"question": "How can I categorize or group my events?",
|
|
29
|
-
"answer": "Every event in a timeline can have a group property. Events with the same group are shown in the same row or adjacent rows, and the common value of their group property is used as a label at the left edge of the timeline. Groups can be set using the 'group' column in the Google Spreadsheet or the 'group' property of a JSON slide object. TimelineJS does not support any other special styling for events in the same group."
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"slug": "why-did-this-happen",
|
|
33
|
-
"question": "The first slide in my timeline isn't the first chronologically. Why did this happen?",
|
|
34
|
-
"answer": "When using the Google Spreadsheet to configure your timeline, if you put the word <code>title</code> in the <code>type</code> column, that slide will be put at the front, regardless of the values in the date columns. See the <a href='/docs/using-spreadsheets.html#title_slides'>Google Spreadsheet documentation</a> for more information."
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"slug": "can-i-make-media-images-clickable",
|
|
38
|
-
"question": "Can I make media images clickable?",
|
|
39
|
-
"answer": "No. Many of TimelineJS's media types are interactive, and so would not be able to handle a link, and other of TimelineJS's media types have terms of service which require a link back to the source of the media. As an alternative, consider using HTML to add links in the caption, credit, or text for the slide."
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"slug": "how-can-i-format-text",
|
|
43
|
-
"question": "How can I format text (add line breaks, bold, italics)?",
|
|
44
|
-
"answer": "TimelineJS's text fields (headline, text, caption, and credit) all accept HTML markup. A full tutorial on HTML is outside the scope of this FAQ, but here are a few basics:<br><ul><li>Wrap paragraphs in <code><p></p></code> tags to create line breaks.</li><li>Wrap text in <code><b></b></code> tags for <b>bold</b> text and <code><i></i></code> for <em>italics</em></li></ul>"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"slug": "how-do-i-enter-bce-dates",
|
|
48
|
-
"question": "How do I enter BCE dates?",
|
|
49
|
-
"answer": "To enter dates before the <a href='https://en.wikipedia.org/wiki/Common_Era'>common era</a>, just use a negative value for the year. Of course, you can also enter month and date if you need them."
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"slug": "how-do-i-create-very-ancient-dates",
|
|
53
|
-
"question": "How do I create very ancient dates?",
|
|
54
|
-
"answer": "Generally, you don't have to think about it -- just enter the dates you want. Timeline can handle dates literally to the beginning of time. For dates more than about 250,000 years ago, only the year is usable. Support for those older dates is still relatively new, so if anything seems off, visit our <a href='http://knightlab.zendesk.com'>tech support site.</a>"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"slug": "who-can-access-the-data-in-my-google-spreadsheet",
|
|
58
|
-
"question": "Who can access the data in my Google spreadsheet?",
|
|
59
|
-
"answer": "You must make the data public to the web to use TimelineJS with a Google Spreadsheet as the data source. Normally, the data is still only visible to people who know the link, so if you publish a timeline privately, outsiders are unlikely to see the data. However, it is still public, so you must decide if that is acceptable."
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"slug": "how-should-i-use-timelinejs",
|
|
63
|
-
"question": "Privacy is very important to me. How should I use TimelineJS?",
|
|
64
|
-
"answer": "If you want complete control over who can see the information in your timeline, you cannot use Google Spreadsheets, and you cannot use our standard <code>iframe</code> embed code. Instead, you must use <a href='/docs/json-format.html'>JSON format</a> for the data and <a href='/docs/instantiate-a-timeline.html'>instantiate the timeline</a> directly using javascript. You can then use standard web server security measures to control who has access to your timeline and the data used to create it."
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"slug": "will-my-spreadsheet-get-picked-up-by-search-engines",
|
|
68
|
-
"question": "Will my spreadsheet get picked up by search engines?",
|
|
69
|
-
"answer": "Under normal circumstances, Google tells search engines not to index spreadsheets which are published to the web. Of course, if the page is public on the web, it is possible that a search engine will disregard those instructions."
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"slug": "can-i-use-timelinejs-with-wordpress",
|
|
73
|
-
"question": "Can I use TimelineJS with Wordpress?",
|
|
74
|
-
"answer": "<strong>It depends.</strong> TimelineJS does not work with Wordpress.com sites. We are researching ways to address this.<br>If you are able to install plugins to your Wordpress installation, we have a <a href='https://wordpress.org/plugins/knight-lab-timelinejs/''>Wordpress plugin for Timeline</a>. It supports embedding Timelines with Wordpress \"shortcode\", and as of version 3.3.14.0, it also has experimental \"oembed\" support. That means that you can take a direct URL to a timeline (like you get with the \"get link to preview\" button) and put it in a post on a line by itself, and it should be embedded. (Make sure you've updated the plugin before you try it.)"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"slug": "is-timelinejs-free-for-commercial-use",
|
|
78
|
-
"question": "Is TimelineJS free for commercial use?",
|
|
79
|
-
"answer": "TimelineJS is released under the <a href='https://www.mozilla.org/en-US/MPL/2.0/'>Mozilla Public License (MPL), version 2.0</a>. That means that TimelineJS is free to \"use, reproduce, make available, modify, display, perform, distribute\" or otherwise employ. You don't need our permission to publish stories with TimelineJS and you don't need to pay us any fees or arrange any further license beyond the MPL. To read more about what you can do with TimelineJS, read our <a href='/docs/license.html'>license page</a>."
|
|
80
|
-
}
|
|
81
|
-
]
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* desert scheme ported from vim to google prettify */
|
|
2
|
-
pre.prettyprint { display: block; background-color: #333 }
|
|
3
|
-
pre .nocode { background-color: none; color: #000 }
|
|
4
|
-
pre .str { color: #ffa0a0 } /* string - pink */
|
|
5
|
-
pre .kwd { color: #f0e68c; font-weight: bold }
|
|
6
|
-
pre .com { color: #87ceeb } /* comment - skyblue */
|
|
7
|
-
pre .typ { color: #98fb98 } /* type - lightgreen */
|
|
8
|
-
pre .lit { color: #cd5c5c } /* literal - darkred */
|
|
9
|
-
pre .pun { color: #fff } /* punctuation */
|
|
10
|
-
pre .pln { color: #fff } /* plaintext */
|
|
11
|
-
pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
|
|
12
|
-
pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
|
|
13
|
-
pre .atv { color: #ffa0a0 } /* attribute value - pink */
|
|
14
|
-
pre .dec { color: #98fb98 } /* decimal - lightgreen */
|
|
15
|
-
|
|
16
|
-
/* Specify class=linenums on a pre to get line numbering */
|
|
17
|
-
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
|
|
18
|
-
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
|
|
19
|
-
/* Alternate shading for lines */
|
|
20
|
-
li.L1,li.L3,li.L5,li.L7,li.L9 { }
|
|
21
|
-
|
|
22
|
-
@media print {
|
|
23
|
-
pre.prettyprint { background-color: none }
|
|
24
|
-
pre .str, code .str { color: #060 }
|
|
25
|
-
pre .kwd, code .kwd { color: #006; font-weight: bold }
|
|
26
|
-
pre .com, code .com { color: #600; font-style: italic }
|
|
27
|
-
pre .typ, code .typ { color: #404; font-weight: bold }
|
|
28
|
-
pre .lit, code .lit { color: #044 }
|
|
29
|
-
pre .pun, code .pun { color: #440 }
|
|
30
|
-
pre .pln, code .pln { color: #000 }
|
|
31
|
-
pre .tag, code .tag { color: #006; font-weight: bold }
|
|
32
|
-
pre .atn, code .atn { color: #404 }
|
|
33
|
-
pre .atv, code .atv { color: #060 }
|
|
34
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
.more-options {
|
|
2
|
-
margin: 20px 0;
|
|
3
|
-
display: none;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
#hide-options {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.help-block {
|
|
11
|
-
font-size: 85%;
|
|
12
|
-
font-style: italic;
|
|
13
|
-
color: #999;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.checkbox input { margin-right: 20px; }
|
|
17
|
-
|
|
18
|
-
#embed-font-dropdown,
|
|
19
|
-
ul#embed-font {
|
|
20
|
-
list-style-type:none;
|
|
21
|
-
margin: 0;
|
|
22
|
-
font-family: sans-serif;
|
|
23
|
-
padding: 0;
|
|
24
|
-
}
|
|
25
|
-
ul#embed-font{
|
|
26
|
-
display:none;
|
|
27
|
-
position:absolute;
|
|
28
|
-
width: 90%;
|
|
29
|
-
top: 60px;
|
|
30
|
-
border: 1px solid #ccc;
|
|
31
|
-
box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
|
|
32
|
-
background-color: #FAFAFA;
|
|
33
|
-
z-index: 10;
|
|
34
|
-
padding: 10px 25px 10px 30px;
|
|
35
|
-
}
|
|
36
|
-
ul#embed-font li img {
|
|
37
|
-
max-width: 60%;
|
|
38
|
-
}
|
|
39
|
-
#embed-font-dropdown > li > p {
|
|
40
|
-
font-family: "Apres RE", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
margin: 0;
|
|
43
|
-
padding: 0px;
|
|
44
|
-
}
|
|
45
|
-
#embed-font-dropdown img { cursor: pointer; }
|
|
46
|
-
.fa.fa-check { margin: 0 5px 0 -20px; }
|
|
47
|
-
|
|
48
|
-
#preview-embed {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.note-error {
|
|
53
|
-
display: none;
|
|
54
|
-
}
|
|
55
|
-
.note-error:before {
|
|
56
|
-
content: "Warning: "
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* faq.html */
|
|
60
|
-
h6.label {
|
|
61
|
-
font-size: 1.3em;
|
|
62
|
-
padding: 3em inherit 1em;
|
|
63
|
-
}
|
|
64
|
-
div.question p, div.question ul {
|
|
65
|
-
margin-left: 2em;
|
|
66
|
-
}
|
|
67
|
-
div.question p:first-child {
|
|
68
|
-
font-weight: bolder;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
img.make-step-2 {
|
|
72
|
-
float: left;
|
|
73
|
-
margin-right: 7px;
|
|
74
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|