From e72cbb9f4e3cc01fb7092b38ee245f523b5c79b3 Mon Sep 17 00:00:00 2001 From: Daniel Hodgin Date: Sat, 26 Jun 2010 16:56:10 -0400 Subject: [PATCH] updated mapcommand code to test manifest resourceid linking in demo --- index.html | 7 ++++++- popcorn.js | 8 ++++++++ xml/webMadeMovies.xml | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) 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 @@ - + -- 2.43.0