[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/sites/www-devel/community/history
From:       Rainer Endres <endres () physos ! org>
Date:       2010-02-09 14:18:10
Message-ID: 1265725090.302783.20406.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087767 by endres:


        Putting the timeline back in. This is actually tested.



 M  +46 -0     index.php  


--- trunk/www/sites/www-devel/community/history/index.php #1087766:1087767
@@ -44,7 +44,51 @@
 
 <h2>Timeline</h2>
 
+    <script>Timeline_urlPrefix = \
"http://static.simile.mit.edu/timeline/api-2.3.0/";</script> +    <script \
src="http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundle=true" \
type="text/javascript"></script> +    <script type="text/javascript">
+      var tl;
+      window.onload = function onLoad() {
+        var eventSource = new Timeline.DefaultEventSource();
+        var bandInfos = [
+          Timeline.createBandInfo({
+            eventSource:    eventSource,
+            date:           "Oct 14 1996 00:00:00 GMT",
+            width:          "70%", 
+            intervalUnit:   Timeline.DateTime.MONTH, 
+            intervalPixels: 70
+          }),
+          Timeline.createBandInfo({
+	    overview:       true,
+            eventSource:    eventSource,
+            date:           "Oct 14 1996 00:00:00 GMT",
+            width:          "30%", 
+            intervalUnit:   Timeline.DateTime.YEAR, 
+            intervalPixels: 70
+          })
+        ];
 
+        bandInfos[1].syncWith = 0;
+        bandInfos[1].highlight = true;
+
+      tl = Timeline.create(document.getElementById("kde-timeline"), bandInfos);
+      Timeline.loadXML("timeline.xml", function(xml, url) { eventSource.loadXML(xml, \
url); }) +      }
+
+      var resizeTimerID = null;
+      window.onresize = function onResize() {
+        if (resizeTimerID == null) {
+          resizeTimerID = window.setTimeout(function() {
+             resizeTimerID = null;
+             tl.layout();
+          }, 500);
+        }
+      }
+    </script>
+
+    <div id="kde-timeline" style="height: 150px; border: 1px solid #aaa"></div>
+    <noscript>
+
 <ul>
 <li>KDE was founded in October 1996. <a \
href="../../announcements/announcement.php">Its announcement</a> is dated 14th \
October 1996.</li>  <li>August 15, 1997: <a \
href="http://community.kde.org/KDE_Project_History/KDE_One_(Developer_Meeting)">KDE-ONE</a> \
in Arnsberg, Germany, 15 participants</li> @@ -165,6 +209,8 @@
 <li><a href="../../announcements/announce-4.4-rc3.php">4.4 RC 3</a> was released on \
February 1st, 2010</li>  </ul>
 
+    </noscript>
+
 <?php
   include ("footer.inc");
 ?>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic