ah f5 need ๐
Reading Meter Progress bar
-
-
@downpw Add this to your custom JS
$(window).on('action:ajaxify.end', function (data) { // Main progressbar function window.onscroll = function () { myFunction() }; function myFunction() { 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 + "%"; } });
Add this into Custom Header
<div class="reading-meter"> <div class="reading-meter-progress"> <div class="reading-meter-progress-bar" id="myBar"></div> </div> </div>
Sample CSS
.reading-meter { position: fixed; top: 0px !important; z-index: 1111; width: 100%; background-color: #000000; } .reading-meter-progress { width: 100%; height: 3px; z-index: 1111; background: #ffffff; } .reading-meter-progress-bar { height: 3px; background-color:#dddddd; width: 0%; }
-
-
@phenomlab said in Reading Meter Progress bar:
Add this into Custom Header
<div class=โreading-meterโ>
<div class=โreading-meter-progressโ>
<div class=โreading-meter-progress-barโ id=โmyBarโ></div>
</div>Sample CSS
.reading-meter {
position: fixed;
top: 0px !important;
z-index: 1111;
width: 100%;
background-color: #000000;
}.reading-meter-progress {
width: 100%;
height: 3px; z-index: 1111;
background: #ffffff;
}.reading-meter-progress-bar {
height: 3px;
background-color:#dddddd;
width: 0%;
}.reading-meter {
visibility: hidden;
}.reading-meter.show {
visibility: visible;
}I allow myself a correction:
Add this into Custom Header
<div class="reading-meter"> <div class="reading-meter-progress"> <div class="reading-meter-progress-bar" id="myBar"></div> </div> </div>
Sample CSS
.reading-meter { position: fixed; top: 0px !important; z-index: 1111; width: 100%; background-color: #000000; } .reading-meter-progress { width: 100%; height: 3px; z-index: 1111; background: #ffffff; } .reading-meter-progress-bar { height: 3px; background-color:#dddddd; width: 0%; }
-
@downpw good spot. Thanks. Amended original post
-
@downpw said in Reading Meter Progress bar:
Hello @phenomlab
How do you do this reading-meter-progress bar ?
Thanks
I do like the look of this
-
@jac thanks !
-
itโs very great for continuous reading without pagination
-
@downpw yes, it should auto update the progress based on the page length.
-
@phenomlab liking the look of this although unsure if it was in blue if it would clash with the nav bar, although may fit in well on top of the yellow title block.
-
@jac you could use the yellow I suppose ?
-
@phenomlab very true, I donโt suppose white would really work out so yellow could be used yes .
-
@jac said in Reading Meter Progress bar:
@phenomlab very true, I donโt suppose white would really work out so yellow could be used yes .
Iโm still not at home to do this, I wouldnโt even know the steps to do it Iโm afraid .
-
-
@phenomlab said in Reading Meter Progress bar:
Many thanks will hopefully be able to achieve this once home tomorrow!
-
-
-
For anyone else following this thread, please see
https://sudonix.com/topic/467/issues-with-progress-bar-on-v3 -
-
-
Did this solution help you?
Related Topics
-
-
-
-
-
-
-
Bug Navbar CSS
Solved Customisation -
[NODEBB] CSS Style Sheets SelectBox
Locked Solved Customisation