Team:AUC Turkey/test

From 2012hs.igem.org

(Difference between revisions)
(Blanked the page)
 
(19 intermediate revisions not shown)
Line 1: Line 1:
-
{{AUC_Turkey}}
 
-
<html>
 
-
<head>
 
-
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
 
-
<script type="text/javascript" src="http://turnjs.com/lib/turn.min.js"></script>
 
-
<style type="text/css">
 
-
body
 
-
{
 
-
        background-color:#ccc;
 
-
}
 
-
#notebookigem{
 
-
width:750px;
 
-
height:300px;
 
-
}
 
-
#notebookigem .turn-page{
 
-
background-color:#ccc;
 
-
background-size:100% 100%;
 
-
}
 
-
</style>
 
-
</head>
 
-
<body>
 
-
 
-
<div id="notebookigem">
 
-
<div>Cover</div>
 
-
<div>Page 1</div>
 
-
<div>Page 2</div>
 
-
<div>Page 3</div>
 
-
<div>Page 4</div>
 
-
<div>Back-Cover</div>
 
-
</div>
 
-
 
-
 
-
<script type="text/javascript">
 
-
 
-
$(window).ready(function() {
 
-
$('#notebookigem').turn({
 
-
display: 'double',
 
-
acceleration: true,
 
-
gradients: !$.isTouch,
 
-
elevation:50,
 
-
when: {
 
-
turned: function(e, page) {
 
-
/*console.log('Current view: ', $(this).turn('view'));*/
 
-
}
 
-
}
 
-
});
 
-
});
 
-
 
-
 
-
$(window).bind('keydown', function(e){
 
-
 
-
if (e.keyCode==37)
 
-
$('#notebookigem').turn('previous');
 
-
else if (e.keyCode==39)
 
-
$('#notebookigem').turn('next');
 
-
 
-
});
 
-
 
-
</script>
 
-
 
-
</body>
 
-
</html>
 

Latest revision as of 16:25, 24 January 2013