-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
586 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ package-lock.json | |
.gitignore | ||
.parcel-cache | ||
rollup.config.mjs | ||
tsconfig.json | ||
|
||
# example | ||
example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ node_modules/ | |
*.yml | ||
.prettierignore | ||
.husky/* | ||
.npmignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
// import Scrub from "../../dist/scrub.esm"; | ||
|
||
// setting height for hero example. | ||
var a = document.getElementById('slider1') | ||
var a = document.getElementById("slider1"); | ||
if (a.offsetTop < window.innerHeight) { | ||
var b = window.innerHeight - a.offsetTop + 'px' | ||
var b = window.innerHeight - a.offsetTop + "px"; | ||
} | ||
|
||
// different methods of initiating a slider | ||
Scrub({ | ||
target: '#slider1', | ||
target: "#slider1", | ||
height: b, | ||
handle: true, | ||
src: [ | ||
'https://raw.github.com/Recidvst/recidvst-images/master/mustang-old-min.jpg', | ||
'https://raw.github.com/Recidvst/recidvst-images/master/mustang-old-inverted-min.jpg', | ||
"https://raw.github.com/Recidvst/recidvst-images/master/mustang-old-min.jpg", | ||
"https://raw.github.com/Recidvst/recidvst-images/master/mustang-old-inverted-min.jpg", | ||
], | ||
alt: ['Image number 1 alt', 'Image number 2 alt'], | ||
}) | ||
Scrub('#slider2') | ||
alt: ["Image number 1 alt", "Image number 2 alt"], | ||
}); | ||
Scrub("#slider2"); | ||
|
||
// Scrub('nonexistent'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.