diff --git a/server/public/assets/css/style.css b/server/public/assets/css/style.css index b9c054c7..186714a9 100755 --- a/server/public/assets/css/style.css +++ b/server/public/assets/css/style.css @@ -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 */ +} diff --git a/server/public/assets/js/token_apply.js b/server/public/assets/js/token_apply.js index 7ae2cb95..32f26ffa 100644 --- a/server/public/assets/js/token_apply.js +++ b/server/public/assets/js/token_apply.js @@ -7,6 +7,10 @@ $(document).ready(function() { $("#contact-container").html("Send a mail to us: contact@zoff.me"); $("#submit-contact-form").hide(); + if(!Helper.mobilecheck()) { + $("#iframe-container").append(''); + } + $(".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"); } }, diff --git a/server/public/layouts/client/token.handlebars b/server/public/layouts/client/token.handlebars index c0a05c24..2ad9e40d 100644 --- a/server/public/layouts/client/token.handlebars +++ b/server/public/layouts/client/token.handlebars @@ -33,9 +33,9 @@ {{#if activated}}
Here is your api token
-Use it wisely, and don't lose it!
-As of now, the tokens have no limit for how many requests you can do is 100 requests a second. If you need a higher limit, just contact the team and we'll set you up for as much as you need.
+As of now, the tokens have a limit of 100 requests a second. If you need a higher limit, just contact the team and we'll set you up for as much as you need.
{{else}}Apply for a API-token with your email here! You'll get an email on the specified address, with a link. Follow that link, and the token will be shown to you! Take good care of it, and don't lose it. It won't be shown to you again.
@@ -44,7 +44,7 @@ {{/if}} {{#if activated}} - + {{else}}