@@ -3881,21 +3881,16 @@ <h2>Exclusive Deals and Offers!</h2>
3881
3881
3882
3882
document . getElementById ( "progressBar" ) . style . width = scrollPercent + "%" ;
3883
3883
}
3884
-
3885
- </ script >
3886
- < style >
3887
- .popup {
3888
- position : fixed;
3889
- top : 0 ;
3890
- left : 0 ;
3891
- width : 100% ;
3892
- height : 100% ;
3893
- background-color : rgba (24 , 23 , 24 , 0.5 );
3894
- display : flex;
3895
- justify-content : center;
3896
- align-items : center;
3897
- z-index : 1000 ;
3898
- }
3884
+ . custom - alert p {
3885
+ /* white color text on black background will look nice */
3886
+ color :white ;
3887
+ margin: 0 ;
3888
+ line - height : 1.5 ;
3889
+ }
3890
+ </style >
3891
+ < script src = "script.js" >
3892
+ document.getElementById('newsletter-form').addEventListener('submit', function (e) {
3893
+ e . preventDefault ( ) ; // Prevent the default form submission
3899
3894
3900
3895
. popup - content {
3901
3896
background - color : white ;
@@ -3955,55 +3950,8 @@ <h2>Exclusive Deals and Offers!</h2>
3955
3950
< script > window . gtranslateSettings = { "default_language" : "en" , "detect_browser_language" : true , "wrapper_selector" : ".gtranslate_wrapper" } </ script >
3956
3951
< script src ="https://cdn.gtranslate.net/widgets/latest/float.js " defer > </ script >
3957
3952
3958
-
3959
- < script >
3960
- main
3961
- // coordinates for the cursor :
3962
- const coords = { x : 0 , y : 0 } ;
3963
- const circles = document . querySelectorAll ( ".circle" ) ;
3964
-
3965
- const colors = [
3966
- "#fc5720" , "#fc6532" , "#fc6532" , "#fd8b65" , "#d5585c" , "#fac3b1" , "#f4d5cb" , "#fefefe" , "#fefefe" , "#cdf2c5" , "#b2eca5" , "#95e283" , "#7dda68" , "#4adc2d" , "#69d451" , "#54c939" , "#34b916" , "#28b309" , "#1e9c02" ,
3967
- ] ;
3968
-
3969
- circles . forEach ( function ( circle , index ) {
3970
- circle . x = 0 ;
3971
- circle . y = 0 ;
3972
- circle . style . backgroundColor = colors [ index % colors . length ] ;
3973
- } ) ;
3974
-
3975
- // update the coordinates when the mouse moves:
3976
- window . addEventListener ( "mousemove" , function ( e ) {
3977
- coords . x = e . clientX ;
3978
- coords . y = e . clientY ;
3979
- } ) ;
3980
-
3981
- // animation function to move the circles:
3982
- function animateCircles ( ) {
3983
- let x = coords . x ;
3984
- let y = coords . y ;
3985
-
3986
- circles . forEach ( function ( circle , index ) {
3987
-
3988
-
3989
- circle . style . left = x - 12 + "px" ;
3990
- circle . style . top = y - 12 + "px" ;
3991
- circle . style . scale = ( circles . length - index ) / circles . length ;
3992
-
3993
- circle . x = x ;
3994
- circle . y = y ;
3995
-
3996
- const nextCircle = circles [ index + 1 ] || circles [ 0 ] ;
3997
- x += ( nextCircle . x - x ) * 0.3 ;
3998
- y += ( nextCircle . y - y ) * 0.3 ;
3999
- } ) ;
4000
-
4001
- requestAnimationFrame ( animateCircles ) ;
4002
- }
4003
-
4004
- animateCircles ( ) ;
4005
-
4006
- document . addEventListener ( "DOMContentLoaded" , function ( ) {
3953
+ < script >
3954
+ // coordinates for the cursor :
4007
3955
const coords = { x : 0 , y : 0 } ;
4008
3956
const circles = document . querySelectorAll ( ".circle" ) ;
4009
3957
@@ -4039,10 +3987,9 @@ <h2>Exclusive Deals and Offers!</h2>
4039
3987
4040
3988
animateCircles ( ) ;
4041
3989
} ) ;
4042
-
4043
- main
4044
- </ script >
4045
-
3990
+ animateCircles ( ) ;
3991
+ } ) ;
3992
+ </ script >
4046
3993
< body >
4047
3994
< div class ="container ">
4048
3995
<!-- Your existing content -->
@@ -4235,6 +4182,5 @@ <h2>Exclusive Deals and Offers!</h2>
4235
4182
< script src ="visi.js "> </ script >
4236
4183
< script src ="script.js "> </ script >
4237
4184
4238
- </ body >
4239
-
4185
+ </ body >
4240
4186
</ html >
0 commit comments