Adding sectionPlotUI

This commit is contained in:
Sai Raj 2020-06-12 14:36:43 +05:30 committed by GitHub
parent b1d7ef2a0a
commit 2686ed62e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1087,6 +1087,26 @@ let myCustomLogin = function () {
document.querySelectorAll('.admin-options').forEach((option) => {
option.classList.remove('hide-completely');
})
let sectionPlotUI = `<section class="popup-container hide" id="section_plot_div">
<div id="section_plot_modal" class="popup">
<header class="heading">
<h3 class="heading">Paste Plot Diagram</h3>
<button id="section_plot_btn">Create Sections</button>
</header>
<textarea id="section_plot_txt" placeholder="Paste the plot diagram for the article..">
</textarea>
</div>
</section>`;
document.getElementById('sectionplotdiv').innerHTML = sectionPlotUI;
const section_plot_btn = document.getElementById('section_plot_btn');
section_plot_btn.onclick = function () {
let section_plot_value = document.getElementById('section_plot_txt').value;
console.log(section_plot_value);
// plot func here
hidePopup('section_plot_modal')
}
}
}