PATH:
home
/
letacommog
/
letaweb
/
scripts
/
libraries
/* * Superfish v1.4.8 - jQuery menu widget * Copyright (c) 2008 Joel Birch * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt */ ;(function($){ var SuperFish = function(element, options) { var element = $(element); var sfTimer = ''; var c = sf.c; o = $.extend({},sf.defaults,options); $arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')); var IE7fix = function(ul){ if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined) ul.toggleClass(sf.c.shadowClass+'-off'); }; this.destroy = function() { var moreClass = c.moreClass ? c.moreClass : ''; if(moreClass!= '') { var more = $('.' + moreClass,element); ul = more.children('ul'); ul.children('li').each(function() { more.before($(this)); }); more.remove(); } clearTimeout(sfTimer); $('li:has(ul)',element).unbind(); }; this.reload = function() { /*var more = o.moreLabel ? o.moreLabel : ''; var moreClass = c.moreClass ? c.moreClass : ''; var li = $('.' + moreClass, element); var moreUL = li.children('ul'); moreUL.children('li').each(function() { element.append(this); }); li.remove();*/ setup(); }; this.resize = function() { //this.reload(); }; this.changeOption = function(op) { o = $.extend({},o,op); }; this.getOption = function() { return o; }; var over = function() { var $$ = $(this) clearTimeout(sfTimer); showSuperfishUl($$); hideSuperfish($$); }; var hideSuperfishUl = function(e) { var not = (o.retainPath === true) ? o.$path : ''; o.retainPath = false; var $ul = $(['li.',o.hoverClass].join(''),e).add(e).not(not).removeClass(o.hoverClass) .children('ul').hide().css('visibility','hidden'); o.onHide.call($ul); }; var hideSuperfish = function(e) { e.siblings().each(function() { hideSuperfishUl($(this)); }); }; var showSuperfishUl = function(e) { var e_width = e.outerWidth(); var e_height = e.outerHeight(); first_sub_menu = e.hasClass('top-menu-item'); var sh = sf.c.shadowClass+'-off', $ul = e.addClass(o.hoverClass) .children('ul:hidden'); $ul.css({ 'visibility': 'visible', top : first_sub_menu ? e_height : '', left: !first_sub_menu ? e_width : ''}); IE7fix($ul); o.onBeforeShow.call($ul); $ul.animate(o.animation,o.speed,function(){ IE7fix($ul); o.onShow.call($ul); }); }; var out = function(){ var $$ = $(this); clearTimeout(sfTimer); var that = this; sfTimer = setTimeout(function() { o.retainPath=($.inArray($$[0],o.$path)>-1); hideSuperfishUl($$); if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);} },o.delay); }; var addArrow = function($a) { $a.addClass(c.anchorClass).append($arrow.clone()); }; var create = function() { /*if(o.displayMore) { var more = o.moreLabel ? o.moreLabel : ''; var moreClass = c.moreClass ? c.moreClass : ''; var parentwidth = element.parent().outerWidth(); var width = 0; var e; var li = $('<li/>'); var a = $('<a/>'); li.append(a); li.addClass(moreClass); a.attr('href','#'); a.html(more); element.append(li); width += li.outerWidth(true); element.children('li').not(li).each(function() { width += $(this).outerWidth(true); if(width > parentwidth) { e = this; return false; } }); if(e) { var ul = $('<ul/>'); li.append(ul); $(e).nextAll().not(li).each(function() { ul.append($(this)); }); ul.prepend($(e)); element.append(li); } else li.remove(); }*/ }; var setup = function() { o.$path = $('li.'+o.pathClass,element).slice(0,o.pathLevels).each(function() { $(this).addClass([o.hoverClass,c.bcClass].join(' ')) .filter('li:has(ul)').removeClass(o.pathClass); }); create(); var that = this; $('li:has(ul)',element)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() { if (o.autoArrows) addArrow( $('>a:first-child',$(this)) ); }) .not('.'+c.bcClass) hideSuperfishUl(element); var $a = $('a',element); $a.each(function(i){ var $li = $a.eq(i).parents('li'); $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);}); }); o.onInit.call(this); var menuClasses = [c.menuClass]; if (o.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass); element.addClass(menuClasses.join(' ')); }; setup(); return this; }; $.fn.superfish = function(op) { return this.each(function() { var superfish = new SuperFish(this,op); $(this).data('superfish', superfish); }); }; var sf = $.fn.superfish; sf.o = []; sf.op = {}; /*sf.IE7fix = function(){ var o = sf.op; if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined) this.toggleClass(sf.c.shadowClass+'-off'); };*/ sf.c = { bcClass : 'sf-breadcrumb', menuClass : 'sf-js-enabled', moreClass : 'sf-js-more', anchorClass : 'sf-with-ul', arrowClass : 'sf-sub-indicator', shadowClass : 'sf-shadow' }; sf.defaults = { hoverClass : 'sfHover', pathClass : 'overideThisToUse', pathLevels : 1, displayMore : true, moreLabel : 'More', delay : 1000, animation : {opacity:'show',height:'show'}, speed : 400, autoArrows : false, dropShadows : false, disableHI : false, // true disables hoverIntent detection onInit : function(){}, // callback functions onBeforeShow: function(){}, onShow : function(){}, onHide : function(){} }; /*$.fn.extend({ hideSuperfishUl : function(){ var o = sf.op, not = (o.retainPath===true) ? o.$path : ''; o.retainPath = false; var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass) .find('>ul').hide().css('visibility','hidden'); o.onHide.call($ul); return this; }, showSuperfishUl : function(){ var o = sf.op, sh = sf.c.shadowClass+'-off', $ul = this.addClass(o.hoverClass) .find('>ul:hidden').css('visibility','visible'); sf.IE7fix.call($ul); o.onBeforeShow.call($ul); $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); }); return this; } });*/ })(jQuery);
[+]
..
[+]
jQuery-Tags-Input
[-] countdown.js
[edit]
[-] owl.carousel.js
[edit]
[-] base.js
[edit]
[-] jquery.ui.core.js
[edit]
[+]
select2
[-] jquery.matchHeight-min.js
[edit]
[+]
master-slider
[-] jquery.metadata.js
[edit]
[+]
owl-carousel
[-] dataTables.columnFilter.js
[edit]
[-] codemirror.js
[edit]
[+]
jqvmap
[-] css.js
[edit]
[-] jquery.ui.button.js
[edit]
[-] jquery.vticker.min.js
[edit]
[-] jwplayer.js
[edit]
[-] masonry.pkgd.js
[edit]
[-] jquery.smartmenus.min - Copy.js
[edit]
[-] jquery.ui.widget.js
[edit]
[-] jquery.ba-resize.min.js
[edit]
[-] jquery-ui-timepicker.js
[edit]
[-] jquery-migrate.js
[edit]
[-] jquery.nearest.min.js
[edit]
[-] swfobject.js
[edit]
[-] javascript.js
[edit]
[-] jquery.validate.password.js
[edit]
[-] jquery.colorbox.js
[edit]
[-] flexigrid.js
[edit]
[-] jquery.smartmenus.min.js
[edit]
[-] jcarousellite.js
[edit]
[+]
ckeditor_standard
[-] twig.min.js
[edit]
[-] superfish.js
[edit]
[-] bootstrap.min - Copy.js
[edit]
[-] jquery.dataTables.min.js
[edit]
[-] mustache.js
[edit]
[-] spectrum.js
[edit]
[-] jquery.ui.droppable.js
[edit]
[-] jquery.isotope.js
[edit]
[-] jquery.ui.slider.js
[edit]
[-] htmlmixed.js
[edit]
[-] jquery.tinycarousel.min.js
[edit]
[-] jquery.ui.sortable.js
[edit]
[-] jquery.hover.js
[edit]
[-] wow.min.js
[edit]
[-] jquery.fittext.js
[edit]
[+]
jquery.validate
[-] jquery.ui.draggable.js
[edit]
[-] jquery.ui.resizable.js
[edit]
[-] audio.min.js
[edit]
[+]
angular
[+]
less
[-] masonry.pkgd.min.js
[edit]
[+]
plupload
[-] jquery.rd-parallax.js
[edit]
[-] tabs.js
[edit]
[-] responsive.js
[edit]
[-] xml.js
[edit]
[-] expressInstall.swf
[edit]
[-] camera.js
[edit]
[-] pace.min.js
[edit]
[-] typed.js
[edit]
[-] jquery.nivo.slider.js
[edit]
[+]
bootstrap
[-] qtip.js
[edit]
[+]
mediaelement
[-] jquery.ui.mouse.js
[edit]
[+]
slick
[-] countUp.js
[edit]
[-] jquery.prettyPhoto.js
[edit]
[+]
ckeditor_full
[-] jquery.ui.spinner.js
[edit]
[-] portfolio-layout-plugin.js
[edit]
[-] require.js
[edit]
[-] nicEdit.js
[edit]
[-] jquery.json-2.4.min.js
[edit]
[-] jquery.ba-resize.js
[edit]
[-] jquery.mobilemenu.js
[edit]
[+]
nivo_slider
[+]
ui-iconpicker
[-] cloud-zoom.js
[edit]
[-] jquery.ui.datepicker.js
[edit]
[-] jquery.cycle.all.js
[edit]
[-] jquery.validate.js
[edit]
[+]
flot
[+]
jquery-ui
[-] jquery.cleditor.min.js
[edit]
[-] jquery.easing.js
[edit]
[-] jquery.elevateZoom.min.js
[edit]
[-] bootstrap.min.js
[edit]
[-] jquery.bxslider.js
[edit]
[-] mediaelement-and-player.min.js
[edit]
[-] jquery.zoom-min.js
[edit]
[-] jquery.nearest.js
[edit]
[-] jquery.autosize.js
[edit]