Difference between revisions of "Team:NUDT CHINA"

Line 17: Line 17:
 
var prevIndex = 0;
 
var prevIndex = 0;
 
var iContentHeight = 0;
 
var iContentHeight = 0;
 +
var btn1 = $('btn1');
 +
var btn2 = $('btn2');
 
contentAuto();
 
contentAuto();
 
mouseWheel();
 
mouseWheel();
Line 22: Line 24:
 
bindNav();
 
bindNav();
 
add1();
 
add1();
 +
add2();
 
window.onresize = fnResize;   
 
window.onresize = fnResize;   
 
function add1() {
 
function add1() {
Line 27: Line 30:
 
showLoading();
 
showLoading();
 
};
 
};
 +
}
 +
function add2() {
 +
btn1.onclick=function () {
 +
toMove(1)
 +
}
 +
btn2.onclick=function () {
 +
toMove(2)
 +
}
 
}
 
}
 
function mouseWheel(){
 
function mouseWheel(){
Line 371: Line 382:
 
     <ul id="Qidilist">
 
     <ul id="Qidilist">
 
       <li id="abstract" class="liList">
 
       <li id="abstract" class="liList">
             <div class="myheader"id="main"><img class="strory-telling1" src="https://static.igem.org/mediawiki/2017/a/ad/T-NUDT_CHINA-story1.png" no-repeat; ><button class="button-next">Next</button></div>
+
             <div class="myheader"id="main"><img class="strory-telling1" src="https://static.igem.org/mediawiki/2017/a/ad/T-NUDT_CHINA-story1.png" no-repeat; ><button id="btn1" class="button-next">Next</button></div>
 
             </li>
 
             </li>
 
       <li id="abstract" class="liList">
 
       <li id="abstract" class="liList">
             <div class="myheader"id="main"><img class="strory-telling2" src="https://static.igem.org/mediawiki/2017/3/35/T-NUDT_CHINA-story2.png" no-repeat; ></div>
+
             <div class="myheader"id="main"><img class="strory-telling2" src="https://static.igem.org/mediawiki/2017/3/35/T-NUDT_CHINA-story2.png" no-repeat; ><button id="btn2" class="button-next">Next</button></div>
 
             </li>
 
             </li>
 
       <li id="abstract" class="liList">
 
       <li id="abstract" class="liList">

Revision as of 11:51, 25 October 2017

Team:NUDT_CHINA