[JavaScript] Magic Trick by Valentino - PHP / JS / CSS JAVA - GAMELIFE România Jump to content

Recommended Posts

  • Members
Posted (edited)

Salutare, 
 

	<html>
<head>
	    <script type="text/javascript" src="script.js"></script>
    <title>Magicianul Valentino - Iti voi ghici la orice numar te gandesti</title>
    
    <script>
    alert("M-am gandit ca o sa accesezi acest site de curiozitate.");
    
var kj = 0;
function Direction(Choice){
// The choice of the first buttons 
    if(Choice == "okay"){
        document.getElementById("result").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br>Va vedeti numarul mai jos? <br><pre>17  25  30  22<br><br>23  31  16  29<br><br>19  27  20  24<br><br>26  21  28  18</pre>";
        document.getElementById('okay').style.display = 'none';
                document.getElementById("result").style.display = 'inline';
        document.getElementById('yes').style.display = 'inline';
        document.getElementById("no").style.display = 'inline';
    }
}
        
function Direction2(Choice){
	if(Choice == 'yes'){ kj+=16;}        
            document.getElementById("result2").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br>Ce zici aici? <br><pre> 7   2  10  15<br><br>23  18  31  26<br><br> 3  27  11  19<br><br> 6  30  14  22</pre>";
        document.getElementById('yes').style.display = 'none';
        document.getElementById("no").style.display = 'none';
        document.getElementById("result2").style.display = 'inline';
        document.getElementById('yes2').style.display = 'inline';
             document.getElementById('no2').style.display = 'inline';
}
	function Direction3(Choice){
if(Choice == 'yes2'){ kj+=2;}
            document.getElementById("result3").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br>Trebuie sa fii sigur. Vezi numarul asta aici? <br><pre>24  12   8  28<br><br> 9  30  10  29<br><br>25  15  13  27<br><br>31  26  11  14</pre>";
        document.getElementById('yes2').style.display = 'none';
        document.getElementById("no2").style.display = 'none';
        document.getElementById("result3").style.display = 'inline';
        document.getElementById('yes3').style.display = 'inline';
             document.getElementById('no3').style.display = 'inline';  
        
}
	function Direction4(Choice){
if(Choice == 'yes3'){ kj+=8;}
            document.getElementById("result4").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br>Aproape am terminat, prietene. Numarul dvs. este aici? <br><pre>31   1   7  25<br><br>23   9  15  17<br><br>29   3  11  27<br><br>21   5  13  19</pre>";
        document.getElementById('yes3').style.display = 'none';
        document.getElementById("no3").style.display = 'none';
        document.getElementById("result4").style.display = 'inline';
        document.getElementById('yes4').style.display = 'inline';
             document.getElementById('no4').style.display = 'inline';  
        
}     
	function Direction5(Choice){
if(Choice == 'yes4'){ kj+=1;}
            document.getElementById("result5").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br> In cele din urma, vedeti numarul dvs. de mai jos? <br><pre>20  28  12   4<br><br> 5  31  21  29<br><br>13   6  22  30<br><br> 7  14  23  15</pre>";
        document.getElementById('yes4').style.display = 'none';
        document.getElementById("no4").style.display = 'none';
        document.getElementById("result5").style.display = 'inline';
        document.getElementById('yes5').style.display = 'inline';
             document.getElementById('no5').style.display = 'inline';  
        
} 
	function Direction6(Choice){
if(Choice == 'yes5'){ kj+=4;}
            document.getElementById("result6").innerHTML = "<center>~~~~~~~~~~~~~~~~<br><br><h4>Numarul tau este "+kj+"</h4><br>Sunt un maestru mai mare ca DEXTER!!!";
        document.getElementById('yes5').style.display = 'none';
        document.getElementById("no5").style.display = 'none';
        document.getElementById("result6").style.display = 'inline'; 
        
}      
    </script>
</head>
	<body>
    <h1 align="center">Valentino Magic Abracadabra</h1>
    <h1 align="center"> GameLife Romania</h1>
    
    <style>
    h1{
    font-family: Roboto;
    text-align: center;
    font-size: 100px;
}
	div{
    font-family: roboto;
    text-align: center;
    font-size: 30px;
}
	button {
  border-radius: 30px;
  font-family: Roboto;
  color: #ffffff;
  font-size: 20px;
  background: mediumvioletred;
  padding: 10px 20px 10px 20px;
}
	body {
    background-color: papayawhip;
}
	    </style>
<div>
    <p>Inainte de a incepe, alegeti un numar intre 0 si 31.</p>
</div>
	<div id="result"></div>
<div id="result2"></div>
<div id="result3"></div>
<div id="result4"></div>
<div id="result5"></div>
<div id="result6"></div>
	<hr width="340px" />
<br>
<div>
    <button id="okay"  onclick="Direction('okay')">Bine frate!</button>
</div>
<!-- the first buttons run the function Direction() when clicked --> 
	<div>
    <button id="yes" style="display: none" onclick="Direction2('yes')">DA</button>
    <button id="no" style="display: none" onclick="Direction2('no')">NO</button>
</div>
	<div>
    <button id="yes2" style="display: none" onclick="Direction3('yes2')">DA</button>
    <button id="no2" style="display: none" onclick="Direction3('no2')">NO</button>
</div>
	<div>
    <button id="yes3" style="display: none" onclick="Direction4('yes3')">DA</button>
    <button id="no3" style="display: none" onclick="Direction4('no3')">NO</button>
</div>
	
<div>
    <button id="yes4" style="display: none" onclick="Direction5('yes4')">DA</button>
    <button id="no4" style="display: none" onclick="Direction5('no4')">NO</button>
</div>
	
<div>
    <button id="yes5" style="display: none" onclick="Direction6('yes5')">DA</button>
    <button id="no5" style="display: none" onclick="Direction6('no5')">NO</button>
</div>
	
</body>
</html>
	
Edited by BeNy gL
  • Like 1
  • Haha 1

Salutare, pentru website-uri PM.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...

Important Information