Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var vibrate = function() {
- var shake= 3;
- $(".actionsMode[mode='on']").stop(true, false)
- .css({
- position: 'relative',
- left: Math.round(Math.random() * shake) - ((shake + 1) / 2) + 'px',
- top: Math.round(Math.random() * shake) - ((shake + 1) / 2) + 'px'
- });
- };
- var stop_vibrate = function() {
- clearInterval(vibrateIndex);
- $(".actionsMode[mode='on']").stop(true,false)
- .css({position: 'static', left: '0px', top: '0px'});
- };
Add Comment
Please, Sign In to add comment