2022.01.31 linkkf 버그 픽스 (.06. 기타)

This commit is contained in:
2023-01-31 23:09:12 +09:00
parent e37a3c652b
commit 6c198dcc76
2 changed files with 11 additions and 8 deletions

View File

@@ -24,8 +24,8 @@
<div>
<form id="program_list">
{{ macros.setting_input_text_and_buttons('code', '작품 Code',
[['analysis_btn', '분석'], ['go_ohli24_btn', 'Go OHLI24']], desc='예)
"https://ohli24.net/c/녹을 먹는 비스코" 나 "녹을 먹는 비스코"') }}
[['analysis_btn', '분석'], ['go_linkkf_btn', 'Go 링크 애니']], desc='예)
"https://linkkf.app/코드" 나 "코"') }}
</form>
<form id="program_auto_form">
<div id="episode_list"></div>
@@ -45,7 +45,7 @@
const package_name = "{{arg['package_name'] }}";
const sub = "{{arg['sub'] }}";
const ohli24_url = "{{arg['ohli24_url']}}";
const linkkf_url = "{{arg['linkkf_url']}}";
const params = new Proxy(new URLSearchParams(window.location.search), {
@@ -209,13 +209,13 @@
// {#document.getElementById("analysis_btn").click();#}
}
if ("{{arg['ohli24_current_code']}}" !== "") {
if ("{{arg['linkkf_current_code']}}" !== "") {
if (params.code === null) {
console.log('params.code === null')
document.getElementById("code").value = "{{arg['ohli24_current_code']}}";
document.getElementById("code").value = "{{arg['linkkf_current_code']}}";
} else if (params.code === '') {
document.getElementById("code").value = "{{arg['ohli24_current_code']}}";
document.getElementById("code").value = "{{arg['linkkf_current_code']}}";
} else {
console.log('params code exist')
@@ -264,9 +264,9 @@
});
$("body").on('click', '#go_ohli24_btn', function (e) {
$("body").on('click', '#go_linkkf_btn', function (e) {
e.preventDefault();
window.open("{{arg['ohli24_url']}}", "_blank");
window.open("{{arg['linkkf_url']}}", "_blank");
});
$("body").on('click', '#all_check_on_btn', function (e) {