{"version":3,"sources":["script.js"],"names":["jQuery","document","ready","$","console","log","owlCarousel","loop","center","navText","margin","responsive","items","nav","click","toggleClass","e","preventDefault","target","attr","hide","show","hasClass","removeClass","addClass","each","thisFilter","length","documentElement","body","animate","scrollTop","offset","top","url_string","window","location","url","URL","c","searchParams","get","fadeToggle","copy","next","html","title","text","icon","fadeOut","on","modal","data","append","stopPropagation","remove"],"mappings":"AAAA,YAAA,CAEAA,MAAA,CAAAC,QAAA,CAAA,CAAAC,KAAA,CAAA,SAAAC,CAAA,CAAA,CACAC,OAAA,CAAAC,GAAA,CAAA,oCAAA,CAAA,CAEAF,CAAA,CAAA,eAAA,CAAA,CAAAG,WAAA,CAAA,CACAC,IAAA,CAAA,IAAA,CACAC,MAAA,CAAA,IAAA,CACAC,OAAA,CAAA,CAAA,qCAAA,CAAA,sCAAA,CAAA,CACAC,MAAA,CAAA,EAAA,CACAC,UAAA,CAAA,CACA,CAAA,CAAA,CACAC,KAAA,CAAA,CAAA,CACAC,GAAA,CAAA,IACA,CAAA,CACA,GAAA,CAAA,CACAD,KAAA,CAAA,CAAA,CACAC,GAAA,CAAA,KACA,CAAA,CACA,IAAA,CAAA,CACAD,KAAA,CAAA,CAAA,CACAC,GAAA,CAAA,IACA,CACA,CACA,CAAA,CAAA,CAEAV,CAAA,CAAA,qBAAA,CAAA,CAAAW,KAAA,CAAA,UAAA,CACAX,CAAA,CAAA,2BAAA,CAAA,CAAAY,WAAA,CAAA,0BAAA,CACA,CAAA,CAAA,CAEAZ,CAAA,CAAA,4CAAA,CAAA,CAAAW,KAAA,CAAA,SAAAE,CAAA,CAAA,CACAA,CAAA,CAAAC,cAAA,CAAA,CAAA,CACA,GAAA,CAAAC,MAAA,CAAAf,CAAA,CAAA,IAAA,CAAA,CAAAgB,IAAA,CAAA,aAAA,CAAA,CAEAhB,CAAA,CAAA,2CAAA,CAAA,CAAAiB,IAAA,CAAA,CAAA,CAEAjB,CAAA,CAAA,GAAA,CAAAe,MAAA,CAAA,C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AA,CAAA,eAAA,CAAA,SAAAlC,CAAA,CAAA,CACAA,CAAA,CAAAC,cAAA,CAAA,CAAA,CACAd,CAAA,CAAA,mBAAA,CAAA,CAAAoD,MAAA,CAAA,CAAA,CACApD,CAAA,CAAA,MAAA,CAAA,CAAAoB,WAAA,CAAA,aAAA,CACA,CAAA,CACA,CAAA,CAAA","file":"scripts.min.js","sourcesContent":["'use strict'\n\njQuery(document).ready(function($) {\n\tconsole.log('JTF Child Theme Main Script Loaded')\n\t\n\t$(\".owl-carousel\").owlCarousel({\n\t\tloop: true,\n\t\tcenter: true,\n\t\tnavText: ['',''],\n\t\tmargin: 20,\n\t\tresponsive: {\n\t\t\t0: {\n\t\t\t\titems: 1,\n\t\t\t\tnav: true\n\t\t\t},\n\t\t\t600: {\n\t\t\t\titems: 2,\n\t\t\t\tnav: false\n\t\t\t},\n\t\t\t1000: {\n\t\t\t\titems: 4,\n\t\t\t\tnav: true\n\t\t\t}\n\t\t}\n\t});\n\t\n\t$('.navigation__mobile').click(function(){\n\t\t$('.navigation__mobile--menu').toggleClass('navigation__mobile--open')\n\t})\n\t\n\t$('.singlepost__flexible--boxrepeater-trigger').click(function(e){\n\t\te.preventDefault();\n\t\tvar target = $(this).attr('data-target');\n\t\t\n\t\t$('.singlepost__flexible--boxrepeater-hidden').hide();\n\t\t\n\t\t$('.'+target).show();\n\t});\n\t\n\t$('.singlepost__flexible--boxrepeater-hidden-close').click(function(){\n\t\t$('.singlepost__flexible--boxrepeater-hidden').hide();\n\t});\n\t\n\t$('.ourwork__filter--trigger').click(function(e){\n\t\te.preventDefault();\n\t\t\n\t\tif ($(this).hasClass('ourwork__filter--trigger-pressed')) {\n\t\t\t$(this).removeClass('ourwork__filter--trigger-pressed');\n\t\t} else {\n\t\t\t$(this).addClass('ourwork__filter--trigger-pressed');\n\t\t}\n\t\t\n\t\t$('.homepage__feed--block').addClass('homepage__feed--category-hidden');\n\t\t\n\t\t$('.ourwork__filter--trigger').each(function() {\n\t\t\tlet thisFilter = $(this).attr('data-filter');\n\t\t\t\n\t\t\tif ($(this).hasClass('ourwork__filter--trigger-pressed')) {\n\t\t\t\t$('.homepage__feed--category-'+thisFilter).removeClass('homepage__feed--category-hidden');\n\t\t\t}\n\t\t})\n\t\t\n\t\tif ( $('.ourwork__filter--trigger-pressed').length == 0 ) {\n\t\t\t$('.homepage__feed--block').removeClass('homepage__feed--category-hidden');\n\t\t}\n\t})\n\t\n\t$('.jump__scroll').click(function(e){\n\t\te.preventDefault();\n\t\tvar target = $(this).attr('data-jumpto');\n\n\t\t$([document.documentElement, document.body]).animate({\n\t\t\tscrollTop: $('#'+target).offset().top - 100\n\t\t}, 1000);\n\t});\n\t\n\t\n\tvar url_string = window.location; //window.location.href\n\tvar url = new URL(url_string);\n\tvar c = url.searchParams.get(\"jump\");\n\t\n\tif (c) {\n\t\t$([document.documentElement, document.body]).animate({\n\t\t\tscrollTop: $('#'+c).offset().top - 100\n\t\t}, 1000);\n\t}\n\t\n\t$('.ouroffer__modal--trigger').click(function(e){\n\t\te.preventDefault();\n\t\t\n\t\t$('.ouroffer__modal').fadeToggle('fast');\n\t\t\n\t\t$('body').addClass('stopscroll');\n\t\t\n\t\tvar copy = $(this).next().html();\n\t\t$('.ouroffer__modal--content').html(copy);\n\t\t\n\t\tvar title = $(this).attr('data-title');\n\t\t$('.ouroffer__modal--title').text(title);\n\t\t\n\t\tvar icon = $(this).attr('data-icon');\n\t\t$('.ouroffer__modal--linebreak').removeClass().addClass('ouroffer__modal--linebreak');\n\t\t$('.ouroffer__modal--linebreak').addClass('ouroffer__modal--linebreak-'+icon);\n\t\t\n\t});\n\t\n\t$('.ouroffer__modal--close').click(function(e){\n\t\te.preventDefault();\n\t\t$('.ouroffer__modal').fadeOut('fast');\n\t\t$('body').removeClass('stopscroll');\n\t})\n\t\n\t\n\t$(document).on('click', '.singlepost__gallery--image', function(e) {\n\t\te.preventDefault();\n\t\tconsole.log('firing')\n\t\tconst body = $('body');\n\t\tbody.addClass('modal__open');\n\t\t\n\t\tlet modal = '
';\n\t\t\n\t\tbody.append(modal);\n\t});\n\t\n\t$(document).on('click', '.modal__container--login', function(e) {\n\t\te.stopPropagation();\n\t});\n\t\n\t$(document).on('click', '.close__modal', function(e) {\n\t\te.preventDefault();\n\t\t$('.modal__container').remove();\n\t\t$('body').removeClass('modal__open');\n\t});\n});\n"]}