Need help with jquery.wanker?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

migreyes
198 Stars 20 Forks MIT License 20 Commits 1 Opened issues

Description

A jQuery plugin that reveals a takeover when people start excessively resizing their browser.

Services available

!
?

Need anything else?

Contributors list

No Data

jquery.wanker.js

Responsive design has been a blessing to web crafters everywhere. The web, however, was meant to be read, not squished. jquery.wanker.js is a tiny (549 bytes minified) jQuery plugin that reveals a public service announcement when people start excessively resizing their desktop browser as they try to see your responsive breakpoints.

jquery.wanker.js is the perfect easter egg plugin for designers, photographers, writers, and other creative people with a sense of humor displaying their work on the web wishing their viewers to focus more on their work, and less on the magic of media queries.

Wanker

Installing jquery.wanker.js

Assuming you’re already using jQuery, include the file in your

:
  

Design your public service announcement

The web was meant to be read, not squished.

Prevent excessive browser resizing and get people back to reading.

Call the wanker() function on your design

$(function() {
  $('[data-wanker]').wanker();
});

The message will show up after 1 second of continuous browser resizing, and will disappear 1.5 seconds later. Prefer to choose your own delay and duration? No problem!

$(function() {
  $('[data-wanker]').wanker({delay: 5000, duration: 5000});
});

View (and contribute to!) the list of websites using jquery.wanker.js.

Made with love by @migreyes.

Special thanks to @sstephenson for his code review.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.