{"version":3,"sources":["subpage.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"subpage.js","sourcesContent":["jQuery(document).ready(function ($) {\n // Images\n $('img').each(function () {\n var img = $(this);\n var src = $(this).attr('src');\n var alt = $(this).attr('alt');\n var filename = src.split('/').reverse()[0].replace(/\\.[^/.]+$/, '');\n if (img.parent('a').length !== 0) {\n console.log('parent is a link');\n if (alt === '' || alt === undefined) {\n img.attr('alt', 'image ' + filename);\n }\n } else {\n if (alt === '' || alt === undefined) {\n img.attr('alt', '');\n }\n }\n });\n\n // Tables\n $('main').responsiveTables();\n $('main').responsivevideos();\n\n //Info Cards\n if ($(\".info-cards\").not('.info-cards.list').length) {\n $('.info-cards .col').wrapInner('
');\n $(\".info-cards .col img\").each(function () {\n $(this).unwrap('a');\n $(this).unwrap('p');\n $(this).insertBefore($(this).parent());\n });\n }\n\n //Full Width Call to Action\n if ($(\".call-to-action.fw\").length) {\n $(\".call-to-action.fw .content .image\").each(function () {\n $(this).parent().parent().css('background-image', 'url(' + $(this).find('img').attr('src') + ')');\n $(this).remove();\n });\n }\n\n //Featured Card\n if ($(\".featured-card\").length) {\n $(\".featured-card .box-image\").each(function () {\n $(this).css('background-image', 'url(' + $(this).find('img').attr('src') + ')');\n $(this).find('img').remove();\n });\n }\n\n //Blog Categories\n $('.blog-category-title').click(function () {\n $('.blog-categories').toggleClass('active');\n });\n\n $('.blog-category-title').on('keypress', function (e) {\n if (e.which === 13) {\n $('.blog-categories').toggleClass('active');\n }\n });\n\n //Info Cards\n if ($(\".recent-posts .post\").length) {\n $('.recent-posts .post').first().wrap('
');\n $('.recent-posts .post').first().wrapInner('
');\n $(\".recent-posts .post:first img\").each(function () {\n $(this).insertBefore($(this).parent());\n });\n }\n\n //Lincoln Quotes\n if ($(\".quotes .no-results-text\").length) {\n $(\".quotes .start\").remove();\n }\n\n if ($(\".quotes .searched\").length) {\n $(\".quotes .start\").remove();\n }\n\n //Breadcrumbs\n if ($(\".breadcrumb li\").length == 1) {\n $(\".breadcrumb li\").hide();\n }\n\n //Paging\n\n if ($(' ul.pagination li').length >= 5) {\n if ($(' ul.pagination li span').hasClass('active')) {\n\n $('ul.pagination li span.active').parent().prevAll().remove();\n }\n }\n\n //Events\n $('.event-dates h2 span:empty').parent().remove();\n\n //Subpage Banners\n if ($('.banner img').length > 1) {\n $(\".banner img.default-img\").remove();\n } else {\n $(\".banner img.default-img\").addClass('show');\n }\n\n //Subnavigation\n if ($('.subnavigation .ul2 li').hasClass('active')) {\n $('.subnavigation .ul2 li.active').parent().addClass('active');\n }\n\n\n if ($('.subnavigation .ul3 li').hasClass('active')) {\n $('.subnavigation .ul3 li.active').parent().addClass('active');\n $('.subnavigation .ul3 li.active').parent().parent().addClass('active');\n $('.subnavigation .ul3 li.active').parent().parent().parent().addClass('active');\n $('.subnavigation .ul3 li.active').parent().parent().children().addClass('active no-marker');\n }\n\n $('.subnavigation .ul1 li .a1').click(function () {\n $(this).next('ul').toggleClass('active');\n });\n\n $('.subnavigation .ul1 li .a1').on('keypress', function (e) {\n if (e.keyCode == 13 || e.keyCode == 32) {\n e.preventDefault();\n $(this).next('ul').toggleClass('active');\n }\n });\n\n //Custom Selectbox\n $('.selectbox-title').click(function () {\n $('.custom-selectbox').toggleClass('active');\n event.stopPropagation();\n //Click outside of open menu, close menu\n $(document).on('click', function (event) {\n if (!$(event.target).closest(\".selectbox-title\").length) {\n $('.custom-selectbox').removeClass('active');\n }\n });\n });\n\n $('.selectbox-title').on('keypress', function (e) {\n if (e.which === 13) {\n $('.custom-selectbox').toggleClass('active');\n }\n event.stopPropagation();\n $(document).on('keyup', function (e) {\n if (e.keyCode === 27) {\n $('.custom-selectbox.active').removeClass('active');\n }\n });\n });\n\n //Clear Date\n $('.date .clear-date').click(function () {\n $('input[type=date]').val('');\n });\n\n});"]}