tylerhq
-
Jquery masonry + history plugin
It depends on if you're using infinite scroll. Assuming it's standard Masonry, with all elements in a page on load, you could easily add/read a cookie that stores their vertical location in the document. You can use HTML5 local storage to …
-
What is the best way to reduce this jQuery code?
You should be able to just state the fancybox once, as you did previously: $(".product-contain, .page-id-31").find("a:has(img)").attr('data-fancybox-group', 'gallery').fancybox({ wrapCSS : 'fa…
-
Chrome issue with height
That sounds pretty fun. I can't imagine that Chrome released a version that would do that. I would check your Javascript for any altering of the DOM. Perhaps recursive functions or a setInterval that is adding a div? If you post a test site, I&…
-
Multiple keydown events fire while holding down key too long (Please help)
Something like this should work: http://jsfiddle.net/tylerhq/9JHS6/8/ You're allowed to use the up/down arrows once by setting a variable to true on keyup. Also, the e.preventDefault() prevents the browser window from scrolling up/down.
-
Javascript / Cookie database With & Height problem
It looks like you're storing the top and left well enough. Perhaps you can store an object for each one: {left:100,top:200,width:97,height:200} As you're able to store data already, it sounds like you're wondering how to acquire th…
-
jQuery Flickr feed Plugin: How to open an image in new window?
Open a link in a new window with the target attribute: Google in New Window Google in New Window For your case, you'd want to add that attribute to the template: $('#basicuse').jflickrfeed({ limit: 14, qstrings: { id: …
-
Setting a Div height to the window viewport size
Something like Senff's JS can work for you. There's a couple things we need to do: Find the window height on resizeRefresh the slideshow to fit this new size. Acquiring the dimensions of a window is pretty straightforward, but refreshi…