CALCULA TU FINIQUITO

In this example below you will see how to do a CALCULA TU FINIQUITO with some HTML / CSS and Javascript

Supports IE 6+

Thumbnail
This awesome code was written by khorne, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright khorne ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>CALCULA TU FINIQUITO</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="spin_widget">
  <div class="wheel_holder" id="the_wheel">
    <div class="assests" style="display: none">
      <img src="https://dl.dropboxusercontent.com/s/du2xrt3903k34b2/spinner-wheel_board__bg.png?token_hash=AAHefLlKqPXsIxfza_HfuvEfRwZnY5EWMYOGA5kt3FZv4Q&dl=1" alt="" id="wheel_bg"/>
      <img src="https://dl.dropboxusercontent.com/s/p1grg6kuspaklqe/spinner-wheel_board__highlight.png?token_hash=AAFEC_xUVm6Na2aYdb0jcdC1-1q-0f3svu5uOQPwYIEu1A&dl=1" alt="" id="highlights" />
      <img id="wheel" class="wheel" src="http://files.enjin.com/545223/spinner-wheel_board__content1.png" alt="" />
    <img id="needle" src="https://dl.dropboxusercontent.com/s/e3vqwrud9zbi185/spinner-needle.png?token_hash=AAF9of63bm8-N0cFzBBJRSNOwegi-QZyoxyKdFSMGkflzg&dl=1" />
    <img src="http://files.enjin.com/545223/d62f28ffffffcc224efffffffa19ffffffccffffffd1494f31ffffff9251.bmp" alt="" id="pin"  />
    </div>
  </div>
  
  <div class="content">
    <div id="action_text">
      <h1><div>calcula tu finiquito</div> <div>y gana <span class="highlight">premios</span></div> <div>Garantizados</div></h1>
      <img src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcTCbSRfss0yFLSIClsB3plFmnQGlxWstITWIkn0N4KAHnA0Kip6" alt="" id="btn_spin_me" style="display: none"/>
    </div>
    <div id="result_text" class="hide">
      <h1>
        <div class="highlight">Enhorabuena</div> 
        <div>has ganado <span id="prize_money" class="highlight"></span></div>
      </h1>
      <p>
       F5 Para volver a jugar
      </p>
    </div><!--result_text-->
  </div>
</div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/khorne/calcula-tu-finiquito-ynurL */
.spin_widget {
  position: relative;
  color: #fff;
  background-color: black;
  height: 500px;
}
.spin_widget .hide {
  display: none;
}
.spin_widget .content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  margin-top: -150px;
  margin-left: 40px;
  text-align: center;
}
.spin_widget .content h1 {
  text-transform: uppercase;
}
.spin_widget .content h1 .highlight {
  color: orange;
}
.spin_widget .content .btn.play {
  width: 262px;
  height: 77px;
  margin: 0 auto;
}
.spin_widget .wheel_holder {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -400px;
  margin-top: -200px;
  text-align: center;
}
.spin_widget .wheel_holder .assests {
  display: none;
}

.btn {
  border: none;
  text-indent: -9999;
  font-size: 0;
}
.btn.play {
  width: 262px;
  height: 77px;
  background: url("https://s24.postimg.org/8ub7mziqd/btn_spin_play.png");
}


