{"version":3,"sources":["modal.js","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;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;ACpNA;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 ($) {\r\n\r\n\t// global variables\r\n\tvar modalLink = undefined;\r\n\tvar modal;\r\n\tvar modalURL;\r\n\tvar modalID;\r\n\tvar modalCopy;\r\n\tvar modalFocus;\r\n\tvar modalHeight;\r\n\r\n\t// add overlay\r\n\t$('body').prepend('
');\r\n\r\n\t// collect all modals\r\n\tvar modals = [];\r\n\t$('.modal').each(function () {\r\n\t\t$(this).attr('hidden', 'hidden').attr('role', 'dialog').attr('tabindex', '-1');\r\n\t\tmodals.push($(this).attr('id'));\r\n\t});\r\n\r\n\t// if url has hash for modal open that modal\r\n\tif (window.location.hash) {\r\n\t\tvar modalHash = window.location.hash.substr(1);\r\n\t\tif (jQuery.inArray(modalHash, modals) != '-1') {\r\n\t\t\tmodalURL = '#' + modalHash;\r\n\t\t\tmodalID = modalHash;\r\n\t\t\tmodalCopy = $(modalURL).clone();\r\n\t\t\tmodalHeight = $(modalURL).attr('data-modal-height');\r\n\t\t\tif (typeof modalHeight !== typeof undefined && modalHeight !== false) {\r\n\t\t\t\t$(modalURL).css('height', modalHeight + 'px');\r\n\t\t\t}\r\n\t\t\tif ($(modalURL).hasClass('modal-inline')) {\r\n\t\t\t\t$('html, body').toggleClass('modal-open');\r\n\t\t\t\t$('.modal-overlay').toggleClass('show-modal modal-inline');\r\n\t\t\t\t$(modalURL).toggleClass('show-modal');\r\n\t\t\t\t$(modalURL).removeAttr('hidden').attr('aria-hidden', 'false').attr('tabindex', '0');\r\n\t\t\t\t$('.modal-content .close-modal').addClass('modal-inline').attr('tabindex', '0');\r\n\t\t\t\t$(modalURL).focus();\r\n\t\t\t\tmodalFocus = $(modalURL + ' > .modal-content');\r\n\t\t\t\tfocusable(modalFocus);\r\n\t\t\t} else {\r\n\t\t\t\tmodalCopy = $(modalURL).clone();\r\n\t\t\t\t$(modalURL).replaceWith('');\r\n\t\t\t\tmodal(modalURL);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t$(document).on('click', '.open-modal', function (e) {\r\n\t\te.preventDefault();\r\n\t\t// set variables\r\n\t\tmodalLink = $(this);\r\n\t\tmodalURL = $(this).attr('href');\r\n\t\tmodalID = modalURL.replace(/^#/, '');\r\n\t\tmodalHeight = $(modalURL).attr('data-modal-height');\r\n\r\n\t\t// open modal if it exists in modals array\r\n\t\tif (jQuery.inArray(modalID, modals) != '-1') {\r\n\t\t\tif (typeof modalHeight !== typeof undefined && modalHeight !== false) {\r\n\t\t\t\t$(modalURL).css('height', modalHeight + 'px');\r\n\t\t\t}\r\n\t\t\tif ($(modalURL).hasClass('modal-inline')) {\r\n\t\t\t\t$('html, body').toggleClass('modal-open');\r\n\t\t\t\t$('.modal-overlay').toggleClass('show-modal modal-inline');\r\n\t\t\t\t$(modalURL).toggleClass('show-modal');\r\n\t\t\t\t$(modalURL).removeAttr('hidden').attr('aria-hidden', 'false').attr('tabindex', '0');\r\n\t\t\t\t$('.modal-content .close-modal').addClass('modal-inline').attr('tabindex', '0');\r\n\t\t\t\t$(modalURL).focus();\r\n\t\t\t\tmodalFocus = $(modalURL + ' > .modal-content');\r\n\t\t\t\tfocusable(modalFocus);\r\n\t\t\t} else {\r\n\t\t\t\tmodalCopy = $(modalURL).clone();\r\n\t\t\t\t$(modalURL).replaceWith('');\r\n\t\t\t\tmodal(modalURL);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// modal\r\n\tfunction modal() {\r\n\t\t$('.modal-overlay').after(modalCopy);\r\n\t\t$('html, body').toggleClass('modal-open');\r\n\t\t$('.modal-overlay').toggleClass('show-modal');\r\n\t\t$(modalURL).toggleClass('show-modal');\r\n\t\t$(modalURL).removeAttr('hidden').attr('aria-hidden', 'false').attr('tabindex', '0');\r\n\t\t$('.modal-content .close-modal').attr('tabindex', '0');\r\n\t\t$(modalURL).focus();\r\n\t\tmodalFocus = $(modalURL + ' > .modal-content');\r\n\t\tfocusable(modalFocus);\r\n\t}\r\n\r\n\t// find focusable items\r\n\tfunction focusable() {\r\n\t\tvar modalFocusable = $('span.close-modal, a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]', modalFocus);\r\n\t\tvar modalFocusableFirst = modalFocusable.first();\r\n\t\tvar modalFocusableLast = modalFocusable.last();\r\n\t\tmodalFocusableLast.on('keydown', function (e) {\r\n\t\t\tif ((e.which === 9 && !e.shiftKey)) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\tmodalFocusableFirst.focus();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmodalFocusableFirst.on('keydown', function (e) {\r\n\t\t\tif ((e.which === 9 && e.shiftKey)) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\tmodalFocusableLast.focus();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t// focus to modal content\r\n\t$(document).keydown(function (e) {\r\n\t\tif ($(e.target).is('.modal')) {\r\n\t\t\tif (e.keyCode === 9) {\r\n\t\t\t\tmodalFocus = $(modalURL + ' > .modal-content');\r\n\t\t\t\tfocusable(modalFocus);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// close when clicking overlay / outside of modal window\r\n\t$('.modal-overlay').click(function () {\r\n\t\t$('html, body').removeClass('modal-open');\r\n\t\t$(this).removeClass('show-modal');\r\n\t\tif (!$(this).hasClass('modal-inline')) {\r\n\t\t\tmodalCopy.remove();\r\n\t\t\t$('span[data-modalid=\"' + modalID + '\"]').replaceWith(modalCopy);\r\n\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t$('.modal').removeClass('show-modal');\r\n\t\t} else {\r\n\t\t\t$(modalURL).removeClass('show-modal');\r\n\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t}\r\n\t\tif (modalLink !== undefined) {\r\n\t\t\tmodalLink.focus();\r\n\t\t\tmodalLink = undefined;\r\n\t\t}\r\n\t});\r\n\r\n\t// dont close modal if clicking anything but close button\r\n\t$('.modal-content *:not(.close-modal)').click(function (e) {\r\n\t\te.stopPropagation();\r\n\t});\r\n\r\n\t// close modal with button\r\n\t$(document).on('click', '.close-modal', function () {\r\n\t\t$('html, body').removeClass('modal-open');\r\n\t\t$('.modal-overlay').removeClass('show-modal');\r\n\t\tif (!$(this).hasClass('modal-inline')) {\r\n\t\t\tmodalCopy.remove();\r\n\t\t\t$('span[data-modalid=\"' + modalID + '\"]').replaceWith(modalCopy);\r\n\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t$('.modal').removeClass('show-modal');\r\n\t\t} else {\r\n\t\t\t$(modalURL).removeClass('show-modal');\r\n\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\r\n\t\t}\r\n\t\tif (modalLink != undefined) {\r\n\t\t\tmodalLink.focus();\r\n\t\t\tmodalLink = undefined;\r\n\t\t}\r\n\t});\r\n\r\n\t// close modal if close is focused and enter key pressed\r\n\t// focus to modal content\r\n\t$(document).keydown(function (e) {\r\n\t\tif ($(e.target).is('.close-modal')) {\r\n\t\t\tif (e.keyCode === 13) {\r\n\t\t\t\t$('html, body').removeClass('modal-open');\r\n\t\t\t\t$('.modal-overlay').removeClass('show-modal');\r\n\t\t\t\tif (!$('.modal-overlay').hasClass('modal-inline')) {\r\n\t\t\t\t\tmodalCopy.remove();\r\n\t\t\t\t\t$('span[data-modalid=\"' + modalID + '\"]').replaceWith(modalCopy);\r\n\t\t\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t\t\t$('.modal').removeClass('show-modal');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(modalURL).removeClass('show-modal');\r\n\t\t\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t\t}\r\n\t\t\t\tif (modalLink !== undefined) {\r\n\t\t\t\t\tmodalLink.focus();\r\n\t\t\t\t\tmodalLink = undefined;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// close modal with escape key\r\n\t$(document).on('keyup', function (e) {\r\n\t\tif (e.keyCode === 27) {\r\n\t\t\te.preventDefault();\r\n\t\t\tif ($('body').hasClass('modal-open')) {\r\n\t\t\t\t$('html, body').removeClass('modal-open');\r\n\t\t\t\t$('.modal-overlay').removeClass('show-modal');\r\n\t\t\t\tif (!$('.modal-overlay').hasClass('modal-inline')) {\r\n\t\t\t\t\tmodalCopy.remove();\r\n\t\t\t\t\t$('span[data-modalid=\"' + modalID + '\"]').replaceWith(modalCopy);\r\n\t\t\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t\t\t$('.modal').removeClass('show-modal');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(modalURL).removeClass('show-modal');\r\n\t\t\t\t\t$(modalURL).attr('hidden', 'hidden').attr('aria-hidden', 'true').attr('tabindex', '-1');\r\n\t\t\t\t}\r\n\t\t\t\tif (modalLink !== undefined) {\r\n\t\t\t\t\tmodalLink.focus();\r\n\t\t\t\t\tmodalLink = undefined;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n});","jQuery(document).ready(function ($) {\r\n // image alt\r\n $('img').each(function () {\r\n var img = $(this);\r\n var src = $(this).attr('src');\r\n var filename = src.split('/').reverse()[0].replace(/\\.[^/.]+$/, '');\r\n if (img.parent('a').length != 0) {\r\n if (img.not('[alt]')) {\r\n img.attr('alt', 'image ' + filename);\r\n }\r\n } else {\r\n if (img.not('[alt]')) {\r\n img.attr('alt', '');\r\n }\r\n }\r\n });\r\n\r\n // breadcrumbs\r\n $('ul.breadcrumb').prepend('
  • Home
  • ');\r\n\r\n //View More for Directory\r\n $('.bio-content-toggle').click(function () {\r\n var $bio = $(this).parent();\r\n var $toggletext = $(this).children('.text');\r\n\r\n if ($bio.hasClass('expanded')) {\r\n $bio.removeClass('expanded');\r\n $toggletext.text(\"View More\");\r\n } else {\r\n $bio.addClass('expanded');\r\n $toggletext.text(\"View Less\");\r\n }\r\n });\r\n\r\n if ($('#gallery-content-center').length > 0) {\r\n var $grid = $('#gallery-content-center').isotope({\r\n // options\r\n itemSelector: '.item',\r\n layoutMode: 'fitRows'\r\n });\r\n\r\n $('.apply-portfolio-filters').on('click', function () {\r\n applyPortfolioFilters($grid);\r\n });\r\n\r\n $('.gallery-header-center-right-links.view-all').on('click', function () {\r\n $('#category_select').val('filter-select-one');\r\n $('#service_select').val('filter-select-one');\r\n $grid.isotope({ filter: '*' });\r\n });\r\n\r\n var service = new URLSearchParams(location.search).get('service');\r\n if (service && $('#service_select').length > 0) {\r\n $('#service_select').val('filter-' + service);\r\n applyPortfolioFilters($grid);\r\n }\r\n }\r\n\r\n if ($('#details-gallery-content-center').length > 0) {\r\n $('#details-gallery-content-center').magnificPopup({\r\n delegate: 'a.image',\r\n type: 'image',\r\n tLoading: 'Loading image #%curr%...',\r\n mainClass: 'mfp-img-mobile',\r\n gallery: {\r\n enabled: true,\r\n navigateByImgClick: true,\r\n preload: [0, 1] // Will preload 0 - before current, and 1 after the current image\r\n },\r\n image: {\r\n tError: 'The image #%curr% could not be loaded.',\r\n titleSrc: function (item) {\r\n return item.el.attr('title');\r\n }\r\n }\r\n });\r\n }\r\n\r\n});\r\n\r\nfunction applyPortfolioFilters($grid) {\r\n var cat = '.' + $('#category_select').val();\r\n var serv = '.' + $('#service_select').val();\r\n var catExists = cat.indexOf('select-one') == -1;\r\n var servExists = serv.indexOf('select-one') == -1;\r\n\r\n //If Both Are Selected filter AND\r\n if (catExists && servExists) {\r\n $grid.isotope({ filter: cat + serv });\r\n }\r\n //If only category selected filter cat\r\n if (catExists && !(servExists)) {\r\n $grid.isotope({ filter: cat });\r\n }\r\n //If only service selected filter serv\r\n if (!(catExists) && servExists) {\r\n $grid.isotope({ filter: serv });\r\n }\r\n}\r\n//Tables\r\n$('#main').responsiveTables();"]}