All Projects → corenzan → decoy

corenzan / decoy

Licence: MIT License
jQuery plugin to make decoys for your elements.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to decoy

paginathing
a jQuery plugin to paginate your DOM easily.
Stars: ✭ 23 (-56.6%)
Mutual labels:  jquery-plugin, dom
dom-navigator
⚓️ JS library that allow keyboard navigation through DOM elements (←↑→↓).
Stars: ✭ 36 (-32.08%)
Mutual labels:  jquery-plugin, dom
BabyBrowser
A Small Web Browser Built in Python
Stars: ✭ 21 (-60.38%)
Mutual labels:  dom
ivia
A reactive & model-driven MVVM framework for jQuery with Vue-like interface.
Stars: ✭ 69 (+30.19%)
Mutual labels:  jquery-plugin
intl-tel-input-rails
intl-tel-input for the Rails asset pipeline
Stars: ✭ 35 (-33.96%)
Mutual labels:  jquery-plugin
jquery-alphaindex
jQuery plugin to create alphabetical indexes for your lists
Stars: ✭ 12 (-77.36%)
Mutual labels:  jquery-plugin
XrayDOM
🔥 X-ray your DOM using just the cursor and never open the console again!
Stars: ✭ 13 (-75.47%)
Mutual labels:  dom
JsObjExporter
A little JavaScript plugin to generate PDF, XLS, CSV and DOC from JavaScript Object or DOM element only from the frontend!
Stars: ✭ 58 (+9.43%)
Mutual labels:  dom
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (-66.04%)
Mutual labels:  jquery-plugin
GaugeMeter
An elegant and dynamic animated graphical gauge meter built with jQuery. GaugeMeter.js is highly customizable and includes full-radial, semi-radial & arch dials.
Stars: ✭ 30 (-43.4%)
Mutual labels:  jquery-plugin
ml-stack-nav
Customizable, responsive, accessible, easy-to-use multi-level stack navigation menu with slide effect.
Stars: ✭ 20 (-62.26%)
Mutual labels:  jquery-plugin
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (-64.15%)
Mutual labels:  dom
jquery-regexp-classes
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
Stars: ✭ 18 (-66.04%)
Mutual labels:  jquery-plugin
hotshot
Takes screenshots of DOM elements
Stars: ✭ 19 (-64.15%)
Mutual labels:  dom
lazeemenu
Multi-level sidebar menu - JQuery plugin
Stars: ✭ 40 (-24.53%)
Mutual labels:  jquery-plugin
shaven
DOM building utility & Template engine based on JsonML + syntax sugar
Stars: ✭ 66 (+24.53%)
Mutual labels:  dom
vue-identify-network
⚡ Identify what kinda internet your users are using!
Stars: ✭ 60 (+13.21%)
Mutual labels:  dom
UndoRedo.js
A powerful and simple JavaScript library provides a history for undo/redo functionality. Just like a time machine! 🕐
Stars: ✭ 19 (-64.15%)
Mutual labels:  dom
texthighlighter
a no dependency typescript npm package for highlighting user selected text
Stars: ✭ 17 (-67.92%)
Mutual labels:  dom
biz-ui
jQuery Plugin Collections for Business
Stars: ✭ 24 (-54.72%)
Mutual labels:  jquery-plugin

Decoy

Decoys for your elements.

Ever wished to change an element's properties, style or behavior and then easily restore to what it was before the mess? That's what Decoy enables you to do. You create a decoy, change it however you like, and then, eventually, restore the original.

Usage

var box = $('#box');

box.css('background', 'black'); // We change its background to black.
box.decoy().css('background', 'red'); // Now it is red, but we are actually looking at its decoy.
box.restore(); // Here we recover the original, restoring its background to black.

The method decoy() is a reference to the element's decoy. You can chain multiple calls just like you do with regular jQuery objects.

box.decoy().text("Hello, I'm a decoy!").css('font-size', '48px');
box.decoy().text("I do dangerous stuff for you.");

Whatever changes you've done to its decoy, they all will be undone when you restore the original. All styles, bindings, and everything back to what it was before the first time you called decoy().

License

This project is licensed under MIT. See LICENSE.md for full notice.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].