PageSourceSearch

https://muteme.com/cdn/shop/t/4/assets/jquery_accordion.js?v=64709411461589543001633503866

js muteme.com collected 2026-09-24 12:36:48 UTC 2,944 bytes, 10 lines download raw bytes

1/**
2 * Accordion, jQuery Plugin
3 *
4 * This plugin provides an accordion with cookie support.
5 *
6 * Copyright (c) 2011 John Snyder (snyderplace.com)
7 * @license http://www.snyderplace.com/accordion/license.txt New BSD
8 * @version 1.1
9 */(function($){$.fn.accordion=function(options){if(!this||this.length<1)return this;initialize(this,options)};function initialize(obj,options){var opts=$.extend({},$.fn.accordion.defaults,options),opened2="";return obj.each(function(){var $this=$(this);saveOpts($this,opts),opts.bind=="mouseenter"&&$this.bind("mouseenter",function(e){e.preventDefault(),toggle($this,opts)}),opts.bind=="mouseover"&&$this.bind("mouseover",function(e){e.preventDefault(),toggle($this,opts)}),opts.bind=="click"&&$this.bind("click",function(e){e.preventDefault(),toggle($this,opts)}),opts.bind=="dblclick"&&$this.bind("dblclick",function(e){e.preventDefault(),toggle($this,opts)}),id=$this.attr("id"),useCookies(opts)&&issetCookie(opts)?inCookie(id,opts)===!1?($this.addClass(opts.cssClose),opts.loadClose($this,opts)):($this.addClass(opts.cssOpen),opts.loadOpen($this,opts),opened2=id):id!=opts.defaultOpen?($this.addClass(opts.cssClose),opts.loadClose($this,opts)):($this.addClass(opts.cssOpen),opts.loadOpen($this,opts),opened2=id)}),opened2.length>0&&useCookies(opts)?setCookie(opened2,opts):setCookie("",opts),obj}function loadOpts($this){return $this.data("accordion-opts")}function saveOpts($this,opts){return $this.data("accordion-opts",opts)}function close(opts){opened=$(document).find("."+opts.cssOpen),$.each(opened,function(){$(this).addClass(opts.cssClose).removeClass(opts.cssOpen),opts.animateClose($(this),opts)})}function open($this,opts){close(opts),$this.removeClass(opts.cssClose).addClass(opts.cssOpen),opts.animateOpen($this,opts),useCookies(opts)&&(id=$this.attr("id"),setCookie(id,opts))}function toggle($this,opts){return $this.hasClass(opts.cssOpen)?(close(opts),useCookies(opts)&&setCookie("",opts),!1):(close(opts),open($this,opts),!1)}function useCookies(opts){return!(!$.cookie||opts.cookieName=="")}function setCookie(value,opts){if(!useCookies(opts))return!1;$.cookie(opts.cookieName,value,opts.cookieOptions)}function inCookie(value,opts){return!(!useCookies(opts)||!issetCookie(opts)||(cookie=unescape($.cookie(opts.cookieName)),cookie!=value))}function issetCookie(opts){return!(!useCookies(opts)||$.cookie(opts.cookieName)==null)}$.fn.accordion.defaults={cssClose:"accordion-close",cssOpen:"accordion-open",cookieName:"accordion",cookieOptions:{path:"/",expires:7,domain:"",secure:""},defaultOpen:"",speed:"slow",bind:"click",animateOpen:function(elem,opts){elem.next().stop(!0,!0).slideDown(opts.speed)},animateClose:function(elem,opts){elem.next().stop(!0,!0).slideUp(opts.speed)},loadOpen:function(elem,opts){elem.next().show()},loadClose:function(elem,opts){elem.next().hide()}}})(jQuery);
10//# sourceMappingURL=/cdn/shop/t/4/assets/jquery_accordion.js.map?v=64709411461589543001633503866

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.