Difference between revisions of "Team:IISER-Kolkata"

(Undo revision 28662 by Prajwalp (talk))
Line 1: Line 1:
{{IISER-Kolkata}}
 
 
<html>
 
<html>
 
 
 
 
<div class="column full_size" >
 
<h1> Welcome to iGEM 2018! </h1>
 
<p>Your team has been approved and you are ready to start the iGEM season! </p>
 
 
 
<img src="http://placehold.it/1080x320/c4baba/e4dede">
 
 
 
 +
<link rel="icon" type="image/png" href="https://static.igem.org/mediawiki/2018/6/60/T--IISER-Kolkata--logo.jpg" width="30" height="30"/>
 +
<!--<link rel="stylesheet" href="css/style.css"/>-->
 +
<style type="text/css">
 +
/*fonts*/
 +
@font-face {
 +
    src: url("https://static.igem.org/mediawiki/2018/1/14/T--IISER-Kolkata--blogger.ttf");
 +
    font-family: blogger;
 +
}
 +
@font-face {
 +
    src: url("https://static.igem.org/mediawiki/2018/7/7a/T--IISER-Kolkata--prime.otf");
 +
    font-family: prime;
 +
}
 +
@font-face {
 +
    src: url("https://static.igem.org/mediawiki/2018/5/5a/T--IISER-Kolkata--rodina.otf");
 +
    font-family: rodina;
 +
}
 +
@font-face {
 +
    src: url("https://static.igem.org/mediawiki/2018/f/f7/T--IISER-Kolkata--social.ttf");
 +
    font-family: social;
 +
}
  
</div>
+
/*body*/
 +
body, html {
 +
width: 100vw;
 +
margin: 0;
 +
padding: 0;
 +
}
 +
body {
 +
    height: 1200vh;
 +
overflow-y: scroll;
 +
overflow-x: hidden;
 +
margin: auto;
 +
}
 +
body::-webkit-scrollbar-track
 +
{
 +
background-color: black;
 +
}
 +
body::-webkit-scrollbar
 +
{
 +
width: 1vw;
 +
}
 +
body::-webkit-scrollbar-thumb
 +
{
 +
background-color: #999999;
 +
}
 +
body::-webkit-scrollbar-thumb:hover
 +
{
 +
    background-color: #777777;
 +
}
  
 +
#container {
 +
height: 1200vh;
 +
width: 100vw;
 +
display: flex;
 +
flex-direction: column;
 +
}
  
<div class="column full_size" >
+
/*navbar*/
 +
#menubar { 
 +
width: 100vw;
 +
    height: 3vw;
 +
    background-color: rgba(0,0,0,0.7);
 +
    display: inline-flex;
 +
    align-items: center; 
 +
    position: absolute;
 +
    top: 100vh;
 +
    left: 0vw;
 +
    z-index: 10;
 +
}
 +
#menubar.stickymenu {
 +
    position: fixed;
 +
    top: 0vh;
 +
}
 +
#menubar #logo {
 +
    margin-left: 1vw;
 +
    margin-right: 1vw;
 +
    display: flex;
 +
    width: 2.5vw;
 +
    height: 2.5vw;   
 +
}
 +
#logo img {
 +
    height: 100%;
 +
    width: 100%;
 +
}
 +
#menubar .pagelink {
 +
    display: flex; 
 +
    align-items: center;
 +
    justify-content: center; 
 +
    height: 100%;
 +
    width: 8vw;       
 +
}
 +
#menubar .pagelink#registerMenu {
 +
    margin-left: auto;
 +
}
 +
#menubar .pagelink#loginMenu {
 +
    margin-right: 1vw;
 +
}
 +
