Difference between revisions of "Team:Lethbridge HS"
Line 1: | Line 1: | ||
{{Lethbridge_HS}} | {{Lethbridge_HS}} | ||
− | <html> | + | <html lang="en"> |
− | <script> | + | <head> |
− | function setCookie(cname, cvalue, exdays) { | + | <meta charset="utf-8"> |
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
+ | <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | ||
+ | <link rel="stylesheet" href="css/main.css" type="text/css" media="screen" /> | ||
+ | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | ||
+ | <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> | ||
+ | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script> | ||
+ | <script src="js/jquery.localscroll.min.js" type="text/javascript"></script> | ||
+ | <script src="js/jquery.scrollTo.min.js" type="text/javascript"></script> | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | function setCookie(cname, cvalue, exdays) { | ||
var d = new Date(); | var d = new Date(); | ||
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | d.setTime(d.getTime() + (exdays*24*60*60*1000)); | ||
var expires = "expires="+d.toUTCString(); | var expires = "expires="+d.toUTCString(); | ||
document.cookie = cname + "=" + cvalue + "; " + expires; | document.cookie = cname + "=" + cvalue + "; " + expires; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | function | + | function functionBees(){ |
− | + | ||
setCookie("projectType", "1", 365); | setCookie("projectType", "1", 365); | ||
} | } | ||
− | function | + | function functionBiofilms(){ |
− | + | ||
setCookie("projectType", "2", 365); | setCookie("projectType", "2", 365); | ||
} | } | ||
+ | $(document).ready(function() { | ||
+ | |||
+ | $(function() { | ||
+ | $('a[href*=#]:not([href=#])').click(function() { | ||
+ | if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | ||
+ | var target = $(this.hash); | ||
+ | target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | ||
+ | if (target.length) { | ||
+ | $('html,body').animate({ | ||
+ | scrollTop: target.offset().top | ||
+ | }, 1000); | ||
+ | return false; | ||
+ | } | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | $("#projectTitle").addClass("appear"); | ||
+ | |||
+ | var s = $(".menu"); | ||
+ | var pos = s.position(); | ||
+ | |||
+ | $(window).scroll(function() { | ||
+ | var windowpos = $(window).scrollTop(); | ||
+ | |||
+ | if (windowpos >= 100) { | ||
+ | |||
+ | s.addClass("makeNavBarColor"); | ||
+ | |||
+ | } else { | ||
+ | |||
+ | s.removeClass("makeNavBarColor"); | ||
+ | |||
+ | } | ||
+ | |||
+ | }); | ||
+ | }); | ||
+ | |||
+ | |||
+ | |||
+ | </script> | ||
+ | </head> | ||
− | + | <body > | |
− | + | <div id="darker"> | |
− | + | ||
− | + | <div class="slide1Container"> | |
− | + | <div class="jumbotron" id="titleSlideFirstTime"> | |
− | + | <div class="container-fluid"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div class="row"> | |
− | + | <div class="col-md-12"> | |
− | + | <div id="projectTitle" style="margin-top:-5%;"> | |
− | + | <p id="mainTitleText"><span style="color:#31B2DE; "> Biofilms </span> and <span style="color:#FFE545; "> Beeyond</span> <br><small><span style="color:#88D648"></span> </small> </p> | |
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | < | + | </div> |
− | <div onclick=" | + | </div> |
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="row" style="margin-left:0%;"> | ||
+ | |||
+ | <div class="col-md-6"> | ||
+ | <a href="index.html"><div onclick="functionBiofilms()" class="switchButton"><img id="choosePic" src="images/Plasmid.png" class="img-responsive"></div> | ||
</div> | </div> | ||
− | <div onclick=" | + | </a> |
− | </div> | + | <div class="col-md-6"> |
− | < | + | <a href="index.html"><div onclick="functionBees()" class="switchButton" style="background-color:#FFE545;"><img id="choosePic" src="images/plainicon.com-48232-512px-7b5.png" class="img-responsive"></div> |
− | <p | + | </div></a> |
− | + | ||
− | + | </div> | |
− | + | ||
− | + | <p style="margin-top:6%;margin-bottom:-7%; display:none;" class="downImgText">Scroll down to read more</p> | |
− | + | ||
− | + | ||
− | + | <div id="goDown" style=""> | |
− | + | <a href="#firstSlide"><img src="images/arrow_down.png" width="150" height="110" class="img-responsive downImg"></a> | |
− | + | </div> | |
− | </div></div> < | + | |
− | </body> | + | |
+ | |||
+ | </div> | ||
+ | </div> | ||
+ | <a name="firstSlide"></a> | ||
+ | <div class="jumbotron" id="slide1HomePage"> | ||
+ | <div class="container-fluid"> | ||
+ | <div class="row"> | ||
+ | <div class="col-md-12" style="padding:0;"> | ||
+ | <h2 id="mytitle">This year we chose to tackle two projects: Bees and Biofilms</h2> | ||
+ | <p> You can click on one of the icons above to learn about that project.<p> | ||
+ | <p>You can switch between the projects later on by clicking the Bee/Biofilms icon in the nivagation bar </p> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | </body> | ||
</html> | </html> |
Revision as of 04:54, 31 August 2015