html
html
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
<!-- Created by Swapnil More-->
<!DOCTYPE html>
<html>
<head>
<title>Fingerprint Scanner</title>
</head>
<body>
<audio id="buzzer" src="http://ncscproject.esy.es/wrong.mp3"></audio>
<div id="rectangle1">
<div id="rectangle">
<div id="box"></div>
<img src="https://cdn.vox-cdn.com/thumbor/NC5USYLQloZMYgfRHgKk23b8q4E=/0x625:5000x4375/1200x800/filters:focal(0x625:5000x4375)/cdn.vox-cdn.com/uploads/chorus_image/image/50333269/fingerprint_ID_-strizh-.0.0.jpg" width="100" height="100" onmouseup="sound(),Alert.render()" ontouchend="sound(),Alert.render()"></div></div>
<div id="overlay"></div>
<div id="alertbox"><div>
<div id="head"></div>
<div id="body"></div>
<div id="foot"></div>
</div>
</div>
<script>
function sound(){
document.getElementById('buzzer').play();
}
function CustomAlert(){
this.render = function(){
var winW = window.innerWidth;
var winH = window.innerHeight;
var dialogoverlay = document.getElementById('overlay');
Enter to Rename, Shift+Enter to Preview
css
css
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
/* Created by Swapnil More */
body{
background:url("https://static.pexels.com/photos/277559/pexels-photo-277559.jpeg") no-repeat;
background-size:150vh;
background-color: #888888;
}
#rectangle {
width: 100px;
height: 100px;
border:1px solid black;
position: relative;
margin-top:4px;
margin-left:4px;
border-radius:5px;
}
#rectangle1 {
width: 110px;
height: 110px;
border:1px solid black;
background: black;
margin-left:350px;
position: relative;
margin-top:250px;
border-radius:5px;
}
#box {
width: 100px;
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
// Created by Swapnil More
// Challenge thread is in the comments section
alert("Plesse turn up your volume");
alert("In this picture you will see a door which looks normal but it opens if the fingerprint matches with the original.");
alert("Lets see what happens when you place your finger on scanner.");
// Created by Swapnil More
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run