]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Errors in the html that was breaking on chrome
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 6 Jul 2010 14:16:18 +0000 (10:16 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 6 Jul 2010 14:16:18 +0000 (10:16 -0400)
index.html
popcorn.js

index 6ef8393b6abcc3f395355800c986ae24cdb018c9..cd2db79b3cc233efdbab811e5b64e8c9f361ba7f 100644 (file)
                       <br />
                       <a href="http://google.com/translate">Google Translate</a> and <a href="http://jquery.com">
                         jQuery</a><br />
-                      <input type="checkbox" id="accessibility" checked="checked">All subtitles (accessibility)</input>
+                      <input type="checkbox" id="accessibility" checked="checked" />All subtitles (accessibility)
                     </div>
                   </div>
                  
             </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>
+            <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>
index 2ce7cf8f1413fc07f84e3eefe95bb55e77761f0f..49f5671923f40faffdad27682c20d730d643c696 100644 (file)
         link.appendChild(p);
         // get the first 140 characters of the wiki content
         var desc = document.createElement('p');
-        var text = data.parse.text.*.substr(data.parse.text.*.indexOf('<p>'));
+        var text = data.parse.text["*"].substr(data.parse.text["*"].indexOf('<p>'));
         text = text.replace(/((<(.|\n)+?>)|(\((.*?)\) )|(\[(.*?)\]))/g, "");
         desc.innerHTML = text.substr(0, ( length || 140 )) + " ...";
         target.appendChild(link);