<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="content-type">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Ready Set Traffic - Spin To Win</title>
    <style type="text/css">
      
      /* Wheel Spin by Martin Chantler - https://reducethehype.com */

      * {
        box-sizing: border-box;
      }
      
      html {
        background-color: #102631;
        background: linear-gradient(#102631,#1191ae) no-repeat center center fixed;
        background-size: cover;
      }
      
      #container {
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #fff;
        text-align: center;
      }
      
      #wheel-container, #form-wrapper {
        display: inline-block;
        vertical-align: middle;
      }
      
      #wheel-container {
        position: relative;
        width: 500px;
        height: 500px;
        margin: 0 auto;
        border: 0;
        border-radius: 50%;
        box-shadow: 5px 5px rgba(0,0,0,0.3);
      }
      
      #wheel-container > div {
        overflow: hidden;
      }
      
      #wheel {
        width: 500px;
        height: 500px;
        background-color: #01303f;
        background-image: repeating-conic-gradient(from 15deg, #01303f 0deg 30deg, #02a9f7 30deg 60deg,#02577a 60deg 90deg, #89d6fb 90deg 120deg);
        background-repeat: no-repeat;
        background-size: 100%;
        border: 0;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 0 0 5px #fcd730 inset;
        transition: transform 5s ease-out;
      }
      
      #wheel div {
        position: absolute;
        top: calc(50% - 20px);
        left: 50%;
        width:  40%;
        padding-left: 8%;
        max-height: 40px;  /* Do NOT Change This Value! */
        line-height: 40px; /* Do NOT Change This Value! */
        font-size: 18px;
        font-weight: bold;
        color: white;
        text-align: center;
        overflow-x: hidden;
        transform-origin: left center;
        white-space: nowrap;
        box-sizing: content-box;
      }
      
      #pointer {
        position: absolute;
        width: 30px;
        height: 30px;
        top: calc(50% - 15px);
        right: -10px;
        z-index: 100;
      }
      
      #wheel-center {
        position: absolute;
        width: 70px;
        height: 70px;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 1px solid black;
        border-radius: 50%;
        background: radial-gradient(#fcd730,#f15a25);
        z-index: 100;
      }
      
      #form-wrapper {
        width: 480px;
        margin-left: 20px;
        font-family: Verdana, Geneva, sans-serif;
      }
      
      .headline {
        margin-bottom:20px;
        font-size:68px;
        font-weight:bold;
        color:#f00;
        text-shadow: -1px -1px #fff, -1px 1px #fff, 1px 1px #fff, 1px -1px #fff;
      }
      
      .main-text {
        margin: 10px;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 2px 2px rgba(0,0,0,0.7);
        text-transform: capitalize;
      }
      
      .sub-text {
        margin: 10px;
        font-size: 16px;
        text-shadow: 1px 1px rgba(0,0,0,0.7);
      }
      
      #prizeText {
        font-weight: bold;
        color: yellow;
      }
      
      #prizeURL {
        display: inline-block;
        width: 80%;
        max-width: 400px;
        padding: 5px;
        background-color: #fff;
        border: 1px solid #000;
        font-size: 18px;
        font-weight: bold;
        color: #000;
        vertical-align: middle;
      }
      
      #spinButton, .btn { 
        background: linear-gradient(to right,#f15a25,#fcd730,#f15a25);
        display:inline-block;
        border: none;
        border-radius: 5px;       
        color: #fff;
        font-family: Verdana, Geneva, sans-serif;
        font-size:20px;
        font-weight: bold;
        padding: 10px;
        max-width: 360px;
        width: 90%;
        margin-top: 5px;
        cursor: pointer;
        text-transform: uppercase;
        text-decoration: none;
        text-shadow: -1px -1px #000,1px -1px #000,1px 1px #000,-1px 1px #000;
        white-space: normal;
        border: 2px solid #001530;
        box-shadow: 0 3px #001530;
      }
      
      #spinButton:hover {
        background: linear-gradient(to right,#fcd730,#f15a25,#fcd730);
      }
      
      button:hover, button:active, button:focus {
        outline: none;
      }
      
      .copyButton {
        border: 2px solid #ccc;
        border-radius: 4px;
        padding: 1px 4px;
        background-color: #eee;
        cursor: pointer;
        vertical-align: middle;
      }
      
      .copyButton svg {
        width: 24px;
        height: 24px;
      }
      
      @media(max-width: 1023px) {
        #wheel-container, #form-wrapper {display: block;}
      	#form-wrapper {width: auto; margin: auto;}
      }
      
      @media(max-width: 740px) {
        .headline {font-size: 38px;}
      }
      
      @media(max-width: 500px) {
        #wheel-container {width: 300px;height: 300px;}
        #wheel {width: 300px; height: 300px;}
        #wheel div {font-size: 14px;}
        #wheel-center {width: 40px; height: 40px;}
      }
      
    </style>
  </head>
  <body>
    <div id="container">
      <div class="headline">SPIN TO WIN A PRIZE!</div>
      <div id="wheel-container">
        <div id="pointer"><svg height="30" width="30"><polygon points="0,15 30,0 20,15 30,30"

              style="fill:white;stroke:black;stroke-width:2"></polygon></svg></div>
        <div id="wheel-center"> </div>
        <div>
          <div id="wheel">
            <div id="prize12">1000 Ad Credits</div>
            <div style="transform: rotate(30deg);">Next Time</div>
            <div id="prize10" style="transform: rotate(60deg);font-size:16px">Lead Manager / Task CRM</div>
            <div style="transform: rotate(90deg);">Unlucky</div>
            <div id="prize8" style="transform: rotate(120deg);">SMS Software</div>
            <div style="transform: rotate(150deg);">Almost</div>
            <div id="prize6" style="transform: rotate(180deg);">Page Builder</div>
            <div style="transform: rotate(210deg);">Next Time</div>
            <div id="prize4" style="transform: rotate(240deg);">Email Blaster Software</div>
            <div style="transform: rotate(270deg);">Unlucky</div>
            <div id="prize2" style="transform: rotate(300deg);">Link Tracker & Rotar</div>
            <div style="transform: rotate(330deg);">Almost</div>
          </div>
        </div>
      </div>
      <div id="form-wrapper">
        <!-- Site Banner -->
        <div style="margin-top: 30px;margin-bottom:30px;text-align:center">
          <p><a href="#REFURL#" target="_blank" title="Click To Join For FREE!"><img

                src="https://i.imgur.com/gvDOR8N.jpg" style="max-width:100%;height:auto;box-shadow: 0 0 0 3px #000"

                border="0"></a></p>
        </div>
        <!-- Welcome Text Starts Here -->
        <div id="welcome-text">
          <div class="main-text">Welcome to the amazing Wheel Spin of <span

              style="color:yellow;text-transform: uppercase">Ready Set Traffic<br>
            </span></div>
          <div class="sub-text">
            <p>This is your lucky day!!!</p>
            <p>Why?</p>
            <p>You WILL win a FREE prize!</p>
            <p>Just spin the wheel and see what you've won.</p>
            <p>Spin now - it's FREE :-)</p>
          </div>
          <div class="sub-text">You have 3 spins left.</div>
        </div>
        <!-- Welcome Text Ends Here -->
        <!-- Lost Text Starts Here -->
        <div id="lost-text" style="display:none;">
          <div class="main-text">Sorry! Bad Luck.</div>
          <div class="sub-text">Why not see if you have better luck this time.</div>
          <div id="spins-left" class="sub-text">You have 3 spins left.</div>
        </div>
        <!-- Lost Text Ends Here -->
        <!-- Free Spin Text Starts Here -->
        <div id="freeSpin-text" style="display:none;">
          <div class="main-text">Congratulations!</div>
          <div class="sub-text">You have won an extra spin.</div>
        </div>
        <!-- Free Spin Text Ends Here -->
        <!-- No Spins Left Starts Here -->
        <div id="noSpins-text" style="display:none;">
          <div class="main-text">Sorry! No Spins Left.</div>
          <div class="sub-text">Come back and play another time..</div>
        </div>
        <!-- No Spins Left Ends Here -->
        <!-- Win Text Starts Here -->
        <div id="win-text" style="display:none;">
          <div class="main-text">CONGRATULATIONS!</div>
          <div class="sub-text">You Have Won: <span id="prizeText"> </span></div>
          <div id="prizeURL">Promo Code Will Display Here!</div>
          <button title="Copy" onclick="copyToClipboard()" class="copyButton">
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
              <g>
                <path fill="none" d="M0 0h24v24H0z"></path>
                <path d="M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"></path> </g> </svg> </button>
          <p style="font-weight:bold;">1) Open a free account at Ready Set Traffic.</p>
          <p><a class="btn" href="#REFURL#" target="_blank">Click Here To Join FREE!</a></p>
          <p style="font-weight:bold;">2) Copy promo code above to your clipboard.</p>
          <p style="font-weight:bold;">3) Instructions on how to claim are on the members home page.</p>
        </div>
        <!-- Win Text Ends Here -->
        <!-- Spin Button -->
        <div><button id="spinButton" type="button" onclick="spinWheel();">Try Your Luck</button></div>
        <!-- Test Outputs Start -->
        <p id="output1" style="display:none;"> </p>
        <p id="output2" style="display:none;"> </p>
        <p id="output3" style="display:none;"> </p>
        <!-- Test Outputs End --> </div>
    </div>
    <script>
      
      // Wheel Spin by Martin Chantler - https://reducethehype.com

      var spinSound,cheerSound,loseSound,soundEnabled=!0,spinsLeft=3,pos=0,winningSegment=0;function spinWheel(){1==soundEnabled&&spinSound.play();var e=document.getElementById("wheel"),n=document.getElementById("spinButton"),t=winningSegment;winningSegment=Math.floor(12*Math.random())+1,1==spinsLeft&&(winningSegment=2*(Math.floor(6*Math.random())+1)),pos+=360+(30*winningSegment+30*(12-t)),e.style.transform="rotate("+pos+"deg)",n.innerHTML="Spinning...",n.disabled=!0,n.style.cursor="not-allowed",setTimeout(function(){checkWin()},5e3)}function checkWin(){spinsLeft--,document.getElementById("spins-left").innerHTML="You have "+spinsLeft+" spins left.",document.getElementById("welcome-text").style.display="none",document.getElementById("lost-text").style.display="none",document.getElementById("freeSpin-text").style.display="none",12==winningSegment||10==winningSegment||8==winningSegment||6==winningSegment||4==winningSegment||2==winningSegment?(document.getElementById("win-text").style.display="block",document.getElementById("spinButton").style.display="none",1==soundEnabled&&cheerSound.play(),"undefined"!=typeof Storage&&(localStorage.wheelspin=winningSegment),document.getElementById("prizeText").innerHTML=document.getElementById("prize"+winningSegment).innerHTML,document.getElementById("prizeURL").innerHTML=generateCode(winningSegment)):0<spinsLeft?(1==soundEnabled&&loseSound.play(),document.getElementById("lost-text").style.display="block",document.getElementById("spinButton").innerHTML="Try Again",document.getElementById("spinButton").disabled=!1,document.getElementById("spinButton").style.cursor="pointer"):(document.getElementById("noSpins-text").style.display="block",document.getElementById("spinButton").style.display="none")}function generateCode(e){return"WheelSpin_"+((7395+e)*e).toString(16)}1!=soundEnabled||(spinSound=document.createElement("AUDIO")).canPlayType("audio/mpeg")&&(cheerSound=document.createElement("AUDIO"),loseSound=document.createElement("AUDIO"),spinSound.setAttribute("src","https://reducethehype.com/sounds/wheel-spin.mp3"),spinSound.preload="auto",cheerSound.setAttribute("src","https://reducethehype.com/sounds/cheer.mp3"),cheerSound.preload="auto",loseSound.setAttribute("src","https://reducethehype.com/sounds/lose.mp3"),loseSound.preload="auto"),"undefined"!=typeof Storage&&0<Number(localStorage.wheelspin)&&(document.getElementById("welcome-text").style.display="none",document.getElementById("win-text").style.display="block",document.getElementById("spinButton").style.display="none",winningSegment=Number(localStorage.wheelspin),document.getElementById("prizeText").innerHTML=document.getElementById("prize"+winningSegment).innerHTML,document.getElementById("prizeURL").innerHTML=generateCode(winningSegment),wheel.style.transform="rotate("+30*winningSegment+"deg)");
      
      function copyToClipboard() {
        var prizeCode = document.getElementById("prizeURL");
        var copyText = prizeCode.innerText;
        navigator.clipboard.writeText(copyText);
        prizeCode.innerText = "Copied!"
        setTimeout(function(){prizeCode.innerText = copyText}, 2000);
      }
      
    </script>
  </body>
</html>