blob: 296cdd203e7284d1c01515850822af087df5f6a4 [file] [log] [blame]
Andreuefe66eb2019-09-21 18:41:49 +02001function change_victim(user) {
Andreua0fc8272019-09-23 00:35:25 +02002 let loadURL = './ajax/victiminfo.php?userid=' + user.id + ' #victim_info';
3 $(".victima").fadeOut('slow').load(loadURL).fadeIn('slow');
Andreuefe66eb2019-09-21 18:41:49 +02004}
Andreu543e70c2019-09-22 14:08:49 +02005
6function read_message(msg, type) {
7 $.notify(msg, type);
8 newURL = window.location.href.split('?')[0];
9 history.pushState({}, null, newURL);
10}