app.js 472 B

123456789101112131415161718192021
  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. }