href bug, remove some buttons

This commit is contained in:
Sanj 2011-02-21 13:28:19 +01:00
parent b709699df0
commit 66b97842f4
3 changed files with 23 additions and 24 deletions

View File

@ -137,6 +137,11 @@ p {
overflow-y: auto; overflow-y: auto;
} }
.padmaContributor {
font-style: italic;
font-size: 9px;
}
.padmaViewer { .padmaViewer {
position: relative; position: relative;
width: 360px; width: 360px;

View File

@ -178,8 +178,9 @@ function setupPadmaLink(videoObj, data) {
for (var i=0; i < thisTrackLayers.length; i++) { for (var i=0; i < thisTrackLayers.length; i++) {
var thisTrack = thisTrackLayers[i]; var thisTrack = thisTrackLayers[i];
var thisHtml = ''; var thisHtml = '';
thisHtml += "<span class='padmaContributor'>" + thisTrack.creator + ":</span>";
thisHtml += " <span class='padmaAnnotation'>" + thisTrack.value_html + "</span>"; thisHtml += " <span class='padmaAnnotation'>" + thisTrack.value_html + "</span>";
thisHtml += "<br />";
thisHtml += "<span class='padmaContributor'> -" + thisTrack.creator + ":</span>";
thisHtml += "<br /><br />"; thisHtml += "<br /><br />";
annotHtml += thisHtml; annotHtml += thisHtml;
} }

View File

@ -20,21 +20,23 @@ $(function() {
} }
$('a').each(function() { $('a').each(function() {
var t = $(this); var t = $(this);
var href = t.attr("href"); if (t.attr("href") != undefined) {
if (href.indexOf("http://maps.google.com") != -1) { var href = t.attr("href");
if (t.data("mapLoaded")) { if (href.indexOf("http://maps.google.com") != -1) {
return false; if (t.data("mapLoaded")) {
return false;
}
var embedUrl = href + "&output=embed";
var iframe = $('<iframe />').attr("src", embedUrl).attr("width", "425").attr("height", "350");
var parentP = t.parents('p');
parentP.append("<br />").append(iframe);
t.data("mapLoaded", true);
t.toggle(function() {
iframe.slideUp();
}, function() {
iframe.slideDown();
});
} }
var embedUrl = href + "&output=embed";
var iframe = $('<iframe />').attr("src", embedUrl).attr("width", "425").attr("height", "350");
var parentP = t.parents('p');
parentP.append("<br />").append(iframe);
t.data("mapLoaded", true);
t.toggle(function() {
iframe.slideUp();
}, function() {
iframe.slideDown();
});
} }
}); });
}); });
@ -89,15 +91,6 @@ $(function() {
<span class="downloadVideo"> <span class="downloadVideo">
<a title="Right-click and Save Link As to download video" target="_blank" href="<%= linkData.url %>">&darr;</a> <a title="Right-click and Save Link As to download video" target="_blank" href="<%= linkData.url %>">&darr;</a>
</span> </span>
<span class="aboutThis">
<a title="What is this?" target="_blank" href="about.html">?</a>
</span>
<span class="padmaHelp">
<a title="Help!" target="_blank" href="help.html">&iquest;</a>
</span>
<span class="padmaCopyright">
<a title="Copyright notice" target="_blank" href="copyright.html">&#x2184;</a>
</span>
</div> </div>
<video src="<%= video.getLayerVideo(linkData.tcIn, linkData.tcOut) %>" width="320" poster="<%= video.getFrame(linkData.tcIn) %>" controls="controls" autoplay="autoplay"></video> <video src="<%= video.getLayerVideo(linkData.tcIn, linkData.tcOut) %>" width="320" poster="<%= video.getFrame(linkData.tcIn) %>" controls="controls" autoplay="autoplay"></video>