diff options
Diffstat (limited to 'layouts/partials/script.html')
-rw-r--r-- | layouts/partials/script.html | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/layouts/partials/script.html b/layouts/partials/script.html index d403493..1437b59 100644 --- a/layouts/partials/script.html +++ b/layouts/partials/script.html @@ -17,20 +17,6 @@ <script src="{{ . | absURL }}"></script> {{ end }} {{ end }} -<script lang="javascript"> -window.onload = updateMinWidth; -window.onresize = updateMinWidth; -document.getElementById("sidebar").addEventListener("transitionend", updateMinWidth); -function updateMinWidth() { - var sidebar = document.getElementById("sidebar"); - var main = document.getElementById("main"); - main.style.minWidth = ""; - var w1 = getComputedStyle(main).getPropertyValue("min-width"); - var w2 = getComputedStyle(sidebar).getPropertyValue("width"); - var w3 = getComputedStyle(sidebar).getPropertyValue("left"); - main.style.minWidth = `calc(${w1} - ${w2} - ${w3})`; -} -</script> {{ if eq .Site.Params.syntaxHighlighter "highlight.js" }} <script> $(document).ready(function() { |