1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-04 19:14:41 +00:00
Files
uwuzu-mirror/js/nsfw_event.js
T
2024-12-27 18:11:13 +09:00

42 lines
1.1 KiB
JavaScript

$(document).on('click', '.mini_irobtn', function (event) {
event.preventDefault();
mother = $(this).parent();
mother2 = $(mother).parent();
$(mother2).next('.nsfw_main').children().removeClass('block');
$(mother2).next('.nsfw_main').children().addClass('clear');
$(mother2).next('.nsfw_main').removeClass('nsfw_main');
$(mother2).hide();
});
$(document).on('click', '#ueuse_image', function (event) {
var imgLink = $(this).attr('src');
var modal = $('#Big_ImageModal');
var modalMain = $('.modal-content');
var modalimg_zone = $('#Big_ImageMain');
$(modalimg_zone).attr('src',imgLink);
modal.show();
modalMain.addClass("slideUp");
modalMain.removeClass("slideDown");
modal.on('click', function() {
modalMain.removeClass("slideUp");
modalMain.addClass("slideDown");
window.setTimeout(function(){
modal.hide();
}, 150);
});
});
function view_notify(notify){
$("#notify").children("p").text(notify);
$("#notify").show();
setTimeout(function(){
$("#notify").hide();
}, 10000);
}