mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +01:00
My implementation progress bar at the top of the page #1348
This commit is contained in:
parent
d75a9fa38b
commit
fcb3faf109
@ -3,6 +3,9 @@
|
||||
{% block title %}{{ entry.title|raw }} ({{ entry.domainName }}){% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
<div class="progress">
|
||||
<div class="determinate"></div>
|
||||
</div>
|
||||
<nav class="hide-on-large-only">
|
||||
<div class="nav-wrapper cyan darken-1">
|
||||
<ul>
|
||||
|
@ -269,6 +269,14 @@ main ul.row {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.progress {
|
||||
position:fixed;
|
||||
top:0px;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
margin: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
/* ==========================================================================
|
||||
6 = Media queries
|
||||
========================================================================== */
|
||||
|
@ -46,4 +46,11 @@ $(document).ready(function(){
|
||||
$(".nav-panels").css('background', 'transparent');
|
||||
return false;
|
||||
});
|
||||
$(window).scroll(function () {
|
||||
var s = $(window).scrollTop(),
|
||||
d = $(document).height(),
|
||||
c = $(window).height();
|
||||
var scrollPercent = (s / (d-c)) * 100;
|
||||
$(".progress .determinate").css('width', scrollPercent+'%');
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user