diff --git a/core/core.form.js b/core/core.form.js index 81e797a..2b00e85 100644 --- a/core/core.form.js +++ b/core/core.form.js @@ -5,7 +5,11 @@ $('[data-provider="datepicker"]').datepicker({ format: "yyyy/mm/dd" }); + $("[data-title='tooltip']").tooltip(); + + $("[data-toggle='lazy']").lazyload(); + $("[data-title='popover']").popover({ trigger: 'hover' }); diff --git a/core/core.proxy.js b/core/core.proxy.js index 498823e..1f5eba9 100644 --- a/core/core.proxy.js +++ b/core/core.proxy.js @@ -12,6 +12,27 @@ formData: {id : $($(this).attr('data-key')).val()}, paramName: 'object', dropZone: null, + add: function (e, data) { + if ($(this).attr('accept')) { + var accepted = $(this).attr('accept').split(",").join("|").split(".").join(""); + var regexp = new RegExp('(\.|\/)(' + accepted + ')$', 'i'); + var uploadErrors = []; + + $.each(data.files, function (index, file) { + if (data.files[index]['type'].length && !regexp.test(data.files[index]['type'])) { + uploadErrors.push(data.files[index]['name']); + } + }); + + if (uploadErrors.length > 0) { + core.message.toast('danger', false, 'Aborted. Unsupported file extension detected.'); + } else { + data.submit(); + } + } else { + data.submit(); + } + }, done: function (e, data) { try { var obj = $.parseJSON(data.result); @@ -50,6 +71,27 @@ formData: {id : $($(this).attr('data-key')).val(), data: $('#modal-data').serialize()}, paramName: 'object', dropZone: $('.dropzone'), + add: function (e, data) { + if ($(this).attr('accept')) { + var accepted = $(this).attr('accept').split(",").join("|").split(".").join(""); + var regexp = new RegExp('(\.|\/)(' + accepted + ')$', 'i'); + var uploadErrors = []; + + $.each(data.files, function (index, file) { + if (data.files[index]['type'].length && !regexp.test(data.files[index]['type'])) { + uploadErrors.push(data.files[index]['name']); + } + }); + + if (uploadErrors.length > 0) { + core.message.toast('danger', false, 'Aborted. Unsupported file extension detected.'); + } else { + data.submit(); + } + } else { + data.submit(); + } + }, done: function (e, data) { try { var obj = $.parseJSON(data.result); diff --git a/core/db/emulators.jdb b/core/db/emulators.jdb index da512de..26bd746 100644 --- a/core/db/emulators.jdb +++ b/core/db/emulators.jdb @@ -1,6 +1,6 @@ { - "version" : 1, - "type" : "alter", + "version" : 2, + "type" : "create", "schema" : [ { "name" : "id", @@ -27,17 +27,17 @@ { "id" : "3do", "name" : "3do Real Multiplayer", - "whitelist" : "iso" + "whitelist" : ".iso" }, { "id" : "amiga", "name" : "Amiga", - "whitelist" : "adf zip dms exe adz rp9 sh uae" + "whitelist" : ".adf .zip .dms .exe .adz .rp9 .sh .uae" }, { "id" : "amstradcpc", "name" : "Amstrad CPC", - "whitelist" : "dsk cpc" + "whitelist" : ".dsk .cpc" }, { "id" : "arcade", @@ -48,57 +48,57 @@ { "id" : "apple2", "name" : "Apple II", - "whitelist" : "dsk" + "whitelist" : ".dsk" }, { "id" : "atari2600", "name" : "Atari 2600", - "whitelist" : "bin a26 rom gz zip" + "whitelist" : ".bin .a26 .rom .gz .zip" }, { "id" : "atari800", "name" : "Atari 800", - "whitelist" : "a52 bas bin car xex atr xfd dcm atr.gz xfd.gz" + "whitelist" : ".a52 .bas .bin .car .xex .atr .xfd .dcm .atr.gz .xfd.gz" }, { "id" : "atari5200", "name" : "Atari 5200", - "whitelist" : "a52 bas bin car xex atr xfd dcm atr.gz xfd.gz" + "whitelist" : ".a52 .bas .bin .car .xex .atr .xfd .dcm .atr.gz .xfd.gz" }, { "id" : "atari7800", "name" : "Atari 7800", - "whitelist" : "a78 bin zip" + "whitelist" : ".a78 .bin .zip" }, { "id" : "atarijaguar", "name" : "Atari Jaguar", - "whitelist" : "j64 jag" + "whitelist" : ".j64 .jag" }, { "id" : "atarilynx", "name" : "Atari Lynx", - "whitelist" : "lnx zip" + "whitelist" : ".lnx .zip" }, { "id" : "atarist", "name" : "Atari ST", - "whitelist" : "st stx img rom raw ipf ctr" + "whitelist" : ".st .stx .img .rom .raw .ipf .ctr" }, { "id" : "coco", "name" : "Colour Computer / Dragon 32", - "whitelist" : "cas wav bas asc dmk jvc os9 dsk vdk rom ccc sna" + "whitelist" : ".cas .wav .bas .asc .dmk .jvc .os9 .dsk .vdk .rom .ccc .sna" }, { "id" : "c64", "name" : "Commondore 64", - "whitelist" : "crt d64 g64 t64 tap x64 zip" + "whitelist" : ".crt .d64 .g64 .t64 .tap .x64 .zip" }, { "id" : "dreamcast", "name" : "Dreamcast", - "whitelist" : "cdi gdi" + "whitelist" : ".cdi .gdi" }, { "id" : "fba", @@ -108,47 +108,47 @@ { "id" : "megadrive", "name" : "Megadrive", - "whitelist" : "smd bin md iso zip" + "whitelist" : ".smd .bin .md .iso .zip" }, { "id" : "gamegear", "name" : "Game Gear", - "whitelist" : "gg zip" + "whitelist" : ".gg .zip" }, { "id" : "gb", "name" : "Game Boy", - "whitelist" : "gb zip" + "whitelist" : ".gb .zip" }, { "id" : "gbc", "name" : "Game Boy Color", - "whitelist" : "gbc zip" + "whitelist" : ".gbc .zip" }, { "id" : "gba", "name" : "Game Boy Advance", - "whitelist" : "gba zip" + "whitelist" : ".gba .zip" }, { "id" : "genesis", "name" : "Genesis", - "whitelist" : "smd bin md iso zip" + "whitelist" : ".smd .bin .md .iso .zip" }, { "id" : "fds", "name" : "Family Computer Disk System", - "whitelist" : "fds" + "whitelist" : ".fds" }, { "id" : "intellivision", "name" : "Intellivision", - "whitelist" : "int bin" + "whitelist" : ".int .bin" }, { "id" : "macintosh", "name" : "Macintosh", - "whitelist" : "img rom" + "whitelist" : ".img .rom" }, { "id" : "mame-mame4all", @@ -165,12 +165,12 @@ { "id" : "mastersystem", "name" : "Master System", - "whitelist" : "sms zip" + "whitelist" : ".sms .zip" }, { "id" : "msx", "name" : "MSX", - "whitelist" : "rom mx1 mx2 col dsk" + "whitelist" : ".rom .mx1 .mx2 .col .dsk" }, { "id" : "neogeo", @@ -180,133 +180,133 @@ { "id" : "ngp", "name" : "Neo Geo Pocket", - "whitelist" : "ngp zip" + "whitelist" : ".ngp .zip" }, { "id" : "ngpc", "name" : "Neo Geo Pocket Color", - "whitelist" : "ngc zip" + "whitelist" : ".ngc .zip" }, { "id" : "n64", "name" : "Nintendo 64", - "whitelist" : "z64 n64 v64" + "whitelist" : ".z64 .n64 .v64" }, { "id" : "nds", "name" : "Nintendo DS", - "whitelist" : "nds bin" + "whitelist" : ".nds .bin" }, { "id" : "nes", "name" : "Nintendo Enterainment System", - "whitelist" : "zip nes smc sfc fig swc mgd fds" + "whitelist" : ".zip .nes .smc .sfc .fig .swc .mgd .fds" }, { "id" : "oric", "name" : "Oric", - "whitelist" : "dsk tap" + "whitelist" : ".dsk .tap" }, { "id" : "pc", "name" : "Dos Box", - "whitelist" : "com sh bat exe" + "whitelist" : ".com .sh .bat .exe" }, { "id" : "pcengine", "name" : "TurbGrafx-16", - "whitelist" : "pce cue zip" + "whitelist" : ".pce .cue .zip" }, { "id" : "ports", "name" : "Ports", - "whitelist" : "sh", + "whitelist" : ".sh", "blacklist" : "folder" }, { "id" : "psx", "name" : "Playstation 1", - "whitelist" : "cue cbn img iso m3u mdf pbp toc z znx" + "whitelist" : ".cue .cbn .img .iso .m3u .mdf .pbp .toc .z .znx" }, { "id" : "psp", "name" : "PlayStation Portable", - "whitelist" : "cso iso pbp" + "whitelist" : ".cso .iso .pbp" }, { "id" : "scummvm", "name" : "ScummVM", - "whitelist" : "sh svm" + "whitelist" : ".sh .svm" }, { "id" : "sega32x", "name" : "Sega 32X", - "whitelist" : "32x smd bin md zip" + "whitelist" : ".32x .smd .bin .md .zip" }, { "id" : "segacd", "name" : "Sega CD", - "whitelist" : "cue iso" + "whitelist" : ".cue .iso" }, { "id" : "saturn", "name" : "Sega Saturn", - "whitelist" : "bin iso mdf" + "whitelist" : ".bin .iso .mdf" }, { "id" : "sg-1000", "name" : "Sega SG-1000", - "whitelist" : "sg zip" + "whitelist" : ".sg .zip" }, { "id" : "snes", "name" : "Super Nintendo Entertainment System", - "whitelist" : "zip smc sfc fig swc" + "whitelist" : ".zip .smc .sfc .fig .swc" }, { "id" : "ti99", "name" : "TI-99/4A", - "whitelist" : "cfg" + "whitelist" : ".cfg" }, { "id" : "trs-80", "name" : "TRS-80", - "whitelist" : "dsk" + "whitelist" : ".dsk" }, { "id" : "vectrex", "name" : "Vectrex", - "whitelist" : "vec gam bin" + "whitelist" : ".vec .gam .bin" }, { "id" : "videopac", "name" : "Videopac G7000 / Odyssey2", - "whitelist" : "bin" + "whitelist" : ".bin" }, { "id" : "virtualboy", "name" : "Virtual Boy", - "whitelist" : "vb" + "whitelist" : ".vb" }, { "id" : "wonderswan", "name" : "WonderSwan", - "whitelist" : "ws" + "whitelist" : ".ws" }, { "id" : "wonderswancolor", "name" : "WonderSwan Color", - "whitelist" : "wsc" + "whitelist" : ".wsc" }, { "id" : "zmachine", "name" : "Z-Machine", - "whitelist" : "dat zip z1 z2 z3 z4 z5 z6 z7 z8" + "whitelist" : ".dat .zip .z1 .z2 .z3 .z4 .z5 .z6 .z7 .z8" }, { "id" : "zxspectrum", "name" : "ZX Spectrum", - "whitelist" : "sna szx z80 tap tzx gz udi mgt img trd scl dsk" + "whitelist" : ".sna .szx .z80 .tap .tzx .gz .udi .mgt .img .trd .scl .dsk" } ] } \ No newline at end of file diff --git a/core/img/emulators/3do/art/controller.png b/core/img/emulators/3do/art/controller.png new file mode 100644 index 0000000..0e00eb1 Binary files /dev/null and b/core/img/emulators/3do/art/controller.png differ diff --git a/core/img/emulators/3do/art/system.png b/core/img/emulators/3do/art/system.png new file mode 100644 index 0000000..aa39297 Binary files /dev/null and b/core/img/emulators/3do/art/system.png differ diff --git a/core/img/emulators/ags/art/controller.png b/core/img/emulators/ags/art/controller.png new file mode 100644 index 0000000..c6bf622 Binary files /dev/null and b/core/img/emulators/ags/art/controller.png differ diff --git a/core/img/emulators/ags/art/system.png b/core/img/emulators/ags/art/system.png new file mode 100644 index 0000000..728a83e Binary files /dev/null and b/core/img/emulators/ags/art/system.png differ diff --git a/core/img/emulators/amiga/art/controller.png b/core/img/emulators/amiga/art/controller.png new file mode 100644 index 0000000..00b6b97 Binary files /dev/null and b/core/img/emulators/amiga/art/controller.png differ diff --git a/core/img/emulators/amiga/art/system.png b/core/img/emulators/amiga/art/system.png new file mode 100644 index 0000000..de58fbb Binary files /dev/null and b/core/img/emulators/amiga/art/system.png differ diff --git a/core/img/emulators/amstradcpc/art/controller.png b/core/img/emulators/amstradcpc/art/controller.png new file mode 100644 index 0000000..1d15f6d Binary files /dev/null and b/core/img/emulators/amstradcpc/art/controller.png differ diff --git a/core/img/emulators/amstradcpc/art/system.png b/core/img/emulators/amstradcpc/art/system.png new file mode 100644 index 0000000..09a1b6a Binary files /dev/null and b/core/img/emulators/amstradcpc/art/system.png differ diff --git a/core/img/emulators/apple2/art/controller.png b/core/img/emulators/apple2/art/controller.png new file mode 100644 index 0000000..964e2fa0 Binary files /dev/null and b/core/img/emulators/apple2/art/controller.png differ diff --git a/core/img/emulators/apple2/art/system.png b/core/img/emulators/apple2/art/system.png new file mode 100644 index 0000000..10ae752 Binary files /dev/null and b/core/img/emulators/apple2/art/system.png differ diff --git a/core/img/emulators/arcade/art/controller.png b/core/img/emulators/arcade/art/controller.png new file mode 100644 index 0000000..f32ffca Binary files /dev/null and b/core/img/emulators/arcade/art/controller.png differ diff --git a/core/img/emulators/arcade/art/system.png b/core/img/emulators/arcade/art/system.png new file mode 100644 index 0000000..4dc2b9a Binary files /dev/null and b/core/img/emulators/arcade/art/system.png differ diff --git a/core/img/emulators/art/Cabin-Bold.ttf b/core/img/emulators/art/Cabin-Bold.ttf new file mode 100644 index 0000000..0d29e77 Binary files /dev/null and b/core/img/emulators/art/Cabin-Bold.ttf differ diff --git a/core/img/emulators/art/scroll-old.wav b/core/img/emulators/art/scroll-old.wav new file mode 100644 index 0000000..a2c4772 Binary files /dev/null and b/core/img/emulators/art/scroll-old.wav differ diff --git a/core/img/emulators/art/scroll.wav b/core/img/emulators/art/scroll.wav new file mode 100644 index 0000000..d2c3129 Binary files /dev/null and b/core/img/emulators/art/scroll.wav differ diff --git a/core/img/emulators/atari2600/art/controller.png b/core/img/emulators/atari2600/art/controller.png new file mode 100644 index 0000000..6a2e006 Binary files /dev/null and b/core/img/emulators/atari2600/art/controller.png differ diff --git a/core/img/emulators/atari2600/art/system.png b/core/img/emulators/atari2600/art/system.png new file mode 100644 index 0000000..1cf18ea Binary files /dev/null and b/core/img/emulators/atari2600/art/system.png differ diff --git a/core/img/emulators/atari5200/art/controller.png b/core/img/emulators/atari5200/art/controller.png new file mode 100644 index 0000000..ca7d59d Binary files /dev/null and b/core/img/emulators/atari5200/art/controller.png differ diff --git a/core/img/emulators/atari5200/art/system.png b/core/img/emulators/atari5200/art/system.png new file mode 100644 index 0000000..ee628fd Binary files /dev/null and b/core/img/emulators/atari5200/art/system.png differ diff --git a/core/img/emulators/atari7800/Thumbs.db b/core/img/emulators/atari7800/Thumbs.db new file mode 100644 index 0000000..70c767c Binary files /dev/null and b/core/img/emulators/atari7800/Thumbs.db differ diff --git a/core/img/emulators/atari7800/art/controller.png b/core/img/emulators/atari7800/art/controller.png new file mode 100644 index 0000000..440ca8a Binary files /dev/null and b/core/img/emulators/atari7800/art/controller.png differ diff --git a/core/img/emulators/atari7800/art/system.png b/core/img/emulators/atari7800/art/system.png new file mode 100644 index 0000000..b0aa3b1 Binary files /dev/null and b/core/img/emulators/atari7800/art/system.png differ diff --git a/core/img/emulators/atari800/art/controller.png b/core/img/emulators/atari800/art/controller.png new file mode 100644 index 0000000..b11f05b Binary files /dev/null and b/core/img/emulators/atari800/art/controller.png differ diff --git a/core/img/emulators/atari800/art/system.png b/core/img/emulators/atari800/art/system.png new file mode 100644 index 0000000..820e44f Binary files /dev/null and b/core/img/emulators/atari800/art/system.png differ diff --git a/core/img/emulators/atarijaguar/art/controller.png b/core/img/emulators/atarijaguar/art/controller.png new file mode 100644 index 0000000..727273d Binary files /dev/null and b/core/img/emulators/atarijaguar/art/controller.png differ diff --git a/core/img/emulators/atarijaguar/art/system.png b/core/img/emulators/atarijaguar/art/system.png new file mode 100644 index 0000000..8484dca Binary files /dev/null and b/core/img/emulators/atarijaguar/art/system.png differ diff --git a/core/img/emulators/atarilynx/art/controller.png b/core/img/emulators/atarilynx/art/controller.png new file mode 100644 index 0000000..04dbc89 Binary files /dev/null and b/core/img/emulators/atarilynx/art/controller.png differ diff --git a/core/img/emulators/atarilynx/art/system.png b/core/img/emulators/atarilynx/art/system.png new file mode 100644 index 0000000..c2dc46a Binary files /dev/null and b/core/img/emulators/atarilynx/art/system.png differ diff --git a/core/img/emulators/atarist/art/controller.png b/core/img/emulators/atarist/art/controller.png new file mode 100644 index 0000000..0687c26 Binary files /dev/null and b/core/img/emulators/atarist/art/controller.png differ diff --git a/core/img/emulators/atarist/art/system.png b/core/img/emulators/atarist/art/system.png new file mode 100644 index 0000000..7d653e1 Binary files /dev/null and b/core/img/emulators/atarist/art/system.png differ diff --git a/core/img/emulators/bbcmicro/art/controller.png b/core/img/emulators/bbcmicro/art/controller.png new file mode 100644 index 0000000..3bdd0e5 Binary files /dev/null and b/core/img/emulators/bbcmicro/art/controller.png differ diff --git a/core/img/emulators/bbcmicro/art/system.png b/core/img/emulators/bbcmicro/art/system.png new file mode 100644 index 0000000..a63ae6c Binary files /dev/null and b/core/img/emulators/bbcmicro/art/system.png differ diff --git a/core/img/emulators/c64/art/controller.png b/core/img/emulators/c64/art/controller.png new file mode 100644 index 0000000..fb1b3b4 Binary files /dev/null and b/core/img/emulators/c64/art/controller.png differ diff --git a/core/img/emulators/c64/art/system.png b/core/img/emulators/c64/art/system.png new file mode 100644 index 0000000..3103d67 Binary files /dev/null and b/core/img/emulators/c64/art/system.png differ diff --git a/core/img/emulators/channelf/art/controller.png b/core/img/emulators/channelf/art/controller.png new file mode 100644 index 0000000..ed39705 Binary files /dev/null and b/core/img/emulators/channelf/art/controller.png differ diff --git a/core/img/emulators/channelf/art/system.png b/core/img/emulators/channelf/art/system.png new file mode 100644 index 0000000..09da618 Binary files /dev/null and b/core/img/emulators/channelf/art/system.png differ diff --git a/core/img/emulators/coco/art/controller.png b/core/img/emulators/coco/art/controller.png new file mode 100644 index 0000000..e363632 Binary files /dev/null and b/core/img/emulators/coco/art/controller.png differ diff --git a/core/img/emulators/coco/art/system.png b/core/img/emulators/coco/art/system.png new file mode 100644 index 0000000..608db65 Binary files /dev/null and b/core/img/emulators/coco/art/system.png differ diff --git a/core/img/emulators/colecovision/art/controller.png b/core/img/emulators/colecovision/art/controller.png new file mode 100644 index 0000000..01ba5af Binary files /dev/null and b/core/img/emulators/colecovision/art/controller.png differ diff --git a/core/img/emulators/colecovision/art/system.png b/core/img/emulators/colecovision/art/system.png new file mode 100644 index 0000000..84af2c7 Binary files /dev/null and b/core/img/emulators/colecovision/art/system.png differ diff --git a/core/img/emulators/daphne/art/controller.png b/core/img/emulators/daphne/art/controller.png new file mode 100644 index 0000000..0870e20 Binary files /dev/null and b/core/img/emulators/daphne/art/controller.png differ diff --git a/core/img/emulators/daphne/art/system.png b/core/img/emulators/daphne/art/system.png new file mode 100644 index 0000000..bd5db50 Binary files /dev/null and b/core/img/emulators/daphne/art/system.png differ diff --git a/core/img/emulators/desktop/art/controller.png b/core/img/emulators/desktop/art/controller.png new file mode 100644 index 0000000..5464345 Binary files /dev/null and b/core/img/emulators/desktop/art/controller.png differ diff --git a/core/img/emulators/desktop/art/system.png b/core/img/emulators/desktop/art/system.png new file mode 100644 index 0000000..9096a53 Binary files /dev/null and b/core/img/emulators/desktop/art/system.png differ diff --git a/core/img/emulators/dragon32/art/controller.png b/core/img/emulators/dragon32/art/controller.png new file mode 100644 index 0000000..22ca0a4 Binary files /dev/null and b/core/img/emulators/dragon32/art/controller.png differ diff --git a/core/img/emulators/dragon32/art/system.png b/core/img/emulators/dragon32/art/system.png new file mode 100644 index 0000000..bc23e8d Binary files /dev/null and b/core/img/emulators/dragon32/art/system.png differ diff --git a/core/img/emulators/dreamcast/art/controller.png b/core/img/emulators/dreamcast/art/controller.png new file mode 100644 index 0000000..7bc60fa Binary files /dev/null and b/core/img/emulators/dreamcast/art/controller.png differ diff --git a/core/img/emulators/dreamcast/art/system.png b/core/img/emulators/dreamcast/art/system.png new file mode 100644 index 0000000..8b2622e Binary files /dev/null and b/core/img/emulators/dreamcast/art/system.png differ diff --git a/core/img/emulators/fba/art/controller.png b/core/img/emulators/fba/art/controller.png new file mode 100644 index 0000000..2c69ef6 Binary files /dev/null and b/core/img/emulators/fba/art/controller.png differ diff --git a/core/img/emulators/fba/art/system.png b/core/img/emulators/fba/art/system.png new file mode 100644 index 0000000..81b6b6d Binary files /dev/null and b/core/img/emulators/fba/art/system.png differ diff --git a/core/img/emulators/fds/art/controller.png b/core/img/emulators/fds/art/controller.png new file mode 100644 index 0000000..d6d55ec Binary files /dev/null and b/core/img/emulators/fds/art/controller.png differ diff --git a/core/img/emulators/fds/art/system.png b/core/img/emulators/fds/art/system.png new file mode 100644 index 0000000..1555dc1 Binary files /dev/null and b/core/img/emulators/fds/art/system.png differ diff --git a/core/img/emulators/gameandwatch/art/controller.png b/core/img/emulators/gameandwatch/art/controller.png new file mode 100644 index 0000000..3f063e7 Binary files /dev/null and b/core/img/emulators/gameandwatch/art/controller.png differ diff --git a/core/img/emulators/gameandwatch/art/system.png b/core/img/emulators/gameandwatch/art/system.png new file mode 100644 index 0000000..60038ae Binary files /dev/null and b/core/img/emulators/gameandwatch/art/system.png differ diff --git a/core/img/emulators/gamegear/Thumbs.db b/core/img/emulators/gamegear/Thumbs.db new file mode 100644 index 0000000..c6c4afb Binary files /dev/null and b/core/img/emulators/gamegear/Thumbs.db differ diff --git a/core/img/emulators/gamegear/art/controller.png b/core/img/emulators/gamegear/art/controller.png new file mode 100644 index 0000000..22f4e16 Binary files /dev/null and b/core/img/emulators/gamegear/art/controller.png differ diff --git a/core/img/emulators/gamegear/art/system.png b/core/img/emulators/gamegear/art/system.png new file mode 100644 index 0000000..3e8e650 Binary files /dev/null and b/core/img/emulators/gamegear/art/system.png differ diff --git a/core/img/emulators/gb/Thumbs.db b/core/img/emulators/gb/Thumbs.db new file mode 100644 index 0000000..c0d6b4b Binary files /dev/null and b/core/img/emulators/gb/Thumbs.db differ diff --git a/core/img/emulators/gb/art/controller.png b/core/img/emulators/gb/art/controller.png new file mode 100644 index 0000000..808eb90 Binary files /dev/null and b/core/img/emulators/gb/art/controller.png differ diff --git a/core/img/emulators/gb/art/system.png b/core/img/emulators/gb/art/system.png new file mode 100644 index 0000000..b414c1a Binary files /dev/null and b/core/img/emulators/gb/art/system.png differ diff --git a/core/img/emulators/gba/Thumbs.db b/core/img/emulators/gba/Thumbs.db new file mode 100644 index 0000000..6524514 Binary files /dev/null and b/core/img/emulators/gba/Thumbs.db differ diff --git a/core/img/emulators/gba/art/controller.png b/core/img/emulators/gba/art/controller.png new file mode 100644 index 0000000..8f5afa4 Binary files /dev/null and b/core/img/emulators/gba/art/controller.png differ diff --git a/core/img/emulators/gba/art/system.png b/core/img/emulators/gba/art/system.png new file mode 100644 index 0000000..d26083c Binary files /dev/null and b/core/img/emulators/gba/art/system.png differ diff --git a/core/img/emulators/gbc/Thumbs.db b/core/img/emulators/gbc/Thumbs.db new file mode 100644 index 0000000..6cabf57 Binary files /dev/null and b/core/img/emulators/gbc/Thumbs.db differ diff --git a/core/img/emulators/gbc/art/controller.png b/core/img/emulators/gbc/art/controller.png new file mode 100644 index 0000000..1ebbaa8 Binary files /dev/null and b/core/img/emulators/gbc/art/controller.png differ diff --git a/core/img/emulators/gbc/art/system.png b/core/img/emulators/gbc/art/system.png new file mode 100644 index 0000000..aaf35a1 Binary files /dev/null and b/core/img/emulators/gbc/art/system.png differ diff --git a/core/img/emulators/gc/art/system.png b/core/img/emulators/gc/art/system.png new file mode 100644 index 0000000..6ad8342 Binary files /dev/null and b/core/img/emulators/gc/art/system.png differ diff --git a/core/img/emulators/genesis/art/controller.png b/core/img/emulators/genesis/art/controller.png new file mode 100644 index 0000000..727e2d0 Binary files /dev/null and b/core/img/emulators/genesis/art/controller.png differ diff --git a/core/img/emulators/genesis/art/system.png b/core/img/emulators/genesis/art/system.png new file mode 100644 index 0000000..ab71e3c Binary files /dev/null and b/core/img/emulators/genesis/art/system.png differ diff --git a/core/img/emulators/intellivision/art/controller.png b/core/img/emulators/intellivision/art/controller.png new file mode 100644 index 0000000..e370dd8 Binary files /dev/null and b/core/img/emulators/intellivision/art/controller.png differ diff --git a/core/img/emulators/intellivision/art/system.png b/core/img/emulators/intellivision/art/system.png new file mode 100644 index 0000000..15f195e Binary files /dev/null and b/core/img/emulators/intellivision/art/system.png differ diff --git a/core/img/emulators/kodi/art/controller.png b/core/img/emulators/kodi/art/controller.png new file mode 100644 index 0000000..ca88bcf Binary files /dev/null and b/core/img/emulators/kodi/art/controller.png differ diff --git a/core/img/emulators/kodi/art/system.png b/core/img/emulators/kodi/art/system.png new file mode 100644 index 0000000..c6671c2 Binary files /dev/null and b/core/img/emulators/kodi/art/system.png differ diff --git a/core/img/emulators/love/art/controller.png b/core/img/emulators/love/art/controller.png new file mode 100644 index 0000000..0cd59d3 Binary files /dev/null and b/core/img/emulators/love/art/controller.png differ diff --git a/core/img/emulators/love/art/system.png b/core/img/emulators/love/art/system.png new file mode 100644 index 0000000..447146e Binary files /dev/null and b/core/img/emulators/love/art/system.png differ diff --git a/core/img/emulators/macintosh/art/controller.png b/core/img/emulators/macintosh/art/controller.png new file mode 100644 index 0000000..82614cc Binary files /dev/null and b/core/img/emulators/macintosh/art/controller.png differ diff --git a/core/img/emulators/macintosh/art/system.png b/core/img/emulators/macintosh/art/system.png new file mode 100644 index 0000000..264ee0d Binary files /dev/null and b/core/img/emulators/macintosh/art/system.png differ diff --git a/core/img/emulators/mame-advmame/art/controller.png b/core/img/emulators/mame-advmame/art/controller.png new file mode 100644 index 0000000..4a637e0 Binary files /dev/null and b/core/img/emulators/mame-advmame/art/controller.png differ diff --git a/core/img/emulators/mame-advmame/art/system.png b/core/img/emulators/mame-advmame/art/system.png new file mode 100644 index 0000000..a4c4373 Binary files /dev/null and b/core/img/emulators/mame-advmame/art/system.png differ diff --git a/core/img/emulators/mame-libretro/Thumbs.db b/core/img/emulators/mame-libretro/Thumbs.db new file mode 100644 index 0000000..912e056 Binary files /dev/null and b/core/img/emulators/mame-libretro/Thumbs.db differ diff --git a/core/img/emulators/mame-libretro/art/controller.png b/core/img/emulators/mame-libretro/art/controller.png new file mode 100644 index 0000000..7ad18f8 Binary files /dev/null and b/core/img/emulators/mame-libretro/art/controller.png differ diff --git a/core/img/emulators/mame-libretro/art/system.png b/core/img/emulators/mame-libretro/art/system.png new file mode 100644 index 0000000..ed5fca2 Binary files /dev/null and b/core/img/emulators/mame-libretro/art/system.png differ diff --git a/core/img/emulators/mame-mame4all/art/controller.png b/core/img/emulators/mame-mame4all/art/controller.png new file mode 100644 index 0000000..af2f427 Binary files /dev/null and b/core/img/emulators/mame-mame4all/art/controller.png differ diff --git a/core/img/emulators/mame-mame4all/art/system.png b/core/img/emulators/mame-mame4all/art/system.png new file mode 100644 index 0000000..1fe03c5 Binary files /dev/null and b/core/img/emulators/mame-mame4all/art/system.png differ diff --git a/core/img/emulators/mame/art/controller.png b/core/img/emulators/mame/art/controller.png new file mode 100644 index 0000000..4829ec1 Binary files /dev/null and b/core/img/emulators/mame/art/controller.png differ diff --git a/core/img/emulators/mame/art/system.png b/core/img/emulators/mame/art/system.png new file mode 100644 index 0000000..03478ac Binary files /dev/null and b/core/img/emulators/mame/art/system.png differ diff --git a/core/img/emulators/mastersystem/Thumbs.db b/core/img/emulators/mastersystem/Thumbs.db new file mode 100644 index 0000000..2dc8649 Binary files /dev/null and b/core/img/emulators/mastersystem/Thumbs.db differ diff --git a/core/img/emulators/mastersystem/art/controller.png b/core/img/emulators/mastersystem/art/controller.png new file mode 100644 index 0000000..d6f87d4 Binary files /dev/null and b/core/img/emulators/mastersystem/art/controller.png differ diff --git a/core/img/emulators/mastersystem/art/system.png b/core/img/emulators/mastersystem/art/system.png new file mode 100644 index 0000000..ecb23d5 Binary files /dev/null and b/core/img/emulators/mastersystem/art/system.png differ diff --git a/core/img/emulators/megadrive/Thumbs.db b/core/img/emulators/megadrive/Thumbs.db new file mode 100644 index 0000000..7a6f3ad Binary files /dev/null and b/core/img/emulators/megadrive/Thumbs.db differ diff --git a/core/img/emulators/megadrive/art/controller.png b/core/img/emulators/megadrive/art/controller.png new file mode 100644 index 0000000..4cc62eb Binary files /dev/null and b/core/img/emulators/megadrive/art/controller.png differ diff --git a/core/img/emulators/megadrive/art/system.png b/core/img/emulators/megadrive/art/system.png new file mode 100644 index 0000000..713040c Binary files /dev/null and b/core/img/emulators/megadrive/art/system.png differ diff --git a/core/img/emulators/mess/art/controller.png b/core/img/emulators/mess/art/controller.png new file mode 100644 index 0000000..9b24f70 Binary files /dev/null and b/core/img/emulators/mess/art/controller.png differ diff --git a/core/img/emulators/mess/art/system.png b/core/img/emulators/mess/art/system.png new file mode 100644 index 0000000..e91e99b Binary files /dev/null and b/core/img/emulators/mess/art/system.png differ diff --git a/core/img/emulators/msx/art/controller.png b/core/img/emulators/msx/art/controller.png new file mode 100644 index 0000000..33ab44b Binary files /dev/null and b/core/img/emulators/msx/art/controller.png differ diff --git a/core/img/emulators/msx/art/system.png b/core/img/emulators/msx/art/system.png new file mode 100644 index 0000000..a2abf25 Binary files /dev/null and b/core/img/emulators/msx/art/system.png differ diff --git a/core/img/emulators/n64/Thumbs.db b/core/img/emulators/n64/Thumbs.db new file mode 100644 index 0000000..f4028a1 Binary files /dev/null and b/core/img/emulators/n64/Thumbs.db differ diff --git a/core/img/emulators/n64/art/controller.png b/core/img/emulators/n64/art/controller.png new file mode 100644 index 0000000..03b9a2f Binary files /dev/null and b/core/img/emulators/n64/art/controller.png differ diff --git a/core/img/emulators/n64/art/system.png b/core/img/emulators/n64/art/system.png new file mode 100644 index 0000000..9bba4b3 Binary files /dev/null and b/core/img/emulators/n64/art/system.png differ diff --git a/core/img/emulators/nds/art/controller.png b/core/img/emulators/nds/art/controller.png new file mode 100644 index 0000000..e812d52 Binary files /dev/null and b/core/img/emulators/nds/art/controller.png differ diff --git a/core/img/emulators/nds/art/system.png b/core/img/emulators/nds/art/system.png new file mode 100644 index 0000000..b243e35 Binary files /dev/null and b/core/img/emulators/nds/art/system.png differ diff --git a/core/img/emulators/neogeo/Thumbs.db b/core/img/emulators/neogeo/Thumbs.db new file mode 100644 index 0000000..71d23d9 Binary files /dev/null and b/core/img/emulators/neogeo/Thumbs.db differ diff --git a/core/img/emulators/neogeo/art/controller.png b/core/img/emulators/neogeo/art/controller.png new file mode 100644 index 0000000..1d20750 Binary files /dev/null and b/core/img/emulators/neogeo/art/controller.png differ diff --git a/core/img/emulators/neogeo/art/system.png b/core/img/emulators/neogeo/art/system.png new file mode 100644 index 0000000..bda4c7d Binary files /dev/null and b/core/img/emulators/neogeo/art/system.png differ diff --git a/core/img/emulators/nes/Thumbs.db b/core/img/emulators/nes/Thumbs.db new file mode 100644 index 0000000..1de6c93 Binary files /dev/null and b/core/img/emulators/nes/Thumbs.db differ diff --git a/core/img/emulators/nes/art/controller.png b/core/img/emulators/nes/art/controller.png new file mode 100644 index 0000000..29eaa43 Binary files /dev/null and b/core/img/emulators/nes/art/controller.png differ diff --git a/core/img/emulators/nes/art/system.png b/core/img/emulators/nes/art/system.png new file mode 100644 index 0000000..2adf66c Binary files /dev/null and b/core/img/emulators/nes/art/system.png differ diff --git a/core/img/emulators/ngp/art/controller.png b/core/img/emulators/ngp/art/controller.png new file mode 100644 index 0000000..b705cff Binary files /dev/null and b/core/img/emulators/ngp/art/controller.png differ diff --git a/core/img/emulators/ngp/art/system.png b/core/img/emulators/ngp/art/system.png new file mode 100644 index 0000000..c6a471e Binary files /dev/null and b/core/img/emulators/ngp/art/system.png differ diff --git a/core/img/emulators/ngpc/art/controller.png b/core/img/emulators/ngpc/art/controller.png new file mode 100644 index 0000000..79cf52f Binary files /dev/null and b/core/img/emulators/ngpc/art/controller.png differ diff --git a/core/img/emulators/ngpc/art/system.png b/core/img/emulators/ngpc/art/system.png new file mode 100644 index 0000000..bbb3a8b Binary files /dev/null and b/core/img/emulators/ngpc/art/system.png differ diff --git a/core/img/emulators/odyssey2/art/controller.png b/core/img/emulators/odyssey2/art/controller.png new file mode 100644 index 0000000..b4e37d1 Binary files /dev/null and b/core/img/emulators/odyssey2/art/controller.png differ diff --git a/core/img/emulators/odyssey2/art/system.png b/core/img/emulators/odyssey2/art/system.png new file mode 100644 index 0000000..6f58d53 Binary files /dev/null and b/core/img/emulators/odyssey2/art/system.png differ diff --git a/core/img/emulators/oric/art/controller.png b/core/img/emulators/oric/art/controller.png new file mode 100644 index 0000000..2b23e47 Binary files /dev/null and b/core/img/emulators/oric/art/controller.png differ diff --git a/core/img/emulators/oric/art/system.png b/core/img/emulators/oric/art/system.png new file mode 100644 index 0000000..79b62b7 Binary files /dev/null and b/core/img/emulators/oric/art/system.png differ diff --git a/core/img/emulators/pc/Thumbs.db b/core/img/emulators/pc/Thumbs.db new file mode 100644 index 0000000..eb0f0e7 Binary files /dev/null and b/core/img/emulators/pc/Thumbs.db differ diff --git a/core/img/emulators/pc/art/controller.png b/core/img/emulators/pc/art/controller.png new file mode 100644 index 0000000..5402eed Binary files /dev/null and b/core/img/emulators/pc/art/controller.png differ diff --git a/core/img/emulators/pc/art/system.png b/core/img/emulators/pc/art/system.png new file mode 100644 index 0000000..a67726d Binary files /dev/null and b/core/img/emulators/pc/art/system.png differ diff --git a/core/img/emulators/pce-cd/art/controller.png b/core/img/emulators/pce-cd/art/controller.png new file mode 100644 index 0000000..f09258c Binary files /dev/null and b/core/img/emulators/pce-cd/art/controller.png differ diff --git a/core/img/emulators/pce-cd/art/system.png b/core/img/emulators/pce-cd/art/system.png new file mode 100644 index 0000000..9c6fcfb Binary files /dev/null and b/core/img/emulators/pce-cd/art/system.png differ diff --git a/core/img/emulators/pcengine/art/controller.png b/core/img/emulators/pcengine/art/controller.png new file mode 100644 index 0000000..d29f0d4 Binary files /dev/null and b/core/img/emulators/pcengine/art/controller.png differ diff --git a/core/img/emulators/pcengine/art/system.png b/core/img/emulators/pcengine/art/system.png new file mode 100644 index 0000000..c39e606 Binary files /dev/null and b/core/img/emulators/pcengine/art/system.png differ diff --git a/core/img/emulators/ports/art/controller.png b/core/img/emulators/ports/art/controller.png new file mode 100644 index 0000000..03dcfef Binary files /dev/null and b/core/img/emulators/ports/art/controller.png differ diff --git a/core/img/emulators/ports/art/system.png b/core/img/emulators/ports/art/system.png new file mode 100644 index 0000000..e2e746b Binary files /dev/null and b/core/img/emulators/ports/art/system.png differ diff --git a/core/img/emulators/ps2/art/system.png b/core/img/emulators/ps2/art/system.png new file mode 100644 index 0000000..250dd33 Binary files /dev/null and b/core/img/emulators/ps2/art/system.png differ diff --git a/core/img/emulators/psp/art/controller.png b/core/img/emulators/psp/art/controller.png new file mode 100644 index 0000000..a2c72fb Binary files /dev/null and b/core/img/emulators/psp/art/controller.png differ diff --git a/core/img/emulators/psp/art/system.png b/core/img/emulators/psp/art/system.png new file mode 100644 index 0000000..e19e571 Binary files /dev/null and b/core/img/emulators/psp/art/system.png differ diff --git a/core/img/emulators/psx/Thumbs.db b/core/img/emulators/psx/Thumbs.db new file mode 100644 index 0000000..92d2068 Binary files /dev/null and b/core/img/emulators/psx/Thumbs.db differ diff --git a/core/img/emulators/psx/art/controller.png b/core/img/emulators/psx/art/controller.png new file mode 100644 index 0000000..123ebb3 Binary files /dev/null and b/core/img/emulators/psx/art/controller.png differ diff --git a/core/img/emulators/psx/art/system.png b/core/img/emulators/psx/art/system.png new file mode 100644 index 0000000..839ac81 Binary files /dev/null and b/core/img/emulators/psx/art/system.png differ diff --git a/core/img/emulators/residualvm/art/controller.png b/core/img/emulators/residualvm/art/controller.png new file mode 100644 index 0000000..e5f1d1c Binary files /dev/null and b/core/img/emulators/residualvm/art/controller.png differ diff --git a/core/img/emulators/residualvm/art/system.png b/core/img/emulators/residualvm/art/system.png new file mode 100644 index 0000000..9b0fcd7 Binary files /dev/null and b/core/img/emulators/residualvm/art/system.png differ diff --git a/core/img/emulators/retropie/art/controller.png b/core/img/emulators/retropie/art/controller.png new file mode 100644 index 0000000..cf6640b Binary files /dev/null and b/core/img/emulators/retropie/art/controller.png differ diff --git a/core/img/emulators/retropie/art/system.png b/core/img/emulators/retropie/art/system.png new file mode 100644 index 0000000..5534651 Binary files /dev/null and b/core/img/emulators/retropie/art/system.png differ diff --git a/core/img/emulators/samcoupe/art/controller.png b/core/img/emulators/samcoupe/art/controller.png new file mode 100644 index 0000000..c91d9d4 Binary files /dev/null and b/core/img/emulators/samcoupe/art/controller.png differ diff --git a/core/img/emulators/samcoupe/art/system.png b/core/img/emulators/samcoupe/art/system.png new file mode 100644 index 0000000..f8adf06 Binary files /dev/null and b/core/img/emulators/samcoupe/art/system.png differ diff --git a/core/img/emulators/saturn/art/controller.png b/core/img/emulators/saturn/art/controller.png new file mode 100644 index 0000000..a6b8719 Binary files /dev/null and b/core/img/emulators/saturn/art/controller.png differ diff --git a/core/img/emulators/saturn/art/system.png b/core/img/emulators/saturn/art/system.png new file mode 100644 index 0000000..f92f754 Binary files /dev/null and b/core/img/emulators/saturn/art/system.png differ diff --git a/core/img/emulators/scummvm/Thumbs.db b/core/img/emulators/scummvm/Thumbs.db new file mode 100644 index 0000000..f6744b8 Binary files /dev/null and b/core/img/emulators/scummvm/Thumbs.db differ diff --git a/core/img/emulators/scummvm/art/controller.png b/core/img/emulators/scummvm/art/controller.png new file mode 100644 index 0000000..91803aa Binary files /dev/null and b/core/img/emulators/scummvm/art/controller.png differ diff --git a/core/img/emulators/scummvm/art/system.png b/core/img/emulators/scummvm/art/system.png new file mode 100644 index 0000000..f22c9e5 Binary files /dev/null and b/core/img/emulators/scummvm/art/system.png differ diff --git a/core/img/emulators/sega32x/art/controller.png b/core/img/emulators/sega32x/art/controller.png new file mode 100644 index 0000000..970ff5d Binary files /dev/null and b/core/img/emulators/sega32x/art/controller.png differ diff --git a/core/img/emulators/sega32x/art/system.png b/core/img/emulators/sega32x/art/system.png new file mode 100644 index 0000000..1f22e6a Binary files /dev/null and b/core/img/emulators/sega32x/art/system.png differ diff --git a/core/img/emulators/segacd/art/controller.png b/core/img/emulators/segacd/art/controller.png new file mode 100644 index 0000000..88bf30b Binary files /dev/null and b/core/img/emulators/segacd/art/controller.png differ diff --git a/core/img/emulators/segacd/art/system.png b/core/img/emulators/segacd/art/system.png new file mode 100644 index 0000000..871826e Binary files /dev/null and b/core/img/emulators/segacd/art/system.png differ diff --git a/core/img/emulators/sg-1000/art/controller.png b/core/img/emulators/sg-1000/art/controller.png new file mode 100644 index 0000000..d727b6f Binary files /dev/null and b/core/img/emulators/sg-1000/art/controller.png differ diff --git a/core/img/emulators/sg-1000/art/system.png b/core/img/emulators/sg-1000/art/system.png new file mode 100644 index 0000000..af90723 Binary files /dev/null and b/core/img/emulators/sg-1000/art/system.png differ diff --git a/core/img/emulators/snes/Thumbs.db b/core/img/emulators/snes/Thumbs.db new file mode 100644 index 0000000..16109af Binary files /dev/null and b/core/img/emulators/snes/Thumbs.db differ diff --git a/core/img/emulators/snes/art/controller.png b/core/img/emulators/snes/art/controller.png new file mode 100644 index 0000000..f46e6a3 Binary files /dev/null and b/core/img/emulators/snes/art/controller.png differ diff --git a/core/img/emulators/snes/art/system.png b/core/img/emulators/snes/art/system.png new file mode 100644 index 0000000..93726e6 Binary files /dev/null and b/core/img/emulators/snes/art/system.png differ diff --git a/core/img/emulators/steam/art/controller.png b/core/img/emulators/steam/art/controller.png new file mode 100644 index 0000000..4caafc7 Binary files /dev/null and b/core/img/emulators/steam/art/controller.png differ diff --git a/core/img/emulators/steam/art/system.png b/core/img/emulators/steam/art/system.png new file mode 100644 index 0000000..42fe705 Binary files /dev/null and b/core/img/emulators/steam/art/system.png differ diff --git a/core/img/emulators/stratagus/art/controller.png b/core/img/emulators/stratagus/art/controller.png new file mode 100644 index 0000000..849fff6 Binary files /dev/null and b/core/img/emulators/stratagus/art/controller.png differ diff --git a/core/img/emulators/stratagus/art/system.png b/core/img/emulators/stratagus/art/system.png new file mode 100644 index 0000000..6fa760d Binary files /dev/null and b/core/img/emulators/stratagus/art/system.png differ diff --git a/core/img/emulators/supergrafx/art/controller.png b/core/img/emulators/supergrafx/art/controller.png new file mode 100644 index 0000000..3a46f01 Binary files /dev/null and b/core/img/emulators/supergrafx/art/controller.png differ diff --git a/core/img/emulators/supergrafx/art/system.png b/core/img/emulators/supergrafx/art/system.png new file mode 100644 index 0000000..db017ed Binary files /dev/null and b/core/img/emulators/supergrafx/art/system.png differ diff --git a/core/img/emulators/tg-cd/art/controller.png b/core/img/emulators/tg-cd/art/controller.png new file mode 100644 index 0000000..5a3f70e Binary files /dev/null and b/core/img/emulators/tg-cd/art/controller.png differ diff --git a/core/img/emulators/tg-cd/art/system.png b/core/img/emulators/tg-cd/art/system.png new file mode 100644 index 0000000..06244e5 Binary files /dev/null and b/core/img/emulators/tg-cd/art/system.png differ diff --git a/core/img/emulators/tg16/art/controller.png b/core/img/emulators/tg16/art/controller.png new file mode 100644 index 0000000..6d60615 Binary files /dev/null and b/core/img/emulators/tg16/art/controller.png differ diff --git a/core/img/emulators/tg16/art/system.png b/core/img/emulators/tg16/art/system.png new file mode 100644 index 0000000..6d0f842 Binary files /dev/null and b/core/img/emulators/tg16/art/system.png differ diff --git a/core/img/emulators/ti99/art/controller.png b/core/img/emulators/ti99/art/controller.png new file mode 100644 index 0000000..bfd7c6d Binary files /dev/null and b/core/img/emulators/ti99/art/controller.png differ diff --git a/core/img/emulators/ti99/art/system.png b/core/img/emulators/ti99/art/system.png new file mode 100644 index 0000000..afb842f Binary files /dev/null and b/core/img/emulators/ti99/art/system.png differ diff --git a/core/img/emulators/trs80/art/controller.png b/core/img/emulators/trs80/art/controller.png new file mode 100644 index 0000000..f6fe432 Binary files /dev/null and b/core/img/emulators/trs80/art/controller.png differ diff --git a/core/img/emulators/trs80/art/system.png b/core/img/emulators/trs80/art/system.png new file mode 100644 index 0000000..607fb7e Binary files /dev/null and b/core/img/emulators/trs80/art/system.png differ diff --git a/core/img/emulators/vectrex/art/controller.png b/core/img/emulators/vectrex/art/controller.png new file mode 100644 index 0000000..826a6f6 Binary files /dev/null and b/core/img/emulators/vectrex/art/controller.png differ diff --git a/core/img/emulators/vectrex/art/system.png b/core/img/emulators/vectrex/art/system.png new file mode 100644 index 0000000..2ae8dc1 Binary files /dev/null and b/core/img/emulators/vectrex/art/system.png differ diff --git a/core/img/emulators/videopac/art/controller.png b/core/img/emulators/videopac/art/controller.png new file mode 100644 index 0000000..4fdde67 Binary files /dev/null and b/core/img/emulators/videopac/art/controller.png differ diff --git a/core/img/emulators/videopac/art/system.png b/core/img/emulators/videopac/art/system.png new file mode 100644 index 0000000..d76b584 Binary files /dev/null and b/core/img/emulators/videopac/art/system.png differ diff --git a/core/img/emulators/virtualboy/art/controller.png b/core/img/emulators/virtualboy/art/controller.png new file mode 100644 index 0000000..ca48efb Binary files /dev/null and b/core/img/emulators/virtualboy/art/controller.png differ diff --git a/core/img/emulators/virtualboy/art/system.png b/core/img/emulators/virtualboy/art/system.png new file mode 100644 index 0000000..8dcc399 Binary files /dev/null and b/core/img/emulators/virtualboy/art/system.png differ diff --git a/core/img/emulators/wii/art/system.png b/core/img/emulators/wii/art/system.png new file mode 100644 index 0000000..b13fb9e Binary files /dev/null and b/core/img/emulators/wii/art/system.png differ diff --git a/core/img/emulators/wonderswan/art/controller.png b/core/img/emulators/wonderswan/art/controller.png new file mode 100644 index 0000000..83c4a7f Binary files /dev/null and b/core/img/emulators/wonderswan/art/controller.png differ diff --git a/core/img/emulators/wonderswan/art/system.png b/core/img/emulators/wonderswan/art/system.png new file mode 100644 index 0000000..d119869 Binary files /dev/null and b/core/img/emulators/wonderswan/art/system.png differ diff --git a/core/img/emulators/wonderswancolor/art/controller.png b/core/img/emulators/wonderswancolor/art/controller.png new file mode 100644 index 0000000..38bec0c Binary files /dev/null and b/core/img/emulators/wonderswancolor/art/controller.png differ diff --git a/core/img/emulators/wonderswancolor/art/system.png b/core/img/emulators/wonderswancolor/art/system.png new file mode 100644 index 0000000..7cded78 Binary files /dev/null and b/core/img/emulators/wonderswancolor/art/system.png differ diff --git a/core/img/emulators/zmachine/art/controller.png b/core/img/emulators/zmachine/art/controller.png new file mode 100644 index 0000000..342040c Binary files /dev/null and b/core/img/emulators/zmachine/art/controller.png differ diff --git a/core/img/emulators/zmachine/art/system.png b/core/img/emulators/zmachine/art/system.png new file mode 100644 index 0000000..20173d6 Binary files /dev/null and b/core/img/emulators/zmachine/art/system.png differ diff --git a/core/img/emulators/zxspectrum/art/controller.png b/core/img/emulators/zxspectrum/art/controller.png new file mode 100644 index 0000000..fbbf9e4 Binary files /dev/null and b/core/img/emulators/zxspectrum/art/controller.png differ diff --git a/core/img/emulators/zxspectrum/art/system.png b/core/img/emulators/zxspectrum/art/system.png new file mode 100644 index 0000000..9636e18 Binary files /dev/null and b/core/img/emulators/zxspectrum/art/system.png differ diff --git a/core/js/jquery.lazyload.js b/core/js/jquery.lazyload.js new file mode 100644 index 0000000..b395c2e --- /dev/null +++ b/core/js/jquery.lazyload.js @@ -0,0 +1,241 @@ +/*! + * Lazy Load - jQuery plugin for lazy loading images + * + * Copyright (c) 2007-2015 Mika Tuupola + * + * Licensed under the MIT license: + * http://www.opensource.org/licenses/mit-license.php + * + * Project home: + * http://www.appelsiini.net/projects/lazyload + * + * Version: 1.9.7 + * + */ + +(function($, window, document, undefined) { + var $window = $(window); + + $.fn.lazyload = function(options) { + var elements = this; + var $container; + var settings = { + threshold : 0, + failure_limit : 0, + event : "scroll", + effect : "show", + container : window, + data_attribute : "original", + skip_invisible : false, + appear : null, + load : null, + placeholder : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" + }; + + function update() { + var counter = 0; + + elements.each(function() { + var $this = $(this); + if (settings.skip_invisible && !$this.is(":visible")) { + return; + } + if ($.abovethetop(this, settings) || + $.leftofbegin(this, settings)) { + /* Nothing. */ + } else if (!$.belowthefold(this, settings) && + !$.rightoffold(this, settings)) { + $this.trigger("appear"); + /* if we found an image we'll load, reset the counter */ + counter = 0; + } else { + if (++counter > settings.failure_limit) { + return false; + } + } + }); + + } + + if(options) { + /* Maintain BC for a couple of versions. */ + if (undefined !== options.failurelimit) { + options.failure_limit = options.failurelimit; + delete options.failurelimit; + } + if (undefined !== options.effectspeed) { + options.effect_speed = options.effectspeed; + delete options.effectspeed; + } + + $.extend(settings, options); + } + + /* Cache container as jQuery as object. */ + $container = (settings.container === undefined || + settings.container === window) ? $window : $(settings.container); + + /* Fire one scroll event per scroll. Not one scroll event per image. */ + if (0 === settings.event.indexOf("scroll")) { + $container.on(settings.event, function() { + return update(); + }); + } + + this.each(function() { + var self = this; + var $self = $(self); + + self.loaded = false; + + /* If no src attribute given use data:uri. */ + if ($self.attr("src") === undefined || $self.attr("src") === false) { + if ($self.is("img")) { + $self.attr("src", settings.placeholder); + } + } + + /* When appear is triggered load original image. */ + $self.one("appear", function() { + if (!this.loaded) { + if (settings.appear) { + var elements_left = elements.length; + settings.appear.call(self, elements_left, settings); + } + $("") + .one("load", function() { + var original = $self.attr("data-" + settings.data_attribute); + $self.hide(); + if ($self.is("img")) { + $self.attr("src", original); + } else { + $self.css("background-image", "url('" + original + "')"); + } + $self[settings.effect](settings.effect_speed); + + self.loaded = true; + + /* Remove image from array so it is not looped next time. */ + var temp = $.grep(elements, function(element) { + return !element.loaded; + }); + elements = $(temp); + + if (settings.load) { + var elements_left = elements.length; + settings.load.call(self, elements_left, settings); + } + }) + .attr("src", $self.attr("data-" + settings.data_attribute)); + } + }); + + /* When wanted event is triggered load original image */ + /* by triggering appear. */ + if (0 !== settings.event.indexOf("scroll")) { + $self.on(settings.event, function() { + if (!self.loaded) { + $self.trigger("appear"); + } + }); + } + }); + + /* Check if something appears when window is resized. */ + $window.on("resize", function() { + update(); + }); + + /* With IOS5 force loading images when navigating with back button. */ + /* Non optimal workaround. */ + if ((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)) { + $window.on("pageshow", function(event) { + if (event.originalEvent && event.originalEvent.persisted) { + elements.each(function() { + $(this).trigger("appear"); + }); + } + }); + } + + /* Force initial check if images should appear. */ + $(document).ready(function() { + update(); + }); + + return this; + }; + + /* Convenience methods in jQuery namespace. */ + /* Use as $.belowthefold(element, {threshold : 100, container : window}) */ + + $.belowthefold = function(element, settings) { + var fold; + + if (settings.container === undefined || settings.container === window) { + fold = (window.innerHeight ? window.innerHeight : $window.height()) + $window.scrollTop(); + } else { + fold = $(settings.container).offset().top + $(settings.container).height(); + } + + return fold <= $(element).offset().top - settings.threshold; + }; + + $.rightoffold = function(element, settings) { + var fold; + + if (settings.container === undefined || settings.container === window) { + fold = $window.width() + $window.scrollLeft(); + } else { + fold = $(settings.container).offset().left + $(settings.container).width(); + } + + return fold <= $(element).offset().left - settings.threshold; + }; + + $.abovethetop = function(element, settings) { + var fold; + + if (settings.container === undefined || settings.container === window) { + fold = $window.scrollTop(); + } else { + fold = $(settings.container).offset().top; + } + + return fold >= $(element).offset().top + settings.threshold + $(element).height(); + }; + + $.leftofbegin = function(element, settings) { + var fold; + + if (settings.container === undefined || settings.container === window) { + fold = $window.scrollLeft(); + } else { + fold = $(settings.container).offset().left; + } + + return fold >= $(element).offset().left + settings.threshold + $(element).width(); + }; + + $.inviewport = function(element, settings) { + return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && + !$.belowthefold(element, settings) && !$.abovethetop(element, settings); + }; + + /* Custom selectors for your convenience. */ + /* Use as $("img:below-the-fold").something() or */ + /* $("img").filter(":below-the-fold").something() which is faster */ + + $.extend($.expr[":"], { + "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); }, + "above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, + "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); }, + "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); }, + "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); }, + /* Maintain BC for couple of versions. */ + "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, + "right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); }, + "left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); } + }); + +})(jQuery, window, document); diff --git a/core/network.class.php b/core/network.class.php index d61599f..9e6a89c 100644 --- a/core/network.class.php +++ b/core/network.class.php @@ -23,7 +23,17 @@ public static function send($status, $data, $event) { $array = array(); $array['status'] = $status; - $array['data'] = (($data == null) ? '' : htmlentities($data)); + if ($data == null) { + $array['data'] = ''; + } else { + if (is_array($data)) { + foreach ($data as $key => $value) { + $array[$key] = $value; + } + } else { + $array['data'] = htmlentities($data); + } + } $array['event'] = (($event == null) ? '' : $event); echo json_encode($array); } diff --git a/core/page.class.php b/core/page.class.php index 9e2c1e9..459ab7d 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -79,13 +79,21 @@ public static function start($infobox = '', $js = null, $cache = FILE_CACHE) if ($dropdown->type == 'spacer') { $item .= ''; } elseif ($dropdown->type == 'modal') { - $item .= '
  • '.$dropdown->name; + $target = $dropdown->external; + if (strpos($target, URL_SEPARATOR) !== 0) { + $target = str_replace(BASE, '', MODULES).URL_SEPARATOR.$tmp->id.URL_SEPARATOR.$dropdown->external; + } + $item .= '
  • '.$dropdown->name; if (isset($dropdown->beta) && $dropdown->beta == true) { $item .= ' '; } $item .= '
  • '; } elseif ($dropdown->type == 'async') { - $item .= '
  • '.$dropdown->name; + $target = $dropdown->external; + if (strpos($target, URL_SEPARATOR) !== 0) { + $target = str_replace(BASE, '', MODULES).URL_SEPARATOR.$tmp->id.URL_SEPARATOR.$dropdown->external; + } + $item .= '
  • '.$dropdown->name; if (isset($dropdown->beta) && $dropdown->beta == true) { $item .= ' '; } @@ -101,10 +109,14 @@ public static function start($infobox = '', $js = null, $cache = FILE_CACHE) $item .= ''; $item .= '
  • '; } else { - if ($module != null && $tmp->id == $module->id) { + if ($module !== null && $tmp->id == $module->id) { $item .= '
  • '; } else { - $item .= '
  • '; + if ($module == null && $tmp->menu->order == 0) { + $item .= '
  • '; + } else { + $item .= '
  • '; + } } if (isset($tmp->menu->external)) { $item .= ''; @@ -131,13 +143,21 @@ public static function start($infobox = '', $js = null, $cache = FILE_CACHE) if ($dropdown->type == 'spacer') { $item .= '
  • '; } elseif ($dropdown->type == 'modal') { - $item .= '
  • '.$dropdown->name; + $target = $dropdown->external; + if (strpos($target, URL_SEPARATOR) !== 0) { + $target = str_replace(BASE, '', MODULES).URL_SEPARATOR.$tmp->id.URL_SEPARATOR.$dropdown->external; + } + $item .= '
  • '.$dropdown->name; if (isset($dropdown->beta) && $dropdown->beta == true) { $item .= ' '; } $item .= '
  • '; } elseif ($dropdown->type == 'async') { - $item .= '
  • '.$dropdown->name; + $target = $dropdown->external; + if (strpos($target, URL_SEPARATOR) !== 0) { + $target = str_replace(BASE, '', MODULES).URL_SEPARATOR.$tmp->id.URL_SEPARATOR.$dropdown->external; + } + $item .= '
  • '.$dropdown->name; if (isset($dropdown->beta) && $dropdown->beta == true) { $item .= ' '; } @@ -232,6 +252,42 @@ public static function end() echo ''; echo ''; } + + public static function load($target) + { + $offset = strpos($target, '?'); + if ($offset !== false) { + $params = substr($target, $offset+1); + $include = substr($target, 0, $offset); + foreach (explode('&', $params) as $value) { + $parts = explode('=', $value); + if (sizeof($parts) == 2) { + $_GET[$parts[0]] = $parts[1]; + } else { + $_GET[$parts[0]] = ''; + } + } + ob_start(); + include($include); + $input = ob_get_clean(); + $tmp = json_decode($input); + if (isset($tmp->data)) { + echo html_entity_decode($tmp->data); + } else { + echo $input; + } + } else { + ob_start(); + include($target); + $input = ob_get_clean(); + $tmp = json_decode($input); + if (isset($tmp->data)) { + echo html_entity_decode($tmp->data); + } else { + echo $input; + } + } + } } ?> \ No newline at end of file diff --git a/core/rom.class.php b/core/rom.class.php index fd4d8d9..6e98771 100644 --- a/core/rom.class.php +++ b/core/rom.class.php @@ -58,12 +58,17 @@ public static function write($id, $data) return db::instance()->write('metadata', $data, 'id='.db::instance()->quote($id)); } - public static function delete($id) + public static function delete($id, $config = array('rom', 'metadata', 'media')) { - $rom = self::config($id); - $item = current(db::instance()->read('config', 'id='.db::instance()->quote('roms_path')))['value'].DIRECTORY_SEPARATOR.$rom['emulator'].DIRECTORY_SEPARATOR.$rom['name']; - if (is_file($item)) { - unlink($item); + if (in_array('rom', $config)) { + $rom = self::config($id); + $item = current(db::instance()->read('config', 'id='.db::instance()->quote('roms_path')))['value'].DIRECTORY_SEPARATOR.$rom['emulator'].DIRECTORY_SEPARATOR.$rom['name']; + if (is_file($item)) { + unlink($item); + db::instance()->delete('roms', 'id='.db::instance()->quote($id)); + $emulator = emulator::config($rom['emulator']); + db::instance()->write('emulators', array('count' => $emulator['count'] - 1), 'id='.db::instance()->quote($rom['emulator'])); + } } $data = db::instance()->read('metadata', 'id='.db::instance()->quote($id)); @@ -73,17 +78,16 @@ public static function delete($id) if ($field['type'] == 'upload') { if ($value != '') { if (file_exists($value)) { - unlink($value); + if (in_array('media', $config)) { + unlink($value); + } } } } } - - $emulator = emulator::config($rom['emulator']); - db::instance()->write('emulators', array('count' => $emulator['count'] - 1), 'id='.db::instance()->quote($rom['emulator'])); - - db::instance()->delete('roms', 'id='.db::instance()->quote($id)); - db::instance()->delete('metadata', 'id='.db::instance()->quote($id)); + if (in_array('metadata', $config)) { + db::instance()->delete('metadata', 'id='.db::instance()->quote($id)); + } } } diff --git a/index.php b/index.php index acabf34..d24edbe 100644 --- a/index.php +++ b/index.php @@ -10,8 +10,9 @@ if (isset($tmp->dashboard)) { foreach ($tmp->dashboard as $item) { $target = $item->target; - if (strpos($target, DIRECTORY_SEPARATOR) !== 0) { - $target = MODULES.DIRECTORY_SEPARATOR.$tmp->id.DIRECTORY_SEPARATOR.$target; + if (strpos($target, URL_SEPARATOR) == 0) { + $target = MODULES.URL_SEPARATOR.$tmp->id.URL_SEPARATOR.$item->target; + $target = str_replace(URL_SEPARATOR, DIRECTORY_SEPARATOR, $target); } $parts = explode(' ', $item->grid); @@ -52,22 +53,7 @@ echo '
    '; ksort($column); foreach ($column as $key => $panel) { - $offset = strpos($panel, '?'); - if ($offset !== false) { - $params = substr($panel, $offset+1); - $include = substr($panel, 0, $offset); - foreach (explode('&', $params) as $value) { - $parts = explode('=', $value); - if (sizeof($parts) == 2) { - $_GET[$parts[0]] = $parts[1]; - } else { - $_GET[$parts[0]] = ''; - } - } - include($include); - } else { - include($panel); - } + page::load($panel); } echo '
    '; } diff --git a/modules/admin/config.json b/modules/admin/config.json index 027e019..709615a 100644 --- a/modules/admin/config.json +++ b/modules/admin/config.json @@ -6,13 +6,13 @@ "id" : "config", "name" : "General", "icon" : "cogs", - "target" : "/modules/admin/dialog.php?action=config&id=config" + "target" : "dialog.php?action=config&id=config" }, { "id" : "emulators", "name" : "Emulators", "icon" : "gamepad", - "target" : "/modules/admin/dialog.php?action=config&id=emulators" + "target" : "dialog.php?action=config&id=emulators" } ] } \ No newline at end of file diff --git a/modules/admin/controller.php b/modules/admin/controller.php index e6103a1..41a0e52 100644 --- a/modules/admin/controller.php +++ b/modules/admin/controller.php @@ -1,6 +1,6 @@ config)) { foreach ($tmp->config as $item) { - $fieldset[$item->id] = array('name' => $item->name, 'target' => $item->target); + $fieldset[$item->id] = array('id' => $tmp->id, 'name' => $item->name, 'target' => $item->target); if (isset($item->icon)) { $fieldset[$item->id]['icon'] = $item->icon; } @@ -36,7 +36,11 @@ if (cache::getClientVariable($module->id.'_id') == $key) { echo 'class="active"'; } - echo '>
    '; + $target = $item['target']; + if (strpos($target, URL_SEPARATOR) !== 0) { + $target = str_replace(BASE, '', MODULES).URL_SEPARATOR.$item['id'].URL_SEPARATOR.$item['target']; + } + echo '>'; if (isset($item['icon'])) { echo ' '; } @@ -50,42 +54,11 @@ if (isset($fieldset[cache::getClientVariable($module->id.'_id')])) { $item = $fieldset[cache::getClientVariable($module->id.'_id')]; $target = $item['target']; - if (strpos($target, DIRECTORY_SEPARATOR) == 0) { - $target = BASE.DIRECTORY_SEPARATOR.$target; - } - - $offset = strpos($target, '?'); - if ($offset !== false) { - $params = substr($target, $offset+1); - $include = substr($target, 0, $offset); - foreach (explode('&', $params) as $value) { - $parts = explode('=', $value); - if (sizeof($parts) == 2) { - $_GET[$parts[0]] = $parts[1]; - } else { - $_GET[$parts[0]] = ''; - } - } - ob_start(); - include($include); - $input = ob_get_clean(); - $tmp = json_decode($input); - if (isset($tmp->data)) { - echo html_entity_decode($tmp->data); - } else { - echo $input; - } - } else { - ob_start(); - include($target); - $input = ob_get_clean(); - $tmp = json_decode($input); - if (isset($tmp->data)) { - echo html_entity_decode($tmp->data); - } else { - echo $input; - } + if (strpos($target, URL_SEPARATOR) == 0) { + $target = MODULES.URL_SEPARATOR.$item['id'].URL_SEPARATOR.$item['target']; + $target = str_replace(URL_SEPARATOR, DIRECTORY_SEPARATOR, $target); } + page::load($target); } } echo ''; diff --git a/modules/control/config.json b/modules/control/config.json index cc5aaaa..2167e1f 100644 --- a/modules/control/config.json +++ b/modules/control/config.json @@ -6,7 +6,7 @@ "id" : "db", "name" : "Database", "icon" : "database", - "target" : "/modules/control/dialog.php?action=config&id=db" + "target" : "dialog.php?action=config&id=db" } ], "menu" : { @@ -27,19 +27,19 @@ "id" : "stop", "name" : "Stop Current Emulator", "type" : "async", - "external" : "/modules/control/controller.php?action=stop" + "external" : "controller.php?action=stop" }, { "id" : "restart", "name" : "Restart Emulationstation", "type" : "modal", - "external" : "/modules/control/dialog.php?action=restart" + "external" : "dialog.php?action=restart" }, { "id" : "reboot", "name" : "Reboot", "type" : "modal", - "external" : "/modules/control/dialog.php?action=reboot" + "external" : "dialog.php?action=reboot" } ] } diff --git a/modules/control/config.php b/modules/control/config.php index 5f0703c..88d4c2f 100644 --- a/modules/control/config.php +++ b/modules/control/config.php @@ -4,8 +4,12 @@ $module = module::read(); if ($module != null) { - define('CONTROLLER', '/modules'.URL_SEPARATOR.$module->id.URL_SEPARATOR.'controller.php'); - define('DIALOG', '/modules'.URL_SEPARATOR.$module->id.URL_SEPARATOR.'dialog.php'); + if (!defined('CONTROLLER')) { + define('CONTROLLER', '/modules'.URL_SEPARATOR.$module->id.URL_SEPARATOR.'controller.php'); + } + if (!defined('DIALOG')) { + define('DIALOG', '/modules'.URL_SEPARATOR.$module->id.URL_SEPARATOR.'dialog.php'); + } config::includes(MODULES.DIRECTORY_SEPARATOR.$module->id); } diff --git a/modules/control/controller.php b/modules/control/controller.php index 87296c7..dbce9c3 100644 --- a/modules/control/controller.php +++ b/modules/control/controller.php @@ -1,6 +1,6 @@ id); } diff --git a/modules/dashboard/dialog.php b/modules/dashboard/dialog.php index f1b07c6..dc20c21 100644 --- a/modules/dashboard/dialog.php +++ b/modules/dashboard/dialog.php @@ -1,6 +1,6 @@ id); db::instance()->install($module->id); diff --git a/modules/editor/controller.php b/modules/editor/controller.php index 6d0b24b..86a141a 100644 --- a/modules/editor/controller.php +++ b/modules/editor/controller.php @@ -1,6 +1,6 @@ id.'_id', network::get('id')); $parts = explode('@', network::get('id')); - $output = ''; + $output = array(); foreach (db::instance()->read($module->id) as $item) { if (sizeof($parts) == 2) { if ($item['id'] == $parts[1]) { $item['value'] = str_replace('%EMULATOR%', cache::getClientVariable($module->id.'_emulator'), $item['value']); if (file_exists($item['value'].DIRECTORY_SEPARATOR.$parts[0])) { - $output = file_get_contents($item['value'].DIRECTORY_SEPARATOR.$parts[0]); + $output['content'] = file_get_contents($item['value'].DIRECTORY_SEPARATOR.$parts[0]); + $output['format'] = $item['format']; } } } else { if ($item['id'] == network::get('id')) { $item['value'] = str_replace('%EMULATOR%', cache::getClientVariable($module->id.'_emulator'), $item['value']); if (file_exists($item['value'])) { - $output = file_get_contents($item['value']); + $output['content'] = file_get_contents($item['value']); + $output['format'] = $item['format']; } } } diff --git a/modules/editor/dialog.php b/modules/editor/dialog.php index 03f5994..3abb3ac 100644 --- a/modules/editor/dialog.php +++ b/modules/editor/dialog.php @@ -1,6 +1,6 @@ 0) { var element = $('#nav-editor'); - core.editor.load(element.attr('data-query') + encodeURIComponent(element.val()), element.attr('data-target'), element.attr('data-mode')); + core.editor.load(element.attr('data-query') + encodeURIComponent(element.val()), element.attr('data-target')); } $('#nav-editor').on('change', function (e) { e.preventDefault(); - return core.editor.load($(this).attr('data-query') + encodeURIComponent($(this).val()), $(this).attr('data-target'), $(this).attr('data-mode')); + return core.editor.load($(this).attr('data-query') + encodeURIComponent($(this).val()), $(this).attr('data-target')); }); $('#nav-emulator').on('change', function (e) { @@ -21,7 +21,7 @@ }); }; - var load = function (loadurl, target, mode) { + var load = function (loadurl, target) { $('#' + target).addClass('hidden'); $.get(loadurl, function (data) { try { @@ -33,7 +33,7 @@ } eval(obj.event); } else { - var data = $('