start work on schedules tab
This commit is contained in:
parent
d8feb361d5
commit
5081ff28bc
34
layout.html
34
layout.html
@ -83,9 +83,9 @@
|
|||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.readyToDrop {
|
.readyToDrop {
|
||||||
background-color: green;
|
background-color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
::backdrop {
|
::backdrop {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
@ -283,6 +283,17 @@
|
|||||||
<button class="media_item_edl_jump_insert">-></button>
|
<button class="media_item_edl_jump_insert">-></button>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
<template id="schedules_template">
|
||||||
|
<h2>Schedules</h2>
|
||||||
|
<section id="schedules_time_range_section">
|
||||||
|
<button id="previous_week_button"><</button>
|
||||||
|
<p id="current_week_indicator"></p>
|
||||||
|
<button id="next_week_button">></button>
|
||||||
|
</section>
|
||||||
|
<section id="schedules_grid">
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
<script>
|
<script>
|
||||||
const init_library = () => {
|
const init_library = () => {
|
||||||
// set up handler for library filtering
|
// set up handler for library filtering
|
||||||
@ -579,7 +590,22 @@
|
|||||||
tab_content.appendChild(template_clone);
|
tab_content.appendChild(template_clone);
|
||||||
fetch_tags();
|
fetch_tags();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.getElementById("schedules_tab").addEventListener("click", (e) => {
|
||||||
|
setActiveTab(e);
|
||||||
|
const tab_content = document.querySelector("#tab_content");
|
||||||
|
tab_content.innerHTML = "";
|
||||||
|
const template = document.querySelector("#schedules_template");
|
||||||
|
const template_clone = template.content.cloneNode(true);
|
||||||
|
tab_content.appendChild(template_clone);
|
||||||
|
init_schedules();
|
||||||
|
});
|
||||||
|
|
||||||
|
const init_schedules = () => {
|
||||||
|
const today = new Date(Date.now()).getDay();
|
||||||
|
console.log(today);
|
||||||
|
}
|
||||||
|
|
||||||
const tag_editor_handlers = () => {
|
const tag_editor_handlers = () => {
|
||||||
document.querySelector("#save_tag_button").addEventListener("click", (e) => {
|
document.querySelector("#save_tag_button").addEventListener("click", (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user