Difference between revisions of "Team:Judd UK/berhfudf"

 
(16 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
     <link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/main?action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/main?action=raw&ctype=text/css">
 
     <script src="/Template:Judd_UK/Scripts/wiki?action=raw&ctype=text/javascript" async></script>
 
     <script src="/Template:Judd_UK/Scripts/wiki?action=raw&ctype=text/javascript" async></script>
 +
<script src="/Template:Judd_UK/Scripts/BSS?action=raw&ctype=text/javascript" defer></script>
 +
<link rel="stylesheet" href="/Template:Judd_UK/Stylesheets/BSS?action=raw&ctype=text/css">
 
     <style id="topstyles"></style>
 
     <style id="topstyles"></style>
 
     <div id="loadbar"></div>
 
     <div id="loadbar"></div>
Line 48: Line 50:
 
         <div id="content-body">
 
         <div id="content-body">
 
<div>
 
<div>
<div id="intro">
+
  <div id="intro" style="height:100%;z-index:100;position:absolute;background:inherit;transition:opacity .5s;">
<h1 data-typer='"Iron deficiency affects more people than <b>any</b> other condition, constituting a public health condition of epidemic proportions" - <b>WHO</b>' data-delay="0"></h1>
+
    <h1 data-typer='"Iron deficiency affects more people than <b>any</b> other condition, constituting a public health condition of epidemic proportions" - <b>WHO</b>' data-delay="0"></h1>
<h1 data-typer="Over <b>30%</b> of the global population suffers from iron deficiency anaemia."data-delay="11000"></h1>
+
    <h1 data-typer="Over <b>30%</b> of the global population suffers from iron deficiency anaemia."data-delay="11000"></h1>
<h1 data-later="Here's what we're doing about it" style="display:none"></h1>
+
    <h1 data-later="Here's what we're doing about it" style="display:none"></h1>
</div>
+
  </div>
<style id="homestyles">
+
  <style id="homestyles">
.JC #content-container{
+
    .JC #content-container{
visibility:visible!important;}
+
    visibility:visible!important;}
.JC #content-index{
+
    .JC #content-index{
display:none!important}
+
    display:none!important}
#intro{height:100%;z-index:100;position:absolute;background:inherit;transition:opacity .5s;}
+
    div.JC{
#afterintro{opacity:0;transition:opacity .5s;}
+
    transition:background-color 1s ease-in;
div.JC{
+
    background-color:#111!important;
transition:background-color 1s ease-in;
+
    }
background-color:#111!important;
+
    #Header{
}
+
    opacity:0;
#Header{
+
    transition:opacity 1s ease;
opacity:0;
+
    }
transition:opacity 1s ease;
+
    #Footer{
}
+
    opacity:0
#Footer{
+
    }
opacity:0
+
    #intro>h1,#intro>h1>b{
}
+
    text-align:left;
div>h1,div>h1>b{
+
    border:none!important;
text-align:left;
+
    font-size:40px!important;
border:none!important;
+
    line-height:68.1167px!important;
font-size:40px!important;
+
    font-family:'Open Sans'!important;
line-height:68.1167px!important;
+
    color:#bbb;
font-family:'Open Sans'!important;
+
    margin:0!important;
color:#bbb;
+
    transition:color 1s ease-in;
margin:0!important;
+
    }
transition:color 1s ease-in;
+
    #intro>h1>b{
}
+
    font-weight:400!important;
div>h1>b{
+
    color:#ff6427;
font-weight:400!important;
+
    }
color:#ff6427;
+
    [data-typer]:after,[data-later]:after {
}
+
    content:"";
[data-typer]:after,[data-later]:after {
+
    display: inline-block;
  content:"";
+
    vertical-align: middle;
  display: inline-block;
+
    width:1px;
  vertical-align: middle;
+
    height:1em;
  width:1px;
+
    background: #bbb;
  height:1em;
+
    animation: caretPulsate 1s linear infinite;  
  background: #bbb;
+
    -webkit-animation: caretPulsate 1s linear infinite;  
          animation: caretPulsate 1s linear infinite;  
+
    }
  -webkit-animation: caretPulsate 1s linear infinite;  
+
    [data-typer]~[data-typer]:after{
}
+
    width:0;
[data-typer]~[data-typer]:after{
+
    animation:none;
width:0;
+
    -webkit-animation:none;
animation:none;
+
    }
-webkit-animation:none;
+
    @keyframes caretPulsate {
}
+
    0%  {opacity:1;}
@keyframes caretPulsate {
+
    50%  {opacity:1;}
  0%  {opacity:1;}
+
    60%  {opacity:0;}
  50%  {opacity:1;}
+
    100% {opacity:0;}
  60%  {opacity:0;}
+
    }
  100% {opacity:0;}
+
    @-webkit-keyframes caretPulsate {
}
+
    0%  {opacity:1;}
@-webkit-keyframes caretPulsate {
+
    50%  {opacity:1;}
  0%  {opacity:1;}
+
    60%  {opacity:0;}
  50%  {opacity:1;}
+
    100% {opacity:0;}
  60%  {opacity:0;}
+
    }
  100% {opacity:0;}
+
  </style>
}
+
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet">
</style>
+
  <script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet">  
