app.js 966 B

12345678910111213141516171819202122232425262728293031323334
  1. //JQuery Module Pattern
  2. // An object literal
  3. var app = {
  4. init: function() {
  5. app.functionOne();
  6. },
  7. functionOne: function () {
  8. }
  9. };
  10. function pcsh1() {
  11. var x = document.getElementById("filter--section");
  12. x.classList.toggle("filterWrapper_open");
  13. }
  14. function pcsh2() {
  15. var x = document.getElementById("filter--section");
  16. if (x.classList.contains("filterWrapper_open")) //
  17. x.classList.toggle("filterWrapper_open");
  18. }
  19. const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
  20. const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
  21. var options = {
  22. html: true,
  23. // title: "Optional: HELLO(Will overide the default-the inline title)",
  24. content: $(".user--profile_menu").html()
  25. }
  26. var exampleEl = document.getElementById('link-popover')
  27. var popover = new bootstrap.Popover(exampleEl, options)