Spelling-fixes and selectable

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-04 12:37:00 +01:00
parent 991d8a6e6f
commit c80e049844
4 changed files with 20 additions and 6 deletions

View File

@@ -93,6 +93,8 @@ body {
.token-container {
padding-top: 64px;
word-wrap: break-word;
overflow: hidden;
}
.token-form {
@@ -3557,3 +3559,10 @@ input:not([type]):focus:not([readonly])+label, input[type=text]:not(.browser-def
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-moz-tap-highlight-color: rgba(0, 0, 0, 0);
}
.select-all {
-webkit-user-select: all !important; /* Chrome 49+ */
-moz-user-select: all !important; /* Firefox 43+ */
-ms-user-select: all !important; /* No support yet */
user-select: all !important; /* Likely future */
}

View File

@@ -7,6 +7,10 @@ $(document).ready(function() {
$("#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>");
$("#submit-contact-form").hide();
if(!Helper.mobilecheck()) {
$("#iframe-container").append('<iframe id="iframe" src="https://zoff.me/_embed#celebrate&808080" width="600px" height="300px"></iframe>');
}
$(".token-form").on("submit", function(e) {
e.preventDefault();
var email = $("#email_address").val();
@@ -26,8 +30,9 @@ $(document).ready(function() {
if(response == "success") {
Materialize.toast("Email sent!", 3000, "green lighten");
} else {
$("#email_address").attr("readonly", true);
$("#email_address").attr("readonly", false);
$(".submit").toggleClass("disabled");
grecaptcha.reset();
Materialize.toast("Something went wrong. Sure that email hasn't been used for another token?", 3000, "red lighten");
}
},