1/** 2* @package Helix3 Framework 3* @author JoomShaper http://www.joomshaper.com 4* @copyright Copyright (c) 2010 - 2015 JoomShaper 5* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later 6*/ 7 8 9jQuery(function($) { 10 11 $(document).ready(function() { 12 13 // Turn radios into btn-group 14 $('.radio.btn-group label').addClass('btn btn-default'); 15 $(".btn-group label:not(.active)").click(function() 16 { 17 var label = $(this); 18 var input = $('#' + label.attr('for')); 19 20 if (!input.prop('checked')) { 21 label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary'); 22 if (input.val() == '') { 23 label.addClass('active btn-primary'); 24 } else if (input.val() == 0) { 25 label.addClass('active btn-danger'); 26 } else { 27 label.addClass('active btn-success'); 28 } 29 input.prop('checked', true); 30 } 31 }); 32 33 $(".btn-group input[checked=checked]").each(function() 34 { 35 if ($(this).val() == '') { 36 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-primary'); 37 } else if ($(this).val() == 0) { 38 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-danger'); 39 } else { 40 $("label[for=" + $(this).attr('id') + "]").addClass('active btn-success'); 41 } 42 }); 43 }) 44}); 45 46 47if (typeof jQuery != 'undefined' && typeof MooTools != 'undefined' ) { 48 49 jQuery(function($) { 50 $(document).ready(function(){ 51 $('.carousel').each(function(index, element) { 52 $(this)[index].slide = null; 53 }); 54 }); 55 56 window.addEvent('domready',function() { 57 Element.prototype.hide = function() {}; 58 }); 59 60 }); 61}
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.