From: Daniel Hodgin Date: Sat, 26 Jun 2010 20:56:10 +0000 (-0400) Subject: updated mapcommand code to test manifest resourceid linking in demo X-Git-Tag: v0.1~67 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e72cbb9f4e3cc01fb7092b38ee245f523b5c79b3;p=popcorn-js.git updated mapcommand code to test manifest resourceid linking in demo --- diff --git a/index.html b/index.html index 8e820e1..0cf08d1 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,12 @@


In this video:

-

+
+
+
+

+

+
diff --git a/popcorn.js b/popcorn.js index 78d09c3..67a9304 100644 --- a/popcorn.js +++ b/popcorn.js @@ -201,10 +201,18 @@ this.onIn = function() { MapCommand.map.setCenter(this.location); MapCommand.map.setZoom(this.params.zoom); + var txt = document.createTextNode("Filmed in: "); + var link = document.createElement("a"); + link.setAttribute("href", this.params.src); + link.setAttribute("target", "_new"); + link.appendChild(document.createTextNode(this.params.description)); + document.getElementById('mapinfo').appendChild(txt); + document.getElementById('mapinfo').appendChild(link); }; this.onOut = function() { MapCommand.map.setCenter(new google.maps.LatLng(0, 0)); MapCommand.map.setZoom(0); + document.getElementById('mapinfo').innerHTML = ""; }; }; diff --git a/xml/webMadeMovies.xml b/xml/webMadeMovies.xml index a74ac9a..0affe69 100644 --- a/xml/webMadeMovies.xml +++ b/xml/webMadeMovies.xml @@ -74,7 +74,7 @@ - +