/*Downloaded from https://www.codeseek.co/khorne/calcula-tu-finiquito-ynurL */
(function() {
  Raphael(function() {
    var btn_spin, btn_spin_src, deg_inc, get_win_value, highlight, highlight_src, money_map, needle, needle_src, paper, pin, pin_src, randomFromInterval, show_result, spin_the_wheel, wheel, wheel_bg, wheel_bg_src, wheel_src;
    wheel_bg_src = document.getElementById('wheel_bg').src;
    wheel_src = document.getElementById('wheel').src;
    highlight_src = document.getElementById('highlights').src;
    pin_src = document.getElementById('pin').src;
    needle_src = document.getElementById('needle').src;
    btn_spin_src = document.getElementById('btn_spin_me').src;
    paper = Raphael("the_wheel", 800, 400);
    wheel_bg = paper.image(wheel_bg_src, 0, 0, 400, 400);
    wheel = paper.image(wheel_src, 0, 0, 400, 400);
    pin = paper.image(pin_src, 170, 160, 51, 58);
    highlight = paper.image(highlight_src, 0, 0, 400, 400);
    needle = paper.image(needle_src, 185, -10, 29, 64);
    btn_spin = paper.image(btn_spin_src, 500, 220, 309, 87);
    deg_inc = 360 / 12;
    money_map = {
      'AAA TU CASA ,MAS BIEN DEBAJO DE PUNTE YA QUE EN PARO ESTARAS UNOS 1000 AÑOS': 0,
      'UNA PALMADITA EN LA ESPALADA, CON AMOR': deg_inc,
      'NADA!, A QUE MOLO': deg_inc * 2,
      'UN PALOOOO!!!!! PARA EVITAR PENSAMIENTOS IMPUROS ETE PALO NO TIENE NI FORMA, TAMAÑO Y COLOR UN PALO NADA MAS': deg_inc * 3,
      'UN TELEFONO CON PILOTO ROJO 24H QUE EL ESTRES TE ACOMPAÑE': deg_inc * 4,
      'UNA PUTA COCACOLA PARA QUE CUIDES ESA VOZ DESPUES DE 4 AÑOS GRITANDO': deg_inc * 5,
      'OSTIA UN PESCAO!': deg_inc * 6,
      '- Mamá, tengo dos noticias, una buena y una mala, Primero la buena, hija,Pasé una prueba - Muy bien, ¿Y la mala?- Que era un Test de embarazo.': deg_inc * 7,
      'LA SILLA DEL CAU QUE NI DIOS QUIERE PARA DEJARTE EL CULO COMO UN MANDRIL': deg_inc * 8,
      'AS RENOVADO CON AXPE ENHORABUENA ESCLAVITO': deg_inc * 9,
      '10000': deg_inc * 10,
      '100 KILOS DE CARTAS DEL ARMARIO DE PROTECCIÓN DE DATOS PARA QUE MEMORICES CONTRASEÑAS TODO EL TIMEPO QUE ESTE EN PARO': deg_inc * 11
    };
    
    // returns the a random value b/w `from` and `to`
    randomFromInterval = function(from, to) {
      return Math.floor(Math.random() * (to - from + 1) + from);
    };
    // fake server response factory for win money
    get_win_value = function(money_map) {
      var degree, money, val;
      val = (function() {
        var results;
        results = [];
        for (money in money_map) {
          degree = money_map[money];
          results.push({
            'money': money,
            'degree': degree
          });
        }
        return results;
      })();
      return val[randomFromInterval(0, val.length)];
    };
    // display result
    show_result = function(win_value) {
      var action_text;
      btn_spin.hide();
      action_text = document.getElementById('action_text');
      action_text.parentNode.removeChild(action_text);
      document.getElementById("result_text").className = "";
      return document.getElementById("prize_money").innerHTML = win_value.money + '!';
    };
    
    // wheel spinner
    spin_the_wheel = function(win_value) {
      var angle;
      angle = 5 * 360 + win_value.degree + randomFromInterval(-10, 10);
      needle.animate({
        transform: "0r" + -5
      }, 500, "<>");
      return wheel.stop().animate({
        transform: "r" + angle
      }, 5000, "cubic-bezier(0.100, 0.300, 0.700, 1.050)", function(e) {
        return needle.animate({
          transform: "0r" + 0
        }, 300, "<>", show_result(win_value));
      });
    };
    return btn_spin.click(function(e) {
      var win_value;
      win_value = get_win_value(money_map);
      spin_the_wheel(win_value);
      return btn_spin.unclick();
    });
  });

}).call(this);

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiPGFub255bW91cz4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFBQSxPQUFBLENBQVEsUUFBQSxDQUFBLENBQUE7QUFDTixRQUFBLFFBQUEsRUFBQSxZQUFBLEVBQUEsT0FBQSxFQUFBLGFBQUEsRUFBQSxTQUFBLEVBQUEsYUFBQSxFQUFBLFNBQUEsRUFBQSxNQUFBLEVBQUEsVUFBQSxFQUFBLEtBQUEsRUFBQSxHQUFBLEVBQUEsT0FBQSxFQUFBLGtCQUFBLEVBQUEsV0FBQSxFQUFBLGNBQUEsRUFBQSxLQUFBLEVBQUEsUUFBQSxFQUFBLFlBQUEsRUFBQTtJQUFBLFlBQUEsR0FBb0IsUUFBUSxDQUFDLGNBQVQsQ0FBd0IsVUFBeEIsQ0FBbUMsQ0FBQztJQUN4RCxTQUFBLEdBQWlCLFFBQVEsQ0FBQyxjQUFULENBQXdCLE9BQXhCLENBQWdDLENBQUM7SUFDbEQsYUFBQSxHQUFpQixRQUFRLENBQUMsY0FB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