Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var largeScreen = 992;
- var imgZoomHeight = $j(".product-image").height();
- function zoomSwitch() {
- var windowSize = $j(window).innerWidth() >= largeScreen;
- if (windowSize === true) {
- zoomTints(imgZoomHeight);
- } else {
- zoomInner();
- }
- }
- function zoomResizeSwitch() {
- zoomSwitch();
- $j(window).resize(function() {
- zoomSwitch();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement