1/* 2 * 3 * Accordion - A simple accordion group for most use cases. 4 * Version 0.1 5 * @requires jQuery v1.5 6 * 7 * Copyright (c) 2014 Ajay Kumar Yadav 8 * Published for free use under MIT license: 9 * http://www.opensource.org/licenses/mit-license.php 10 */ 11!function(t){t.fn.accordion=function(n){var a={tabClick:".topWrap",tabContent:".details",accordAnimation:1e3,bodyAnimation:1e3,spaceTop:0,delay:0,closeOther:!1},e=null,o=t.extend({},a,n);t(o.tabContent).hide();var e=null,i=function(){t("li").each(function(){var n=t(this).hasClass("active");1==n&&(t(this).removeClass("active"),e=parseInt(t(this).outerHeight()),t(o.tabContent).slideUp(2*o.accordAnimation))})};t(document).on("click",o.tabClick,function(){var n=t(this),a=n.siblings(o.tabContent).css("display"),s=n.siblings(o.tabContent),c=n.parent("li"),l=n.offset().top;"block"==a?(s.slideUp(parseInt(o.accordAnimation)),c.removeClass("active")):(1==o.closeOther&&(console.log("close"),i()),n.siblings(o.tabContent).slideToggle(parseInt(o.accordAnimation)),"none"!=a?c.removeClass("active"):c.addClass("active"),t("html,body").animate({scrollTop:l-e-o.spaceTop},parseInt(o.bodyAnimation)))})}}(window.jQuery); 12 13 14 15 16 17 18 19 20 21 22 23 24 25// .s_06 .accordion_one 26$(function(){ 27 //.accordion_oneã®ä¸ã®.accordion_headerãã¯ãªãã¯ãããã 28 $('.s_06 .accordion_one .accordion_header').click(function(){ 29 //ã¯ãªãã¯ããã.accordion_oneã®ä¸ã®.accordion_headerã«é£æ¥ãã.accordion_innerãéãããéãããããã 30 $(this).next('.accordion_inner').slideToggle(); 31 $(this).toggleClass("open"); 32 33 }); 34 //éãããã¿ã³ãã¯ãªãã¯ãããã 35 $('a.close_btn').click(function () { 36 //ã¯ãªãã¯ãããa.close_btnã®è¦ªè¦ç´ ã®.accordion_oneã®.accordion_innerãéããã 37 $(this).parents('.s_06 .accordion_one .accordion_inner').slideUp(); 38 $('.s_06 .accordion_one .accordion_header').removeClass("open"); 39 }); 40}); 41 42// ãã¼ã¸å ãªã³ã¯ 43$(function(){ 44 // éãããã¿ã³ãã¯ãªãã¯ããå ´åã«å¦ç 45 $('.s_06 a.close_btn').click(function() { 46 // ç§»åå ã0pxä¸ã«ããã 47 var adjust = 0; 48 // ã¹ã¯ãã¼ã«ã®é度 49 var speed = 500; // ããªç§ 50 // ã¢ã³ã«ã¼ã®å¤åå¾ 51 var href= $(this).attr("href"); 52 // ç§»åå ãåå¾ 53 var target = $(href == "#" || href == "" ? 'html' : href); 54 // ç§»åå ãèª¿æ´ 55 var position = target.offset().top - adjust; 56 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 57 $('body,html').animate({scrollTop:position}, speed, 'swing'); 58 return false; 59 }); 60}); 61 62
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.