Guest User

Untitled

a guest
Apr 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //windows trigger on resize
  2. var secondChartIsOpen;
  3. $(window).resize(function () {
  4. if ($(window).width() <= 1024) {
  5. secondChartIsOpen = false;
  6. $('#control-button-second-chart').trigger("click");
  7. }
  8. else {
  9. secondChartIsOpen = true;
  10. $('#control-button-second-chart').trigger("click");
  11. }
  12. });
  13. //click function here
  14. $('#control-button-second-chart').click(function () {conditions inside here}
Add Comment
Please, Sign In to add comment