-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (88 loc) · 3.12 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marquee Generator Web</title>
<link rel="icon" href="favicon-32x32.png" type="image/png">
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="app.js" defer></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');
/* Ensure the text uses the League Gothic font */
text {
font-family: 'League Gothic', sans-serif;
}
#overlayText {
position: absolute;
top: 65px; /* Adjust to position the text */
left: 60px;
z-index: 2; /* Ensure the text is in front of the SVG */
font-size: 24px;
color: rgb(252, 121, 121);
}
#generateButton {
position: absolute; /* Positioning the button over the canvas */
top: 3px;
left: 60px;
padding: 3px 7px; /* Add some padding to make the button larger */
z-index: 2; /* Ensure the text is in front of the SVG */
font-size: 16px;
font-weight: bold;
background-color: lightgray;
border: 2px solid gray;
border-radius: 4px; /* Optional rounded corners */
cursor: pointer;
box-shadow: 0 3px #3a3a39; /* 3D shadow effect */
transition: all 0.2s ease; /* Smooth hover transition */
}
/* Add this to the CSS */
#generateButton.active {
background-color: darkgray; /* Change button color when pressed */
transform: translateY(1px); /* Visual 'pressed' effect */
box-shadow: 0 2px black;
}
#groupIndexDisplay {
position: absolute;
top: 55px;
left: 250px;
z-index: 2;
font-size: 16px;
color: rgb(252, 121, 121);
}
#toggleAutoAdvanceCheckbox {
position: absolute;
top: 54px;
left: 208px;
z-index: 2;
font-size: 16px;
color: rgb(124, 60, 60);
background-color: gray;
}
#topicSelect {
position: absolute; /* Positioning the button over the canvas */
top: 35px;
left: 60px;
z-index: 2; /* Ensure the text is in front of the SVG */
font-size: 16px;
font-weight: bold;
}
#svgContainer {
position: relative;
}
</style>
</head>
<body>
<div id="svgContainer">
<h2 id="overlayText">Marquee Generator</h2>
<select id="topicSelect">
<option value="All">All</option>
<!-- Dynamic options will be added here in the JS code -->
</select>
<button id="generateButton">Generate New Marquee</button>
<span id="groupIndexDisplay">1</span>
<input type="checkbox" id="toggleAutoAdvanceCheckbox" checked>
<svg id="imageCanvas" width="1344" height="768"></svg>
</div>
</body>
</html>