* Show a banner if the user is restricted because they signed up from a proxy or VPN. * Add an option to resend the confirmation email if your account has an unverified email address.
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
import Cookie from './cookie'
|
|
|
|
$(function() {
|
|
$("#hide-upgrade-account-notice").on("click.danbooru", function(e) {
|
|
$("#upgrade-account-notice").hide();
|
|
Cookie.put('hide_upgrade_account_notice', '1', 7);
|
|
e.preventDefault();
|
|
});
|
|
|
|
$("#hide-dmail-notice").on("click.danbooru", function(e) {
|
|
var $dmail_notice = $("#dmail-notice");
|
|
$dmail_notice.hide();
|
|
var dmail_id = $dmail_notice.data("id");
|
|
Cookie.put("hide_dmail_notice", dmail_id);
|
|
e.preventDefault();
|
|
});
|
|
|
|
$("#hide-verify-account-notice").on("click.danbooru", function(e) {
|
|
$("#verify-account-notice").hide();
|
|
Cookie.put('hide_verify_account_notice', '1', 3);
|
|
e.preventDefault();
|
|
});
|
|
|
|
$("#close-notice-link").on("click.danbooru", function(e) {
|
|
$('#notice').fadeOut("fast");
|
|
e.preventDefault();
|
|
});
|
|
|
|
if (location.hostname.endsWith("danbooru.me")) {
|
|
location.hostname = "danbooru.donmai.us";
|
|
}
|
|
});
|
|
|
|
window.submitInvisibleRecaptchaForm = function () {
|
|
document.getElementById("signup-form").submit();
|
|
}
|