//$('.accordion-element:first-of-type').not(':first').collapse(); // Collapse all but the first row on the page.
// This section makes the search work.
(function() {
var searchTerm, panelContainerId;
$('#accordion_search').on('change keyup', function() {
searchTerm = $(this).val();
$('{data.searchAreaLimited}')
$('.accordion-wrapper > .accordion-element')
.each(function() {
panelContainerId = '#' + $(this).attr('id');
// Makes search to be case insesitive
$.extend($.expr[':'], {
'contains': function(elem, i, match, array) {
return (elem.textContent || elem.innerText || '').toLowerCase()
.indexOf((match[3] || "").toLowerCase()) >= 0;
}
});
// END Makes search to be case insensitive
// Show and Hide Triggers
$(panelContainerId + ':not(:contains(' + searchTerm + '))').hide(); //Hide the rows that done contain the search query.
$(panelContainerId + ':contains(' + searchTerm + ')').show(); //Show the rows that do!
$(panelContainerId + ':not(:contains(' + searchTerm + '))').slideToggle(); //Hide the rows that done contain the search query.
$(panelContainerId + ':contains(' + searchTerm + ')').slideToggle(); //Show the rows that do!
$(panelContainerId + ':not(:contains(' + searchTerm + '))').fadeOut('slow'); //Hide the rows that done contain the search query.
$(panelContainerId + ':contains(' + searchTerm + ')').fadeIn('slow'); //Show the rows that do!
});
});
}());
#ce-uid-{data.uid} input
{
background-color: {data.colorInput}!important;
}
#ce-uid-{data.uid} input:active, #ce-uid-{data.uid} input:focus
{
background-color: {data.colorInputFocus}!important;
}