]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merged google news with new website, changed layout.html to index.html, fixed index...
authorScottDowne <sdowne@learn.senecac.on.ca>
Wed, 30 Jun 2010 18:32:50 +0000 (14:32 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Wed, 30 Jun 2010 18:32:50 +0000 (14:32 -0400)
index.html
layout.htm [deleted file]
popcorn.js
style.css
xml/webMadeMovies.xml

index c5678db7e22a96b00910d0ee5bc16ad9fe4573b2..0342b01343cce178a7f260907aab05140dbf2d6b 100644 (file)
-<html> 
-  <head> 
-    <title>html5 video demo</title> 
-    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
-    <script src="popcorn.js"></script>
-    <script src="http://code.jquery.com/jquery.js"></script> 
-    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
-    <script src="http://google.com/jsapi"></script>
-    <script>google.load("language","1");</script>
-    <script>google.load("elements", "1", {packages : ["newsshow"]});</script>
-    <style type="text/css" media="screen"> 
-      body { 
-        background-color:#eee; 
-      }
-      #container {
-        width:850px;
-        margin:auto 50px;
-        border:1px solid #ccc;
-        background:white;
-        padding:20px;
-        position:relative;
-      }
-      #sub { 
-        position:absolute;
-        top:435px;
-        left:40px;
-        color:white;
-        font-weight:bold;
-        font-family:sans-serif;        
-        text-shadow:black 1px 1px 3px;
-        width:820px;   
-        font-size:25px;
-      }
-      #map {
-          border: solid 1px #000;
-          width: 200px;
-          height: 200px;
-      }
-    </style> 
-  </head> 
-  <body> 
-    <div id="container">
-      <video src="http://a52.video2.blip.tv/7320003802153/Etherworks-WebMadeMovies3BuildingABetterInternet799.ogg" data-timeline-sources="xml/webMadeMovies.xml" controls></video>
-      <select id="language">
-        <option val="en">English</option>
-        <option val="es">Spanish</option>
-        <option val="fr">French</option>
-        <option val="de">German</option>
-        <option val="ja">Japanese</option>
-        <option val="zh">Chinese</option>
-      </select>
-      <div id="sub"></div><br />
-      <div id="footnotediv"></div><br />
-      <div id="attributiondiv"></div><br />
-      <div id="tagthisvideo">In this video:<span id="inthisvideo"></span></div><br />
-      <div>
-        <div id="map">        
-        </div>
-          <p id="mapinfo">
-          </p>
+<html>
+<head>
+  <title>html5 video demo</title>
+  <script src="http://code.jquery.com/jquery.js"></script>
+  <script src="http://google.com/jsapi"></script>
+  <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
+  <script src="http://widgets.twimg.com/j/2/widget.js"></script>
+  <script>google.load("language", "1");</script>
+  <script>google.load("elements", "1", {packages : ["newsshow"]});</script>
+  <script src="popcorn.js"></script>
+  <link href="style.css" rel="stylesheet" type="text/css" />
+  <script type="text/javascript">
+    $(document).ready(function () {
+      //Show hide the contents
+      $(".collapse").click(function () {
+        $(this).next(".content").slideToggle("fast");
+      });
+      //Swap class names
+      $(".collapse").toggle(function () {
+        $(this).addClass("expand");
+      }, function () {
+        $(this).removeClass("expand");
+      });
+      $(".collapse").toggle(function () {
+        $("span", this).text('Expand');
+      }, function () {
+        $("span", this).text('Collapse');
+      });
+    });
+  </script>
+</head>
+
+<body>
+  <!-- Start First Container Div -->
+  <div class="container-top">
+    <!-- Start Second Container Div -->
+    <div class="container-bot">
+      <!-- Start Wrapper Div -->
+      <div class="wrapper">
+        <!-- Start Header -->
+        <header id="global-header">
+          <a href="http://www.drumbeat.org/" class="logo"><img src="images/drumbeat_logo.png" alt="drumbeat_logo" width="" height="" /></a>
+
+          <!-- Start Login/Signup -->
+          <nav id="login">
+            <ul>
+              <li><a href="#">log in</a></li>
+              <li><a href="#">sign up</a></li>
+            </ul>
+          </nav>
+          <!-- End Login/Signup -->
+
+          <!-- Start Primary Links -->
+          <nav id="primary-links">
+            <ul>
+              <li><a title="" href="http://www.drumbeat.org/about">About</a></li>
+              <li><a title="" href="http://www.drumbeat.org/projects">Projects</a></li>
+              <li><a title="" href="http://www.drumbeat.org/people">People</a></li>
+              <li><a title="" href="http://www.drumbeat.org/events">Events</a></li>
+              <li><a title="" href="http://indofolio.com/civicrm/contribute/transact?reset=1&id=3?reset=1&id=3">Donate</a></li>
+            </ul>
+          </nav>
+          <!-- End Primary Links -->
+
+        </header>
+        <!-- End Header -->
+        <!-- Start Contents -->
+        <div id="contents">
+          <!-- Start Left Contents -->
+          <div class="left-content">
+            <!-- Start Video Div -->
+            <div class="video-div">
+              <video width="530px" height="299px" src="http://a52.video2.blip.tv/7320003802153/Etherworks-WebMadeMovies3BuildingABetterInternet799.ogg" data-timeline-sources="xml/webMadeMovies.xml" controls></video>
+              <div id="sub"></div>
+                <!-- Start Video Info -->
+                <div class="video-info">
+                  <!-- Start Choose Language -->
+                  <div class="choose-language">
+                    <h2>Choose your language</h2>
+                    <select id="language">
+                      <option val="en">English</option>
+                      <option val="es">Spanish</option>
+                      <option val="fr">French</option>
+                      <option val="de">German</option>
+                      <option val="ja">Japanese</option>
+                    </select>
+                    <div id="credit">
+                      with help from
+                      <br />
+                      <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
+                        jQuery</a>
+                    </div>
+                  </div>
+                  <!-- End Choose Language -->
+                  <!-- Start Foot Notes -->
+                  <div class="foot-notes">
+                    <h2>
+                      This video's footnotes</h2>
+                    <p id="footnotediv"></p>
+                  </div>
+                  <!-- End Foot Notes -->
+                </div>
+                <!-- End Video Info -->
+              </div>
+              <!-- End Video Div -->
+              <h1>
+                <span>In this video: <strong id="inthisvideo"></strong></span>
+              </h1>
+              <!-- Start Column A -->
+              <div class="columna">
+                <section>
+                                   <h3><img src="images/logo_twitter.png" alt="Twitter Updates" width="" height="" />
+                                     <span>&nbsp;</span></h3>
+                                   <a href="#" class="collapse"><span>Collapse</span></a>
+                                   <div id="personaltwitter" class="content"></div>
+                                 </section>
+                         
+              </div>
+              <!-- End Column A -->
+              <!-- Start Column B -->
+              <div class="columnb">
+                <section>
+                                   <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="" height="" />
+                    <span>&nbsp;</span></h3> 
+                                   <a href="#" class="collapse"><span>Collapse</span></a>
+                                   <div id="personalflickr" class="content"></div>
+                                 </section>
+              </div>
+              <!-- End Column B -->
+            </div>
+            <!-- End Left Contents -->
+            <!-- Start Right Contents -->
+            <div class="right-content">
+              <h1>
+                <span>Related to this video</span></h1>
+              <!-- Start Column A -->
+              <div class="columna">
+                <section>
+                                   <div id="container3" class="google-map-title">
+                    <h4>Filmed in:</h4>
+                    <span id="mapinfo"></span>
+                  </div>            
+
+                                   <div id="container2" class="google-map"></div>
+                       
+                                 </section>
+                <section>
+                                   <h3><img src="images/logo_twitter.png" alt="Twitter" width="" height="" /></h3> 
+                                   <a href="#" class="collapse"><span>Collapse</span></a>
+                                   <div id="twitter" class="content"></div>
+                           </section>
+              </div>
+              <!-- End Column A -->
+              <!-- Start Column B -->
+              <div class="columnb">
+                <section>
+                                   <h3><img src="images/logo_wiki.png" alt="Wikipedia" width="" height="" /></h3> 
+                                   <a href="#" class="collapse"><span>Collapse</span></a>
+
+                                   <div class="content">
+                                     Use the #Evernote Fx Add-on to save, organize, & search info you find on the Web http://bit.ly/evernotewebclipper /via @rockyourfirefox
+                                     <a href="#" class="more">more</a>
+                                   </div>
+                                 </section>
+                <section>
+                                   <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="" height="" /></h3> 
+                                   <a href="#" class="collapse"><span>Collapse</span></a>
+
+                                   <div id="flickr" class="content"></div>
+                                 </section>
+
+              </div>
+              <!-- End Column B -->
+
+              <h1></h1>
+              <section>
+                                 <h3><img src="images/logo_google_news.png" alt="Google News" width="" height="" />
+                                 </h3> 
+                                 <div id="googlenewsdiv">
+                                 </div>
+                         </section>
+                   <h1><span>This video's copyright information</span></h1>
+              <section>
+                       <div id="container5">
+                  Attribution
+                </div>
+                         </section>
+            </div>
+            <!-- End Right Contents -->
+          </div>
+          <!-- End Contents -->
+          <footer>
+                 <div class="footer_webmade">
+                 <img src="images/footer_webmade.png" alt="footer_webmade" width="" height="" />
+                 <p>Web Made Movies is a Mozilla's Open video lab
+                   <a href="#">Learn More <span>&raquo;</span></a>
+                 </p>
+               </div>
+               <div class="footer_drumbeat">
+                 <img src="images/footer_drumbeat.png" alt="footer_drumbeat" width="" height="" /><p>Innovation on the open web, </br> powered by everybody.</p>
+               </div>
+          <div class="copyright">Portions of this content are &copy;2010 by individual drumbeat.org contributors. Content available under a Creative Commons license.</div>
+        </footer>
       </div>
