LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code



JS
speed = 15;
log = $("#code").text();
i = 0;

$("body").append("

");

var tick = setInterval(function() {
    if(i >= log.length){
        clearInterval(tick);
        setTimeout(function(){
            $("#code-box").fadeOut("slow");
        }, 3000);
    }
    $("#style-box").append(log[i]);
    $("#code-box").append(log[i++]);
    $('#code-box').html($('#code-box').html().replace(/(\:(.*?)\ ;)/g, ':$2;'));
    $('#code-box').html($('#code-box').html().replace(/(\/\*(.*?)\*\*\/)/g, '/*$2*/'));
    var o = document.getElementById("code-box");
    o.scrollTop = o.scrollHeight;
    
    
    
    
}, speed);

Description

Inspired by #PwLXXP I wanted to make this using JS only. Yes, I know there's HTML code. I'll be using .append() to add it later.
Term
Wed, 12/06/2017 - 19:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv