core.js 494 B

12345678910111213141516
  1. import { search } from "./search.js";
  2. import { pixel, percent, auto } from "./size.js";
  3. import { position, place_top } from "./position.js";
  4. import { sticky } from "./sticky.js";
  5. document.addEventListener("DOMContentLoaded", () => {
  6. const container = document.querySelector(".container");
  7. const top_bar = new sticky();
  8. top_bar.width = new percent(100);
  9. top_bar.height = new auto();
  10. top_bar.position = new place_top();
  11. container.appendChild(top_bar.element);
  12. });