Browse Source

Use id attribute to query reading progress element (#467)

no issue
- using an `id` selector doesn't break if other `progress` elements are present on a page
master
Nulla Wu 2 years ago
committed by Kevin Ansfield
parent
commit
9b56779ca6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      partials/floating-header.hbs
  2. +1
    -1
      post.hbs

+ 1
- 1
partials/floating-header.hbs View File

@@ -20,7 +20,7 @@
{{> "icons/facebook"}}
</a>
</div>
<progress class="progress" value="0">
<progress id="reading-progress" class="progress" value="0">
<div class="progress-container">
<span class="progress-bar"></span>
</div>


+ 1
- 1
post.hbs View File

@@ -143,7 +143,7 @@ $(document).ready(function () {
$postContent.fitVids();
// End fitVids

var progressBar = document.querySelector('progress');
var progressBar = document.querySelector('#reading-progress');
var header = document.querySelector('.floating-header');
var title = document.querySelector('.post-full-title');



Loading…
Cancel
Save