Created
June 7, 2012 12:55
-
-
Save Mouad-BGD/2888670 to your computer and use it in GitHub Desktop.
Js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(window).resize(function() { if ($(document).width() < 720) toggleImagesSlides() | |
| else toggleImagesSlides(); | |
| }); | |
| toggleImagesSlides(){ | |
| if they are already loaded just toggle thier visbility else load them [via ajax] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| if ((screen.width>=1024) [&& (screen.height>=768)]) { | |
| jQuery | |
| ------ | |
| $(window).width(); // returns width of browser viewport | |
| $(document).width(); // returns width of HTML document | |
| other function: .outerWidth | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment