Team:BNU-China

From 2014.igem.org

(Difference between revisions)
Line 8: Line 8:
     <link rel="icon" href="https://static.igem.org/mediawiki/2014/6/6a/Bnu_bktn2.png" sizes="64x64" />  
     <link rel="icon" href="https://static.igem.org/mediawiki/2014/6/6a/Bnu_bktn2.png" sizes="64x64" />  
     <link rel="icon" href="https://static.igem.org/mediawiki/2014/6/6a/Bnu_bktn2.png" sizes="128x128" />
     <link rel="icon" href="https://static.igem.org/mediawiki/2014/6/6a/Bnu_bktn2.png" sizes="128x128" />
-
<script type="text/javascript" src="https://2014.igem.org/Team:BNU-China/js/jquery-1.10.2.min.js?action=raw"></script>
+
    <script type="text/javascript" src="https://2014.igem.org/Team:BNU-China/js/jquery-1.10.2.min.js?action=raw"></script>
-
<script type="text/javascript" src="https://2014.igem.org/Team:BNU-China/js/bootstrap.min.js?action=raw"></script>
+
    <script type="text/javascript" src="https://2014.igem.org/Team:BNU-China/js/bootstrap.min.js?action=raw"></script>
-
<script>
+
    <script>
-
//var loginFlag = false;
+
//var loginFlag = false;
-
//var loginHelper = null;
+
//var loginHelper = null;
-
$(document).ready(function(){
+
$(document).ready(function(){
-
$('.carousel').carousel(
+
$('.carousel').carousel(
-
{
+
{
-
"pause":"false",
+
"pause":"false",
-
"interval":20000
+
"interval":20000
-
}
+
}
-
);
+
        );
-
$('.carousel').on('slide.bs.carousel', function (event) {
+
$('.carousel').on('slide.bs.carousel', function (event) {
-
var tag = $(event.relatedTarget).attr("tag");
+
var tag = $(event.relatedTarget).attr("tag");
-
var progress = $(event.relatedTarget).attr("progress");
+
var progress = $(event.relatedTarget).attr("progress");
 +
$('#img_home').attr("src", "https://static.igem.org/mediawiki/2014/9/92/Bnu_home.png");
 +
$('#img_intro').attr("src", "https://static.igem.org/mediawiki/2014/6/6a/Bnu_intro.png");
 +
$('#img_gift').attr("src", "https://static.igem.org/mediawiki/2014/e/e7/Bnu_gift.png");
 +
$('#img_feedback').attr("src", "https://static.igem.org/mediawiki/2014/f/fb/Bnu_feedback.png");
 +
$('#img_related').attr("src", "https://static.igem.org/mediawiki/2014/7/76/Bnu_related.png");
 +
//$('#img_' + tag).attr("src", "images/" + tag + "_selected.png");
-
$('#img_home').attr("src", "https://static.igem.org/mediawiki/2014/9/92/Bnu_home.png");
+
//$("#progress").width(progress + "px");
-
$('#img_intro').attr("src", "https://static.igem.org/mediawiki/2014/6/6a/Bnu_intro.png");
+
//$("#progress").css('left', (progress / 2) - 400 + "px");
-
$('#img_gift').attr("src", "https://static.igem.org/mediawiki/2014/e/e7/Bnu_gift.png");
+
$("#progress").animate({width: progress, left: (progress / 2) - 400}, 500);
-
$('#img_feedback').attr("src", "https://static.igem.org/mediawiki/2014/f/fb/Bnu_feedback.png");
+
-
$('#img_related').attr("src", "https://static.igem.org/mediawiki/2014/7/76/Bnu_related.png");
+
-
+
-
//$('#img_' + tag).attr("src", "images/" + tag + "_selected.png");
+
-
+
-
//$("#progress").width(progress + "px");
+
-
//$("#progress").css('left', (progress / 2) - 400 + "px");
+
-
$("#progress").animate({width: progress, left: (progress / 2) - 400}, 500);
+
playAnimation(tag);
playAnimation(tag);
});
});
-
 
$("body,html").animate({
$("body,html").animate({
               scrollTop:($("#page_home .splash-container").offset().top)
               scrollTop:($("#page_home .splash-container").offset().top)
Line 75: Line 72:
}
}
}
}
-
</script>
+
</script>
<!--[if ls IE 7]>
<!--[if ls IE 7]>
-
<h2>Well, this is embarrassing. If the wiki still not work well (when you can see those words) after the browser finished loading, It means that version of your browser is too low. IE10 (or higher version), Firefox,Chrome and Safari are recomended. ^_^</h2>
+
<h2>Well, this is embarrassing. If the wiki still not work well (when you can see those words) after the browser finished loading, It means that version of your browser is too low. IE10 (or higher version), Firefox,Chrome and Safari are recommended. ^_^</h2>
<![endif]-->
<![endif]-->
</head>
</head>

Revision as of 02:48, 1 October 2014