Skip to content

Commit

Permalink
Documentation / formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
salcido committed Jul 12, 2018
1 parent 8f9c177 commit 80884ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ chrome.storage.sync.get('prefs', function(result) {
//
// Add these first before any other features
// ========================================================

///////////////////////////////////////////////////////////
// ========================================================
// Resource Library
//
Expand Down
8 changes: 2 additions & 6 deletions js/extension/features/everlasting-collection-sm-med.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ resourceLibrary.ready(() => {
// Update the select box in the blackBar component
opt.value = page;
opt.textContent = `Page: ${page}`;

selectBox.insertAdjacentElement('beforeend', opt);

// Add the Note/Rating functionality to the new items in the collection
setTimeout(() => window.addNoteListeners(), 100);
setTimeout(() => window.injectStars(), 100);
setTimeout(() => window.addStarListeners(), 200);
Expand Down Expand Up @@ -303,8 +302,7 @@ resourceLibrary.ready(() => {

window.addEventListener('scroll', () => {

let
currentPage = document.querySelector('.de-page'),
let currentPage = document.querySelector('.de-page'),
everlasting = document.querySelector('.de-page-bar'),
kurtLoder = document.querySelector('#de-next'), // also former MTV anchor
pageIndicator = document.getElementsByClassName('de-current-page'),
Expand Down Expand Up @@ -338,8 +336,6 @@ resourceLibrary.ready(() => {

// This gnarly bit of code will display the currently viewed page
// of results in the Everlasting Collection top bar.
// I feel bad for writing this and even worse now that
// you're looking at it.
if ( pageIndicator && pageIndicator.length > 0 ) {

for ( let i = 0; i < page; i++ ) {
Expand Down

0 comments on commit 80884ad

Please sign in to comment.