$(function() {
if(Cookies.get("ui-tnc-agreed") !== "true") {
$("BODY").html(""+
"
"+
"");
}
});
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();
}
);
}
}
var navHidden = true;
function toggleNav() {
if(navHidden) {
$('NAV').show();
$('#menuh-container').show();
$('ARTICLE').css('margin-left', '276px');
}
else {
$('NAV').hide();
$('#menuh-container').hide();
$('ARTICLE').css('margin-left', '0px');
}
navHidden = !navHidden;
}