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