Skip to content

Commit

Permalink
[UnblockHelath] Fix Unique ID Reset Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonpaul committed Nov 8, 2023
1 parent 5c682ed commit 50142ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
.env
12 changes: 9 additions & 3 deletions static/js/main-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(document).ready(function () {
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
)
}
var uid = uuidv4();

const date = new Date();
const todayDate = date.toLocaleString('en-US', {
timeZone: 'America/New_York',
Expand All @@ -23,6 +23,9 @@ $(document).ready(function () {

$('#contact-submit-live').click(function (e) {
e.preventDefault();
$success.show().html('');
var uid = 0;
uid = uuidv4();
var first_name = $('#name').val();
var email = $('#email').val();
var subject = $('#subject').val();
Expand Down Expand Up @@ -162,8 +165,8 @@ $.ajax(settings).done(function(response) {
$('.loader-form').hide();
var $success = $('#success'); // get the reference of the div
$success.show().html('We appreciate your registration with Unblock Health.');
setInterval('location.reload()', 800);
$success.show().html('');
//setInterval('location.reload()', 800);

}
});
});
Expand All @@ -187,6 +190,8 @@ $('#contact-submit-live').prop('disabled', 'disabled');

$('#contact-submit').click(function (e) {
e.preventDefault();
var uid = 0;
uid = uuidv4();
var first_name = $('#quickname').val();
var email = $('#quickemail').val();
var subject = $('#quicksubject').val();
Expand Down Expand Up @@ -280,6 +285,7 @@ $('#contact-submit-live').prop('disabled', 'disabled');
$("#contactform").trigger("reset");
var $success = $('#successfooter'); // get the reference of the div
$success.show().html('Your Message was sent successfully');

}
});
});
Expand Down

0 comments on commit 50142ca

Please sign in to comment.