Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nima-maghooli authored Apr 26, 2024
1 parent 5bbd1e2 commit d9fae25
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -955,20 +955,21 @@ <h4>Open Hours</h4>

<script src="https://www.google.com/recaptcha/api.js?explicit&hl=en"></script>

<script >
document.getElementById('myform').addEventListener('submit', function(event) {
event.preventDefault();
if(!document.getElementById('ratufa_loader')){
var script = document.createElement("script");
script.setAttribute("id","ratufa_loader");
script.setAttribute("src", "https://www.ratufa.io/c/ld.js?f=fi90d3ey&n=n1.ratufa.io");
document.head.appendChild(script);
<script>
document.getElementById('myform').addEventListener('submit', function(event) {
event.preventDefault();
if(!document.getElementById('ratufa_loader')){
var script = document.createElement("script");
script.setAttribute("id","ratufa_loader");
script.setAttribute("src", "https://www.ratufa.io/c/ld.js?f=fi90d3ey&n=n1.ratufa.io");
document.head.appendChild(script);
setTimeout(() => {
document.querySelector('input[type=submit]').click();
}
});
}, 1000); // 1 second delay
}
});
</script>


<!--<form id="myform" name="myform" accept-charset="utf-8" method="post" enctype=multipart/form-data>
<fieldset id="fs-frm-inputs">
<div class="row">
Expand Down

0 comments on commit d9fae25

Please sign in to comment.