-      <div id="googlenewsdiv"></div>
-      <div id="twitter"></div>
-      <div id="flickr"></div>
+      <!-- End Wrapper Div -->
     </div>
-  </body> 
-</html> 
-
+    <!-- End First Container Div -->
+  </div>
+  <!-- End Second Container Div -->
+</body>
+</html>
diff --git a/layout.htm b/layout.htm
deleted file mode 100644 (file)
index 88921f5..0000000
+++ /dev/null
@@ -1,230 +0,0 @@
-<html>
-<head>
-    <title>html5 video demo</title>
-    <script src="http://code.jquery.com/jquery.js"></script>
-    <script src="http://google.com/jsapi"></script>
-    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
-    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
-    <script>google.load("language", "1");</script>
-    <script src="popcorn.js"></script>
-    <link href="style.css" rel="stylesheet" type="text/css" />
-    <script type="text/javascript">
-        $(document).ready(function () {
-            //Show hide the contents
-            $(".collapse").click(function () {
-                $(this).next(".content").slideToggle("fast");
-            });
-            //Swap class names
-            $(".collapse").toggle(function () {
-                $(this).addClass("expand");
-            }, function () {
-                $(this).removeClass("expand");
-            });
-            $(".collapse").toggle(function () {
-                $("span", this).text('Expand');
-            }, function () {
-                $("span", this).text('Collapse');
-            });
-        });
-    </script>
-</head>
-<body>
-    <!-- Start First Container Div -->
-    <div class="container-top">
-        <!-- Start Second Container Div -->
-        <div class="container-bot">
-            <!-- Start Wrapper Div -->
-            <div class="wrapper">
-                <!-- Start Header -->
-                <header id="global-header">
-               <a href="http://www.drumbeat.org/" class="logo"><img src="images/drumbeat_logo.png" alt="drumbeat_logo" width="" height="" /></a>
-
-               <!-- Start Login/Signup -->
-               <nav id="login">
-
-                       <ul>
-                       <li><a href="#">log in</a></li>
-                       <li><a href="#">sign up</a></li>
-                       </ul>
-               </nav>
-               <!-- End Login/Signup -->
-
-               <!-- Start Primary Links -->
-
-               <nav id="primary-links">
-                       <ul>
-                       <li><a title="" href="http://www.drumbeat.org/about">About</a></li>
-                       <li><a title="" href="http://www.drumbeat.org/projects">Projects</a></li>
-                       <li><a title="" href="http://www.drumbeat.org/people">People</a></li>
-                       <li><a title="" href="http://www.drumbeat.org/events">Events</a></li>
-                       <li><a title="" href="http://indofolio.com/civicrm/contribute/transact?reset=1&id=3?reset=1&id=3">Donate</a></li>
-                       </ul>
-               </nav>
-               <!-- End Primary Links -->
-
-       </header>
-                <!-- End Header -->
-                <!-- Start Contents -->
-                <div id="contents">
-                    <!-- Start Left Contents -->
-                    <div class="left-content">
-                        <!-- Start Video Div -->
-                        <div class="video-div">
-                           <video width="530px" height="299px" src="http://a52.video2.blip.tv/7320003802153/Etherworks-WebMadeMovies3BuildingABetterInternet799.ogg" data-timeline-sources="xml/webMadeMovies.xml" controls></video>
-                           <div id="sub"></div>
-                            <!-- Start Video Info -->
-                            <div class="video-info">
-                                <!-- Start Choose Language -->
-                                <div class="choose-language">
-                                    <h2>
-                                        Choose your language</h2>
-                                    <select id="language">
-                                        <option val="en">English</option>
-                                        <option val="es">Spanish</option>
-                                        <option val="fr">French</option>
-                                        <option val="de">German</option>
-                                        <option val="ja">Japanese</option>
-                                    </select>
-                                    <div id="credit">
-                                        with help from
-                                        <br />
-                                        <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
-                                            jQuery</a>
-                                    </div>
-                                </div>
-                                <!-- End Choose Language -->
-                                <!-- Start Foot Notes -->
-                                <div class="foot-notes">
-                                    <h2>
-                                        This video's footnotes</h2>
-                                    <p id="footnotediv">
-                                    </p>
-                                </div>
-                                <!-- End Foot Notes -->
-                            </div>
-                            <!-- End Video Info -->
-                        </div>
-                        <!-- End Video Div -->
-                        <h1>
-                            <span>In this video: <strong id="inthisvideo"></strong></span>
-                            </h1>
-                        <!-- Start Column A -->
-                        <div class="columna">
-                            <section>
-                       <h3><img src="images/logo_twitter.png" alt="Twitter Updates" width="" height="" />
-                       <span>&nbsp;</span></h3>
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-                       <div id="personaltwitter" class="content">
-                       </div>
-                       </section>
-                         
-            </div>
-            <!-- End Column A -->
-            <!-- Start Column B -->
-            <div class="columnb">
-                <section>
-                       <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="" height="" />
-
-                       <span>&nbsp;</span></h3> 
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-                       <div id="personalflickr" class="content">
-                       <a href="#" class="more">more</a>
-                       </div>
-                       </section>
-                        </div>
-                        <!-- End Column B -->
-                    </div>
-                    <!-- End Left Contents -->
-                    <!-- Start Right Contents -->
-                    <div class="right-content">
-                        <h1>
-                            <span>Related to this video</span></h1>
-                        <!-- Start Column A -->
-                        <div class="columna">
-                            <section>
-                       <div id="container3" class="google-map-title">
-                <h4>Filmed in:</h4>
-                <span id="mapinfo">
-                </span>
-            </div>            
-
-                       <div id="container2" class="google-map">
-            </div>
-                       
-                       </section>
-            <section>
-                       <h3><img src="images/logo_twitter.png" alt="Twitter" width="" height="" />
-                       </h3> 
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-                       <div id="twitter" class="content">
-                       </div>
-                       </section>
-                </div>
-                <!-- End Column A -->
-                <!-- Start Column B -->
-                <div class="columnb">
-            <section>
-                       <h3><img src="images/logo_wiki.png" alt="Wikipedia" width="" height="" />
-                       </h3> 
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-
-                       <div class="content">
-                       Use the #Evernote Fx Add-on to save, organize, & search info you find on the Web http://bit.ly/evernotewebclipper /via @rockyourfirefox
-                       <a href="#" class="more">more</a>
-                       </div>
-                       </section>
-            <section>
-                       <h3><img src="images/logo_flickr.png" alt="Flickr Images" width="" height="" />
-                       </h3> 
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-
-                       <div id="flickr" class="content">
-                       <a href="#" class="more">more</a>
-                       </div>
-                       </section>
-            <section>
-                       <h3><img src="images/logo_google_news.png" alt="Google News" width="" height="" />
-                       </h3> 
-                       <a href="#" class="collapse"><span>Collapse</span></a>
-
-                       <div class="content">
-                       Use the #Evernote Fx Add-on to save, organize, & search info you find on the Web http://bit.ly/evernotewebclipper /via @rockyourfirefox
-                       <a href="#" class="more">more</a>
-                       </div>
-                       </section>
-            </div>
-            <!-- End Column B -->
-            <h1>
-                <span>This videos copyright information</span></h1>
-            <section>
-               <div id="container5">
-                Attribution
-            </div>
-                   </section>
-            </div>
-            <!-- End Right Contents -->
-            </div>
-            <!-- End Contents -->
-            <footer>
-
-       <div class="footer_webmade">
-       <img src="images/footer_webmade.png" alt="footer_webmade" width="" height="" /><p>Web Made Movies is a Mozilla's Open video lab
-       <a href="#">Learn More <span>&raquo;</span></a>
-       </p>
-       </div>
-
-       <div class="footer_drumbeat">
-       <img src="images/footer_drumbeat.png" alt="footer_drumbeat" width="" height="" /><p>Innovation on the open web, </br> powered by everybody.</p>
-
-       </div>
-
-<div class="copyright">Portions of this content are &copy;2010 by individual drumbeat.org contributors. Content available under a Creative Commons license.</div>
-</footer>
-            </div>
-            <!-- End Wrapper Div -->
-        </div>
-        <!-- End First Container Div -->
-    </div>
-    <!-- End Second Container Div -->
-</body>
-</html>
index 23a1c5a4615cc17d6a8bd5763ce072441ed27aa5..22f6b81510ff5b7e72997f2e8d85ce32586a82d2 100644 (file)
   var GoogleNewsCommand = function(name, params, text, videoManager) {
     VideoCommand.call(this, name, params, text, videoManager);
     this.target = document.createElement('div');
-    this.target.setAttribute('style', 'display:none');
+    this.target.setAttribute('style', 'display:none;border:0px;');
     document.getElementById(this.params.target).appendChild(this.target);
     this.target.setAttribute('id', this.id);
     var content = document.getElementById(this.id);
index b7f2750b6b1a9d4b7f09a832b7165dcda990adeb..b04ba45ec9e8051e439daf8e149ab8a06405a2f3 100644 (file)
--- a/style.css
+++ b/style.css
@@ -496,4 +496,4 @@ font-family:sans-serif;
 text-shadow:black 1px 1px 3px;
 width:820px;   
 font-size:22px;
-}
\ No newline at end of file
+}
index 81cf4370b09e3bbef567a0a19462c6e395396df3..6309526a93e16a4a1310c40d6fc7ac60568fd506 100644 (file)
@@ -62,7 +62,7 @@
       <twitter in="00:00:01:00" out="00:00:20:00" title="Celine Celine" source="from:celinecelines" target="personaltwitter" width="238" height="120"/>
       <attribution in="00:00:1:00" out="00:40:00" target="container5" resourceid="attrib" />
       <attribution in="00:42:00" out="00:00:48:00" target="container5">A Shared Culture, Jesse Dylan</attribution>
