app.js 1.2 KB

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