You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

2 years ago
  1. /*==============================
  2. STYLE SWITCHER SCRIPT INSTALLATION
  3. ===============================*/
  4. (function($) {
  5. "use strict";
  6. $(".style1" ).on("click", function(){
  7. $("#colors" ).attr("href", "css/styles.css" );
  8. $("#main_logo" ).attr("src", "img/logos/logo.png" );
  9. return false;
  10. });
  11. $(".style2" ).on("click", function(){
  12. $("#colors" ).attr("href", "css/styles-2.css" );
  13. $("#main_logo" ).attr("src", "img/logos/logo-2.png" );
  14. return false;
  15. });
  16. $(".style3" ).on("click", function(){
  17. $("#colors" ).attr("href", "css/styles-3.css" );
  18. $("#main_logo" ).attr("src", "img/logos/logo-3.png" );
  19. return false;
  20. });
  21. $(".style4" ).on("click", function(){
  22. $("#colors" ).attr("href", "css/styles-4.css" );
  23. $("#main_logo" ).attr("src", "img/logos/logo-4.png" );
  24. return false;
  25. });
  26. $(".style5" ).on("click", function(){
  27. $("#colors" ).attr("href", "css/styles-5.css" );
  28. $("#main_logo" ).attr("src", "img/logos/logo-5.png" );
  29. return false;
  30. });
  31. $(".style6" ).on("click", function(){
  32. $("#colors" ).attr("href", "css/styles-6.css" );
  33. $("#main_logo" ).attr("src", "img/logos/logo-6.png" );
  34. return false;
  35. });
  36. })(jQuery);