The Safe of Mystery
How do I make an the safe of mystery?
What is a the safe of mystery? How do you make a the safe of mystery? This script and codes were developed by James Podles on 23 November 2022, Wednesday.
The Safe of Mystery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>The Safe of Mystery</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { box-sizing:border-box; margin:0;padding:0; font-family:'Helvetica', sans-serif;
}
body { background-color:#DAD7D4;
}
h1 {text-align:center;width:100%;}
.container { width: 300px; height: 300px; position: relative; perspective: 1000px; margin-left:35%; margin-top:5%;
}
#safe { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d;
}
#safe .side { width: 300px; height: 300px; display: block; position: absolute; background-color:#4A5151;
}
#safe .front { transform: rotateY( 0deg ) translateZ( 150px ); }
#safe .back { transform: rotateX( 180deg ) translateZ( 150px ); }
#safe .right { transform: rotateY( 90deg ) translateZ( 150px ); }
#safe .left { transform: rotateY( -90deg ) translateZ( 150px);}
#safe .top { transform: rotateX( 90deg ) translateZ( 150px);}
#safe .bottom { transform: rotateX( -90deg ) translateZ( 150px);}
#safe .side {border:1px solid grey;}
#safe { transform: translateZ( -100px )rotateX(-20deg) rotatey(-25deg); }
.keypad { position:relative; z-index:3; padding:5px; width:120px; height:110px; border:1px solid black; margin-top:25%; margin-left:50%; background-color:white;
}
ol li { list-style-type:none; display:inline-block; width:30%; text-align:center; border:1px solid black; margin-bottom:2px;
}
ol li:hover { cursor:pointer;
}
ol li:active { background-color:black; color:white;
}
section.results { width:100%; clear:both; margin-top:10%; text-align:center; font-size:1.5em;
}
span.results{ display:none;
}
#wrong,#right { font-size:3em; text-align:center; display:none;
}
#wrong { color:red;
}
.open { transform-origin:-10%; height: 120% !important; top: 40px; width: 120% !important; left: -39px; transform-style:preserve3d;
}
.treasure { display:none; position:absolute; top: 80%; left: 31%;
}
.treasure > div { position:absolute;
}
.treasure > div:nth-child(1){ left:25px; top:10px;
}
.treasure > div:nth-child(2){ left:-40px; top:25px;
}
.treasure > div:nth-child(3){ left:4px; top:30px;
}
.treasure > div:nth-child(4){
left: 40px;
top: -20px;
}
.treasure > div:nth-child(5){
top: -10px;
left: -10px;
}
.coin { width:50px; height:50px; background-color:#FFD700; border-radius:25px; box-shadow:1px 1px 2px black;
}
.hints { text-align:center;
}
#hint { margin:10px auto;
}
#anotherHint { display:none;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <h1>The Safe of Mystery</h1>
<section class="container"> <div id="safe"> <div class="front side"> <div class="keypad"><ol class="keys"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> <li>8</li> <li>9</li> <li>0</li> </ol></div></div> <div class="back side"></div> <div class="right side"></div> <div class="left side"></div> <div class="top side"></div> <div class="bottom side"></div> </div> <div class="treasure"> <div class="coin"> </div> <div class="coin"> </div> <div class="coin"> </div> <div class="coin"> </div> <div class="coin"> </div> </div>
</section>
<section class="results"> <span class="results">You have entered:</span> <span id="entered"></span>
</section>
<div class="hints">
<button id="hint">Get a hint</button>
<button id="anotherHint">Get another hint</button>
</div>
<div id="wrong"> <span>Nope! Try Again.</span>
</div>
<div id="right"> <span>Treasure!!!</span>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
The Safe of Mystery - Script Codes CSS Codes
* { box-sizing:border-box; margin:0;padding:0; font-family:'Helvetica', sans-serif;
}
body { background-color:#DAD7D4;
}
h1 {text-align:center;width:100%;}
.container { width: 300px; height: 300px; position: relative; perspective: 1000px; margin-left:35%; margin-top:5%;
}
#safe { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d;
}
#safe .side { width: 300px; height: 300px; display: block; position: absolute; background-color:#4A5151;
}
#safe .front { transform: rotateY( 0deg ) translateZ( 150px ); }
#safe .back { transform: rotateX( 180deg ) translateZ( 150px ); }
#safe .right { transform: rotateY( 90deg ) translateZ( 150px ); }
#safe .left { transform: rotateY( -90deg ) translateZ( 150px);}
#safe .top { transform: rotateX( 90deg ) translateZ( 150px);}
#safe .bottom { transform: rotateX( -90deg ) translateZ( 150px);}
#safe .side {border:1px solid grey;}
#safe { transform: translateZ( -100px )rotateX(-20deg) rotatey(-25deg); }
.keypad { position:relative; z-index:3; padding:5px; width:120px; height:110px; border:1px solid black; margin-top:25%; margin-left:50%; background-color:white;
}
ol li { list-style-type:none; display:inline-block; width:30%; text-align:center; border:1px solid black; margin-bottom:2px;
}
ol li:hover { cursor:pointer;
}
ol li:active { background-color:black; color:white;
}
section.results { width:100%; clear:both; margin-top:10%; text-align:center; font-size:1.5em;
}
span.results{ display:none;
}
#wrong,#right { font-size:3em; text-align:center; display:none;
}
#wrong { color:red;
}
.open { transform-origin:-10%; height: 120% !important; top: 40px; width: 120% !important; left: -39px; transform-style:preserve3d;
}
.treasure { display:none; position:absolute; top: 80%; left: 31%;
}
.treasure > div { position:absolute;
}
.treasure > div:nth-child(1){ left:25px; top:10px;
}
.treasure > div:nth-child(2){ left:-40px; top:25px;
}
.treasure > div:nth-child(3){ left:4px; top:30px;
}
.treasure > div:nth-child(4){
left: 40px;
top: -20px;
}
.treasure > div:nth-child(5){
top: -10px;
left: -10px;
}
.coin { width:50px; height:50px; background-color:#FFD700; border-radius:25px; box-shadow:1px 1px 2px black;
}
.hints { text-align:center;
}
#hint { margin:10px auto;
}
#anotherHint { display:none;
}
The Safe of Mystery - Script Codes JS Codes
$('li').click(function(){ var code = '26467'; var number = $(this).text(); $('span.results').show(); $('#wrong').hide(); $('#entered').append(number); var enteredLength = $('#entered').text().length; var entered = $('#entered').text(); if (enteredLength == 5 && entered === code) { $('#entered').empty(); $('.keypad').delay( 400 ).fadeOut(0); $('.front').addClass('open').animate({ borderSpacing: -180 }, { step: function(now,fx) { $(this).css('transform','rotateY('+ now +'deg)'); }, duration:1000},'linear'); $('span.results').hide(); $('#right').show(); $('#hint,#anotherhint').hide(); $('.treasure').fadeIn(2000); } if (enteredLength == 5 && entered !== code) { $('#wrong').show(); $('span.results').hide(); $('#entered').empty(); }
});
$('#hint').click(function(){ alert('I\'\ll take "Things You Find in a Safe" for 400, Alex.'); $('#hint').hide(); $('#anotherHint').show();
});
$('#anotherHint').click(function(){ alert('Ask your phone.'); $('#hint').show(); $('#anotherHint').hide();
});
Developer | James Podles |
Username | jpod |
Uploaded | November 23, 2022 |
Rating | 3.5 |
Size | 4,010 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Photo Grid | 2,351 Kb |
Soft Progress bar | 3,431 Kb |
Flyer-flip | 3,641 Kb |
LED Social Icons | 2,999 Kb |
SoundCloud CoverFlow | 3,430 Kb |
PracticeIO Circle Fan Menu | 2,272 Kb |
PracticeIO Click Counter | 4,019 Kb |
Envelope Email Form | 4,653 Kb |
PracticeIO Cello | 2,675 Kb |
Adaptive Text Color | 2,874 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
Flat UI Button | Honchoman | 2,289 Kb |
Minimelephant | Smashlee | 2,507 Kb |
Hexagons | Ashmind | 4,360 Kb |
Video Player Custom Controls | EleftheriaBatsou | 3,665 Kb |
CSS Dynamic Width Square Div | Elleestcrimi | 2,861 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!