From ca45461a5d27204142e73316d3a3d889b5f63da3 Mon Sep 17 00:00:00 2001 From: OctoSpacc Date: Sun, 3 Dec 2023 20:12:59 +0100 Subject: [PATCH] Fix emulator.html; Update issue templates --- .github/ISSUE_TEMPLATE/Copyright.yml | 1 - .github/ISSUE_TEMPLATE/Suggestion.yml | 13 +++++++++++++ _includes/emulator.html | 12 +++++++----- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/Suggestion.yml diff --git a/.github/ISSUE_TEMPLATE/Copyright.yml b/.github/ISSUE_TEMPLATE/Copyright.yml index 4703634..c8e4778 100644 --- a/.github/ISSUE_TEMPLATE/Copyright.yml +++ b/.github/ISSUE_TEMPLATE/Copyright.yml @@ -9,6 +9,5 @@ body: attributes: label: "Description" description: "Provide a comprehensive explanation of the copyright issue, as well as any required information for us to evaluate your claims and handle your request. If and only if you have to provide sensitive information, we can arrange for moving the conversation to a private channel." - placeholder: "Provide a comprehensive explanation of the copyright issue, as well as any required information for us to evaluate your claims and handle your request. If and only if you have to provide sensitive information, we can arrange for moving the conversation to a private channel." validations: required: true diff --git a/.github/ISSUE_TEMPLATE/Suggestion.yml b/.github/ISSUE_TEMPLATE/Suggestion.yml new file mode 100644 index 0000000..7001e79 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Suggestion.yml @@ -0,0 +1,13 @@ +name: "Suggestion" +description: "Create a ticket to suggest a new article for the site, or for general improvement suggestions." +title: "[Suggestion] - " +labels: + - "Suggestion" +body: + - type: textarea + id: description + attributes: + label: "Description" + description: "Provide a comprehensive explanation of your suggestion, as well as any additional information and context for it to be properly evaluated and handled by the staff and/or other community members." + validations: + required: true diff --git a/_includes/emulator.html b/_includes/emulator.html index 6412c4c..71eca8f 100644 --- a/_includes/emulator.html +++ b/_includes/emulator.html @@ -1,7 +1,10 @@ -{% if include.rom_index != '' and include.rom_url == '' %} - {% capture include.rom_url %}https://gamingshitposting.github.io/ext-bin-1/roms/{{ include.rom_index }}.nes.7z{% endcapture %} +{% capture rom_url %}{{ include.rom_url }}{% endcapture %} + +{% if include.rom_index != '' and rom_url == '' %} + {% capture rom_url %}https://gamingshitposting.github.io/ext-bin-1/roms/{{ include.rom_index }}.nes.7z{% endcapture %} {% endif %} +<p> {% if include.backend == 'emulatorjs' or include.platform == 'nes' %} <div style="width:640px; height:480px; max-width:100%"> <div id="GameFrame"></div> @@ -9,12 +12,11 @@ <script type="text/javascript"> EJS_player = '#GameFrame'; EJS_core = '{{ include.platform }}'; - EJS_gameUrl = '{{ include.rom_url }}'; + EJS_gameUrl = '{{ rom_url }}'; EJS_pathtodata = 'https://gamingshitposting.github.io/ext-bin-1/EmulatorJS/data/'; </script> <script src="https://gamingshitposting.github.io/ext-bin-1/EmulatorJS/data/loader.js"></script> {% else %} -<p> <button onclick="(function(ctx){ ctx.parentElement.scrollIntoView(); ctx.parentElement.querySelector('iframe.AppFrame').focus(); @@ -22,5 +24,5 @@ {% if include.platform == 'nds' %} <iframe class="AppFrame" src="https://octospacc.gitlab.io/Web-Archives-Misc/Repo/DeSmuME/#RomUrl={{ include.rom_binary }}"></iframe> {% endif %} +{% endif %} </p> -{% endif %} \ No newline at end of file