Skip to content

Instantly share code, notes, and snippets.

View Anima-t3d's full-sized avatar

Anima-t3d

  • Between UTC+0 and UTC+12
View GitHub Profile
@Anima-t3d
Anima-t3d / jQuery.singlePage.nav.js
Created January 24, 2014 10:02
Plugin got bugged in development, but shows working crossbrowser offset.
/**
* Single Page Nav Plugin
* Copyright (c) 2013 Chris Wojcik <[email protected]>
* Dual licensed under MIT and GPL.
* @author Chris Wojcik
* @version 1.1.0 -> modification in progress by Anima-t3d
*/
// Utility
if (typeof Object.create !== 'function') {
@Anima-t3d
Anima-t3d / jquery.deepest.js
Created June 8, 2011 15:42 — forked from anonymous/jquery.deepest.js
jQuery 'deepest' plugin
$.fn.deepest = function() {
/* based on: http://stackoverflow.com/questions/3787924/select-deepest-child-in-jquery
* rewrite from: https://gist.github.com/714851
* rewritten by: Anima-t3d march 1st 2011
*/
/// <summary>
/// Return the deepest child of this element.
/// var deepestElement = $("div").deepest();
/// For example, when run on this structure:
///