{"id":14,"date":"2007-10-28T21:18:56","date_gmt":"2007-10-29T03:18:56","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/index.php\/2007\/10\/28\/keepaway-a-silly-jquery-plugin\/"},"modified":"2008-08-05T20:05:54","modified_gmt":"2008-08-06T02:05:54","slug":"keepaway-a-silly-jquery-plugin","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2007\/10\/28\/keepaway-a-silly-jquery-plugin\/","title":{"rendered":"Keepaway, a silly jQuery plugin"},"content":{"rendered":"My brother sent me a \"salary survey\" with one question, \"Are you happy with your current salary,\" where the \"No\" button ran away from the mouse. I thought it might be useful for gag sites, so I created a jquery plugin that mimics that effect, at <a href=\"http:\/\/bililite.nfshost.com\/blog\/blogfiles\/keepaway.html\">http:\/\/bililite.nfshost.com\/blog\/blogfiles\/keepaway.html<\/a>.\r\n\r\nIt's easy enough to use, just <code>$(selector).keepaway(options)<\/code> ,with options of\r\n<code>\r\n<ul>\r\n\t<li>jump: the distance to jump away from the mouse, in pixels; default 500<\/li>\r\n\t<li>speed: the speed to move (passed intact to the animate plugin); default 'fast'<\/li>\r\n\t<li>home: time to return to the starting position if nothing happens, in ms; default 1000<\/li>\r\n<\/ul>\r\n<\/code>\r\n\r\nHave fun!","protected":false},"excerpt":{"rendered":"My brother sent me a \"salary survey\" with one question, \"Are you happy with your current salary,\" where the \"No\" button ran away from the mouse. I thought it might be useful for gag sites, so I created a jquery plugin that mimics that effect, at http:\/\/bililite.nfshost.com\/blog\/blogfiles\/keepaway.html. It's easy enough to use, just $(selector).keepaway(options) ,with [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}