-      <flickr in="00:01:00" out="00:20:00" target="flickr" userid="13072070" numberofimages="8" padding="4px"/>
+      <flickr in="00:01:00" out="00:20:00" target="personalflickr" userid="13072070" numberofimages="8" padding="4px"/>
     </resources>
     <videotags>
       <videotag in="00:00:03:00" out="00:00:14:00">Celine Celine</videotag>
       <location id="mapacc" resourceid="acchomepage" in="00:00:01:00" out="00:00:32:00" lat="30.1580" long="-97.7388" target="container2" zoom="8"/>
       <location id="mapsaopaulo" resourceid="saupaulowiki" in="00:00:32:00" out="00:01:00:00" lat="-23.55" long="-46.6388" target="container2" zoom="6"/>
     </map>
-    <flick>
-      <flickr in="00:01:00" out="00:20:00" target="flickr" userid="13072070" numberofimages="10"/>
-    </flick>
     <news>
-      <googlenews in="00:01:00" out="00:10:00" topic="oilspill" target="googlenewsdiv"/>>
+      <googlenews in="00:05:00" out="00:10:00" target="googlenewsdiv"/>
+      <googlenews in="00:01:00" out="00:10:00" topic="oilspill" target="googlenewsdiv"/>
     </news>
   </timeline>
 </popcorn>