Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //windows trigger on resize
- var secondChartIsOpen;
- $(window).resize(function () {
- if ($(window).width() <= 1024) {
- secondChartIsOpen = false;
- $('#control-button-second-chart').trigger("click");
- }
- else {
- secondChartIsOpen = true;
- $('#control-button-second-chart').trigger("click");
- }
- });
- //click function here
- $('#control-button-second-chart').click(function () {conditions inside here}
Add Comment
Please, Sign In to add comment