');
// FILL VIEWPORT WITH FIRST PANEL -- use only if welcome panel is to be full page
var firstpanelsplash = function () {
var newwidth = jQuery(window).width();
var newheight = jQuery(window).height();
jQuery('.widget-welcome').height(newheight).width(newwidth);
};
jQuery(document).ready(firstpanelsplash);
jQuery(window).resize(firstpanelsplash);
// FILL VIEWPORT WITH FIRST PANEL -- end
WebFontConfig = {
google: { families: [ 'Droid Sans:400,700', 'Source Sans Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' ]
}
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
jQuery(document).ready(function() {
//jQuery('main').prepend('
');
if (jQuery(".siteline-home-page").length) {
var owl = jQuery(".owl-carousel");
owl.data('owlCarousel').reinit({
autoPlay: 6000,
lazyLoad: true,
lazyFollow: false,
autoHeight: true
});
//Reduced Event Description
jQuery('.siteline-home-page .event-single').each(function(index){
pElement = jQuery('p',jQuery(this));
yourString = pElement.text();
var maxLength = 100;
trimmedString = yourString.substr(0, maxLength);
if (yourString.length > maxLength ) {
trimmedString = trimmedString.substr(0, Math.min(trimmedString.length, trimmedString.lastIndexOf(" "))) + " ...";
}
pElement.text(trimmedString );
});
}
});
function filter() {
var input, filter, events, header, i;
input = document.getElementById("SearchInput");
filter = input.value.toUpperCase();
events = $('.event-single')
for (i = 0; i < events.length; i++) {
header = events[i].getElementsByTagName("h3")[0]
if (header) {
if (header.innerHTML.toUpperCase().indexOf(filter) > -1) {
events[i].style.display = "inline-block";
} else {
events[i].style.display = "none";
}
}
}
}
//-->