| 12345678910111213141516171819202122232425262728 |
- import { search } from "./search.js";
- import { pixel, percent, auto } from "./size.js";
- import { position, place_top } from "./position.js";
- import { sticky } from "./sticky.js";
- import { loader } from "./loader.js";
- import { database } from "./database.js";
- document.addEventListener("DOMContentLoaded", async () => {
- const container = document.querySelector(".container");
-
- const parser = new loader("./database", "project.json");
- await parser.load();
- const store = new database(parser.loaded);
-
- const top_bar_builder = new sticky();
- top_bar_builder.width = new percent(100);
- top_bar_builder.height = new auto();
- top_bar_builder.position = new place_top();
- const top_bar = top_bar_builder.element;
- const search_bar = new search(store);
- top_bar.appendChild(search_bar.ui);
- container.appendChild(top_bar);
- });
|