[npr-simile-timeline commit] r64 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 22, 2008, 10:49:20 AM9/22/08
to opensourceb...@googlegroups.com
Author: jgtynan
Date: Mon Sep 22 07:48:49 2008
New Revision: 64

Modified:
trunk/code_new.html
trunk/form_new.html

Log:
Added the ability to simply get the link to a timeline in code_new.html

Added a link back to the main project page on form_new.html

Modified: trunk/code_new.html
==============================================================================
--- trunk/code_new.html (original)
+++ trunk/code_new.html Mon Sep 22 07:48:49 2008
@@ -21,13 +21,19 @@
widthString=" width=\"" +
parent.parent.generatorFrame.document.generatorForm.timelineWidth.value
+ "px\"";
}

-iframe = "\<iframe src
=\"http:\/\/npr-simile-timeline.googlecode.com\/svn\/trunk\/widget.html?"
+ "http:\/\/api.npr.org\/query\?" +
parent.parent.qgliteFrame.document.selectionForm.queryBox.value
+ "\&apiKey\=MDAxNzgwMDQ5MDEyMTQ4NzYyMjU4YmY1Yw004\&output\=JSON\&callback\=parseJSON\""
+ heightString + " width=\"100\%\" scrolling=\"No\"
frameborder=\"0\"\>\<\/iframe\>";
+link
= "http:\/\/npr-simile-timeline.googlecode.com\/svn\/trunk\/widget.html"
+ "http:\/\/npr-simile-timeline.googlecode.com\/svn\/trunk\/widget.html?"
+ "http:\/\/api.npr.org\/query\?" +
parent.parent.qgliteFrame.document.selectionForm.queryBox.value
+ "\&apiKey\=MDAxNzgwMDQ5MDEyMTQ4NzYyMjU4YmY1Yw004\&output\=JSON\&callback\=parseJSON";
+
+iframe = "\<iframe src =\"" + link + "\"" + heightString + "
width=\"100\%\" scrolling=\"No\" frameborder=\"0\"\>\<\/iframe\>";
+
+

// just in case I want to throw more into the code that is'nt part of the
iframe
code = iframe;

document.codeForm.code.value = code;

+document.codeForm.link.value = link;
+
}
</script>
</head>
@@ -35,6 +41,9 @@
<form name="codeForm">
<h2>Code</h2>
<textarea id="code" rows="10" cols="50"></textarea>
+<h2>Link</h2>
+<textarea id="link" rows="10" cols="50"></textarea>
+<p>Alternatively, you can copy the link above to send a timeline in email,
or simply link to a timeline from a hyperlink.</p>
</form>
</body>
</html>

Modified: trunk/form_new.html
==============================================================================
--- trunk/form_new.html (original)
+++ trunk/form_new.html Mon Sep 22 07:48:49 2008
@@ -37,6 +37,9 @@
<div id="viewURL" style="font-size:x-small;">
<!-- parent.qgliteFrame.document.selectionForm.queryBox.value; -->
</div>
+<div id="moreInfo" style="font-size:x-small;">
+<a href="http://npr-simile-timeline.googlecode.com/">About the NPR
Timeline</a>
+</div>
</form>
</body>
</html>

Reply all
Reply to author
Forward
0 new messages