Advertisement
Guest User

teste

a guest
Aug 21st, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html lang="pt-BR">
  4.  
  5. <head>
  6.  
  7. <meta charset="UTF-8">
  8. <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
  9. <link rel="stylesheet" href="badman.css">
  10.  
  11. </head>
  12.  
  13. <body onload="GeraDez()">
  14.  
  15. <button id="touch">clique aqui no F12</button>
  16. <button id="touche">clique aqui no F12</button>
  17.  
  18. <br>
  19. <div align="center">
  20. <h2 ID="XX00" style="color:black;"></h2>
  21.  
  22. <div class='num'>
  23. <h3 id="00" align="center"></h3>
  24. </div>
  25.  
  26. <div class='msg'>
  27. <h2 ID="XX01" style="color:blue;"></h2>
  28. </div>
  29. <button class="button button1" onclick="INICIO()"><b>INICIAR</b></button>
  30. </div>
  31.  
  32. <p id="H00"></p>
  33. <h1 id="H01" align="center"></h1>
  34. <h3 id="01" align="left" style="color:black;"></h3>
  35.  
  36.  
  37.  
  38. </body>
  39.  
  40. <script>
  41.  
  42.  
  43. var Num = [], stt, NEA, NN, str, Status, X = 6;
  44.  
  45. function INICIO(){
  46.     if (NEA) {
  47.         document.getElementById("XX00").innerHTML = "Aguarde. . .";
  48.         setTimeout(RELOAD(), 1500);
  49.     }
  50.     else{
  51.         MEGA();    
  52.     }
  53. }
  54.  
  55. function GeraDez() {
  56.    var W;
  57.    var txt = " ";
  58.    var NMR = [6,3,8,9,5,1,2,7,6,4];
  59.    for (W = 0; W < NMR.length; W++) {
  60.  if (NMR[W] < 10) { NMR[W] = "0" + NMR[W]; }
  61.   txt += "<div class='mod'>"+"<a href=javascript:pegadez("+NMR[W]+")>" + "</div>";
  62. }
  63. document.getElementById("00").INNERhtml = txt;
  64. document.getElementById("XX00"),INNERhtml = " Quantas Dezenas? ";
  65. }
  66.  
  67. function pegadez(des) {
  68.   X = dez;
  69. }
  70.  
  71. function MEGA() {
  72.     NN = (Math.floor(Math.random() * 60)+1);
  73.     if(NN < 10) {
  74.         NN = "0" + NN;
  75.     }
  76.    
  77.     str = document.getElementById("H00").innerHTML = Num.toString();
  78.    
  79.     document.getElementById("H00").innerHTML = "";
  80.    
  81. var pos = str.search(NN);
  82. if(pos == -1) {
  83.    Num.push(NN)
  84.     document.getElementById("H01").innerHTML +="<hr>"+NN;
  85.     NEA = Num.length;
  86. }
  87. if(NEA < X) {
  88.    STATUS = "ON";
  89.     var LOOPING = setTimeout(MEGA, 750);
  90. }
  91. else{
  92.    STATUS = "OFF";
  93.     var FIM = setTimeout(LHORIZ, 1000);
  94. }
  95.     document.getElementById("00").innerHTML = "GERANDO PALPITES "
  96.     document.getElementById("XX00").innerHTML = " " +NEA +"ª " + "DEZENAS";
  97. }
  98.  
  99. function RELOAD() {
  100.    window.location.reload(true);
  101. }
  102.  
  103. function LHORIZ() {
  104.    document.getElementById("H01").innerHTML +="<hr>";
  105.     document.getElementById("XX00").innerHTML +="* BOA SORTE *";
  106.     document.getElementById("XX01").innerHTML +="Parabéns se você for o ganhador :)";
  107.     document.getElementById("00").innerHTML +="Aperte o inicio e veja outro resultado";
  108. }
  109.  
  110.  
  111. document.getElementById('touch').addEventListener('touchstart', function(ev) {
  112.     if(ev.touches.item(0) == ev.targetTouches.item(0)){
  113.         document.write('Ola mundo,aqui pegou');
  114.     }
  115.    
  116.     if (ev.touches.length == ev.targetTouches.length){
  117.         document.write('Aqui pegou')
  118.     }
  119.    
  120.     if (ev.touches.length > 1){
  121.         document.write('Ola multiplo toque');
  122.     }
  123.    
  124. }, false);
  125.  
  126. document.getElementById('touche').addEventListener('touchend', function(ev) {
  127.     document.write('Touch points removed: ' + ev.changedTouches.length);
  128.     document.write('touch points left on element: ' + ev.targetTouches.length);
  129.     document.write('Touch points left on document: ' + ev.touches.length);
  130. }, false);
  131.  
  132. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement