Removed 300 or something jquery references so far

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-24 12:05:57 +02:00
parent 529e8f2f38
commit 30885e332b
14 changed files with 448 additions and 442 deletions

View File

@@ -3,8 +3,8 @@ $(document).ready(function() {
$(".help-button-footer").hide();
$("#contact").modal();
$("#contact-container").empty();
$("#contact-container").html("Send a mail to us: <a title='Open in client' href='mailto:contact@zoff.me?Subject=Contact%20Zoff'>contact@zoff.me</a>");
Helper.setHtml("#contact-container", "");
Helper.setHtml("#contact-container", "Send a mail to us: <a title='Open in client' href='mailto:contact@zoff.me?Subject=Contact%20Zoff'>contact@zoff.me</a>");
$("#submit-contact-form").hide();
ga('send', 'pageview');
@@ -20,7 +20,7 @@ $(document).ready(function() {
$("#origin").attr("readonly", true);
$("#email_address").attr("readonly", true);
$(".submit").toggleClass("disabled");
$(".full-form-token").removeClass("hide");
Helper.removeClass(".full-form-token", "hide");
var captcha_response = grecaptcha.getResponse();
Helper.ajax({
type: "POST",
@@ -31,7 +31,7 @@ $(document).ready(function() {
"g-recaptcha-response": captcha_response,
},
success: function(response) {
$(".full-form-token").addClass("hide");
Helper.addClass(".full-form-token", "hide");
if(response == "success") {
M.toast({html: "Email sent!", displayLength: 3000, classes: "green lighten"});
} else {
@@ -43,7 +43,7 @@ $(document).ready(function() {
}
},
error: function(response) {
$(".full-form-token").addClass("hide");
Helper.addClass(".full-form-token", "hide");
$("#email_address").attr("readonly", false);
$(".submit").toggleClass("disabled");
}