Team:Dundee/HumanPractice/Comic
From 2013.igem.org
(Difference between revisions)
Kyleharrison (Talk | contribs) |
Kyleharrison (Talk | contribs) |
||
Line 26: | Line 26: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
+ | var windowWidth = $(window).width, | ||
+ | windowHeight = $(window).height; | ||
$('#text').html('<strong>Welcome to this little demo.</strong><br>Please reload if you see no image. Click in the image, use the buttons below or the arrow buttons on your keyboard.'); | $('#text').html('<strong>Welcome to this little demo.</strong><br>Please reload if you see no image. Click in the image, use the buttons below or the arrow buttons on your keyboard.'); | ||
Line 72: | Line 74: | ||
$('#wrapper .imgplayer-frame').css('border-color', '#333'); | $('#wrapper .imgplayer-frame').css('border-color', '#333'); | ||
//$('#wrapper .imagewalk-navi a.button').css('background-color', '#222'); | //$('#wrapper .imagewalk-navi a.button').css('background-color', '#222'); | ||
- | + | ||
} | } | ||
Line 105: | Line 107: | ||
comicpage.setAttribute("src", "http://www.kyleharrison.co.uk/igem/Comic/demo/page-"+counter+".jpg"); | comicpage.setAttribute("src", "http://www.kyleharrison.co.uk/igem/Comic/demo/page-"+counter+".jpg"); | ||
document.getElementById("currentPage").innerHTML = "Page : "+(counter+1); | document.getElementById("currentPage").innerHTML = "Page : "+(counter+1); | ||
- | + | document.getElementById("comicpage").style.height="100%"; | |
+ | document.getElementById("comicpage").style.height="100%"; | ||
} | } |
Revision as of 13:49, 3 September 2013
Page : 1