Skip to content

Instantly share code, notes, and snippets.

@benknight
Last active January 2, 2016 23:19
Show Gist options
  • Save benknight/8375198 to your computer and use it in GitHub Desktop.
Save benknight/8375198 to your computer and use it in GitHub Desktop.
Wider Yelp.com pages (jQuery only)
/* 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;
}
(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