.pagelink div {
 +
    cursor: pointer;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.pagelink div p {
 +
    font-family: prime;
 +
    font-size: 1.3vw;
 +
    color: #cccccc; 
 +
}
 +
.pagelink div:hover > p {
 +
    color: white !important;
 +
}
 +
#register {
 +
    position: fixed;
 +
    display: flex;
 +
    height: 40vw;
 +
    width: 40vw;
 +
    left: -45vw;
 +
    top: 50vh;
 +
    margin-top: -20vw;
 +
    background-color: white;
 +
    border: 0.2vw solid black;
 +
    border-radius: 2vw;
 +
    z-index: 10;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
#login {
 +
    position: fixed;
 +
    display: flex;
 +
    height: 20vw;
 +
    width: 30vw;
 +
    left: -35vw;
 +
    top: 50vh;
 +
    margin-top: -10vw;
 +
    background-color: white;
 +
    border: 0.2vw solid black;
 +
    border-radius: 2vw;
 +
    z-index: 10;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.orangetext div p {
 +
    color: orange !important;
 +
}
 +
.orangetext div:hover > p {
 +
    color: yellow !important;
 +
}
 +
#login .exit, #register .exit {
 +
    position: absolute;
 +
    top: 1vw;
 +
    right: 1vw;
 +
    height: 3vw;
 +
    width: 3vw;
 +
    border-radius: 100%;
 +
    font-family: rodina;
 +
    font-weight: bold;
 +
    font-size: 3vw;
 +
    cursor: pointer;
 +
    color: black;
 +
    z-index: 1;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
#login .exit:hover, #register .exit:hover {
 +
    background-color: black;
 +
    color: white;
 +
}
  
<h3>Before you start</h3>
+
section {
<p> Please read the following pages:</p>
+
position: relative;
<ul>
+
display: flex;
<li>  <a href="https://2018.igem.org/Competition">Competition Hub</a> </li>
+
height: 200vh;
<li> <a href="https://2018.igem.org/Competition/Deliverables/Wiki">Wiki Requirements page</a></li>
+
width: 100vw;
<li> <a href="https://2018.igem.org/Resources/Template_Documentation">Template documentation</a></li>
+
}
</ul>
+
</div>
+
  
 +
#home {
 +
    background: white;
 +
    height: 100vh;
 +
}
 +
#home #iiserk {
 +
    height: 6vw;
 +
    width: 6vw;   
 +
    display: flex;
 +
    align-items: center; 
 +
    position: absolute;
 +
    top: 1vw;
 +
    left: 1vw;
 +
    z-index: 5;
 +
    cursor: pointer;
 +
}
 +
#iiserk:hover {
 +
   
 +
}
 +
#iiserk a img {
 +
    height: 6vw;
 +
    width: auto;
 +
}
 +
#home #social {
 +
    height: 20vw;
 +
    width: 3vw;   
 +
    display: flex;
 +
    flex-direction: column;
 +
    align-items: center; 
 +
    position: absolute;
 +
    top: 50vh;
 +
    margin-top: -10vw;
 +
    right: 2vw;
 +
    z-index: 5;
 +
}
 +
#social .links {
 +
    height: 3vw;
 +
    width: 3vw;
 +
    margin: 1vw 0vw 1vw 0vw;
 +
    display: flex;
 +
    justify-content: center;
 +
    align-items: center;
 +
    cursor: pointer;
 +
}
 +
#social .links a {
 +
    font-family: social;
 +
    font-size: 4vw;
 +
    color: black;
 +
    text-decoration: none;
 +
}
 +
#soc-facebook:hover > a {
 +
    color: #3b5998;
 +
}
 +
#soc-twitter:hover > a {
 +
    color: #00aced;
 +
}
 +
#soc-instagram:hover > a {
 +
    color: #c32aa3;
 +
}
 +
#soc-youtube:hover > a {
 +
    color: #bb0000;
 +
}
 +
#home #pagedown {
 +
    position: absolute;
 +
    top: 90vh;
 +
    left: 47vw;
 +
    height: 3vw;
 +
    width: 6vw;
 +
    font-size: 2vw;
 +
    cursor: pointer;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    background-color: gray;
 +
    border: solid black 0.1vw;
 +
}
  
<div class="clear extra_space"></div>
+
#aboutUs {
<div class="line_divider"></div>
+
background-color: chartreuse;
<div class="clear extra_space"></div>
+
}
 +
/*aboutUs page*/
 +
#aboutUs .sidekick {
 +
height: 100vh;
 +
width: 15vw;
 +
position: absolute;
 +
top: 0vh;
 +
background-color: white;
 +
transition: 0.5s ease;
 +
z-index: 1;
 +
opacity: 0.5;
 +
}
 +
