salmancreation

CHANGE THEME COLOR ON CLICK and Width

Dec 12th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // CHANGE THEME COLOR ON CLICK
  2. var colorLi = $(".color-list li");
  3. colorLi.on('click',function () {
  4. $("link[href*='color']").attr("href", $(this).attr("data-value"));
  5. });
  6.  
  7. // CHANGE THEME COLOR ON CLICK
  8. $(".layout-select li#box").on('click',function () {
  9. $(".main-layout").removeClass("wide");
  10. $(".main-layout").addClass("box");
  11. });
  12. // CHANGE THEME COLOR ON CLICK
  13. $(".layout-select li#wide").on('click',function () {
  14. $(".main-layout").removeClass("box");
  15. $(".main-layout").addClass("wide");
  16. });
Add Comment
Please, Sign In to add comment