Repository: marmotta
Updated Branches:
  refs/heads/MARMOTTA-189 [created] 3de220825


MARMOTTA-189: included simple timeline using timeknots.js


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/2b71c07e
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/2b71c07e
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/2b71c07e

Branch: refs/heads/MARMOTTA-189
Commit: 2b71c07e393503d1c86a4af4afd9167034058569
Parents: dd004d3
Author: Jakob Frank <[email protected]>
Authored: Mon Feb 17 12:35:42 2014 +0100
Committer: Jakob Frank <[email protected]>
Committed: Thu Mar 13 15:34:56 2014 +0100

----------------------------------------------------------------------
 .../src/main/resources/templates/memento_timemap.ftl   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/2b71c07e/platform/marmotta-versioning-kiwi/src/main/resources/templates/memento_timemap.ftl
----------------------------------------------------------------------
diff --git 
a/platform/marmotta-versioning-kiwi/src/main/resources/templates/memento_timemap.ftl
 
b/platform/marmotta-versioning-kiwi/src/main/resources/templates/memento_timemap.ftl
index 44a717d..e99bdd8 100644
--- 
a/platform/marmotta-versioning-kiwi/src/main/resources/templates/memento_timemap.ftl
+++ 
b/platform/marmotta-versioning-kiwi/src/main/resources/templates/memento_timemap.ftl
@@ -26,6 +26,9 @@
     <script type="text/javascript" 
src="${baseUri}webjars/jquery/1.8.2/jquery.min.js"></script>
     <link href="${SERVER_URL}${DEFAULT_STYLE}style.css" rel="stylesheet" 
type="text/css" />
     <link href="${SERVER_URL}${DEFAULT_STYLE}rdfhtml.css" rel="stylesheet" 
type="text/css" />
+
+    <script type="text/javascript" 
src="http://graves.cl/timeknots/src/d3.v2.min.js";></script>
+    <script type="text/javascript" 
src="http://graves.cl/timeknots/src/timeknots-min.js";></script>
 </head>
 
 <body>
@@ -40,6 +43,16 @@
     </div>
     <div id="center" style="width: 100%">
         <div id="content">
+            <div id="timeknots" style="width:100%"></div>
+<script type="text/javascript">
+var v = [
+<#list versions as version>
+{'name':"${version.date}", 'date':new Date("${version.tstamp}")},
+</#list>
+{'name':"now", 'date':new Date()}
+];
+TimeKnots.draw("#timeknots", v, {dateFormat: "%Y", color: "#696", showLabels: 
true, labelFormat: "%Y-%m-%d %H:%M:%S"});
+</script>
             <table class="simple_table">
                 <tr>
                     <th>Verions</th>

Reply via email to