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

Line 132: Line 132:
 
});
 
});
 
var ch=0;
 
var ch=0;
setTimeout(function(){qs("#Header").style.opacity = "1";qs("div.JC").style.cssText += 'background-color:#FFF !important'; qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e){e.style.color="#FFF"});setTimeout(function(){qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e){e.style.display="none"});qs("[data-later]").style.cssText="display:inline!important;color:#eee;";
 
 
function typeIt() {
 
function typeIt() {
console.log("here");
+
            console.log("here");
    if (ch > qs("[data-later]").dataset.later.length)return;
+
            if (ch > qs("[data-later]").dataset.later.length) return;
    if(qs("[data-later]").dataset.later[ch]!="<")
+
            if (qs("[data-later]").dataset.later[ch] != "<")
    qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, 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);
+
            else qs("[data-later]").innerHTML = qs("[data-later]").dataset.later.substring(0, ch += 3);
    setTimeout(typeIt, ~~(Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
+
            setTimeout(typeIt, ~~ (Math.random() * (pauseMax - pauseMin + 1) + pauseMin));
}},1000);},(178+71)*65 + (2 * 1500));
+
        }
 +
setTimeout(function() {
 +
    qs("#Header").style.opacity = "1";
 +
    qs("div.JC").style.cssText += 'background-color:#FFF !important';
 +
    qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e) {
 +
        e.style.color = "#FFF"
 +
    });
 +
    setTimeout(function() {
 +
        qsa(".JC #content-container>div h1, .JC #content-container>div b").forEach(function(e) {
 +
            e.style.display = "none"
 +
        });
 +
        qs("[data-later]").style.cssText = "display:inline!important;color:#eee;";
 +
 
 +
        typeIt();
 +
    }, 1000);
 +
}, (178 + 71) * 65 + (2 * 1500));
 
},500);
 
},500);
 
</script>
 
</script>

Revision as of 21:59, 31 October 2017

Contents

Designed by Aleksandur Murfitt