Widget:ConnectorLine: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
<div class="outline-connector-line"><svg id="exploreOutlineConnector" width="12"><path d="M0 0 L0 3000 L0 0 Z" stroke="#ba1b1d69" stroke-width="12" />Sorry, your browser does not support inline SVG.</svg></div><div class="slider-hider"><i class="fa-duotone fa-circle-dot fa-fade"></i></div><script>
<div class="outline-connector-line"><svg id="exploreOutlineConnector" width="12"><path d="M0 0 L0 3000 L0 0 Z" stroke="#ba1b1d69" stroke-width="12" />Sorry, your browser does not support inline SVG.</svg></div><div class="slider-hider"><i class="fa-duotone fa-circle-dot fa-fade"></i></div><script>
RLQ.push(function () {
RLQ.push(function () {
var bodyHeight = document.body.scrollHeight;
$(document).ready(function() {
var connector = document.getElementById("exploreOutlineConnector");
var bodyHeight = $('body').height();
var connectorTop = connector.offsetTop;
var connectorTop = $('#exploreOutlineConnector').offset().top;
var connectorHeight = bodyHeight - connectorTop;
document.getElementById('exploreOutlineConnector').setAttribute("height", bodyHeight - connectorTop );
document.getElementById("exploreOutlineConnector").setAttribute("height", connectorHeight );
});
});
});
</script>
</script>

Revision as of 17:25, 28 September 2021

<svg id="exploreOutlineConnector" width="12"><path d="M0 0 L0 3000 L0 0 Z" stroke="#ba1b1d69" stroke-width="12" />Sorry, your browser does not support inline SVG.</svg>

<script>

RLQ.push(function () { $(document).ready(function() { var bodyHeight = $('body').height(); var connectorTop = $('#exploreOutlineConnector').offset().top; document.getElementById('exploreOutlineConnector').setAttribute("height", bodyHeight - connectorTop ); }); }); </script>