-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdzemre-detector.html
130 lines (127 loc) · 4.62 KB
/
dzemre-detector.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<html xmlns="http://www.w3.org/1999/xhtml">
<meta charset=utf-8>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Džemre detector</title>
<link rel="icon" href="favicon.ico" type="image/png" />
<link href="https://fonts.googleapis.com/css?family=Princess+Sofia&display=swap" rel="stylesheet">
</head>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
crossorigin="anonymous">
</script>
<body>
<div class="main">
<h1>
<span>Džemre detector</span>
</h1>
<div>
<p><span>To find out if today is džemre day, click the button below</span></p>
<button>Click</button>
</div>
</div>
</body>
</html>
<style>
body {
margin-top: 50px;
background-image: url("backgroundx.jpg");
background-repeat: repeat;
text-align: center;
}
span {
background-color: rgba(255, 255, 255, 0.3);
}
h1 {
-webkit-text-stroke: 0.5px white;
font-family: 'Princess Sofia';
color: black;
font-weight: bolder;
font-size: 100px;
}
p {
-webkit-text-stroke: 0.5px white;
font-family: 'Princess Sofia';
color: black;
font-weight: bolder;
font-size: 70px;
}
button {
position: relative;
display: inline-block;
cursor: pointer;
outline: none;
border: 0;
vertical-align: middle;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: 600;
color: #382b22;
text-transform: uppercase;
padding: 1.25em 2em;
background: #fff0f0;
border: 2px solid #b18597;
border-radius: 0.75em;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transition: background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
transition: background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}
button::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #f9c4d2;
border-radius: inherit;
box-shadow: 0 0 0 2px #b18597, 0 0.625em 0 0 #ffe3e2;
-webkit-transform: translate3d(0, 0.75em, -1em);
transform: translate3d(0, 0.75em, -1em);
-webkit-transition: box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
transition: box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}
button:hover {
background: #ffe9e9;
-webkit-transform: translate(0, 0.25em);
transform: translate(0, 0.25em);
}
button:hover::before {
box-shadow: 0 0 0 2px #b18597, 0 0.5em 0 0 #ffe3e2;
-webkit-transform: translate3d(0, 0.5em, -1em);
transform: translate3d(0, 0.5em, -1em);
}
button:active {
background: #ffe9e9;
-webkit-transform: translate(0em, 0.75em);
transform: translate(0em, 0.75em);
}
button:active::before {
box-shadow: 0 0 0 2px #b18597, 0 0 #ffe3e2;
-webkit-transform: translate3d(0, 0, -1em);
transform: translate3d(0, 0, -1em);
}
</style>
<script>
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0');
$('button').on('click', function () {
$('.main').empty();
if((dd == '19' && mm == '02') || (dd == '26' && mm == '02') || (dd == '05' && mm == '03')) {
$('.main').append('<p><span>Yes Mašallah, today is Džemre day indeed!</span></p>')
}
else {
$('.main').append('<p><span>Awww dang, today is not a Džemre day unfortunately :((((</span></p>')
}
})
</script>