Widget:ConnectorLine: Difference between revisions
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
| Line 3: | Line 3: | ||
(window,document,"domReady"); | (window,document,"domReady"); | ||
domReady(function() { | domReady(function() { | ||
var bodyHeight = | var bodyHeight = document.body.scrollHeight; | ||
var connectorTop = | var connector = document.getElementById("exploreOutlineConnector"); | ||
document.getElementById( | var connectorTop = connector.offsetTop; | ||
var connectorHeight = bodyHeight - connectorTop; | |||
document.getElementById("exploreOutlineConnector").setAttribute("height", connectorHeight ); | |||
}); | }); | ||
</script> | </script> | ||
Revision as of 17:31, 28 September 2021
<script>
!function(t,e,n){var a="attachEvent",d="addEventListener",o="DOMContentLoaded";e[d]||(d=e[a]?(o="onreadystatechange")&&a:0),t[n]=function(a){/in/.test(e.readyState)?d?e[d](o,a,!1):setTimeout(function(){t[n](a)},9):a()}} (window,document,"domReady"); domReady(function() { var bodyHeight = document.body.scrollHeight; var connector = document.getElementById("exploreOutlineConnector"); var connectorTop = connector.offsetTop; var connectorHeight = bodyHeight - connectorTop; document.getElementById("exploreOutlineConnector").setAttribute("height", connectorHeight ); }); </script>