File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,30 +264,7 @@ <h2>Let's chat!</h2>
264264 < footer >
265265 < a href ="# "> Loved By BrianCodeDev ❤️</ a >
266266 </ footer >
267- < script >
268- // Get the button and popup elements
269- const button = document . querySelector ( '.navbar-button' ) ;
270- const popup = document . getElementById ( 'popup' ) ;
271-
272- // When button is clicked, show the popup with fade effect
273- button . addEventListener ( 'click' , function ( event ) {
274- event . preventDefault ( ) ; // Prevent the default action of the link
275-
276- // Display and fade in the popup
277- popup . style . display = 'block' ;
278- setTimeout ( ( ) => {
279- popup . style . opacity = 1 ;
280- } , 10 ) ; // Small delay to trigger transition
281-
282- // Hide the popup after 3 seconds
283- setTimeout ( ( ) => {
284- popup . style . opacity = 0 ;
285- setTimeout ( ( ) => {
286- popup . style . display = 'none' ;
287- } , 1000 ) ; // Hide the popup after the fade out
288- } , 3000 ) ; // 3 seconds before fading out
289- } ) ;
290- </ script >
267+
291268 < script src ="https://kit.fontawesome.com/31778849f3.js " crossorigin ="anonymous "> </ script >
292269 < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js " integrity ="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz " crossorigin ="anonymous "> </ script >
293270 </ body >
You can’t perform that action at this time.
0 commit comments