Online Game Generator Template #4 – Responsive Mobile Friendly

 

Custom CSS :

html {
    background: #fff url(https://i.imgur.com/rmib08Z.jpg) no-repeat;
    background-position: 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: fixed;
    overflow-y: hidden;
    overflow-x: hidden;
}
body {
    background: url(https://i.imgur.com/smKINp0.png);
    padding: 10px;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    overflow-y: scroll;
}
#container {
    background: rgba(209, 209, 209, 1);
    background: -moz-radial-gradient(center, ellipse cover, rgba(209, 209, 209, 1) 0%, rgba(133, 133, 133, 1) 37%, rgba(0, 0, 0, 1) 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(209, 209, 209, 1)), color-stop(37%, rgba(133, 133, 133, 1)), color-stop(100%, rgba(0, 0, 0, 1)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(209, 209, 209, 1) 0%, rgba(133, 133, 133, 1) 37%, rgba(0, 0, 0, 1) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(209, 209, 209, 1) 0%, rgba(133, 133, 133, 1) 37%, rgba(0, 0, 0, 1) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(209, 209, 209, 1) 0%, rgba(133, 133, 133, 1) 37%, rgba(0, 0, 0, 1) 100%);
    background: radial-gradient(ellipse at center, rgba(209, 209, 209, 1) 0%, rgba(133, 133, 133, 1) 37%, rgba(0, 0, 0, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#d1d1d1', endColorstr='#000000', GradientType=1);
    max-width: 700px;
    min-height: 300px;
    margin: 10% auto;
    padding: 10px 20px;
    border: 2px solid #555;
    box-shadow: 0px 0px 10px black;
}
h2 {
    font-family: 'Orbitron', sans-serif;
    color: #fed81a
}
h3 {
    font-family: 'Orbitron', sans-serif;
    color: #000
}
h4 {
    font-family: 'Orbitron', sans-serif;
}
h5 {
    font-family: 'Orbitron', sans-serif;
}
#header {
    background: black url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/slash_it.png);
    border: 2px solid #555;
    margin-top: 10px;
    box-shadow: 0px 0px 10px black;
    padding: 10px;
}
#info-container {
    background: black url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/slash_it.png);
    border: 2px solid #555;
    margin-top: 10px;
    box-shadow: 0px 0px 10px black;
    padding: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}
