jordansinger / hook Goto Github PK
View Code? Open in Web Editor NEWPull to refresh for the web
License: MIT License
Pull to refresh for the web
License: MIT License
Anytime a video on my site goes full screen then hookjs is called and refreshes the page.
I am using Drupal with a custom hook js module, and videojs for display
example: This link
If this feature can be extended in such a way that this can be applied to an element that has a scrollbar, then this would be a pretty great tool.
Hook should really only fire the reload when you're already at the top and try to scroll up. Not sure if you can detect that on all browsers but it works in OS X Chrome.
It would be nice if the library were register in bower (http://bower.io/).
title says it all.
Your CSS file says "Copyright [...] All Rights Reserved."
This means that nobody is allowed to use it, legally. You need to give it a license so that people know the terms under which they're legally allowed to use it.
I would recommend against free-software (GPL-related) licenses, and instead recommend an open-source license (Apache 2.0, New BSD, MIT, etc.).
Hello,
I noticed neither the website or the code tells me which license this is released.
Can you tell us if is GPL, MIT, BSD?
Thank you.
Hy!
I instaled this plugin for my site for the minileven wordpress mobil theme...
And just dosen't work.
Can you help me fix this problem?
The console.log
line in the demo code in README.md has an unclosed string.
Placing the hook ID div at the top of a Bootstrap 3.x page puts the hook element literally under the nav. Anyone solve this yet?
Android 4.1.2
Chrome 30.0.1599.82
Hi there, I'm looking to use hook.js but I'm wondering about the license attached to it.
Can you tell under which license your code is available? And add it to the repo?
Thanks.
My page will reload infinitely, I'm using chrome on ubuntu.
How to reproduce:
Looking through the code, it uses $.browser() for webkit, however this is no longer in jQuery as of 1.9 due to it being deprecated. jQuery suggests using feature detection (like Modernizr) as an alternative, but surely the code could check for the useragent rather than needing to pull in an entire library for a rather small purpose?
EDIT: Looked through again, and didn't notice the alternative code. D'oh! :-)
the demo isn't work absolutely!
why?
Instead of adding a whole $.browser function, you could replace it with a one-liner:
/webkit/.test(navigator.userAgent.toLowerCase());
It will be faster and smaller in terms of bytes.
The headers markup in README
is wrong
There is no leading space between dashes and header titles
You're using a PNG and a GIF, which are fine for devices with a pixel-density-ratio: 1.0
, but don't support Hi-DPI/Retina displays very well. Have you considered using vector assets instead? Either SVG or an icon-based web font?
Great functionality. I would just suggest that you inject the #hook div instead of hardcoding empty divs in your html markup.
Simple implementation, as is:
$('body').prepend('<div class="hook" id="hook"><div class="hook-loader"><div class="hook-spinner"></div></div></div>').find('#hook').hook();
Gives access denied.
This uses jQuery-based animation without leveraging requestAnimationFrame, so the computation uses CPU instead of GPU.
Have you considered leveraging CSS Transitions instead? They're well-supported and are fully GPU-accellerated.
instead of always reloading the page, add events, so we could add custom behaviour
Hello,
We have just add Hook.js to twittstrap resources list
http://twittstrap.com/resources/details/hook-js
Under : Javascript
Regards
It seems using the newest version, I could not get this to fire. Then I tried pulling from the top of the browser (right below the address bar) and it works. Very strange, I tried with a previous version of Hook and it works like intended. Perhaps the is a bug in the latest version?
I have a basic bootstrap page up with hook (http://medinastudios.com/test/)
Trying pulling it down, it only seems to work when you pull next to the top nav bar.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.