Fuck it, just hardcode it. They rewrite certain parts of our markup so we can't rely on anything in the html.
31 lines
835 B
JavaScript
31 lines
835 B
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();
|
|
});
|
|
|
|
$("#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();
|
|
}
|