Skip to content

Commit fa15c1b

Browse files
authored
Merge branch 'main' into service
2 parents 522c91e + 7bb8970 commit fa15c1b

File tree

3 files changed

+40
-73
lines changed

3 files changed

+40
-73
lines changed

auth.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ <h2 class="title">Sign in</h2>
3838
<i class="fas fa-lock"></i>
3939
<input type="password" placeholder="Password" id="sign-in-password" />
4040
<i class="fas fa-eye password-toggle" onclick="togglePassword('sign-in-password', this)"></i>
41-
</div>
41+
</div>
42+
<div class="form-check d-flex">
43+
<input type="checkbox" class="form-check-input" id="login-remember" />
44+
<label class="form-check-label">Remember me</label>
45+
</div>
4246
<div class="login">
4347
<input type="submit" value="Login" class="btn solid" />
4448
</div>
@@ -81,12 +85,15 @@ <h2 class="title">Sign up</h2>
8185
</div>
8286

8387
<!-- Password Strength Bars -->
84-
<div class="password-strength">
88+
<!-- <div class="password-strength">
8589
<div id="strength-weak"></div>
8690
<div id="strength-medium"></div>
8791
<div id="strength-strong"></div>
92+
</div> -->
93+
<div class="form-check d-flex">
94+
<input type="checkbox" class="form-check-input" id="login-remember" />
95+
<label class="form-check-label">Remember me</label>
8896
</div>
89-
9097
<input type="submit" class="btn" value="Sign up" />
9198
</form>
9299
<p id="error-message" style="color: red; display: none;"></p>

auth.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ document.querySelector(".sign-up-form").addEventListener('submit', function(even
136136
console.error('Signup error:', error);
137137
}
138138
});
139+
document.querySelector('#login-btn').addEventListener('click', (event) => {
140+
event.preventDefault();
141+
142+
const emailInput = document.getElementById('login-email');
143+
const rememberMeCheckbox = document.getElementById('login-remember');
144+
145+
if (rememberMeCheckbox.checked) {
146+
localStorage.setItem('rememberedEmail', emailInput.value);
147+
} else {
148+
localStorage.removeItem('rememberedEmail');
149+
}
150+
151+
// Continue with your existing login logic...
152+
});
139153

140154
// Toggle password visibility
141155
function togglePassword(fieldId, icon) {

index.html

Lines changed: 16 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,21 +3881,16 @@ <h2>Exclusive Deals and Offers!</h2>
38813881

38823882
document.getElementById("progressBar").style.width = scrollPercent + "%";
38833883
}
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
38993894

39003895
.popup-content {
39013896
background-color: white;
@@ -3955,55 +3950,8 @@ <h2>Exclusive Deals and Offers!</h2>
39553950
<script>window.gtranslateSettings = { "default_language": "en", "detect_browser_language": true, "wrapper_selector": ".gtranslate_wrapper" }</script>
39563951
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
39573952

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 :
40073955
const coords = { x: 0, y: 0 };
40083956
const circles = document.querySelectorAll(".circle");
40093957

@@ -4039,10 +3987,9 @@ <h2>Exclusive Deals and Offers!</h2>
40393987

40403988
animateCircles();
40413989
});
4042-
4043-
main
4044-
</script>
4045-
3990+
animateCircles();
3991+
});
3992+
</script>
40463993
<body>
40473994
<div class="container">
40483995
<!-- Your existing content -->
@@ -4235,6 +4182,5 @@ <h2>Exclusive Deals and Offers!</h2>
42354182
<script src="visi.js"></script>
42364183
<script src="script.js"></script>
42374184

4238-
</body>
4239-
4185+
</body>
42404186
</html>

0 commit comments

Comments
 (0)