Team:Freiburg/gallery

From 2013.igem.org

(Difference between revisions)
Line 158: Line 158:
jQuery(document).ready( function() {
jQuery(document).ready( function() {
-
     document.getElementByClass('nextPage').onclick = function()
+
     document.getElementByClass('nextPage').click = function()
{alert('rsge');}})
{alert('rsge');}})
 +
 +
 +
</script>
 +
<script type="text/javascript">
 +
var bildAktuell = 1
 +
var maxPic = 5;
 +
$(function() {
 +
$(".nextPage").click(function() {
 +
if (bildAktuell >= maxPic) {
 +
bildAktuell = 0;
 +
}
 +
bildAktuell++;
 +
$("p#pixNumberTop").text(bildAktuell+' / '+maxPic);
 +
$("p#pixNumberBottom").text(bildAktuell+' / '+maxPic);
 +
 +
// IVW push
 +
ivwUpdate();
 +
// GA push
 +
gaUpdate();
 +
 +
if (0 && bildAktuell == 0) {
 +
$('.adPlatzhalter').load('/adholder.html');
 +
}
 +
 +
});
 +
 +
$(".prevPage").click(function() {
 +
if (bildAktuell == 1) {
 +
bildAktuell = maxPic+1;
 +
}
 +
bildAktuell--;
 +
$("p#pixNumberTop").text(bildAktuell+' / '+maxPic);
 +
$("p#pixNumberBottom").text(bildAktuell+' / '+maxPic);
 +
 +
// IVW push
 +
ivwUpdate();
 +
// GA push
 +
gaUpdate();
 +
 +
if (0 && bildAktuell == 0) {
 +
$('.adPlatzhalter').load('/adholder.html');
 +
}
 +
 +
});
 +
});
 +
 +
function ivwUpdate() {
 +
$("body").append("<img src=\""+IVW+"?r="+escape(document.referrer)+"&d="+(Math.random()*100000)+"\" width=\"1\" height=\"1\" alt=\"szmtag\" style=\"position:absolute; top:-1000px; display:none;\" />");
 +
}
 +
 +
function gaUpdate() {
 +
if(typeof(pageTracker) != "undefined"){
 +
pageTracker._trackPageview( location.pathname );
 +
}
 +
}
 +
 +
 +
</script>
</script>

Revision as of 14:09, 1 October 2013

  1. Ein Laster hat auf der A5 bei der Ausfahrt Bad Krozingen Hunderte von Getränkekisten verloren. Foto: Patrick Seeger

  2. Ein Laster hat auf der A5 bei der Ausfahrt Bad Krozingen Hunderte von Getränkekisten verloren. Foto: Patrick Seeger

  3. Ein Laster hat auf der A5 bei der Ausfahrt Bad Krozingen Hunderte von Getränkekisten verloren. Foto: Patrick Seeger

  4. Ein Laster hat auf der A5 bei der Ausfahrt Bad Krozingen Hunderte von Getränkekisten verloren. Foto: Patrick Seeger

  5. Ein Laster hat auf der A5 bei der Ausfahrt Bad Krozingen Hunderte von Getränkekisten verloren. Foto: Patrick Seeger