.sidekick#sk1 {
 +
left: -15vw;
 +
}
 +
.sidekick#sk2 {
 +
left: 100vw;
 +
}
  
 +
/*events page*/
 +
#events {
 +
    background: white;
 +
}
 +
#events .tab {
 +
    position: absolute;
 +
    background-color: white;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    height: 100vh;
 +
    width: 50vw;
 +
    cursor: pointer;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.tab#left-tab {   
 +
    left: 0vw;
 +
    top: 0vh;
 +
}
 +
.tab#right-tab {
 +
    left: 50vw;
 +
    top: 0vh;
 +
}
 +
.tab .tab-text {
 +
    height: 6vw;
 +
    width: 18vw;
 +
    padding: 1vw;
 +
    font-family: prime;
 +
    font-size: 2vw;
 +
    color: #000040;
 +
    background-color: white;
 +
    border: 0.5vw solid #000040;
 +
    text-align: center;
 +
    display: flex;
 +
    align-items: center;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
#left-tab #gamecomp {
 +
   
 +
}
 +
#right-tab #workexhib {
 +
   
 +
}
 +
#events .pop {
 +
    position: absolute;
 +
    display: flex;
 +
    height: 100vh;
 +
    width: 100vw;
 +
    z-index: 5;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.pop#gamecomp-pop {
 +
    left: 100vw;
 +
    top: 0vh;
 +
}
 +
.pop#workexhib-pop {
 +
    left: 100vw;
 +
    top: 0vh;
 +
}
 +
