|
@ -57,12 +57,12 @@ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine |
|
|
var TOC_SCREEN_WIDTH_CUTOFF = 667 |
|
|
var TOC_SCREEN_WIDTH_CUTOFF = 667 |
|
|
|
|
|
|
|
|
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { |
|
|
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { |
|
|
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em"); |
|
|
|
|
|
|
|
|
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "3em"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function updateToc() { |
|
|
function updateToc() { |
|
|
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { |
|
|
if (isMobile && window.screen.width < TOC_SCREEN_WIDTH_CUTOFF) { |
|
|
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "1.6em"); |
|
|
|
|
|
|
|
|
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", "3em"); |
|
|
} else { |
|
|
} else { |
|
|
$(`code:contains(ToC)`).html(TOC).css("line-height", "1em"); |
|
|
$(`code:contains(ToC)`).html(TOC).css("line-height", "1em"); |
|
|
} |
|
|
} |
|
|