anime-downloader bug fix 10.

This commit is contained in:
2022-04-06 23:45:15 +09:00
parent 32ff102fec
commit ec6b5570b7
4 changed files with 693 additions and 271 deletions

View File

@@ -16,13 +16,25 @@
const ohli24_url = "{{arg['ohli24_url']}}";
let current_data = null;
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
})
$(document).ready(function(){
if ( "{{arg['ohli24_current_code']}}" !== "" ) {
document.getElementById("code").value = "{{arg['ohli24_current_code']}}";
// 값이 공백이 아니면 분석 버튼 계속 누름
{#document.getElementById("analysis_btn").click();#}
}
if (params.code === '') {
} else {
document.getElementById("code").value = params.code
{#document.getElementById("analysis_btn").click();#}
}
if ( "{{arg['ohli24_current_code']}}" !== "" ) {
document.getElementById("code").value = "{{arg['ohli24_current_code']}}";
// 값이 공백이 아니면 분석 버튼 계속 누름
{#document.getElementById("analysis_btn").click();#}
}
// 분석 버튼 클릭시 호출
$("body").on('click', '#analysis_btn', function(e){