@@ -91,45 +91,35 @@ <h2>Pick A Game Mode</h2>
91
91
</ main >
92
92
93
93
< footer >
94
- < a href ="https://sb-designs.gitbook.io/trackle ">
95
- < button
96
- class ="styled-button "
97
- style ="background-color: #9A114F "
98
- onmouseover ="this.style.backgroundColor='#54092b'; "
99
- onmouseout ="this.style.backgroundColor='#9A114F'; ">
100
- 🗨️ Blog
101
- </ button >
102
- </ a >
103
- < a href ="https://sbdesigns.pages.dev ">
104
- < button
105
- class ="styled-button "
106
- style ="background-color: #9A114F "
107
- onmouseover ="this.style.backgroundColor='#54092b'; "
108
- onmouseout ="this.style.backgroundColor='#9A114F'; "
109
- >
110
- 🖱️ SB Designs
111
- </ button >
112
- </ a >
113
- < a href ="https://github.com/SB-Designs/Trackle ">
114
- < button
115
- class ="styled-button "
116
- style ="background-color: #9A114F "
117
- onmouseover ="this.style.backgroundColor='#54092b'; "
118
- onmouseout ="this.style.backgroundColor='#9A114F'; "
119
- >
120
- 📑 Source Code
121
- </ button >
122
- </ a >
123
- < a href ="https://tally.so/r/31bK4p ">
124
- < button
125
- class ="styled-button "
126
- style ="background-color: #9A114F "
127
- onmouseover ="this.style.backgroundColor='#54092b'; "
128
- onmouseout ="this.style.backgroundColor='#9A114F'; "
129
- >
130
- 👍 Join Trackle™️
131
- </ button >
132
- </ a > < br >
94
+ < button
95
+ class ="styled-button "
96
+ id ="exploreMoreButton "
97
+ style ="background-color: #9A114F; "
98
+ onmouseover ="this.style.backgroundColor='#54092b'; "
99
+ onmouseout ="this.style.backgroundColor='#9A114F'; "
100
+ >
101
+ 🌟 Explore More
102
+ </ button >
103
+
104
+ <!-- Popup Modal -->
105
+ < div id ="exploreModal " class ="modal ">
106
+ < div class ="modal-content ">
107
+ < span id ="closeModal " class ="close-btn "> ×</ span >
108
+ < a href ="https://sb-designs.gitbook.io/trackle ">
109
+ < button class ="styled-button "> 🗨️ Blog</ button >
110
+ </ a >
111
+ < a href ="https://sbdesigns.pages.dev ">
112
+ < button class ="styled-button "> 🖱️ SB Designs</ button >
113
+ </ a >
114
+ < a href ="https://github.com/SB-Designs/Trackle ">
115
+ < button class ="styled-button "> 📑 Source Code</ button >
116
+ </ a >
117
+ < a href ="https://tally.so/r/31bK4p ">
118
+ < button class ="styled-button "> 👍 Join Trackle™️</ button >
119
+ </ a >
120
+ </ div >
121
+ </ div >
122
+ < br >
133
123
< p >
134
124
< b > Trackle™️ © SB Designs 2024</ b > < br /> The name Trackle and its
135
125
logo are trademarks of SB Designs.< br /> Thanks to TfL for the roundel, line names, etc.< br > Trackle™️ is not affiliated with TfL or any other transport providers.< br > Version 3.0.1
@@ -179,6 +169,29 @@ <h2>Pick A Game Mode</h2>
179
169
// Listen for changes in theme preference
180
170
window . matchMedia ( "(prefers-color-scheme: dark)" ) . addEventListener ( "change" , updateThemeColor ) ;
181
171
</ script >
172
+ < script > document . addEventListener ( "DOMContentLoaded" , ( ) => {
173
+ const exploreButton = document . getElementById ( "exploreMoreButton" ) ;
174
+ const exploreModal = document . getElementById ( "exploreModal" ) ;
175
+ const closeModal = document . getElementById ( "closeModal" ) ;
176
+
177
+ // Show modal when "Explore More" is clicked
178
+ exploreButton . addEventListener ( "click" , ( ) => {
179
+ exploreModal . style . display = "block" ;
180
+ } ) ;
181
+
182
+ // Hide modal when "X" button is clicked
183
+ closeModal . addEventListener ( "click" , ( ) => {
184
+ exploreModal . style . display = "none" ;
185
+ } ) ;
186
+
187
+ // Hide modal when clicking outside the modal content
188
+ window . addEventListener ( "click" , ( event ) => {
189
+ if ( event . target === exploreModal ) {
190
+ exploreModal . style . display = "none" ;
191
+ }
192
+ } ) ;
193
+ } ) ;
194
+ </ script >
182
195
< script src ="pwa-install.js " defer > </ script >
183
196
184
197
0 commit comments