1jQuery(document).ready(function ($) { 2 3 /* Alert Messages */ 4 5 $(".alert-msg .close").click(function () { 6 $(this).parent().animate({ 7 "opacity": "0" 8 }, 400).slideUp(400); 9 return false; 10 }); 11 12 /* Accordions */ 13 14 $(".accordion-title").click(function () { 15 $(".accordion-title").removeClass("active"); 16 $(".accordion-content").slideUp("normal"); 17 if ($(this).next().is(":hidden") == true) { 18 $(this).addClass("active"); 19 $(this).next().slideDown("normal"); 20 } 21 }); 22 $(".accordion-content").hide(); 23 24 /* Toggles */ 25 26 $(".toggle-title").click(function () { 27 $(this).toggleClass("active").next().slideToggle("fast"); 28 return false; 29 }); 30 31 /* Tabs */ 32 33 $(".tab-wrapper").tabs({ 34 event: "click" 35 }) 36 37 /* Vertically Centre Text On Images */ 38 39 $.fn.flexVerticalCenter = function (onAttribute) { 40 return this.each(function () { 41 var $this = $(this); 42 var attribute = onAttribute || 'margin-top'; 43 var resizer = function () { 44 $this.css( 45 attribute, (($this.parent().height() - $this.height()) / 2)); 46 }; 47 resizer(); 48 $(window).resize(resizer); 49 }); 50 }; 51 52 // To run the function: 53 $('.viewit').flexVerticalCenter(); 54 55 /* Slider */ 56});
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.