salmancreation

CHANGE THEME COLOR ON CLICK

Dec 12th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // SHOW COLOR OPTION DIV WHEN CLICK ON THE GEAR
  2. $(".gear-check").on('click',(function () {
  3. $(".color-option").fadeToggle();
  4. }));
  5. // CHANGE THEME COLOR ON CLICK
  6. var colorLi = $(".color-option li");
  7. colorLi.on('click',function () {
  8. $("link[href*='color']").attr("href", $(this).attr("data-value"));
  9. });
Add Comment
Please, Sign In to add comment