Last active
January 2, 2016 23:19
-
-
Save benknight/8375198 to your computer and use it in GitHub Desktop.
Wider Yelp.com pages (jQuery only)
This file contains 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
/* Baz */ | |
.widen .biz-page-subheader .column-alpha { | |
width: 100%; | |
} | |
.widen .biz-page-subheader .column-beta { | |
width: 660px; | |
} | |
.widen .mapbox-map { | |
height: auto; | |
} | |
.widen .mapbox-map img { | |
display: block; | |
width: 100%; | |
height: auto; | |
} | |
This file contains 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
(function($) { | |
if (!$) { | |
window.alert('This only works on jQuery pages!'); | |
return; | |
} | |
var width = window.prompt('Set the width, yo', '1000'); | |
var containers = '.header-container, .top-shelf .container, #super-container, .footer-wrap'; | |
$('body').addClass('widen'); | |
$(containers).css('width', width + 'px'); | |
})(window.jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment