Skip to content
Permalink
Browse files

sane javascript

  • Loading branch information
adamdruppe committed Jan 2, 2019
1 parent 37df439 commit e07b7ed05c009795cc0bc4a40e76aa06c02131b8
Showing with 4 additions and 0 deletions.
  1. +4 −0 script.js
@@ -136,6 +136,10 @@ window.addEventListener("load", function() {
document.getElementById("page-nav").offsetLeft -
64;

// sanity check lol
if(maxContentWidth < 800)
maxContentWidth = 800;

newStyle.innerHTML = ".member-list:not(.constructors) dt .simplified-prototype:hover { width: " + (thing.offsetWidth - 32) + "px; } #page-content pre.d_code, #page-content .overload-option, #page-content .member-list dt { max-width: " + (maxContentWidth) + "px; }";
}

0 comments on commit e07b7ed

Please sign in to comment.
You can’t perform that action at this time.