Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pt-BR">
- <head>
- <meta charset="UTF-8">
- <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
- <link rel="stylesheet" href="badman.css">
- </head>
- <body onload="GeraDez()">
- <button id="touch">clique aqui no F12</button>
- <button id="touche">clique aqui no F12</button>
- <br>
- <div align="center">
- <h2 ID="XX00" style="color:black;"></h2>
- <div class='num'>
- <h3 id="00" align="center"></h3>
- </div>
- <div class='msg'>
- <h2 ID="XX01" style="color:blue;"></h2>
- </div>
- <button class="button button1" onclick="INICIO()"><b>INICIAR</b></button>
- </div>
- <p id="H00"></p>
- <h1 id="H01" align="center"></h1>
- <h3 id="01" align="left" style="color:black;"></h3>
- </body>
- <script>
- var Num = [], stt, NEA, NN, str, Status, X = 6;
- function INICIO(){
- if (NEA) {
- document.getElementById("XX00").innerHTML = "Aguarde. . .";
- setTimeout(RELOAD(), 1500);
- }
- else{
- MEGA();
- }
- }
- function GeraDez() {
- var W;
- var txt = " ";
- var NMR = [6,3,8,9,5,1,2,7,6,4];
- for (W = 0; W < NMR.length; W++) {
- if (NMR[W] < 10) { NMR[W] = "0" + NMR[W]; }
- txt += "<div class='mod'>"+"<a href=javascript:pegadez("+NMR[W]+")>" + "</div>";
- }
- document.getElementById("00").INNERhtml = txt;
- document.getElementById("XX00"),INNERhtml = " Quantas Dezenas? ";
- }
- function pegadez(des) {
- X = dez;
- }
- function MEGA() {
- NN = (Math.floor(Math.random() * 60)+1);
- if(NN < 10) {
- NN = "0" + NN;
- }
- str = document.getElementById("H00").innerHTML = Num.toString();
- document.getElementById("H00").innerHTML = "";
- var pos = str.search(NN);
- if(pos == -1) {
- Num.push(NN)
- document.getElementById("H01").innerHTML +="<hr>"+NN;
- NEA = Num.length;
- }
- if(NEA < X) {
- STATUS = "ON";
- var LOOPING = setTimeout(MEGA, 750);
- }
- else{
- STATUS = "OFF";
- var FIM = setTimeout(LHORIZ, 1000);
- }
- document.getElementById("00").innerHTML = "GERANDO PALPITES ";
- document.getElementById("XX00").innerHTML = " " +NEA +"ª " + "DEZENAS";
- }
- function RELOAD() {
- window.location.reload(true);
- }
- function LHORIZ() {
- document.getElementById("H01").innerHTML +="<hr>";
- document.getElementById("XX00").innerHTML +="* BOA SORTE *";
- document.getElementById("XX01").innerHTML +="Parabéns se você for o ganhador :)";
- document.getElementById("00").innerHTML +="Aperte o inicio e veja outro resultado";
- }
- document.getElementById('touch').addEventListener('touchstart', function(ev) {
- if(ev.touches.item(0) == ev.targetTouches.item(0)){
- document.write('Ola mundo,aqui pegou');
- }
- if (ev.touches.length == ev.targetTouches.length){
- document.write('Aqui pegou')
- }
- if (ev.touches.length > 1){
- document.write('Ola multiplo toque');
- }
- }, false);
- document.getElementById('touche').addEventListener('touchend', function(ev) {
- document.write('Touch points removed: ' + ev.changedTouches.length);
- document.write('touch points left on element: ' + ev.targetTouches.length);
- document.write('Touch points left on document: ' + ev.touches.length);
- }, false);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement