Team:Dundee/HumanPractice/Comic

From 2013.igem.org

(Difference between revisions)
Line 43: Line 43:
/* Keyboard Hotkeys */
/* Keyboard Hotkeys */
-
$(document).bind('keyup', 'right', function(){ $.imgplayer.gotoNext()  });
+
$(document).bind('keyup', 'right', incrementComicCounter());
-
$(document).bind('keyup', 'left' , function(){ $.imgplayer.gotoPrev()  });
+
$(document).bind('keyup', 'left' , decrementComicCounter());
-
$(document).bind('keyup', 'up'  , function(){ $.imgplayer.gotoFirst() });
+
 
-
$(document).bind('keyup', 'down' , function(){ $.imgplayer.gotoFull()  });
+
document.getElementById("comicpage").style.height="100%";
document.getElementById("comicpage").style.height="100%";
Line 92: Line 91:
<script type="text/javascript">
<script type="text/javascript">
var counter = 0;
var counter = 0;
-
</script>
+
var comicPages =8;
-
 
+
-
<script>
 
function incrementComicCounter(){
function incrementComicCounter(){
var comicpage = document.getElementById("comicpage");
var comicpage = document.getElementById("comicpage");
-
if(counter>=7){
+
if(counter>=comicPages){
counter=0;
counter=0;
} else {
} else {
Line 111: Line 108:
}
}
-
</script>
 
-
<script>
 
function decrementComicCounter(){
function decrementComicCounter(){
Line 119: Line 114:
if(counter<=0){
if(counter<=0){
-
counter=7;
+
counter=comicPages;
} else {
} else {
counter--;
counter--;

Revision as of 17:09, 5 September 2013

iGEM Dundee 2013 · ToxiMop

iGEM Dundee Motion Comic | Demo at KyleHarrison.co.uk

Viewing Page : 1

Download Our Comic Now!

Our comic is available for download, free of charge. Download a copy of our PDF down by opening this link and selecting download in Acrobat Reader. Afterwards you can read it on your computer, tablet device, or even mobile phone.

a