Giter Club home page Giter Club logo

jquery-scrollspy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-scrollspy's Issues

[enhancement] Add missing bower.json.

Hey, maintainer(s) of sxalexander/jquery-scrollspy!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library sxalexander/jquery-scrollspy is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "sxalexander/jquery-scrollspy",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

Triggering on load?

Hi - could be my layout - I'm using this with a 100% height div with overflow: auto in that triggers when a "more" classed div is scrolled to. This uses ajax to get more content.

There may be multiple of these divs on a page since I'm using tabs.

Unfortunately, whilst it was triggering correctly, in Chrome it was also triggering when the page loads initially. I've patched the code in the following way...

Line 73 modified to...
if (typeof lastTick != 'number' && typeof lastTick!='undefined') {
(added to also ignore "undefined" in the trigger.

This now works for me as expected. Afraid I'm new to Github, so apologies if I've submitted in the wrong place, or not included enough information.

Add refresh function

The bootstrap scrollspy has a 'refresh' function to refresh the max/min values upon say an ajax load, to recalculate the max/min area.

Does not work at all.

Which element should I fire the function scrollspy?
Can I do like this?
$('body').scrollspy({
min: $('#banner').offset().top,
onEnter: function() {
console.log('enter');
},
onLeave: function() {
console.log('leave');
}
});

Fails JSHint

Is this being maintained any more? If not I will gladly take over the project or at best become a contributor to the project.Just check out the projects I contributed to and you will see I have a fairly decent understanding of JS/jQuery. I feel this plugin has great potential =)

There are quire a few errors as well as a possible variable leak with the current code base, that I would fix, but considering PRs aren't being accepted/commented, I am a little reluctant to do so until I have an understanding that the project is still being maintained.

A couple of things I would change/add:

  • Add bower.json and submit to bower.io inc. semantic versioning [DONE (partially, not submitted)]
  • Fix the JSHint errors [DONE]
  • Refactor the code [DONE]
  • Improve efficiency (selectors aren't being cached or unnecessarily being recreated in a tight loop) [DONE]
  • Swap out deprecated jQuery functionality e.g. bind() => on() [DONE]
  • Add a grunt file for uglification and JS hinting [DONE]

create release to set version

Hello. Would love add your plugin to Rails Assets but it needs a version number. Can you create a release for this?

I could easily fork it and create a release from there, but I think it'd be best if Rails Assets references your repo. In case there are updates in the future. Thanks a lot!

/examples/fixednav.html

Is the navigation in this example supposed to disappear half way down the page? At first I thought it was a bug in my own implementation, but it's in example /fixednav.html as well. Bug or feature?

Scrolling Time Out

I am using your great spy component with ScrollTo which scrolls to a certain portion of the page when a url with a #hash is clicked.

It works awesome! except for one little issue.

I want to be able to fire events about 500 seconds after scrolling has stopped. I dont know if settimout is appropriate for this since it is running on .each .

The reason for this is I want to change the classes on nav links based on where the scrolling is once it has completed. Otherwise the nav links go nuts during a scroll from page start to page end. Everything in between gets the onEnter onleave event and the navs light up one after the other. Also want to use this on my onepage site to TrackPageview on google analytics, and dont want extra pageviews popping in as they are scrolled trhoug.

Can you advise me on the proper way to wait until scrolling has completed to fire an event?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.