인프런 업로드
This commit is contained in:
@@ -1,63 +1,62 @@
|
||||
{% extends "base.html" %} {% block content %}
|
||||
|
||||
<div>
|
||||
<form id="program_list">
|
||||
{{ macros.setting_input_text_and_buttons('code', '작품 Code',
|
||||
[['analysis_btn', '분석'], ['go_inflearn_btn', 'Go Linkkf'],
|
||||
['go_modal_airing', '방영중']], desc='URL: https://linkkf.app/[코드]/
|
||||
형식에서 코드부분 숫자 (예> 22005 원피스)') }}
|
||||
<!-- {#-->
|
||||
<!-- <botton-->
|
||||
<!-- id="go_modal_airing"-->
|
||||
<!-- type="button"-->
|
||||
<!-- class="btn btn-primary"-->
|
||||
<!-- data-toggle="modal"-->
|
||||
<!-- data-target="#exModal"-->
|
||||
<!-- >방영중</botton-->
|
||||
<!-- >#}-->
|
||||
</form>
|
||||
<form id="airing_list_form">
|
||||
<div id="airing_list"></div>
|
||||
</form>
|
||||
<form id="program_auto_form">
|
||||
<div id="episode_list"></div>
|
||||
</form>
|
||||
<form id="program_list">
|
||||
{{ macros.setting_input_text_and_buttons('code', '작품 Code',
|
||||
[['analysis_btn', '분석'], ['go_inflearn_btn', 'Go Linkkf']], desc='URL:
|
||||
https://www.inflearn.com/course/코드#curriculum') }}
|
||||
|
||||
</form>
|
||||
<form id="airing_list_form">
|
||||
<div id="airing_list"></div>
|
||||
</form>
|
||||
<form id="program_auto_form">
|
||||
<div id="episode_list"></div>
|
||||
</form>
|
||||
</div>
|
||||
<!--전체-->
|
||||
<link
|
||||
href="{{ url_for('.static', filename='css/%s.css' % arg['template_name'])
|
||||
href="{{ url_for('.static', filename='css/%s.css' % arg['template_name'])
|
||||
}}"
|
||||
type="text/css"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<script type="text/javascript">
|
||||
const package_name = "linkkf-yommi";
|
||||
const inflearn_url = "{{arg['inflearn_url']}}";
|
||||
const package_name = "inflearn";
|
||||
const inflearn_url = "{{arg['inflearn_url']}}";
|
||||
// let current_data = ""
|
||||
let run_time = 0
|
||||
|
||||
$(document).ready(function () {
|
||||
// console.log ('current_code::', {{arg['current_code']}})
|
||||
// {#console.log(params)#}
|
||||
// {#code = params.code#}
|
||||
// {#console.log('code:::> ', code)#}
|
||||
|
||||
if ("{{arg['current_code']}}" !== "") {
|
||||
code = "{{arg['current_code']}}";
|
||||
document.getElementById("code").value = "{{arg['current_code']}}";
|
||||
document.getElementById("analysis_btn").click();
|
||||
|
||||
// {#$('[data-tooltip="true"]').tooltip();#}
|
||||
// {#$('.bootstrap-tooltip').tooltip();#}
|
||||
}
|
||||
$(document).ready(function () {
|
||||
// console.log ('current_code::', {{arg['current_code']}})
|
||||
// {#console.log(params)#}
|
||||
// {#code = params.code#}
|
||||
// {#console.log('code:::> ', code)#}
|
||||
// console.log('current_data:: ', current_data)
|
||||
let now = Math.floor(new Date().getTime() / 1000)
|
||||
|
||||
// console.log('params.code:::> ', params.code)
|
||||
if ("{{arg['current_code']}}" !== "" && current_data.data.code === "{{arg['current_code']}}") {
|
||||
code = "{{arg['current_code']}}";
|
||||
document.getElementById("code").value = "{{arg['current_code']}}";
|
||||
document.getElementById("analysis_btn").click();
|
||||
|
||||
if (params.code === "") {
|
||||
} else {
|
||||
document.getElementById("code").value = params.code;
|
||||
document.getElementById("analysis_btn").click();
|
||||
}
|
||||
// console.log('code:::' ,code)
|
||||
});
|
||||
// {#$('[data-tooltip="true"]').tooltip();#}
|
||||
// {#$('.bootstrap-tooltip').tooltip();#}
|
||||
}
|
||||
|
||||
// console.log('params.code:::> ', params.code)
|
||||
|
||||
if (params.code === "") {
|
||||
} else {
|
||||
document.getElementById("code").value = params.code;
|
||||
document.getElementById("analysis_btn").click();
|
||||
|
||||
}
|
||||
console.log('run_time:::' ,run_time)
|
||||
console.log('after_time:::' ,now - run_time)
|
||||
});
|
||||
</script>
|
||||
<script src="{{ url_for('.static', filename='js/%s.js' % arg['template_name']) }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user