This website works better with JavaScript.
Help
Sign In
tentakelfabrik
/
tiny-one-page
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
change naming
master
Björn
5 years ago
parent
f1e3940650
commit
a030bdf333
2 changed files
with
7 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
package.json
+6
-0
src/TinyOnePage.riot
+ 1
- 1
package.json
View File
@ -1,6 +1,6 @@
{
{
"name"
:
"tiny-one-page"
,
"name"
:
"tiny-one-page"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"One Page Menu with RiotJS, part of Tiny-Components"
,
"description"
:
"One Page Menu with RiotJS, part of Tiny-Components"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"npm run development"
,
"dev"
:
"npm run development"
,
src/TinyOnePage.riot.js → src/TinyOnePage.riot
View File
@ -236,6 +236,12 @@
// get result
// get result
let result = undefined;
let result = undefined;
if (window.pageYOffset > offset) {
this.$('body').classList.add('is-scrolling');
} else {
this.$('body').classList.remove('is-scrolling');
}
elements.forEach(function(element, index) {
elements.forEach(function(element, index) {
// getting target
// getting target
Write
Preview
Loading…
Cancel
Save