{"version":3,"sources":["core.js","components/ajax.js","components/fullscreen.js","components/gallery.js","components/more_text.js","components/side-navigation.js","components/slider.js","components/wow.js","layout/main.js","parts/_","parts/_ui/dots.js","parts/_ui/_","_core/functions/fn_scroll_to.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,CC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CCtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ECrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ECZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ECrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ECtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CCnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CCTA;AACA;AACA;AACA,CCHA,CCAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CCdA,CCAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.min.js","sourcesContent":["// --- LAYOUT, COMPONENTS, PARTS --- //\n$(function(){\n\t// --- LAYOUT --- //\n\t//fn_layout_main();\n\n\t// --- COMPONENTS --- //\n\t// fn_components_ajaxLoad();\n\t// fn_components_gallery();\n\tfn_components_fullscreen_navigation();\n\tfn_components_slider();\n\tfn_components_wow();\n\tfn_components_side_navigation();\n\tfn_components_nav_scroll();\n\tfn_components_more_text();\n});\n\n\n// --- MISC --- //\n$(function () {\n\tnl_fn_scroll_to();\n});\n\n$(document).scroll(function () {\n\tfn_components_nav_scroll();\n\tfn_components_side_navigation();\n});\n\n$(window).resize(function(){\n\tfn_checkNavigationTrigger();\n});\n\n\n$(window).bind('load', function () {\n\tfn_parts_dots();\n\t// if ((/msie|trident/i).test(navigator.userAgent)) {\n\t// \t$(\"html\").addClass(\"ie\");\n\t// }\n\t// if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {\n\t// \t$(\"html\").addClass(\"ie\");\n\t// }\n});\n\n","/* ==========================================================================\r\n * Ajax load more post to blog grid\r\n * ======================================================================= */\r\n\r\n\r\nfunction fn_components_ajaxLoad(){\r\n\tif ($('.js-load-more-content').length){\r\n $('.js-load-more-content').bind('click', function(){\r\n\r\n var thisGrid = $(this).closest('.js-load-more-block');\r\n\r\n $.ajax({\r\n url: 'public/js/data/gallery.html',\r\n data: 'html',\r\n beforeSend:function(){\r\n thisGrid.find('.js-load-more').addClass('is-disabled');\r\n thisGrid.find('.js-load-more .loading-post').addClass('is-active');\r\n },\r\n success:function(data){\r\n setTimeout(function(){ \r\n thisGrid.find('.js-load-more-grid').append(data);\r\n thisGrid.find('.js-load-more').removeClass('is-disabled')\r\n thisGrid.addClass('is-last');\r\n thisGrid.find('.js-load-more .loading-post').removeClass('is-active');\r\n\r\n // reinit gallery\r\n galleryInst.data('lightGallery').destroy(true);\r\n fn_components_gallery();\r\n }, 2000);\r\n },\r\n error:function(){\r\n console.log(\"error\");\r\n }\r\n });\r\n\r\n });\r\n }\r\n}\r\n","//====================================================\r\n// Initialization Navigation\r\n//====================================================\r\n\r\nfunction fn_components_fullscreen_navigation(){\r\n\tif ($('.navigation').length){\r\n\t\t$('.nav-trigger').on('click', function(e){\r\n\t e.preventDefault();\r\n\t $(this).closest('.navigation').toggleClass('nav-active');\r\n\t });\r\n\t fn_checkNavigationTrigger();\r\n\t}\r\n}\r\n\r\nfunction fn_checkNavigationTrigger(){\r\n (function($){\r\n if($(window).width() > 768 && $('.navigation').hasClass('nav-active')){\r\n // $('body').toggleClass('overflow-hidden');\r\n $('.navigation').toggleClass('nav-active');\r\n }\r\n })(jQuery);\r\n}","//====================================================\r\n// Initialization Accordion\r\n//====================================================\r\n\r\nvar galleryInst;\r\nfunction fn_components_gallery(){\r\n\tif ($('.js-gallery-block').length){\r\n\t\tgalleryInst = $('.js-gallery-block').lightGallery({\r\n\t\t selector: '.js-gallery-item'\r\n\t\t});\r\n\t}\r\n\t\r\n}","/* ==========================================================================\r\n * More text show\r\n * ======================================================================= */\r\nfunction fn_components_more_text(){\r\n\tif ($('.js-more-text').length){\r\n $(\".js-more-text\").bind('click', function () {\r\n\t if ($(this).closest('.js-more-block').hasClass('active')){\r\n\t \t$(this).closest('.js-more-block').removeClass('active');\r\n\t \tif ($(window).width() > 768) var height = 120;\r\n\t \telse var height = 100;\r\n\t \t\r\n\t \t$('html, body').stop().animate({\r\n scrollTop: $(this).closest('.js-more-block').offset().top - height\r\n });\r\n\t } else {\r\n\t \t$('.js-more-block.active').removeClass('active');\r\n\t \t$(this).closest('.js-more-block').addClass('active');\r\n\r\n\t }\r\n\t });\r\n\t}\r\n}","//====================================================\r\n// Initialization scroll\r\n//====================================================\r\nfunction fn_components_side_navigation(){\r\n\tif ($('.js-menu-navigation').length){\r\n\t\tcheckScroll();\r\n\t}\r\n}\r\n\r\nvar\tscrolling = false;\r\nvar contentSections = $('.section-scroll'),\r\n\tverticalNavigation = $('.js-menu-navigation'),\r\n\tnavigationItems = verticalNavigation.find('a');\r\n\r\nfunction checkScroll() {\r\n\tif( !scrolling ) {\r\n\t\tscrolling = true;\r\n\t\t(!window.requestAnimationFrame) ? setTimeout(updateSections, 300) : window.requestAnimationFrame(updateSections);\r\n\t}\r\n}\r\n\r\nfunction updateSections() {\r\n\tvar halfWindowHeight = $(window).height()/2,\r\n\t\tscrollTop = $(window).scrollTop();\r\n\tcontentSections.each(function(){\r\n\t\tvar section = $(this),\r\n\t\t\tsectionId = section.attr('id');\r\n\t\t\tvar navigationItem = navigationItems.filter('[href^=\"#'+ sectionId +'\"]');\r\n\t\t( (section.offset().top - halfWindowHeight < scrollTop ) && ( section.offset().top + section.innerHeight() - halfWindowHeight > scrollTop) )\r\n\t\t\t? navigationItem.addClass('active')\r\n\t\t\t: navigationItem.removeClass('active');\r\n\t});\r\n\tscrolling = false;\r\n}\r\n\r\n\r\n\r\nfunction fn_components_nav_scroll(){\r\n\tif ($('.header-scroll').length){\r\n\t var scroll = $(window).scrollTop();\r\n\t var scrolldescirs = $('#section-top').offset().top - 80;\r\n\r\n\t if (scroll > 80){\r\n\t $('header').addClass('header-scrolling');\r\n\t } else {\r\n\t $('header').removeClass('header-scrolling');\r\n\t }\r\n \r\n\t if ($(window).width() > 768 && scroll > scrolldescirs){\r\n\t $('header').addClass('header-scroll-active');\r\n\t } else {\r\n\t $('header').removeClass('header-scroll-active');\r\n\t }\r\n\t}\r\n}","//====================================================\r\n// Initialization Slider\r\n//====================================================\r\nfunction fn_components_slider(){\r\n\t// fn_speakers_slider();\r\n\t// fn_price_slider();\r\n\tfn_classic_slider();\r\n}\r\n\r\n\r\nfunction fn_classic_slider(){\r\n\tif ($('.js-slider-classic').length) {\r\n\t\t$('.js-slider-classic').slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: true,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: true,\r\n\t\t\tautoplaySpeed: 2500,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\n\r\nfunction fn_speakers_slider(){\r\n\tif ($('.js-slider-speakers').length) {\r\n\t\t$('.js-slider-speakers').slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: true,\r\n\t\t\tslidesToShow: 4,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: true,\r\n\t\t\tautoplaySpeed: 2500,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tnextArrow: '',\r\n\t\t\tprevArrow: '',\r\n\t\t\t//fade: true,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tmobileFirst: true,\r\n\t\t\tresponsive: [\r\n\t\t\t\t{\r\n\t\t\t\t breakpoint: 1220,\r\n\t\t\t\t settings: {\r\n\t\t\t\t\tslidesToShow: 4,\r\n\t\t\t\t\tslidesToScroll: 2,\r\n\t\t\t\t }\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t breakpoint: 990,\r\n\t\t\t\t settings: {\r\n\t\t\t\t\tslidesToShow: 4,\r\n\t\t\t\t\tslidesToScroll: 2,\r\n\t\t\t\t }\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t breakpoint: 550,\r\n\t\t\t\t settings: {\r\n\t\t\t\t\tslidesToShow: 3,\r\n\t\t\t\t\tslidesToScroll: 2,\r\n\t\t\t\t }\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t breakpoint: 250,\r\n\t\t\t\t settings: {\r\n\t\t\t\t\tslidesToShow: 2,\r\n\t\t\t\t\tslidesToScroll: 2,\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\nfunction fn_price_slider(){\r\n\tif ($('.js-slider-price').length) {\r\n\t\t$('.js-slider-price').slick({\r\n\t\t\tinfinite: true,\r\n\t\t\tdots: true,\r\n\t\t\tslidesToShow: 1,\r\n\t\t\tslidesToScroll: 1,\r\n\t\t\tarrows: false,\r\n\t\t\tautoplay: false,\r\n\t\t\tautoplaySpeed: 2500,\r\n\t\t\tcssEase: 'linear',\r\n\t\t\tspeed: 500,\r\n\t\t\tvariableWidth: false,\r\n\t\t\tmobileFirst: true\r\n\t\t});\r\n\t}\r\n}\r\n","//====================================================\r\n// Initialization Wow\r\n//====================================================\r\nfunction fn_components_wow(){\r\n\tnew WOW().init();\r\n}\r\n\r\n\r\n\r\n","function fn_layout_main() {\n\n}\n","","//====================================================\r\n// Function: Dots\r\n//====================================================\r\nfunction fn_parts_dots() {\r\n\tif ($( '.dots' ).length){\r\n\t\tfn_dots( '.dots' );\r\n\t}\r\n}\r\n\r\nfunction fn_dots(elem) {\r\n\t$(elem).each(function () {\r\n\t\t$(this).dotdotdot({ 'watch' : true});\r\n\t});\r\n}\r\n","","//====================================================\r\n// Scroll to \r\n//====================================================\r\nfunction nl_fn_scroll_to(){\r\n if( $('.scroll-trigger').length ){\r\n $('.scroll-trigger').bind('click', function () {\r\n var inst = $(this);\r\n var target = $(this).attr('data-scroll');\r\n if (target.length && !inst.hasClass('active')) {\r\n $('html, body').stop().animate({\r\n scrollTop: $('#' + target + '').offset().top - 60\r\n }, function() {\r\n if ($(window).width() < 768){\r\n $('.navigation').removeClass('nav-active');\r\n }\r\n });\r\n // return false;\r\n }\r\n });\r\n }\r\n}"],"sourceRoot":"/source/"}