{source}

<!-- https://kuneze.com/blog/116-a-progressive-reading-bar-in-your-joomla-website-without-extensions -->
<div class="progress-container">
<div id="myBar" class="progress-bar">&nbsp;</div>
</div>
<style>
.progress-container {
position: fixed;
top: 0px;
z-index: 2000;
width: 100%;
background-color: #f5f5f5 !important;
width: 100%;
height: 4px;
background: #ccc;
}

.progress-bar {
height: 4px;
background: #FC8E2F;
width: 0%;
margin-bottom: 4px;
}
</style>
<script type="text/javascript">
// When the user scrolls the page, execute progressiveScroll function
window.onscroll = progressiveScroll;
function progressiveScroll() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>

{/source}

.: Copyright © 2016 - 2026 :: JUG Zürich ist kein Bestandteil der Open Source Matters oder des offizellen Joomla! Projekts :.