Browse Source

Fix paths

pull/512/head
jenny 12 years ago
parent
commit
cb7d96b320
  1. 2
      config.json
  2. 4
      fabfile/__init__.py
  3. 8
      source/embed/index.html
  4. 5
      website/templates/_demo.html
  5. 2
      website/templates/_make.html
  6. 6
      website/templates/base.html
  7. 5
      website/templates/examples/houston/index.html
  8. 5
      website/templates/examples/republican/index.html
  9. 5
      website/templates/examples/shit-people-say/index.html
  10. 5
      website/templates/examples/user-interface/index.html

2
config.json

@ -9,7 +9,7 @@
// the project directory.
//
{
"name": "timelinejs",
"name": "timeline",
"author": "Zach Wise",
//
// build

4
fabfile/__init__.py

@ -195,8 +195,8 @@ def banner(conf):
def _do(file_path):
puts(' %s' % file_path)
with open(file_path, 'r+') as fd:
s = fd.read()
fd.seek(0)
s = fd.read()
fd.seek(0)
fd.write(_banner_text+s)
for r in conf:

8
source/embed/index.html

@ -35,14 +35,14 @@
</head>
</html>
<body>
<!-- Override auto-setting of embed path -->
<!-- BEGIN Timeline Embed -->
<div id="timeline-embed"></div>
<!-- Override -->
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timeline/latest/";
</script>
<!-- BEGIN Timeline Embed -->
<div id="timeline-embed"></div>
<!-- build:js ../js/storyjs-embed-cdn.js?v214 -->
<script type="application/javascript">
<script type="text/javascript">
var embed_path = "/build/";
</script>
<script type="text/javascript" src="/build/js/storyjs-embed-cdn.js?v214"></script>

5
website/templates/_demo.html

@ -14,10 +14,7 @@
font: 'NewsCycle-Merriweather',
};
</script>
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js -->
<script type="application/javascript">
var embed_path = "/build/"
</script>

2
website/templates/_make.html

@ -200,7 +200,7 @@
<div class="span11">
<h4>Embed the code into your website</h4>
<p>Grab the embed code and paste it on your site where you want your TimelineJS to appear (just like a YouTube video).</p>
<textarea readonly="readonly" style="width: 100%; height: 160px; min-height: 110px; max-height: 300px; resize: none; font-family: Menlo,Monaco,'Courier New',monospace; font-size: 12px;" id="embed_code"><iframe src='http://cdn.knightlab.com/libs/timelinejs/latest/embed?source=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE&font=Bevan-PotanoSans&maptype=toner&width=600&height=600' width='600' height='600' frameborder='0'></iframe></textarea><br><br>
<textarea readonly="readonly" style="width: 100%; height: 160px; min-height: 110px; max-height: 300px; resize: none; font-family: Menlo,Monaco,'Courier New',monospace; font-size: 12px;" id="embed_code"><iframe src='http://cdn.knightlab.com/libs/timeline/latest/embed/?source=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE&font=Bevan-PotanoSans&maptype=toner&width=600&height=600' width='600' height='600' frameborder='0'></iframe></textarea><br><br>
<p><a href="#preview-embed" data-scroll="true" id="iframe-preview-button" class="btn btn-primary">Preview</a></p>
</div>
</div>

6
website/templates/base.html

@ -115,11 +115,11 @@
{% block scripts %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://cdn.knightlab.com/libs/blueline/latest/js/blueline.min.js"></script>
<!-- Override auto-setting of generator embed path -->
<!-- Override -->
<script type="text/javascript">
var generator_embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/embed/index.html";
var generator_embed_path = "http://cdn.knightlab.com/libs/timeline/latest/embed/index.html";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed-generator.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed-generator.js -->
<script type="text/javascript">
var generator_embed_path = "/source/embed/index.html";
</script>

5
website/templates/examples/houston/index.html

@ -41,10 +41,7 @@
font: 'Bevan-PotanoSans'
}
</script>
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js -->
<script type="application/javascript">
var embed_path = "/build/"
</script>

5
website/templates/examples/republican/index.html

@ -41,10 +41,7 @@
font: 'PT'
}
</script>
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js -->
<script type="application/javascript">
var embed_path = "/build/"
</script>

5
website/templates/examples/shit-people-say/index.html

@ -41,10 +41,7 @@
font: 'Pacifico-Arimo'
}
</script>
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js -->
<script type="application/javascript">
var embed_path = "/build/"
</script>

5
website/templates/examples/user-interface/index.html

@ -41,10 +41,7 @@
font: 'SansitaOne-Kameron'
}
</script>
<script type="text/javascript">
var embed_path = "http://cdn.knightlab.com/libs/timelinejs/latest/";
</script>
<!-- build:js http://cdn.knightlab.com/libs/timelinejs/latest/js/storyjs-embed.js -->
<!-- build:js http://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js -->
<script type="application/javascript">
var embed_path = "/build/"
</script>

Loading…
Cancel
Save