Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Name the celebrities</title>
- </head>
- <style>
- h1{
- font-family:;
- font-weight: bold;
- font-size:700%;
- color: white;
- position: absolute;left:32%;top: 40%;
- display:block;
- }
- body{
- background: url(https://roadtovrlive-5ea0.kxcdn.com/wp-content/uploads/2016/08/new-retro-arcade-neon-launch-8.jpg);
- background-size: cover;
- overflow:hidden;
- color:white;
- font-family: monospace;
- }
- #beam{
- width: 50px;
- height: 20px;
- background-color:white;
- animation: 60s;
- }
- #restart{
- display:none;
- color: #DA33FF;
- }
- .but{
- background-color:inherit;
- position: absolute; top:90%;left:87%;
- width:17%;
- height: 25%;
- border-radius:10px;
- border: 3px solid white;
- font-weight: bolder;
- transform: skewX(-15deg);
- font-family: 'Poppins', sans-serif;
- color:white;
- font-size:30px;
- opacity: 0.8;
- transition: 0.5s;
- }.but:hover{
- background-color:black;opacity: 1;text-decoration: underline;
- }
- ul{
- background-color:none;
- position: absolute;left:29%;top:25%;
- width:40%;height:40%;
- display: none;
- border-radius:15px;
- }
- img{
- width:483px;
- height:395px;
- border-radius: 40px;
- margin-left:17.55%;
- margin-top:-170px;
- }
- h4{
- color:white;
- }
- input{
- color:white;
- width:70%;
- height: 25%;
- background-color: inherit;
- box-shadow: 0px 0px 40px white;
- border:none;
- position: absolute;top:90%;left:15%;
- font-size: 60px;
- font-weight: bolder;
- animation: 2s infinite ;
- animation-name: glow;
- transform: skewX(-15deg);
- border-radius:10px;
- }
- .answer{
- font-size: 50px;
- position:absolute;left: 40%;top:53%;
- }
- .start{
- border:none;
- background-color:innerhit;
- width:0;height:0;
- animation: 2s infinite ;
- animation-name: glow;
- }
- @keyframes glow {
- 0%{text-shadow: 0px 0px 20px #DA33FF;}
- 50%{text-shadow: 0px 0px 40px #DA33FF;}
- 100%{text-shadow: 0px 0px 20px #DA33FF;}
- }
- @keyframes glow2 {
- 0%{text-shadow: 0px 0px 40px hsla(211, 39%, 85%, 0.589);}
- 50%{text-shadow: 0px 0px 60px rgb(63, 119, 223);}
- 100%{text-shadow: 0px 0px 40px rgb(63, 119, 223);}
- }
- .point{
- font-size: 50px;
- position:absolute;left: 50%;top:-70%;
- }
- </style>
- <body id="back">
- <div id='beam'></div>
- <button onclick="time()" class="start" id="headline"><h1 id="head">Press to Start</h1></button>
- <button onclick="location.reload()" id="restart"><h1 id="ending">Press to Restart</h1></button>
- <h2 id="end"></h2>
- <ul id="ab">
- <h4 id="quest1"></h4>
- <p id="points" class="point"></p>
- <p id='pic'></p>
- <input type="text" id="inp" value="">
- <button class="but" onclick="row()" id="sub">Next</button>
- <button class="but" style="display: none;" onclick="row2()" id="sub2">Next</button>
- <button class="but" style="display: none;" onclick="row3()" id="sub3">Next</button>
- <button class="but" style="display: none;" onclick="row4()" id="sub4">Next</button>
- <button class="but" style="display: none;" onclick="row5()" id="sub5">Next</button>
- <button class="but" style="display: none;" onclick="row6()" id="sub6">Next</button>
- <button class="but" style="display: none;" onclick="row7()" id="sub7">Next</button>
- <button class="but" style="display: none;" onclick="row8()" id="sub8">Next</button>
- <button class="but" style="display: none;" onclick="row9()" id="sub9">Next</button>
- <p class="answer" id="wor"></p>
- </ul>
- <script>
- function time() {
- x = 0;
- y = x;
- document.getElementById('points').innerHTML=x;
- document.getElementById('headline').style="display:none;";
- document.getElementById('ab').style="display:block;";
- document.getElementById('back').style="background:url(https://wallpaperplay.com/walls/full/1/d/5/168488.jpg);background-size:cover;";
- document.getElementById('pic').innerHTML=quest[0];
- var elem = document.getElementById('beam');
- var width = 0;
- var id = setInterval(frame,70);
- function frame() {
- if(width == 1920){
- clearInterval(id);
- document.getElementById('restart').style="display:block;";
- document.getElementById('ab').style="display:none;";
- document.getElementById('back').style="background:url(https://d2v9y0dukr6mq2.cloudfront.net/video/thumbnail/VGiBmTeaeilt7mgjb/game-over-retro-arcade-digital-blue-basic_4cvh-t7al__F0000.png);background-size:cover;";
- document.getElementById('ending').style=" position: absolute;left:35%;top: 60%;font-size:500%;animation: glow2 2s infinite;color:hsla(211, 39%, 85%, 0.589);";
- }else{
- width++;
- elem.style.width = width + "px";
- }
- }
- }
- function row() {
- var text = document.getElementById('inp').value;
- if (text =="Elvis Presley"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub').style="display:none;";
- document.getElementById('sub2').style="display:block";
- document.getElementById('pic').innerHTML=quest[1];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row2() {
- var text = document.getElementById('inp').value;
- if (text =="Travis Scott"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub2').style="display:none;";
- document.getElementById('sub3').style="display:block";
- document.getElementById('pic').innerHTML=quest[2];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row3() {
- var text = document.getElementById('inp').value;
- if (text =="Marshmello"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub3').style="display:none;";
- document.getElementById('sub4').style="display:block";
- document.getElementById('pic').innerHTML=quest[3];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row4() {
- var text = document.getElementById('inp').value;
- if (text =="Tom Brady"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub4').style="display:none;";
- document.getElementById('sub5').style="display:block";
- document.getElementById('pic').innerHTML=quest[4];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row5() {
- var text = document.getElementById('inp').value;
- if (text =="Johnny Depp"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub5').style="display:none;";
- document.getElementById('sub6').style="display:block";
- document.getElementById('pic').innerHTML=quest[5];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row6() {
- var text = document.getElementById('inp').value;
- if (text =="George Clooney"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub6').style="display:none;";
- document.getElementById('sub7').style="display:block";
- document.getElementById('pic').innerHTML=quest[6];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row7() {
- var text = document.getElementById('inp').value;
- if (text =="Zac Efron"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub7').style="display:none;";
- document.getElementById('sub8').style="display:block";
- document.getElementById('pic').innerHTML=quest[7];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row8() {
- var text = document.getElementById('inp').value;
- if (text =="Dwayne Johnson"){
- document.getElementById('wor').innerHTML="richtig";
- document.getElementById('sub8').style="display:none;";
- document.getElementById('sub9').style="display:block";
- document.getElementById('pic').innerHTML=quest[8];
- x = x +1;
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- function row9() {
- var text = document.getElementById('inp').value;
- if (text =="Jimmy Kimmel"){
- document.getElementById('ab').style="display:none;";
- document.getElementById('back').style="background:url(https://ak7.picdn.net/shutterstock/videos/34233727/thumb/1.jpg);background-size:cover;";
- document.getElementById('ending').style=" position: absolute;left:35%;top: 60%;font-size:500%;animation: glow2 2s infinite;color:hsla(211, 39%, 85%, 0.589);";
- x = x +1;
- document.getElementById('restart').style="display:block;";
- document.getElementById('points').innerHTML=x;
- } else {
- document.getElementById('wor').innerHTML="falsch";
- }
- }
- var quest =["<img src='http://emmepress.com/wp-content/uploads/2018/04/ELvisPresley_Artista-e1522872529586.jpg'>",
- "<img src='https://www.grammy.com/sites/com/files/styles/image_landscape_hero/public/travisscott-hero.jpg?itok=jY2e8leu'>",
- "<img src='https://wallpapersite.com/images/wallpapers/marshmello-3000x2000-music-producer-dj-hd-3167.jpg'>",
- "<img src='https://cdn-s3.si.com/s3fs-public/2017/02/05/tom-brady-best-super-bowl-performances.jpg'>",
- "<img src='https://www.grazia-magazin.de/sites/default/files/styles/bildstrecke_large/public/media/gallery/2017-06-20/johnnydepp.finanzilleprobleme.jpg'>",
- "<img src='https://fortunedotcom.files.wordpress.com/2018/08/george-clooney-net-worth-tequila.jpg'>",
- "<img src='https://www.miss.at/wp-content/uploads/2018/07/GettyImages-690160138-1024x683.jpg'>",
- "<img src='https://i0.web.de/image/996/32923996,pd=2/dwayne-johnson-the-rock.jpg'>",
- "<img src='https://media.newyorker.com/photos/59c3e4d2c6b56222ba2239ea/master/w_727,c_limit/Crouch-Jimmy-Kimmel-Healthcare-Crusader.jpg'>",
- ];
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement