Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var largeScreen = 992;
  2. var imgZoomHeight = $j(".product-image").height();
  3.  
  4. function zoomSwitch() {
  5. var windowSize = $j(window).innerWidth() >= largeScreen;
  6. if (windowSize === true) {
  7. zoomTints(imgZoomHeight);
  8. } else {
  9. zoomInner();
  10. }
  11. }
  12.  
  13. function zoomResizeSwitch() {
  14. zoomSwitch();
  15.  
  16. $j(window).resize(function() {
  17. zoomSwitch();
  18. });
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement