-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
79 lines (69 loc) · 2.77 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Services</title>
<link rel="stylesheet" href="./css/new.css?v=1.0">
<!-- <link rel="stylesheet" href="./css/nav.css?v=1.0"> -->
<link rel="stylesheet" href="./css/responsive.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!-- Stylesheets --><!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Font Awesome Official CDN --><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-NvKbDTEnL+A8F/AA5Tc5kmMLSJHUO868P+lDtTpJIeQdGYaUIuLr4lVGOEA1OcMy" crossorigin="anonymous">
<!-- Google fonts -->
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Auto refresh 5 sec -->
<!-- <meta http-equiv="refresh" content="5"> -->
<style>
/* Scroll to Top Button */
.scroll-top {
position: fixed;
bottom: 20px;
right: 20px;
display: none;
background-color: #6B46C1;
color: white;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 1000;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.scroll-top i {
font-size: 20px;
}
.scroll-top:hover {
background-color:rgb(243, 126, 151);
}
</style>
</head>
<body>
<?php include './new nav.php'; ?>
<!-- Scroll to Top Button -->
<div class="scroll-top" id="scroll-top">
<ion-icon name="chevron-up-outline"></ion-icon>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
// Show/Hide Scroll-to-Top Button
const scrollTopButton = document.getElementById('scroll-top');
window.addEventListener('scroll', () => {
if (window.scrollY > 300) {
scrollTopButton.style.display = 'flex'; // Show button
} else {
scrollTopButton.style.display = 'none'; // Hide button
}
});
// Scroll to Top Action
scrollTopButton.addEventListener('click', () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
</script>
</body>
</html>