mirror of
https://github.com/Emupedia/emupedia.github.io.git
synced 2026-12-05 03:29:36 +08:00
More work
This commit is contained in:
@@ -74,42 +74,44 @@
|
||||
$(this).addClass('selected');
|
||||
});
|
||||
|
||||
$(document).contextmenu({
|
||||
delegate: '.emuos-taskbar-window-copy',
|
||||
menu: [{
|
||||
title: 'Refresh',
|
||||
cmd: 'refresh',
|
||||
uiIcon: 'ui-icon-copy'
|
||||
} , {
|
||||
title: '----'
|
||||
} , {
|
||||
title: 'Themes',
|
||||
children: [{
|
||||
title: 'Windows 3.1/3.11',
|
||||
cmd: 'win311',
|
||||
uiIcon: 'ui-icon-scissors'
|
||||
setTimeout(function() {
|
||||
$(document).contextmenu({
|
||||
delegate: '.emuos-taskbar-window-copy',
|
||||
menu: [{
|
||||
title: 'Refresh',
|
||||
cmd: 'refresh',
|
||||
uiIcon: 'ui-icon-copy'
|
||||
} , {
|
||||
title: 'Windows 95/98/Me',
|
||||
cmd: 'win98',
|
||||
uiIcon: 'ui-icon-clipboard'
|
||||
}]
|
||||
}],
|
||||
select: function(e, ui) {
|
||||
switch (ui.cmd) {
|
||||
case 'refresh':
|
||||
window.location = window.location;
|
||||
break;
|
||||
case 'win311':
|
||||
$('body').removeClass('theme-win98').addClass('theme-win311');
|
||||
break;
|
||||
case 'win98':
|
||||
$('body').removeClass('theme-win311').addClass('theme-win98');
|
||||
break;
|
||||
}
|
||||
title: '----'
|
||||
} , {
|
||||
title: 'Themes',
|
||||
children: [{
|
||||
title: 'Windows 3.1/3.11',
|
||||
cmd: 'win311',
|
||||
uiIcon: 'ui-icon-scissors'
|
||||
} , {
|
||||
title: 'Windows 95/98/Me',
|
||||
cmd: 'win98',
|
||||
uiIcon: 'ui-icon-clipboard'
|
||||
}]
|
||||
}],
|
||||
select: function(e, ui) {
|
||||
switch (ui.cmd) {
|
||||
case 'refresh':
|
||||
window.location = window.location;
|
||||
break;
|
||||
case 'win311':
|
||||
$('body').removeClass('theme-win98').addClass('theme-win311');
|
||||
break;
|
||||
case 'win98':
|
||||
$('body').removeClass('theme-win311').addClass('theme-win98');
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}, 100);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user