customd/jquery-visible

demo doesn't work

Closed this issue · 6 comments

Hi.

I downloaded the plugin and tried to run the demo.

When I click "detect visibility" it reports everything is offscreen, even the elements that are clearly onscreen.

Tested in chrome 26 and firefox 20 on linux.

@mstevens make sure to run a local server to test it (ie it won't run from file:// in the browser). If you have python installed, just run this in the command line:
python -m SimpleHTTPServer 8000
Control+C to stop the process. Or if you have node installed, you can use something like node-static, then in the command line just type: static

Thanks @laneallen. I didn't realize the example didn't work from the filesystem.

@samatdf no problem.

I did a further test with the files on a local webserver and I see the
same behaviour.

On Mon, May 06, 2013 at 06:59:01PM -0700, Lane Allen wrote:

@mstevens make sure to run a local server to test it (ie it won't run from file:// in the browser). If you have python installed, just run this in the command line:
python -m SimpleHTTPServer 8000
Control+C to stop the process. Of if you have node installed, you can use something like node-static, then in the command line just type: static


Reply to this email directly or view it on GitHub:
https://github.com/teamdf/jquery-visible/issues/3#issuecomment-17519223

@mstevens use jquery.visible.min.js, modify the demo-basic.html file from:

<script type="text/javascript" src="../jquery.visible.js"></script>

to

<script type="text/javascript" src="../jquery.visible.min.js"></script>

Actually, doing this allows you to run it from the browser ( file:// ) so you don't have to boot up the local server, it's just a common issue. There does seem to be a problem with jquery.visible.js (but not jquery.visible.min.js).

Fixed in commit 1e06e04