-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbutton2website.html
44 lines (39 loc) · 1.4 KB
/
button2website.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
}
.fancy-button {
background-color: #d60f0f; /* Button color */
color: rgb(255, 255, 255); /* Text color */
padding: 15px 30px; /* Padding */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
font-size: 16px; /* Font size */
cursor: pointer; /* Pointer cursor on hover */
transition: background 0.3s, transform 0.2s; /* Transition effects */
}
.fancy-button:hover {
background-color: #2988ee; /* Darker shade on hover */
transform: scale(1.05); /* Slightly enlarge on hover */
}
</style>
</head>
<body>
<button class="fancy-button" id="myButton">أضغت هنا لفتح الطتبيق</button>
<script>
document.getElementById('myButton').onclick = function() {
window.open('http://127.0.0.1:5500/subject.html'); // Change the URL to your desired link
};
</script>
</body>
</html>