blob: 5ceebf9f9095b2602dc524a13ac8ef59ca1ec0f3 [file] [log] [blame]
Andreuefe66eb2019-09-21 18:41:49 +02001function change_victim(user) {
2 $(".victima").fadeOut(400, function() {
Andreu04f79ef2019-09-22 18:52:19 +02003 $(".victima").load('./ajax/victiminfo.php?userid=' + user.id + " #victim_info");
Andreuefe66eb2019-09-21 18:41:49 +02004 $(".victima").fadeIn(400);
5 });
6}
Andreu543e70c2019-09-22 14:08:49 +02007
8function read_message(msg, type) {
9 $.notify(msg, type);
10 newURL = window.location.href.split('?')[0];
11 history.pushState({}, null, newURL);
12}