.pop .exit {
 +
    position: absolute;
 +
    top: 4vw;
 +
    left: 94vw;
 +
    height: 4vw;
 +
    width: 4vw;
 +
    border-radius: 100%;
 +
    font-family: rodina;
 +
    font-weight: bold;
 +
    font-size: 4vw;
 +
    cursor: pointer;
 +
    color: #000040;
 +
    z-index: 5;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.pop .exit:hover {
 +
    background-color: #000040;
 +
    color: white;
 +
}
 +
.pop .event-type {
 +
    position: absolute;
 +
    top: 0vh;
 +
    left: 0vw;
 +
    height: 100vh;
 +
    width: 20vw;
 +
    display: flex;
 +
    flex-direction: column;
 +
    align-items: center;
 +
    justify-content: center;
 +
    background-color: #000040;
 +
}
 +
.event-type .type-list {
 +
    height: 4vw;
 +
    width: 18vw;
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    margin: 1vw 0vw 1vw 0vw;
 +
    background-color: #000040;
 +
    border-radius: 1vw 0vw 1vw 0vw;
 +
    font-family: prime;
 +
    font-size: 1.25vw;
 +
    color: white;
 +
    cursor: pointer;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.event-type .list-active {
 +
    background-color: white;
 +
    color: #000040;
 +
}
 +
.type-list:hover {
 +
    background-color: #aaaaaa;
 +
    color: #000040;
 +
}
 +
.pop .event-desc {
 +
    position: absolute;
 +
    top: 0vh;
 +
    left: 20vw;
 +
    height: 100vh;
 +
    width: 80vw;
 +
    display: flex;
 +
    background-color: white;
 +
    color: #000040;
 +
}
 +
.event-desc .event-head {
 +
    display: none;
 +
    position: absoute;
 +
    top: 10vh;
 +
    left: 5vw;
 +
    height: 10vh;
 +
    width: 55vw;
 +
    align-items: center;
 +
    justify-content: center;
 +
    background-color: white;
 +
    font-family: blogger;
 +
    font-size: 3vw;
 +
    font-weight: bold;
 +
    color: #000040;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.event-head.head-active {
 +
    display: flex;
 +
    position: absolute;
 +
}
 +
.event-desc .indiv-event {
 +
    display: none;
 +
    position: absoute;
 +
    top: 25vh;
 +
    left: 5vw;
 +
    height: 50vh;
 +
    width: 70vw;
 +
    background-color: white;
 +
    color: #000040;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.indiv-event.event-active {
 +
    display: flex;
 +
    position: absolute;
 +
}
 +
.indiv-event .details {
 +
    position: absoute;
 +
    top: 0vh;
 +
    left: 0vw;
 +
    height: 50vh;
 +
    width: 46vw;
 +
    border: 0.2vw solid #000040;
 +
    border-radius: 3vw 0vw 0vw 3vw;
 +
    text-align: justify;
 +
    overflow-y: scroll;
 +
    overflow-x: hidden;
 +
}
 +
.indiv-event .details::-webkit-scrollbar-track
 +
{
 +
    background-color: white;
 +
}
 +
.indiv-event .details::-webkit-scrollbar
 +
{
 +
    width: 0.8vw;
 +
}
 +
.indiv-event .details::-webkit-scrollbar-thumb
 +
{
 +
    background-color: #000040;
 +
}
 +
.indiv-event .contact {
 +
    position: absoute;
 +
    left: 46vw;
 +
    margin-left: 2vw;
 +
    height: 50vh;
 +
    width: 22vw;
 +
    border: 0.2vw solid white;
 +
    border-radius: 0vw 3vw 3vw 0vw;
 +
    background-color: #000040;
 +
    color: white;
 +
    overflow-x: hidden;
 +
}
 +
.indiv-event .contact::-webkit-scrollbar-track
 +
{
 +
    background-color: #000040;
 +
}
 +
.indiv-event .contact::-webkit-scrollbar
 +
{
 +
    width: 0.8vw;
 +
}
 +
.indiv-event .contact::-webkit-scrollbar-thumb
 +
{
 +
    background-color: white;
 +
}
 +
.details h4 {
 +
    font-family: rodina;
 +
    font-size: 2.5vw;
 +
    margin: 2vw 2.5vw 2vw 2.5vw;
 +
}
 +
.details h6, .contact h6 {
 +
    font-family: rodina;
 +
    font-size: 2vw;
 +
    margin: 1.5vw 2.5vw 1.5vw 2.5vw;
 +
}
 +
.details p, .contact p {
 +
    font-family: blogger;
 +
    font-size: 1.5vw;
 +
    margin: 1vw 2.5vw 1vw 2.5vw;
 +
}
 +
.event-desc .rem-events {
 +
    display: none;
 +
    position: absoute;
 +
    top: 80vh;
 +
    left: 5vw;
 +
    height: 15vh;
 +
    width: 55vw;
 +
    background-color: white;
 +
    color: #000040;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.rem-events.rem-active {
 +
    display: flex;
 +
    align-items: center;
 +
    justify-content: center;
 +
    position: absolute;
 +
}
 +
.rem-events .icon {
 +
    display: flex;
 +
    cursor: pointer;
 +
    margin: 1vw;
 +
    height: 6vw;
 +
    width: 6vw;
 +
    border-radius: 100%;
 +
    -webkit-transition: 0.2s linear;
 +
    -moz-transition: 0.2s linear;
 +
    -o-transition: 0.2s linear;
 +
    transition: 0.2s linear;
 +
}
 +
.icon:hover {
 +
    height: 7vw;
 +
    width: 7vw;
 +
}
 +
.icon.icon-active {
 +
    height: 8vw;
 +
    width: 8vw;
 +
}
 +
.icon img {
 +
    height: 100%;
 +
    width: 100%;
 +
}
  
 +
#gallery {
 +
    background-color: orange;
 +
}
 +
#ourTeam {
 +
    background-color: darkorchid;
 +
}
 +
#sponsors {
 +
    background-color: goldenrod;
 +
}
 +
#reachUs {
 +
    background-color: pink;
 +
    height: 100vh;
 +
}
 +
</style>
  
<div class="column full_size" >
+
<!--<script type="text/javascript">
<h3> Styling your wiki </h3>
+
  if (screen.width <= 800) {
<p>You may style this page as you like or you can simply leave the style as it is. You can easily keep the styling and edit the content of these default wiki pages with your project information and completely fulfill the requirement to document your project.</p>
+
    window.location = "index_mob.html";
<p>While you may not win Best Wiki with this styling, your team is still eligible for all other awards. This default wiki meets the requirements, it improves navigability and ease of use for visitors, and you should not feel it is necessary to style beyond what has been provided.</p>  
+
  }
 +
</script>-->
 +
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
 +
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenMax.min.js"></script>
 +
