Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function adjustStyle(width) {
- width = parseInt(width);
- if (width < 910) {
- $("#smaller-sheet").attr("href", "thin.css");
- } else if ((width >=910)) {
- $("#smaller-sheet").attr("href", "style.css");
- }
- }
- $(function() {
- adjustStyle($(this).width());
- $(window).resize(function() {
- adjustStyle($(this).width());
- });
- adjustStyle($(this).width());
- $(window).load(function() {
- adjustStyle($(this).width());
- });
- });
Add Comment
Please, Sign In to add comment