fembooru/ext/rule34/script.js

44 lines
1002 B
JavaScript
Raw Normal View History

2018-07-19 19:55:28 +01:00
$(function() {
if(Cookies.get("ui-tnc-agreed") !== "true") {
$("BODY").html(""+
"<div align='center' style='font-size: 2em; position: absolute; z-index: 99999999999999999999999999;'>"+
"<p>For legal reasons, we need to point out that:"+
"<p>A) this site contains material not suitable for minors"+
"<br>B) cookies may be used"+
"<p><a href='/tnc_agreed'>Click here if you're an adult, and you're ok with that</a>"+
"</div>"+
"");
}
});
function image_hash_ban(id) {
var reason = prompt("WHY?", "DNP");
if(reason) {
$.post(
"/image_hash_ban/add",
{
"image_id": id,
"reason": reason,
},
function() {
$("#thumb_" + id).parent().parent().hide();
2018-07-19 20:09:36 +01:00
}
2018-07-19 19:55:28 +01:00
);
}
}
2018-07-19 22:17:19 +01:00
var navHidden = true;
2018-07-19 19:55:28 +01:00
function toggleNav() {
if(navHidden) {
$('NAV').show();
2018-07-19 22:17:19 +01:00
$('#menuh-container').show();
2018-07-19 19:55:28 +01:00
$('ARTICLE').css('margin-left', '276px');
}
else {
$('NAV').hide();
2018-07-19 22:17:19 +01:00
$('#menuh-container').hide();
2018-07-19 19:55:28 +01:00
$('ARTICLE').css('margin-left', '0px');
}
navHidden = !navHidden;
}