Skip to content

Commit

Permalink
Merge pull request #386 from Mradul-code/main
Browse files Browse the repository at this point in the history
Fixed preloader
  • Loading branch information
dhairyagothi authored Oct 22, 2024
2 parents ef0bae4 + 7c9d5c1 commit 3064aaf
Showing 1 changed file with 46 additions and 43 deletions.
89 changes: 46 additions & 43 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,7 @@ <h3>Saarthi</h3>
</script> -->

<script>
window.addEventListener("load", () => {
const loader = document.getElementById("loader");
loader.style.display = "none";
})
</script>



<div id="google_translate_modal" class="flex">
Expand Down Expand Up @@ -600,7 +595,9 @@ <h3>Saarthi</h3>
}
});
});

</script>

<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
Expand Down Expand Up @@ -671,48 +668,54 @@ <h3>Saarthi</h3>
</script>

<!--pop up html part-->
<div id="popup" class="popup" >
<div class="popupcontent">
<div class="close-button">X</div>
<div class="popup-left">
<img src="src/assets/railways.png">
</div>
<div class="popup-right">
<p class="h1">Welcome to Station Saarthi</p>
<p class="h2"> Travel without stress Sign in now</p>
<!-- email part-->
<form id="emailForm">
<input type="email" id="popup-email" placeholder="Enter Email" required>
<button type="submit" class="signup-btn">Sign me up!</button>
</form>
<p class="terms">By signing in, I agree to station saarthi's <a herf="#">Terms of Service</a> and <a herf="#">Privacy Policy</a>.</p>
</div>
</div>

<script>window.onload = function() {
document.getElementById('popup').style.display = 'flex';
};
//load on website pop up added


document.querySelector('.close-button').addEventListener('click', function() {
document.getElementById('popup').style.display = 'none';
});

document.getElementById('emailForm').addEventListener('submit', function(event) {
event.preventDefault();
<div id="popup" class="popup" >
<div class="popupcontent">
<div class="close-button">X</div>
<div class="popup-left">
<img src="src/assets/railways.png">
</div>
<div class="popup-right">
<p class="h1">Welcome to Station Saarthi</p>
<p class="h2"> Travel without stress Sign in now</p>
<!-- email part-->
<form id="emailForm">
<input type="email" id="popup-email" placeholder="Enter Email" required>
<button type="submit" class="signup-btn">Sign me up!</button>
</form>
<p class="terms">By signing in, I agree to station saarthi's <a herf="#">Terms of Service</a> and <a herf="#">Privacy Policy</a>.</p>
</div>
</div>

const email = document.getElementById('email').value;
if (email) {
alert(`Welcome ! To Station Sarthi , May you have a wonderful Journey ${email}`);
<script>window.onload = function() {
document.getElementById('popup').style.display = 'flex';
};
//load on website pop up added


document.querySelector('.close-button').addEventListener('click', function() {
document.getElementById('popup').style.display = 'none';
}
});

});</script>


</script>
document.getElementById('emailForm').addEventListener('submit', function(event) {
event.preventDefault();

const email = document.getElementById('email').value;
if (email) {
alert(`Welcome ! To Station Sarthi , May you have a wonderful Journey ${email}`);
document.getElementById('popup').style.display = 'none';
}

});</script>

<script>
window.addEventListener("load", () => {
const loader = document.getElementById("loader");
loader.style.display = "none";
})
</script>
</div>



</body>
Expand Down

0 comments on commit 3064aaf

Please sign in to comment.