$( document ).ready(function() {
$(function(){
$("#eventsList").load("events-views/events-all.html");
});
$('#ls-view').change(function() {
if ($(this).val() === '0') {
$("#eventsList").load("events-views/events-all.html");
$('.activity-heading').html(' All Activity ');
} else if ($(this).val() === '1') {
$("#eventsList").load("events-views/events-vehicles.html");
$('.activity-heading').html(' Vehicles Of Interest');
} else if ($(this).val() === '2') {
$("#eventsList").load("events-views/events-trades.html");
$('.activity-heading').html(' Possible Trades');
} else if ($(this).val() === '3') {
$("#eventsList").load("events-views/events-pages.html");
$('.activity-heading').html(' Page Visits');
} else if ($(this).val() === '4') {
$("#eventsList").load("events-views/events-impressions.html");
$('.activity-heading').html(' Ad Impressions');
} else if ($(this).val() === '5') {
$("#eventsList").load("events-views/events-conversions.html");
$('.activity-heading').html(' All Conversions');
} else if ($(this).val() === '6') {
$("#eventsList").load("events-views/events-clicks.html");
$('.activity-heading').html(' Clicks');
} else if ($(this).val() === '7') {
$("#eventsList").load("events-views/events-forms.html");
$('.activity-heading').html(' Form Submissions');
} else if ($(this).val() === '8') {
$("#eventsList").load("events-views/events-calls.html");
$('.activity-heading').html(' Phone Calls');
} else if ($(this).val() === '9') {
$("#eventsList").load("events-views/events-walkin.html");
$('.activity-heading').html(' Walk-in');
} else if ($(this).val() === '10') {
$("#eventsList").load("events-views/events-sold.html");
$('.activity-heading').html(' Sold');
}
});
//$(window).on("resize", function () {
if ($(window).width() < 840) {
$('.profileCollapse').collapse('hide');
$('.eventCollapse').collapse('hide');
}
else {
$('.profileCollapse').collapse('show');
$('.eventCollapse').collapse('show');
}
//}).resize();
$('.tr-collapse').on('click', function(e) {
$('.trOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
$('.veh-collapse').on('click', function(e) {
$('.vehOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
$('.mkt-collapse').on('click', function(e) {
$('.mktOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
$('.lp-collapse').on('click', function(e) {
$('.lpOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
$('.mtr-collapse').on('click', function(e) {
$('.mtrOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
$('.mtd-collapse').on('click', function(e) {
$('.mtdOverflow').collapse('toggle');
$(this).text(function(i, text){
return text === "Show All" ? "Show Less" : "Show All";
})
e.preventDefault();
});
});