#logo {
    width: 100%;
    max-width: 150px;
}
#generator {
    background: black url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/slash_it.png);
    border: 2px solid #555;
    margin-top: 10px;
    box-shadow: 0px 0px 10px black;
    padding: 10px;
    color: #19f;
}
input {
    font-family: 'Orbitron', sans-serif;
    color: #fff!important;
    font-size: 16px!important;
    background: #000!important;
    border: 2px solid #555!important;
    letter-spacing: 2px;
}
select {
    font-family: 'Orbitron', sans-serif;
    color: #fff!important;
    font-size: 16px!important;
    background: #000!important;
    border: 2px solid #555!important;
    letter-spacing: 2px;
}
button {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px!important;
    font-weight: bold!important;
}
button:focus {
    outline: 0!important
}
.inner-addon {
    position: relative;
}
.inner-addon .glyphicon {
    position: absolute;
    padding: 10px;
    pointer-events: none;
}
.left-addon .glyphicon {
    left: 0px;
}
.right-addon .glyphicon {
    right: 0px;
}
.left-addon input {
    padding-left: 30px;
}
.right-addon input {
    padding-right: 30px;
}
.link_a:link {
    background: #19f;
    background-color: none;
    background-image: none;
    border-image: none;
    border-radius: none;
    border-style: none;
    border-width: none;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
    padding: 4px 12px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    vertical-align: middle;
    font-weight: normal;
    text-decoration: none;
    color: #fff;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#human {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(0, 0, 0, 0.8);
    top: 0px;
    left: 0px;
    z-index: 100;
    padding: 20px;
    overflow-y: scroll;
    display: none
}
.dl_button {
    display: none;
}
#human-box {
    background: black url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/slash_it.png);
    border: 2px solid #555;
    margin: 10% auto;
    box-shadow: 0px 0px 10px black;
    padding: 20px;
    max-width: 400px;
    color: #f00;
}
.glyphicon-download-alt {
    display: none;
}
.offer_help_text {
    display: none;
}
#connect {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.2);
    top: 0px;
    left: 0px;
    z-index: 100;
    padding: 20px;
    overflow-y: scroll;
    display: none;
}
#connect-box {
    background: #fff;
    border: 2px solid #555;
    margin: 10% auto;
    box-shadow: 0px 0px 10px black;
    padding: 20px;
    max-width: 500px;
    color: #f00;
    border-radius: 10px;
}
.spinner {
    margin: 50px auto;
    width: 40px;
    height: 40px;
    position: relative;
}
.cube1,
.cube2 {
    background-color: #333;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-cubemove 1.8s infinite ease-in-out;
    animation: sk-cubemove 1.8s infinite ease-in-out;
}
.cube2 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}
@-webkit-keyframes sk-cubemove {
    25% {
        -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5)
    }
    50% {
        -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg)
    }
    75% {
        -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5)
    }
    100% {
        -webkit-transform: rotate(-360deg)
    }
}
@keyframes sk-cubemove {
    25% {
        transform: translateX(42px) rotate(-90deg) scale(0.5);
        -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
    }
    50% {
        transform: translateX(42px) translateY(42px) rotate(-179deg);
        -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
    }
    50.1% {
        transform: translateX(42px) translateY(42px) rotate(-180deg);
        -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
    }
    75% {
        transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
        -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
    }
    100% {
        transform: rotate(-360deg);
        -webkit-transform: rotate(-360deg);
    }
}
#items {
    display: none;
}
.loader {
    overflow: hidden;
    margin: 10px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid #eee;
    border-right: 1.1em solid #eee;
    border-bottom: 1.1em solid #eee;
    border-left: 1.1em solid #19f;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
#banner {
    width: 100%;
}
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
nav {
    z-index: 9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
}
.bg-color {
    transition-duration: .5s;
}
.text-color {
    color: #46a1de;
    transition-duration: .5s;
}
.wrapper {
    margin: 0 auto;
}
.tabs {
    display: table;
    table-layout: fixed;
    width: 100%;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
}
.tabs > li {
    font-family: 'Orbitron', sans-serif;
    transition-duration: .25s;
    display: table-cell;
    list-style: none;
    text-align: center;
    padding: 20px 5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: white;
}
.tabs > li:before {
    z-index: -1;
    position: absolute;
    content: "";
    width: 100%;
    height: 120%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    transition-duration: .25s;
    border-radius: 5px 5px 0 0;
}
.tabs > li:hover:before {
    -webkit-transform: translateY(70%);
    transform: translateY(70%);
}
.tabs > li.active {
    color: #50555a;
}
.tabs > li.active:before {
    transition-duration: .5s;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    background: white;
}
.tab__content {
    position: relative;
    width: 100%;
    border-radius: 5px;
}
.tab__content > li {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    list-style: none;
}
.tab__content > li .content__wrapper {
    text-align: center;
    border-radius: 5px;
    width: 100%;
    padding: 0px;
    background: black url(http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/slash_it.png);
}
.content__wrapper h2 {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    font-weight: 300;
}
.content__wrapper img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.colors {
    text-align: center;
    padding: 0px;
}
.colors > li {
    list-style: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-bottom: 5px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 0 10px;
    cursor: pointer;
    transition-duration: .2s;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2);
}
.colors > li:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    border-bottom: 10px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}
.colors > li.active-color {
    -webkit-transform: scale(1.2) translateY(-10px);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 20px solid rgba(0, 0, 0, 0.15);
}
.colors > li:nth-child(1) {
    background-color: #2ecc71;
}
.colors > li:nth-child(2) {
    background-color: #D64A4B;
}
.colors > li:nth-child(3) {
    background-color: #8e44ad;
}
.colors > li:nth-child(4) {
    background-color: #46a1de;
}
.colors > li:nth-child(5) {
    background-color: #bdc3c7;
}
.switch {
    background-color: #bebebe;
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 14px;
    height: 26px;
    margin-bottom: 12px;
    position: relative;
    padding: 3px;
    -webkit-transition: background-color 0.2s ease-in-out;
    -moz-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
}
.switch.checked {
    background-color: #76d21d;
}
.switch input[type="checkbox"] {
    cursor: pointer;
    height: 10px;
    left: 12px;
    position: absolute;
    top: 8px;
    -webkit-transition: left 0.05s ease-in-out;
    -moz-transition: left 0.05s ease-in-out;
    -o-transition: left 0.05s ease-in-out;
    -ms-transition: left 0.05s ease-in-out;
    transition: left 0.05s ease-in-out;
    width: 10px;
}
.switch.checked input[type="checkbox"] {
    left: 38px;
}
.switch input:before {
    background: #fff;
    background: -moz-linear-gradient(top, #fff 0%, #f0f0f0 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #f0f0f0));
    background: -webkit-linear-gradient(top, #fff 0%, #f0f0f0 100%);
    background: -o-linear-gradient(top, #fff 0%, #f0f0f0 100%);
    background: -ms-linear-gradient(top, #fff 0%, #f0f0f0 100%);
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%);
    border: 1px solid #fff;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    content: '';
    height: 18px;
    position: absolute;
    top: -5px;
    left: -9px;
    width: 26px;
}
.switch input:after {
    background: #f0f0f0;
    background: -moz-linear-gradient(top, #f0f0f0 0%, #fff 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f0f0f0), color-stop(100%, #fff));
    background: -webkit-linear-gradient(top, #f0f0f0 0%, #fff 100%);
    background: -o-linear-gradient(top, #f0f0f0 0%, #fff 100%);
    background: -ms-linear-gradient(top, #f0f0f0 0%, #fff 100%);
    background: linear-gradient(to bottom, #f0f0f0 0%, #fff 100%);
    border-radius: 10px;
    content: '';
    height: 12px;
    margin: -1px 0 0 -1px;
    position: absolute;
    width: 12px;
}
.switch .icon-ok,
.switch .icon-remove {
    line-height: 28px;
    text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.2);
    margin: 0 9px;
}
.switch .icon-ok {
    float: left;
}
.switch .icon-remove {
    float: right;
}
.stripe-1 {
    width: 100%;
    height: 20px;
    color: white;
    background: -webkit-repeating-linear-gradient(45deg, #FFFF07, #FFFF07 10px, #000000 10px, #000000 20px);
    background: repeating-linear-gradient(45deg, #FFFF07, #FFFF07 10px, #000000 10px, #000000 20px);
}
.stripe-2 {
    width: 100%;
    color: black;
    background: repeating-linear-gradient( 45deg, transparent, transparent 10px, #000 10px, #000 20px), linear-gradient( to bottom, #FFFF07, #333300)
}

 

 HTML Code:

        <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1">
<div id="human">
    <div id="human-box">
        <center>
            <div class="stripe-2">
                <h3 style="color:#fff;font-weight:bold;text-shadow:1px 1px 5px black;padding:10px;">HUMAN VERIFICATION</h3>
            </div>
            <p style="color:white">Complete an offer below to prove you are human.
            </p>
                            <center>
                                            {%offers%}
          </center>
        
            <p style="color:#ccc">After successful completetion of the offer, resources will be addded to your account automatically.</p>
        </center>
    </div>
</div>
<div id="connect">
    <div id="connect-box">
        <center>
            <h3 id="connect-text">Connecting...</h3>
        </center>
        <div class="spinner">
            <div class="cube1"></div>
            <div class="cube2"></div>
        </div>
    </div>
</div>
<div id="container">
    <div id="header">
        <center>
            <img src="https://i.imgur.com/XUscguF.jpg" id="banner" />
            <h2>Pokemon Go Hack v1.2
</h2>
        </center>
    </div>
    <div id="info-container">
        <table>
            <tr>
                <td style="width:100px;">
                    <img id="logo" src="https://i.imgur.com/FEaZbWz.png">
                </td>
                <td style="padding:10px;">
                    <p>Are you still looking for a way to boost your resources? Well, You Are in the right place. This Online Generator will give you unlimited amount of resources whenever you need it. This is open to use as long as you do not abuse our system. Please Use this tool for personal use only Enjoy!</p>
                </td>
            </tr>
        </table>
    </div>
    <div id="generator">
        <h5 id="text-help">Enter your Pokemon Go username and choose your platform. Enter the number of coins you want to generate and click Generate to start!</h5>
        <div id="user">
            <div class="form-group">
                <div class="inner-addon left-addon">
                    <i class="glyphicon glyphicon-user"></i>
                    <input id="userId" type="text" class="form-control" placeholder="Username" maxlength="30" />
                </div>
            </div>
            <div class="form-group">
                <select id="deviceId" class="form-control">
                    <option value="Android">Android</option>
                    <option value="iOS">iOS</option>
                    <option value="Pc">Pc</option>
                </select>
            </div>
        </div>
        <div id="items">
            <section class="wrapper">
                <ul class="tabs">
                    <li class="active">Resource</li>
                    <li>Settings</li>
                    <li>About</li>
                </ul>
                <ul class="tab__content">
                    <li class="active">
                        <div class="content__wrapper">
                            <ul class="colors">
                                <br>
                                <div class="form-group">
                                  
                                </div>
                                <div class="form-group">
                                    <input id="resource" class="form-control resource" style="background: url(https://i.imgur.com/uUhKat5.png) no-repeat scroll 5px 4px!important;background-size:25px 25px!important;padding-left:40px;" maxlength="9" placeholder="Add Pokecoins Value" />
                                </div>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <div class="content__wrapper">
                            <br>
                            <label class="switch">Use Fake GPS (Recommended)
                                <input type="checkbox" style="visibility:hidden">
                            </label>
                            <label class="switch">Unlock all Cards
                                <input type="checkbox" style="visibility:hidden">
                            </label>
                        </div>
                    </li>
                    <li>
                        <div class="content__wrapper">
                            <h3 class="text-color">About</h3>
                            <p>Online Generator v5.2</p>
                        </div>
                    </li>
                </ul>
            </section>
        </div>
        <div id="console" style="display:none;">
            <div class="loader">Loading...</div>
            <div style="border:3px solid #000;">
                <div style="background:#E18728;padding:10px;color:#fff;font-family: 'Orbitron', sans-serif;">
                    Console Log:</div>
                <div style="background:#1D1F21;padding:5px 5px;font-family: 'Orbitron', sans-serif;">
                    <span id="gen-txt">Loading</span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <button id="connect-btn" type="button" class="btn btn-primary btn-block">CONNECT</button>
        </div>
    </div>
</div>
<script>
$( document ).ready(function() {
$("#userId").keyup(function(event){if(event.keyCode==13){$('#connect-btn').click();}});$("#resource").keyup(function(event){if(event.keyCode==13){$('#resource').blur();}});var connect='true';$('#connect-btn').click(function(){if($("#userId").val().length<3){$("#userId").focus();}
else{if(connect=='true'){userId=$('#userId').val();deviceId=$('#deviceId').val();$('#connect').fadeIn();setTimeout(function(){$('#connect-text').html('Connecting to server...');},3000);setTimeout(function(){$('#connect-text').html('Validating User...');},7000);setTimeout(function(){$('#connect-text').html('Connected Successfully...');},15000);setTimeout(function(){connect='false';$('#connect').fadeOut();$('#connect-btn').html('GENERATE');$('#text-help').html('<span style="color:#1f9">Active Connection : '+userId+'</span>');$('#user').hide();$('#items').show(1000);$('#userId').hide();},16000);setTimeout(function(){$('.active').click();},17000);}
else{$('#resource').each(function(){if(!$(this).val()){alert('Some fields are empty');}
else{$('#items').hide();$('#console').fadeIn(1000);$('#connect-btn').attr('disabled','disabled');setTimeout(function(){$('#gen-txt').html('Performing server authentication: connect_to_server_332FS2');},0);setTimeout(function(){$('#gen-txt').html('Response: Successfully authenticated secure server connection.');},750);setTimeout(function(){$('#gen-txt').html('Import: AES_256_Keys');},1400);setTimeout(function(){$('#gen-txt').html('Import: Open_SSL_Encryption');},1600);setTimeout(function(){$('#gen-txt').html('Import: Server_332FS2_Keychain');},1880);setTimeout(function(){$('#gen-txt').html('Response: All files were imported successfully');},2990);setTimeout(function(){$('#gen-txt').html('Retrieving form input information: kernel.forms.obtain_user_information');},3100);setTimeout(function(){$('#gen-txt').html('USERNAME:  <span style="color:#1f9">'+userId+'</span>');},3500);setTimeout(function(){$('#gen-txt').html('DEVICE: <span style="color:#1f9">'+deviceId+'</span>');},4550);setTimeout(function(){$('#gen-txt').html('Injecting the information securely into encryption server: kernel.generator.start_process');},5000);setTimeout(function(){$('#gen-txt').html('Encrypting request: kernel.open_ssl_enc _0xb2eax1e');},5600);setTimeout(function(){$('#gen-txt').html('Response: Successfully encrypted user request.');},6100);setTimeout(function(){$('#gen-txt').html('Encrypted Information: 608c4a1b463ec35 ad0354c1edd5ae9 61add292b6675c bca8ac41d70d37 d4e2a7dba2b');},6400);setTimeout(function(){$('#gen-txt').html('Retrieving current PRS server script: read_PRS_server_source');},6900);setTimeout(function(){$('#gen-txt').html('Response: Successfully obtained current server script');},7200);setTimeout(function(){$('#gen-txt').html('MD5 hash: 2c58b6d627de1c5 8cc4fda16e1037a08');},7300);setTimeout(function(){$('#gen-txt').html('Local IP address: <a href="http: 192.168.5.6" target="_blank">192.168.5.6');},7400);setTimeout(function(){$('#gen-txt').html('Current version: 2.320.23.1');},7600);setTimeout(function(){$('#gen-txt').html('Login server version: 1.32.4.5');},8000);setTimeout(function(){$('#gen-txt').html('Number external methods: 43267');},8250);setTimeout(function(){$('#gen-txt').html('Initialization method: kernel.cc_server.application.main.init');},8430);setTimeout(function(){$('#gen-txt').html('Injecting into main method: inject_ssl kernel.cc_server.application.main.init');},8500);setTimeout(function(){$('#gen-txt').html('Response: Successfully injected into PRS servers');},8700);setTimeout(function(){$('#gen-txt').html('Items generation successful');},9100);setTimeout(function(){$('#gen-txt').html('Sending item to _0xb2eax1e from our server.');},9300);setTimeout(function(){$('#gen-txt').html('Initating redirect procedure');},9600);setTimeout(function(){$('#gen-txt').html('Human verification Activated');$('#human').fadeIn(1000);$('#offerlst').show(1000);},11000);}});}}});$("#userId").keyup(function(event){if(event.keyCode==13){$('#deviceInput').focus();}});$('document').ready(function(){var clickedTab=$(".tabs > .active");var tabWrapper=$(".tab__content");var activeTab=tabWrapper.find(".active");var activeTabHeight=activeTab.outerHeight();activeTab.show();tabWrapper.height(activeTabHeight);$(".tabs > li").on("click",function(){$(".tabs > li").removeClass("active");$(this).addClass("active");clickedTab=$(".tabs .active");activeTab.fadeOut(250,function(){$(".tab__content > li").removeClass("active");var clickedTabIndex=clickedTab.index();$(".tab__content > li").eq(clickedTabIndex).addClass("active");activeTab=$(".tab__content > .active");activeTabHeight=activeTab.outerHeight();tabWrapper.stop().delay(50).animate({height:activeTabHeight},500,function(){activeTab.delay(50).fadeIn(250);});});});var colorButton=$(".colors li");colorButton.on("click",function(){$(".colors > li").removeClass("active-color");$(this).addClass("active-color");var newColor=$(this).attr("data-color");$(".bg-color").css("background-color",newColor);$(".text-color").css("color",newColor);});});$(function(){$('.switch').change(function(){$(this).toggleClass('checked');});});
});
</script>

 

 

 

2,231 Views