+
    setTimeout(function(){
<script>
+
    qsa = document.querySelectorAll.bind(document);
setTimeout(function(){
+
      var pauseMax = 80,
qsa = document.querySelectorAll.bind(document);
+
        pauseMin = 40,
  var pauseMax = 80,
+
        cht = 0;
    pauseMin = 40,
+
    qsa("[data-typer]").forEach(
    cht = 0;
+
    function(e,i){setTimeout(function typeItt() {
qsa("[data-typer]").forEach(
+
        if (cht > e.dataset.typer.length)return;
function(e,i){setTimeout(function typeItt() {
+
        if(e.dataset.typer[cht]!="<")
    if (cht > e.dataset.typer.length)return;
+
        e.innerHTML = e.dataset.typer.substring(0, cht++);
    if(e.dataset.typer[cht]!="<")
+
        else e.innerHTML=e.dataset.typer.substring(0, cht+=3);
    e.innerHTML = e.dataset.typer.substring(0, cht++);
+
        setTimeout(typeItt, ~~(Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
    else e.innerHTML=e.dataset.typer.substring(0, cht+=3);
+
    },e.dataset.delay);
    setTimeout(typeItt, ~~(Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
+
    if(qsa("[data-typer]").length > i+1)
},e.dataset.delay);
+
      setTimeout(function(){
if(qsa("[data-typer]").length > i+1)
+
        e.removeAttribute("data-typer");
  setTimeout(function(){
+
        cht=0
    e.removeAttribute("data-typer");
+
    },qsa("[data-typer]")[i+1].dataset.delay-10);
    cht=0
+
},qsa("[data-typer]")[i+1].dataset.delay-10);
+
});
+
var ch=0;
+
function typeIt() {
+
            if (ch > qs("[data-later]").dataset.later.length){ setTimeout(function(){qs("#intro").style.opacity = "0"; qs("#afterintro").style.opacity="1";setTimeout(function(){qs("#intro").remove();qs("#homestyles").remove(); qs("#content-container").style.visibility="visible" },500);},1000); return;}
+
            if (qs("[data-later]").dataset.later[ch] != "<")
+
                qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch++);
+
            else qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch += 3);
+
            setTimeout(typeIt, ~~ (Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
+
        }
+
setTimeout(function() {
+
    qs("#Header").style.opacity = "1";
+
    qs("div.JC").style.cssText += 'background-color:#FFF !important';
+
    qsa(".JC #intro h1:not([data-later]), .JC #intro h1:not([data-later]) b").forEach(function(e) {
+
        e.style.color = "#FFF"
+
 
     });
 
     });
 +
    var ch=0;
 +
    function typeIt() {
 +
                if (ch > qs("[data-later]").dataset.later.length){ setTimeout(function(){qs("#intro").style.opacity = "0"; qs("#afterintro").style.opacity="1";setTimeout(function(){qs("#intro").remove();
 +
    makeBSS(".homeshow");},500);},1000); return;}
 +
                if (qs("[data-later]").dataset.later[ch] != "<")
 +
                    qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch++);
 +
                else qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch += 3);
 +
                setTimeout(typeIt, ~~ (Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
 +
            }
 
     setTimeout(function() {
 
     setTimeout(function() {
 +
        qs("#Header").style.opacity = "1";
 +
        qs("div.JC").style.cssText += 'background-color:#FFF !important';
 
         qsa(".JC #intro h1:not([data-later]), .JC #intro h1:not([data-later]) b").forEach(function(e) {
 
         qsa(".JC #intro h1:not([data-later]), .JC #intro h1:not([data-later]) b").forEach(function(e) {
             e.style.display = "none"
+
             e.style.color = "#FFF"
 
         });
 
         });
         qs("[data-later]").style.cssText = "display:inline!important;color:#2764ff";
+
         setTimeout(function() {
 
+
            qsa(".JC #intro h1:not([data-later]), .JC #intro h1:not([data-later]) b").forEach(function(e) {
        typeIt();
+
                e.style.display = "none"
    }, 1000);
+
            });
}, (178 + 71) * 65 + (2 * 1500));
+
            qs("[data-later]").style.cssText = "display:inline!important;color:#2764ff";
},500);
+
   
</script>
+
            typeIt();
<div id="afterintro">
+
        }, 1000);
<h1>HEYY!</h1>
+
    }, (178 + 71) * 65 + (2 * 1500));
 +
    },500);
 +
  </script>
 +
  <div id="afterintro" style="opacity:0;transition:opacity .5s;">
 +
    <div id="slides">
 +
      <img class="slide showing" src="https://static.igem.org/mediawiki/2017/7/70/Judd_UK_Team_Photo1.jpeg"/>
 +
      <img class="slide" src="https://static.igem.org/mediawiki/2017/7/70/Judd_UK_Team_Photo1.jpeg"/>
 +
      <img class="slide" src="https://static.igem.org/mediawiki/2017/7/70/Judd_UK_Team_Photo1.jpeg"/>
 +
    </div>
 +
  </div>
 
</div>
 
</div>
 
</div>
 
</div>
</div>
 
    </div>
 
 
     <footer id="Footer">
 
     <footer id="Footer">
 
         <h4>Designed by Aleksandur Murfitt</h4>
 
         <h4>Designed by Aleksandur Murfitt</h4>

Latest revision as of 14:42, 1 November 2017

Contents

Designed by Aleksandur Murfitt