Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
+ fixed pop up text not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyllan McCreary authored and Dyllan McCreary committed Jul 9, 2018
1 parent f142f56 commit d4018cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pop-up/settings-script.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
let sliders;

$( function() {

$( ".submit" ).click( updateSettings );
sliders = Array.from( $( ".slider" ) );

loadSettings();

for ( let i in sliders ) {
setH2( sliders[i] );
sliders[i].oninput = setH2;
}

} );

function setH2( slider ) {
Expand Down
4 changes: 2 additions & 2 deletions pop-up/settings.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="settings-style.css">
<script src="../js/jquery.js"></script>
<script src="settings-script.js"></script>
<script src="../js/jquery.min.js"></script>
</head>
<body>
<div class="sliders-container">
Expand All @@ -24,4 +23,5 @@ <h2 class="slider-header" aria-label="Select Time: %s"></h2>
<div class="bottom-bar">
<button class="submit">Submit</button>
</div>
<script src="settings-script.js"></script>
</body>

0 comments on commit d4018cb

Please sign in to comment.