-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin.php
47 lines (35 loc) · 1.08 KB
/
spin.php
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
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="spinner" style="display:none;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 15;
background: rgba(0,0,0,0.8) center no-repeat;
text-align:center;
"><h1 style="color:white; margin-top:25%;"><i class="fa fa-refresh fa-circle-notch fa-spin" aria-hidden="true"></i>
</h1>
</div>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$database = "db";
?>
<script>
$(document).ready(function () {
$("a, :submit").click(function(){
$(".spinner").css("display","block");
setTimeout(function() { //calls click event after a certain time
$(".spinner").css("display","none");
}, 5000);
});
});
</script>
</body>
</html>