<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
 +
<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.3/plugins/animation.gsap.min.js"></script>
 +
<!--<script src="js/main.js" defer></script>-->
 +
 +
<nav id="menubar">
 +
<div id="logo"><img src="https://static.igem.org/mediawiki/2018/6/60/T--IISER-Kolkata--logo.jpg"/></div>
 +
<div class="pagelink" id="homeMenu"><div><p>Home</p></div></div>
 +
<div class="pagelink" id="aboutUsMenu"><div><p>About</p></div></div>
 +
<div class="pagelink" id="eventsMenu"><div><p>Project</p></div></div>
 +
<div class="pagelink" id="galleryMenu"><div><p>Gallery</p></div></div>
 +
<div class="pagelink" id="ourTeamMenu"><div><p>Our Team</p></div></div>
 +
<div class="pagelink" id="sponsorsMenu"><div><p>Sponsors</p></div></div>
 +
<div class="pagelink" id="reachUsMenu"><div><p>Contact Us</p></div></div>
 +
</nav>
 +
<div id="register">
 +
<div class="exit">X</div>
  
</div>
+
</div>
 +
<div id="login">
 +
<div class="exit">X</div>
  
 +
</div>
  
 +
<div id="container">
 +
<section id="home">
 +
<div id="iiserk"><a href="https://www.iiserkol.ac.in" target="_blank"><img src="https://static.igem.org/mediawiki/2018/4/4c/T--IISER-Kolkata--iiserk.png"/></a></div>
 +
<div id="pagedown">Down</div>
 +
</section>
  
 +
<section id="aboutUs">
 +
<div class="sidekick" id="sk1">
 +
</div>
 +
<div class="sidekick" id="sk2">
 +
</div>
 +
</section>
  
<div class="clear extra_space"></div>
+
<section id="events">
 +
 +
</section>
  
 +
<section id="gallery">
  
 +
</section>
  
<div class="column third_size" >
+
<section id="ourTeam">
  
<h3> Uploading pictures and files </h3>
+
</section>
<p> You must upload any pictures and files to the iGEM 2018 server. Remember to keep all your pictures and files within your team's namespace or at least include your team's name in the file name. </p>
+
  
 +
<section id="sponsors">
  
