Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="fi">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>€-JACKPOT</title>
- <meta name="apple-mobile-web-app-title" content="€jackpot" />
- <meta name="author" content="Anonymous" />
- <meta name="description" content="Arvo omat € JACKPOT onnennumerosi" />
- <style>*{box-sizing:border-box}html{background:#000080;height:100%}body{margin:10px}.shr{width:95%;height:1px;margin:5px 0}h1{color:#FFF;font-size:3em;margin:5px 0 15px}#main{width:322px;margin:30px auto;display:block;text-align:center;border:1px solid #FFF;padding:10px;border-radius:5px;box-shadow:5px -5px 0 #fff}#l4,#l6{margin-left:50px}.puts{clear:both}.circleBase{width:100px;height:100px;border-radius:50%;background:#FF0;border:3px solid #008000;float:left;font-size:6px;font-weight:bolder;display:flex;justify-content:center;align-items:center;line-height:1.469}#n1,#n2,#n3,#n4,#n5,#n6,#n7{color:#008000}#nd{margin-left:5px}.btn{background:#3498db;background-image:-webkit-linear-gradient(top,#3498db,#2980b9);background-image:-moz-linear-gradient(top,#3498db,#2980b9);background-image:-ms-linear-gradient(top,#3498db,#2980b9);background-image:-o-linear-gradient(top,#3498db,#2980b9);background-image:linear-gradient(to bottom,#3498db,#2980b9);border-radius:28px;font-family:Arial,sans-serif;color:#FFF;font-size:20px;padding:10px 20px;text-decoration:none;outline:0}.btn:hover{background:#3cb0fd;background-image:-webkit-linear-gradient(top,#3cb0fd,#3498db);background-image:-moz-linear-gradient(top,#3cb0fd,#3498db);background-image:-ms-linear-gradient(top,#3cb0fd,#3498db);background-image:-o-linear-gradient(top,#3cb0fd,#3498db);background-image:linear-gradient(to bottom,#3cb0fd,#3498db);text-decoration:none;cursor:pointer}.tem{opacity:0}.nope{opacity:0;cursor:pointer;font-size:x-large}</style>
- </head><body>
- <div id="main">
- <h1><i><b>€-JACKPOT</b></i></h1>
- <div id="l1" class="circleBase"><span id="n1"></span></div>
- <div id="l2" class="circleBase"><span id="n2"></span></div>
- <div id="l3" class="circleBase"><span id="n3"></span></div>
- <div id="l4" class="circleBase"><span id="n4"></span></div>
- <div id="l5" class="circleBase"><span id="n5"></span></div>
- <div class="puts"></div>
- <hr class="shr" />
- <div id="l6" class="circleBase" title="Star number"><span id="n6"></span></div>
- <div id="l7" class="circleBase" title="Star number"><span id="n7"></span></div>
- <div class="puts"></div><br /><br />
- <button id="nd" class="btn tem" onclick="newDraw()" disabled="disabled" title="Arvo omat € JACKPOT onnennumerosi">Arvo uudelleen</button>
- </div><br />
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
- <script>const lottery=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],lottery2=[1,2,3,4,5,6,7,8,9,10,11,12],sorter=[1,2,3,4,5],sorter2=[6,7],drawed=[],drawed2=[];var indeksi;shuffledLottery=lottery.sort((e,t)=>.5-Math.random());drawed.push(shuffledLottery[0]),(indeksi=lottery.indexOf(shuffledLottery[0]))>-1&&lottery.splice(indeksi,1);shuffledLottery=lottery.sort((e,t)=>.5-Math.random());drawed.push(shuffledLottery[0]),(indeksi=lottery.indexOf(shuffledLottery[0]))>-1&&lottery.splice(indeksi,1);shuffledLottery=lottery.sort((e,t)=>.5-Math.random());drawed.push(shuffledLottery[0]),(indeksi=lottery.indexOf(shuffledLottery[0]))>-1&&lottery.splice(indeksi,1);shuffledLottery=lottery.sort((e,t)=>.5-Math.random());drawed.push(shuffledLottery[0]),(indeksi=lottery.indexOf(shuffledLottery[0]))>-1&&lottery.splice(indeksi,1);shuffledLottery=lottery.sort((e,t)=>.5-Math.random());drawed.push(shuffledLottery[0]);drawed.sort(function(e,t){return e-t});shuffledLottery2=lottery2.sort((e,t)=>.5-Math.random());drawed2.push(shuffledLottery2[0]),(indeksi=lottery2.indexOf(shuffledLottery2[0]))>-1&&lottery2.splice(indeksi,1);shuffledLottery2=lottery2.sort((e,t)=>.5-Math.random());drawed2.push(shuffledLottery2[0]);drawed2.sort(function(e,t){return e-t});const num1=drawed[0],num2=drawed[1],num3=drawed[2],num4=drawed[3],num5=drawed[4],num6=drawed2[0],num7=drawed2[1];var shuffledSorted=sorter.sort((e,t)=>.5-Math.random()),shuffledSorted2=sorter2.sort((e,t)=>.5-Math.random());function jopasJotain(e){return 1==e?arpaluku=num1:2==e?arpaluku=num2:3==e?arpaluku=num3:4==e?arpaluku=num4:5==e?arpaluku=num5:6==e?arpaluku=num6:7==e&&(arpaluku=num7),arpaluku}function newDraw(){location.reload()}function nr1(){document.getElementById("n"+shuffledSorted[0]).innerText=jopasJotain(shuffledSorted[0]);$("#n"+shuffledSorted[0]).animate({fontSize:"64px"})}function nr2(){document.getElementById("n"+shuffledSorted[1]).innerText=jopasJotain(shuffledSorted[1]);$("#n"+shuffledSorted[1]).animate({fontSize:"64px"})}function nr3(){document.getElementById("n"+shuffledSorted[2]).innerText=jopasJotain(shuffledSorted[2]);$("#n"+shuffledSorted[2]).animate({fontSize:"64px"})}function nr4(){document.getElementById("n"+shuffledSorted[3]).innerText=jopasJotain(shuffledSorted[3]);$("#n"+shuffledSorted[3]).animate({fontSize:"64px"})}function nr5(){document.getElementById("n"+shuffledSorted[4]).innerText=jopasJotain(shuffledSorted[4]);$("#n"+shuffledSorted[4]).animate({fontSize:"64px"})}function nr6(){document.getElementById("n"+shuffledSorted2[0]).innerText=jopasJotain(shuffledSorted2[0]);$("#n"+shuffledSorted2[0]).animate({fontSize:"64px"})}function nr7(){document.getElementById("n"+shuffledSorted2[1]).innerText=jopasJotain(shuffledSorted2[1]),$("#n"+shuffledSorted2[1]).animate({fontSize:"64px"}),$("#nd").animate({opacity:1},1e3),$(".nope").animate({opacity:1},1e3),document.getElementById("nd").disabled=!1}$(document).ready(function(){setTimeout(function(){nr1()},1e3),setTimeout(function(){nr2()},3e3),setTimeout(function(){nr3()},5e3),setTimeout(function(){nr4()},7e3),setTimeout(function(){nr5()},9e3),setTimeout(function(){nr6()},11e3),setTimeout(function(){nr7()},13e3)})</script>
- <noscript>HUOM! Selaimesi ei tue JavaScriptiä, joten sivusto ei toimi täysin suunnitellusti.</noscript>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement