diff --git a/source/embed/index.html b/source/embed/index.html index 6d9769e..e7b2f98 100644 --- a/source/embed/index.html +++ b/source/embed/index.html @@ -43,7 +43,7 @@ if (trim_point > 0) { var embed_path = window.location.href.substring(0,trim_point); // supports https access via https://s3.amazonaws.com/cdn.knightlab.com/libs/timeline/latest/embed/index.html } else { - var embed_path = "http://cdn.knightlab.com/libs/timeline/latest/"; + var embed_path = "//test.knightlab.com/libs/timeline/latest/"; } diff --git a/website/app.py b/website/app.py index 078d50e..8f988ab 100644 --- a/website/app.py +++ b/website/app.py @@ -83,4 +83,26 @@ def catch_all(path='index.html'): if __name__ == "__main__": - app.run(host='0.0.0.0', port=5000, debug=True) + import getopt + + ssl_context = None + port = 5000 + + try: + opts, args = getopt.getopt(sys.argv[1:], "sp:", ["port="]) + for opt, arg in opts: + if opt == '-s': + ssl_context = ( + os.path.join(site_dir, 'website.crt'), + os.path.join(site_dir, 'website.key')) + + elif opt in ('-p', '--port'): + port = int(arg) + else: + print 'Usage: app.py [-s]' + sys.exit(1) + except getopt.GetoptError: + print 'Usage: app.py [-s] [-p port]' + sys.exit(1) + + app.run(host='0.0.0.0', port=5000, debug=True, ssl_context=ssl_context) diff --git a/website/templates/_demo.html b/website/templates/_demo.html index e08f30e..211c219 100644 --- a/website/templates/_demo.html +++ b/website/templates/_demo.html @@ -14,7 +14,7 @@ font: 'NewsCycle-Merriweather', }; - + diff --git a/website/templates/_description.html b/website/templates/_description.html index 4eb2747..8423ba5 100644 --- a/website/templates/_description.html +++ b/website/templates/_description.html @@ -20,7 +20,7 @@

Get updates, tips and news by email. No Spam.

-
+
diff --git a/website/templates/_make.html b/website/templates/_make.html index 3304ef3..9383070 100644 --- a/website/templates/_make.html +++ b/website/templates/_make.html @@ -231,7 +231,7 @@

Embed the code into your website

Grab the embed code and paste it on your site where you want your TimelineJS to appear (just like a YouTube video).

-

+

Preview Link to Preview

diff --git a/website/templates/base.html b/website/templates/base.html index edf6b02..9997bd3 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -26,9 +26,9 @@ meta name="viewport" content="initial-scale=1,width=device-width" someone needs to go through Blueline and fix the small viewport CSS details before we can turn this on. --> - + - + @@ -138,11 +138,11 @@ {% block scripts %} - +