Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ body, td, th, tr{
div#wrapper{
border-radius: 5px;
margin: 0 auto;
min-width: 1035px;
max-width: 2300px;
min-width: 750px;
}

/* lets give all forms zero padding/margins */
Expand Down
4 changes: 2 additions & 2 deletions scripts/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ $(function(){
var $sheet = $('<style>').appendTo('head');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting an illegal string was specified error when trying to run this section of code manually (Not this specific line)

$(window).resize(function(){
// 90% - 88px - 15em(of .poster)
var w = parseFloat($(window).width())*0.9-88-(15*Number(getComputedStyle($('.poster')[0], "").fontSize.match(/(\d*(\.\d*)?)px/)[1]));
var w = parseFloat($('#wrapper').width())*0.9-88-(15*Number(getComputedStyle($('.poster')[0], "").fontSize.match(/(\d*(\.\d*)?)px/)[1]));
$sheet.html('img.bbc_img{max-width:'+w+'px;}');
}).resize();
}
if($('.dp_news').length > 0){ // front page news
$sheet = $('<style>').appendTo('head');
$(window).resize(function(){
var w = parseFloat($(window).width())*0.9 - 500;
var w = parseFloat($('#wrapper').width())*0.9 - 500;
$sheet.html('img.bbc_img{max-width:'+w+'px;}');
}).resize();
}
Expand Down