<p>When you upload, set the "Destination Filename" to <b> T--YourOfficialTeamName--NameOfFile.jpg</b>. (If you don't do this, someone else might upload a different file with the same "Destination Filename", and your file would be erased!)</p>
+
</section>
  
<div class="button_link">
+
<section id="reachUs">
<a href="https://2018.igem.org/Special:Upload">
+
UPLOAD FILES
+
</a>
+
</div>
+
  
</div>
+
</section>
 +
</div>
 +
<script type="text/javascript">
 +
$(window).on('resize',function() {
 +
    location.reload();
 +
});
  
<div class="column third_size" >
+
$(window).on("load", function() {
<h3> Wiki template information </h3>
+
    //navmenubar
<p>We have created these wiki template pages to help you get started and to help you think about how your team will be evaluated. You can find a list of all the pages tied to awards here at the <a href="https://2018.igem.org/Judging/Pages_for_Awards">Pages for awards</a> link. You must edit these pages to be evaluated for medals and awards, but ultimately the design, layout, style and all other elements of your team wiki is up to you!</p>
+
    var sticky = $("#menubar").offset().top;
 +
    $(window).scroll(function() {   
 +
        if ($(window).scrollTop() > sticky) {
 +
            $("#menubar").addClass("stickymenu");
 +
        } else {
 +
            $("#menubar").removeClass("stickymenu");
 +
        }
 +
    });
  
</div>
+
var homePos = $("#home").offset().top;
 +
    var aboutUsPos = $("#aboutUs").offset().top;
 +
    var eventsPos = $("#events").offset().top;
 +
    var galleryPos = $("#gallery").offset().top;
 +
    var ourTeamPos = $("#ourTeam").offset().top;
 +
    var sponsorsPos = $("#sponsors").offset().top;
 +
    var reachUsPos = $("#reachUs").offset().top;
  
 +
    $(document).on("click", "#pagedown", function() {
 +
$("body, html").animate({scrollTop: aboutUsPos}, 1000, "swing");
 +
});
 +
$(document).on("click", "#homeMenu", function() {
 +
        $("body, html").animate({scrollTop: homePos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#aboutUsMenu", function() {
 +
        $("body, html").animate({scrollTop: aboutUsPos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#eventsMenu", function() {
 +
        $("body, html").animate({scrollTop: eventsPos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#galleryMenu", function() {
 +
        $("body, html").animate({scrollTop: galleryPos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#ourTeamMenu", function() {
 +
        $("body, html").animate({scrollTop: ourTeamPos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#sponsorsMenu", function() {
 +
        $("body, html").animate({scrollTop: sponsorsPos}, 1000, "swing");
 +
    });
 +
    $(document).on("click", "#reachUsMenu", function() {
 +
        $("body, html").animate({scrollTop: reachUsPos}, 1000, "swing");
 +
    }); 
  
 +
    $(".pagelink#registerMenu").click(function() {
 +
        $("#register").css("left","30vw");
 +
        $("#login").css("left","-35vw");
 +
    });
 +
    $(".pagelink#loginMenu").click(function() {
 +
        $("#login").css("left","35vw");
 +
        $("#register").css("left","-45vw");
 +
    });
 +
    $("#register .exit").click(function() {
 +
        $("#register").css("left","-45vw");
 +
    });
 +
    $("#login .exit").click(function() {
 +
        $("#login").css("left","-35vw");
 +
    });
  
<div class="column third_size" >
+
    var halfHeight = window.innerHeight/2;
<div class="highlight decoration_B_full">
+
    $(window).scroll(function(){
<h3> Editing your wiki </h3>
+
        var windowPos = $(window).scrollTop() + 1;
<p>On this page you can document your project, introduce your team members, document your progress and share your iGEM experience with the rest of the world! </p>
+
        if (windowPos >= homePos && windowPos < aboutUsPos - halfHeight) {
<p>Use WikiTools - Edit in the black menu bar to edit this page</p>
+
            $(".pagelink").css("background-color","transparent");
 
+
            $(".pagelink").children().children().css("color","#bbbbbb");
<div class="button_link">
+
            $(".pagelink#homeMenu").css("background-color","#bbbbbb");
<a href="https://2018.igem.org/wiki/index.php?title=Team:IISER-Kolkata&action=edit">
+
            $(".pagelink#homeMenu div p").css("color","black");
EDIT PAGE
+
        }
</a>
+
        else if (windowPos >= aboutUsPos - halfHeight && windowPos < eventsPos - halfHeight) {
</div>
+
            $(".pagelink").css("background-color","transparent");
 
+
            $(".pagelink").children().children().css("color","#bbbbbb");
 
+
            $(".pagelink#aboutUsMenu").css("background-color","#bbbbbb");
</div>
+
            $(".pagelink#aboutUsMenu div p").css("color","black");
</div>
+
        }
 
+
        else if (windowPos >= eventsPos - halfHeight && windowPos < galleryPos - halfHeight) {
 
+
            $(".pagelink").css("background-color","transparent");
 
+
            $(".pagelink").children().children().css("color","#bbbbbb");
 
+
            $(".pagelink#eventsMenu").css("background-color","#bbbbbb");
 
+
            $(".pagelink#eventsMenu div p").css("color","black");
<div class="clear extra_space"></div>
+
        }
<div class="line_divider"></div>
+
        else if (windowPos >= galleryPos - halfHeight && windowPos < ourTeamPos - halfHeight) {
<div class="clear extra_space"></div>
+
            $(".pagelink").css("background-color","transparent");
 
+
            $(".pagelink").children().children().css("color","#bbbbbb");
 
+
            $(".pagelink#galleryMenu").css("background-color","#bbbbbb");
 
+
            $(".pagelink#galleryMenu div p").css("color","black");
<div class="column two_thirds_size" >
+
        }
<h3>Tips</h3>
+
        else if (windowPos >= ourTeamPos - halfHeight && windowPos < sponsorsPos - halfHeight) {
<p>This wiki will be your team’s first interaction with the rest of the world, so here are a few tips to help you get started: </p>
+
            $(".pagelink").css("background-color","transparent");
<ul>
+
            $(".pagelink").children().children().css("color","#bbbbbb");
<li>State your accomplishments! Tell people what you have achieved from the start. </li>
+
            $(".pagelink#ourTeamMenu").css("background-color","#bbbbbb");
<li>Be clear about what you are doing and how you plan to do this.</li>
+
            $(".pagelink#ourTeamMenu div p").css("color","black");
<li>You have a global audience! Consider the different backgrounds that your users come from.</li>
+
        }
<li>Make sure information is easy to find; nothing should be more than 3 clicks away. </li>
+
        else if (windowPos >= sponsorsPos - halfHeight && windowPos < reachUsPos - halfHeight) {
<li>Avoid using very small fonts and low contrast colors; information should be easy to read.  </li>
+
            $(".pagelink").css("background-color","transparent");
<li>Start documenting your project as early as possible; don’t leave anything to the last minute before the Wiki Freeze. For a complete list of deadlines visit the <a href="https://2018.igem.org/Calendar">iGEM 2018 calendar</a> </li>
+
            $(".pagelink").children().children().css("color","#bbbbbb");
<li>Have lots of fun! </li>
+
            $(".pagelink#sponsorsMenu").css("background-color","#bbbbbb");
</ul>  
+
            $(".pagelink#sponsorsMenu div p").css("color","black");
</div>
+
        }
 
+
        else if (windowPos >= reachUsPos - halfHeight) {
 
+
            $(".pagelink").css("background-color","transparent");
<div class="column third_size">
+
            $(".pagelink").children().children().css("color","#bbbbbb");
<div class="highlight decoration_A_full">
+
            $(".pagelink#reachUsMenu").css("background-color","#bbbbbb");
<h3>Inspiration</h3>
+
            $(".pagelink#reachUsMenu div p").css("color","black");
<p> You can also view other team wikis for inspiration! Here are some examples:</p>
+
        }
<ul>
+
    });
<li> <a href="https://2014.igem.org/Team:SDU-Denmark/"> 2014 SDU Denmark </a> </li>
+
<li> <a href="https://2014.igem.org/Team:Aalto-Helsinki">2014 Aalto-Helsinki</a> </li>
+
<li> <a href="https://2014.igem.org/Team:LMU-Munich">2014 LMU-Munich</a> </li>
+
<li> <a href="https://2014.igem.org/Team:Michigan"> 2014 Michigan</a></li>
+
<li> <a href="https://2014.igem.org/Team:ITESM-Guadalajara">2014 ITESM-Guadalajara </a></li>
+
<li> <a href="https://2014.igem.org/Team:SCU-China"> 2014 SCU-China </a></li>
+
</ul>
+
</div>
+
</div>
+
 
+
 
+
  
 +
    //events page
 +
    $("#events .tab").hover(function() {
 +
        $(this).css("background-color","#000040");
 +
        $(this).children(".tab-text").css("background-color","#000040");
 +
        $(this).children(".tab-text").css("color","white");
 +
        $(this).children(".tab-text").css("border","0.5vw solid white");
 +
    }, function() {
 +
        $(this).css("background-color","white");
 +
        $(this).children(".tab-text").css("background-color","white");
 +
        $(this).children(".tab-text").css("color","#000040");
 +
        $(this).children(".tab-text").css("border","0.5vw solid #000040");
 +
    });
 +
    $("#events .tab").click(function() {
 +
        $(".tab").css("display","none");
 +
        var tabID = $(this).children().attr("id");
 +
        $("#"+tabID+"-pop").css("left","0vw");
 +
    });
 +
    $(".pop .exit").click(function() {
 +
        $(".tab").css("display","flex");
 +
        $(this).parent().css("left","100vw");
 +
    });
 +
    $(".type-list").click(function() {
 +
        var nextList = $(this);
 +
        var currentList = $(this).siblings(".list-active");
 +
        currentList.removeClass("list-active");
 +
        nextList.addClass("list-active");
 +
        var nextListId = nextList.attr("id");
 +
        var currentListId = currentList.attr("id");
 +
        var nextHead = $(this).parent().siblings(".event-desc").children(".event-head#"+nextListId+"-head");
 +
        var currentHead = $(this).parent().siblings(".event-desc").children(".event-head#"+currentListId+"-head");
 +
        currentHead.removeClass("head-active");
 +
        nextHead.addClass("head-active");
 +
        var nextRem = $(this).parent().siblings(".event-desc").children(".rem-events#"+nextListId+"-rem");
 +
        var currentRem = $(this).parent().siblings(".event-desc").children(".rem-events#"+currentListId+"-rem");
 +
        currentRem.removeClass("rem-active");
 +
        nextRem.addClass("rem-active");
 +
        var nextEventId = $(this).parent().siblings(".event-desc").children(".indiv-event."+nextListId+"-first").attr("id");
 +
        var currentEventId = $(this).parent().siblings(".event-desc").children(".indiv-event.event-active").attr("id");
 +
        var firstEventId = $(this).parent().siblings(".event-desc").children(".indiv-event."+currentListId+"-first").attr("id");
 +
        $(".indiv-event#"+currentEventId).removeClass("event-active");
 +
        $(".indiv-event#"+nextEventId).addClass("event-active");
 +
        var nextIconId = nextEventId.replace(nextListId+"-","");
 +
        var currentIconId = currentEventId.replace(currentListId+"-","");
 +
        var firstIconId = firstEventId.replace(currentListId+"-","");
 +
        if(firstIconId!=currentIconId)
 +
        {
 +
            $(".icon#"+currentIconId).removeClass("icon-active");
 +
            $(".icon#"+firstIconId).addClass("icon-active");
 +
        }
 +
    });
 +
    $(".rem-events .icon").click(function() {
 +
        var nextIcon = $(this);
 +
        var currentIcon = $(this).siblings(".icon-active");
 +
        currentIcon.removeClass("icon-active");
 +
        nextIcon.addClass("icon-active");
 +
        var nextIconId = nextIcon.attr("id");
 +
        var currentIconId = currentIcon.attr("id"); 
 +
        var currentListId = $(this).parent().attr("id").replace("-rem","");
 +
        $(".indiv-event#"+currentListId+"-"+currentIconId).removeClass("event-active");
 +
        $(".indiv-event#"+currentListId+"-"+nextIconId).addClass("event-active");   
 +
    });
 +
});
  
 +
$(document).ready(function() {
 +
// Init ScrollMagic
 +
var controller = new ScrollMagic.Controller();
 +
 +
var aboutUsAnim = new TimelineMax();
 +
aboutUsAnim
 +
.to('#sk1', 0.3, {left:"-7.5vw", opacity:1}, 0)
 +
.to('#sk2', 0.3, {left:"91vw", opacity:1}, 0)
 +
.to('#sk1', 0.3, {left:"-17.5vw", opacity:0.7}, "+=0.8")
 +
.to('#sk2', 0.3, {left:"100vw", opacity:0.7}, "-=0.32");
 +
 +
//Pin each page
 +
var pinAboutUs = new ScrollMagic.Scene({triggerElement: '#aboutUs', triggerHook: 0, duration: '100%'})
 +
.setPin('#aboutUs', {pushFollowers: false})
 +
.setTween(aboutUsAnim)
 +
.addTo(controller);
 +
 +
var pinEvents = new ScrollMagic.Scene({triggerElement: '#events', triggerHook: 0, duration: '100%'})
 +
.setPin('#events', {pushFollowers: false})
 +
.addTo(controller);
 +
 +
var pinGallery = new ScrollMagic.Scene({triggerElement: '#gallery', triggerHook: 0, duration: '100%'})
 +
.setPin('#gallery', {pushFollowers: false})
 +
.addTo(controller);
 +
 +
var pinOurTeam = new ScrollMagic.Scene({triggerElement: '#ourTeam', triggerHook: 0, duration: '100%'})
 +
.setPin('#ourTeam', {pushFollowers: false})
 +
.addTo(controller);
 +
 +
var pinSponsors = new ScrollMagic.Scene({triggerElement: '#sponsors', triggerHook: 0, duration: '100%'})
 +
.setPin('#sponsors', {pushFollowers: false})
 +
.addTo(controller);
 +
});
 +
</script>
 +
 
</html>
 
</html>

Revision as of 12:11, 20 June 2018

X
X
Down