mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
commit
21b024ae27
@ -54,23 +54,6 @@
|
|||||||
return window.history && typeof window.history.pushState === "function";
|
return window.history && typeof window.history.pushState === "function";
|
||||||
}
|
}
|
||||||
|
|
||||||
function resizeShortBlocks() {
|
|
||||||
if (resizeTimeout) {
|
|
||||||
clearTimeout(resizeTimeout);
|
|
||||||
}
|
|
||||||
resizeTimeout = setTimeout(function() {
|
|
||||||
var contentWidth = $('.content').width();
|
|
||||||
$('.docblock.short').width(function() {
|
|
||||||
return contentWidth - 40 - $(this).prev().width();
|
|
||||||
}).addClass('nowrap');
|
|
||||||
$('.summary-column').width(function() {
|
|
||||||
return contentWidth - 40 - $(this).prev().width();
|
|
||||||
})
|
|
||||||
}, 150);
|
|
||||||
}
|
|
||||||
resizeShortBlocks();
|
|
||||||
$(window).on('resize', resizeShortBlocks);
|
|
||||||
|
|
||||||
function highlightSourceLines(ev) {
|
function highlightSourceLines(ev) {
|
||||||
var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);
|
var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);
|
||||||
if (match) {
|
if (match) {
|
||||||
|
Loading…
Reference in New Issue
Block a user