Commit fb3e99ce authored by Simon's avatar Simon

Landing page 5 update

parent 34f0f1a7
......@@ -14,4 +14,8 @@
}
}
.l-inner--header-motherson {
max-width: 1030px;
}
/* critical:end */
......@@ -6,4 +6,34 @@
.l-map--cities { height: 495px; }
.l-map--cities--panevezys {
position: relative;
height: 513px;
margin-top: 40px;
}
.l-map--cities--panevezys-aside {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
height: 100%;
padding: 50px 52px;
width: 460px;
background: rgba(218, 33, 40, 0.9);
z-index: 10;
justify-content: center;
h2 {
margin: 0 0 40px;
padding: 36px 40px 24px 0;
border-bottom: 1px solid #fff;
color: #fff;
font-weight: bold;
font-size: 30px;
line-height: 40px;
}
}
/* critical:end */
......@@ -57,6 +57,12 @@
}
}
.l-section--landing-5 { display: flex; align-items: flex-end; padding: 0 !important; background-color: #515e70; height: 240px;
@media (--min--medium) {
height: 348px;
}
}
/* critical:end */
......@@ -86,6 +92,8 @@
.l-section--landing-4 { background-position: 50% 20%; }
.l-section--landing-5 { background-position: 50% 20%; }
.js {
.l-section { background-image: none; }
}
......@@ -100,6 +108,7 @@
.l-section--recommend { background-image: url(/wp-content/themes/biuro/i/sections/recommend.jpg); }
.l-section--landing-3 { background-image: url(/wp-content/themes/biuro/i/sections/landing-3.jpg); }
.l-section--landing-4 { background-image: url(/wp-content/themes/biuro/i/sections/landing-4.jpg); }
.l-section--landing-5 { background-image: url(/wp-content/themes/biuro/i/sections/landing-4.jpg); }
}
.js.webp {
......@@ -111,4 +120,5 @@
.l-section--recommend { background-image: url(/wp-content/themes/biuro/i/sections/recommend.webp); }
.l-section--landing-3 { background-image: url(/wp-content/themes/biuro/i/sections/landing-3.webp); }
.l-section--landing-4 { background-image: url(/wp-content/themes/biuro/i/sections/landing-4.webp); }
.l-section--landing-5 { background-image: url(/wp-content/themes/biuro/i/sections/landing-4.webp); }
}
......@@ -20,6 +20,7 @@ c-: Signify that something is a Component. This is a concrete, implementation-sp
@import '_component--contact-landing-2.css';
@import '_component--contact-landing-3.css';
@import '_component--contact-landing-4.css';
@import '_component--contact-landing-5.css';
@import '_component--copyright.css';
@import '_component--data-controller.css';
@import '_component--divisions.css';
......
......@@ -14,11 +14,37 @@
&:hover { background: var(--color--green-darker); border-color: var(--color--green-darker); }
}
.c-contact-landing-5--form {
.c-btn--main { background: #DA2128; border: 2px solid #DA2128;
&:hover { background: #A70000; border-color: #A70000; }
}
}
.c-btn--phone { color: #fff; background: var(--color--green); border: 2px solid var(--color--green); border-radius: 44px; overflow: hidden; height: 44px; line-height: 24px; margin: -15px 0 15px; padding: 9px 15px 8px;
svg { float: left; margin: 0 10px 0 0; }
&:hover { background: var(--color--green-darker); border-color: var(--color--green-darker); }
}
.c-btn--phone-alt {
color: #fff;
background: #DA2128;
border: 2px solid #DA2128;
overflow: hidden; height: 68px;
line-height: 24px;
margin: 10px 0 35px;
padding: 21px 28px 20px;
svg {
float: left;
margin: 0 20px 0 0;
}
&:hover {
background: #A70000;
border-color: #A70000;
}
}
.c-btn--disabled { color: #bbb; background: #6f7479; border-color: #6f7479; outline: none; pointer-events: none; user-select: none;
&:hover { color: #bbb; background: #6f7479; cursor: not-allowed; border-color: #6f7479;}
}
......
/* ------------- Component: contact section ------------- */
/* critical:start */
.c-contact-landing-5 { padding: 10px 0;
@media (--max--medium) {
max-width: 440px; margin: 0 auto;
}
@media (--min--medium) {
padding: 20px 0;
}
}
.c-contact-landing-5--inner { max-width: 1000px; padding: 0 10px; margin: 0 auto;
@media (--min--medium) {
display: flex; justify-content: space-between;
}
}
.c-contact-landing-5--content {
color: #2a3644;
font-weight: 500;
padding: 15px 0 20px 15px;
@media (--min--medium) {
flex: 1 1 40%;
max-width: 510px;
}
img {
max-width: 100%;
height: auto;
}
span {
display: block;
overflow: hidden;
line-height: 22px;
padding: 2px 0 0 0;
}
h2 {
font-weight: bold;
font-size: 24px;
line-height: 34px;
color: #000;
}
}
.c-contact-landing-5--content-inner {
columns: 2;
p {
padding: 15px 0;
width: 200px;
height: 50px;
font-size: 16px;
line-height: 20px;
}
svg {
color: #DA2128;
}
}
.c-contact-landing-5--img { margin-top: 40px; }
.c-contact-landing-5--form { max-width: 390px;
@media (--min--medium) {
flex: 1 1 40%; margin-top: -244px;
}
}
/* critical:end */
.c-contact-landing-5--aside { padding: 25px; background: #ECECEC; overflow: hidden;
svg { float: left; margin-right: 25px;
@media (--max--medium) {
display: none;
}
}
p { overflow: hidden; color: #787878; margin: 0; text-align: center;
@media (--min--medium) {
max-width: 300px;
text-align: left;
font-size: 16px;
line-height: 23px;
}
}
}
......@@ -78,6 +78,30 @@
}
}
.c-heading--landing-5 {
color: #fff;
padding: 0 15px;
h1 {
color: #fff;
font-size: 21px;
line-height: 32px;
@media (--min--medium) {
max-width: 500px;
font-size: 36px;
line-height: 45px;
}
span { color: #19C5A7; }
}
@media (--max--medium) {
max-width: 440px; margin: 0 auto;
}
@media (--min--medium) {
/*padding-left: 110px;*/
}
}
.c-heading--recommend-friend {
h1 { max-width: 420px; color: #fff; font-size: 26px; line-height: 37px; padding: 0 20px 20px;
@media (--max--medium) {
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
/**
* Template Name: Employees Landing Page IV
*
* The employees landing page template file
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Biuro
* @since 1.0
* @version 1.0
*/
get_header('langing');
?>
<div class="l-section l-section--landing-4">
<div class="l-section--inner">
<?php
while ( have_posts() ) :
?>
<div class="c-heading--landing-4">
<?php
the_post();
the_content();
?>
</div>
<?php
endwhile;
?>
</div>
</div>
<div id="content">
<main id="main" class="l-main">
<div class="c-contact-landing-4">
<div class="c-contact-landing-4--inner">
<div class="c-contact-landing-4--content">
<?php
if ( is_active_sidebar( 'landing_page_employees_4' ) ) :
dynamic_sidebar( 'landing_page_employees_4' );
endif;
?>
<div class="c-contact-landing-4--aside">
<svg width="44" height="44" xmlns="http://www.w3.org/2000/svg">
<circle fill="#6CCDBC" cx="22" cy="22" r="22"/>
<path d="M31.268 13.198l-1.466-1.466A2.49 2.49 0 0028.035 11c-.64 0-1.28.244-1.768.732L12.502 25.497l-.496 4.462a.938.938 0 001.035 1.035l4.458-.492 13.769-13.77a2.5 2.5 0 000-3.534zm-14.343 16.11l-3.634.403.405-3.64 10.308-10.308 3.233 3.233-10.312 10.312zm13.459-13.459l-2.263 2.263-3.233-3.233 2.263-2.263c.236-.236.55-.366.884-.366.334 0 .647.13.884.366l1.465 1.465c.487.488.487 1.28 0 1.768z" fill="#FFF"/>
</svg>
<p><?php _e('Fill out the inquiry form and we will get back to you within 2 business days!', 'biuro'); ?></p>
</div>
</div>
<div class="c-contact-landing-4--form">
<?php
echo do_shortcode('[biuro-contacts--employees page="landing-4"]');
?>
</div>
</div><!-- .c-contact-landing-4--inner -->
</div><!-- .c-contact-landing-4 -->
<div class="c-jobs c-jobs--alt">
<div class="c-jobs--inner-custom">
<h2 class="c-jobs--headline"><?php _e('Free transport to / from work in these cities', 'biuro'); ?></h2>
</div>
<div class="l-map--cities" id="js-map--cities" data-source="plunge"></div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
dynamic_sidebar( 'front_page_feedbacks' );
endif;
?>
</main><!-- .l-main -->
</div><!-- #content -->
<?php get_footer();
<?php
/**
* Template Name: Employees Landing Page IV
*
* The employees landing page template file
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Biuro
* @since 1.0
* @version 1.0
*/
get_header('langing');
?>
<div class="l-section l-section--landing-4">
<div class="l-section--inner">
<?php
while ( have_posts() ) :
?>
<div class="c-heading--landing-4">
<?php
the_post();
the_content();
?>
</div>
<?php
endwhile;
?>
</div>
</div>
<div id="content">
<main id="main" class="l-main">
<div class="c-contact-landing-4">
<div class="c-contact-landing-4--inner">
<div class="c-contact-landing-4--content">
<?php
if ( is_active_sidebar( 'landing_page_employees_4' ) ) :
dynamic_sidebar( 'landing_page_employees_4' );
endif;
?>
<div class="c-contact-landing-4--aside">
<svg width="44" height="44" xmlns="http://www.w3.org/2000/svg">
<circle fill="#6CCDBC" cx="22" cy="22" r="22"/>
<path d="M31.268 13.198l-1.466-1.466A2.49 2.49 0 0028.035 11c-.64 0-1.28.244-1.768.732L12.502 25.497l-.496 4.462a.938.938 0 001.035 1.035l4.458-.492 13.769-13.77a2.5 2.5 0 000-3.534zm-14.343 16.11l-3.634.403.405-3.64 10.308-10.308 3.233 3.233-10.312 10.312zm13.459-13.459l-2.263 2.263-3.233-3.233 2.263-2.263c.236-.236.55-.366.884-.366.334 0 .647.13.884.366l1.465 1.465c.487.488.487 1.28 0 1.768z" fill="#FFF"/>
</svg>
<p><?php _e('Fill out the inquiry form and we will get back to you within 2 business days!', 'biuro'); ?></p>
</div>
</div>
<div class="c-contact-landing-4--form">
<?php
echo do_shortcode('[biuro-contacts--employees page="landing-4"]');
?>
</div>
</div><!-- .c-contact-landing-4--inner -->
</div><!-- .c-contact-landing-4 -->
<div class="c-jobs c-jobs--alt">
<div class="c-jobs--inner-custom">
<h2 class="c-jobs--headline"><?php _e('Free transport to / from work in these cities', 'biuro'); ?></h2>
</div>
<div class="l-map--cities" id="js-map--cities" data-source="plunge"></div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
dynamic_sidebar( 'front_page_feedbacks' );
endif;
?>
</main><!-- .l-main -->
</div><!-- #content -->
<?php get_footer();
<?php
/**
* Template Name: Employees Landing Page V
*
* The employees landing page template file
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Biuro
* @since 1.0
* @version 1.0
*/
// global $motherson;
$langing = 'motherson';
define('langing', $langing);
get_header('langing');
?>
<div class="l-section l-section--landing-5">
<div class="l-section--inner">
<?php
while ( have_posts() ) :
?>
<div class="c-heading--landing-5">
<?php
the_post();
the_content();
?>
</div>
<?php
endwhile;
?>
</div>
</div>
<div id="content">
<main id="main" class="l-main">
<div class="c-contact-landing-5">
<div class="c-contact-landing-5--inner">
<div class="c-contact-landing-5--content">
<?php
if ( is_active_sidebar( 'landing_page_employees_5' ) ) :
dynamic_sidebar( 'landing_page_employees_5' );
endif;
?>
</div>
<div class="c-contact-landing-5--form">
<?php
echo do_shortcode('[biuro-contacts--employees page="landing-5"]');
?>
<div class="c-contact-landing-5--aside">
<svg width="44" height="44" xmlns="http://www.w3.org/2000/svg">
<circle fill="#000" cx="22" cy="22" r="22"/>
<path d="M31.268 13.198l-1.466-1.466A2.49 2.49 0 0028.035 11c-.64 0-1.28.244-1.768.732L12.502 25.497l-.496 4.462a.938.938 0 001.035 1.035l4.458-.492 13.769-13.77a2.5 2.5 0 000-3.534zm-14.343 16.11l-3.634.403.405-3.64 10.308-10.308 3.233 3.233-10.312 10.312zm13.459-13.459l-2.263 2.263-3.233-3.233 2.263-2.263c.236-.236.55-.366.884-.366.334 0 .647.13.884.366l1.465 1.465c.487.488.487 1.28 0 1.768z" fill="#FFF"/>
</svg>
<p><?php _e('Fill out the inquiry form and we will get back to you within 2 business days!', 'biuro'); ?></p>
</div>
</div>
</div><!-- .c-contact-landing-5--inner -->
</div><!-- .c-contact-landing-5 -->
<div class="c-jobs c-jobs--alt">
<div class="l-map--cities--panevezys">
<div class="l-map--cities--panevezys-aside">
<svg width="46px" height="47px" viewBox="0 0 20 21">
<path fill="#fff" d="M5 15.5A1.25 1.25 0 105 13a1.25 1.25 0 000 2.5zm10 0a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5zm4.062-10h-.312V3.625c0-1.712-3.708-3.065-8.434-3.123L10 .5C5.125.5 1.25 1.875 1.25 3.625V5.5H.937A.937.937 0 000 6.438v3.125c0 .517.42.937.937.937h.313v6.25c0 .69.56 1.25 1.25 1.25v1.25c0 .69.56 1.25 1.25 1.25h1.875c.69 0 1.25-.56 1.25-1.25V18h6.25v1.25c0 .69.56 1.25 1.25 1.25h1.875c.69 0 1.25-.56 1.25-1.25V18c.69 0 1.25-.56 1.25-1.25V10.5h.312c.518 0 .938-.42.938-.937V6.438a.937.937 0 00-.938-.938zM5.625 19.25H3.75V18h1.875v1.25zm10.625 0h-1.875V18h1.875v1.25zm1.25-2.5h-15v-5h15v5zm0-6.25h-15v-5H17.5v5zm.001-6.25H2.5v-.613C2.629 3.117 5.133 1.75 10 1.75c4.867 0 7.37 1.367 7.501 1.887v.613z" fill-rule="nonzero"/>
</svg>
<h2><?php _e('Free transport to / from work in these cities', 'biuro'); ?></h2>
<svg width="188px" height="43px" viewBox="0 0 526.44 119.38">
<use href="#ico--motherson"></use>
</svg>
</div>
<div class="l-map--cities--panevezys" id="js-map--cities" data-source="panevezys"></div>
</div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
dynamic_sidebar( 'front_page_feedbacks' );
endif;
?>
</main><!-- .l-main -->
</div><!-- #content -->
<?php get_footer();
......@@ -152,7 +152,7 @@
?>
<script src="/wp-content/themes/biuro/js/main-1409b6f0.min.js" async defer></script>
<script src="/wp-content/themes/biuro/js/main.min.js" async defer></script>
<script src="/wp-content/themes/biuro/js/vendor/modernizr-custom.js" async defer></script>
......
......@@ -327,6 +327,16 @@ function biuro_widger_areas() {
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Landing page: Employees 5',
'id' => 'landing_page_employees_5',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
) );
register_sidebar( array(
'name' => 'Jobs: No job ads area',
'id' => 'no_job_ads',
......
......@@ -27,7 +27,7 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2" crossorigin="anonymous" >
<style><?php include 'css/core-4903178843.min.css'; ?></style>
<style><?php include 'css/core.min.css'; ?></style>
<script>
document.documentElement.classList.replace('no-js', 'js');
......@@ -36,22 +36,25 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-7e0a5b6b86.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-7e0a5b6b86.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript>
<?php wp_head(); ?>
</head>
<body class="l-body--langing">
<?php include 'template-parts/svg/icons.php'; ?>
<?php
global $langing;
include 'template-parts/svg/icons.php';
?>
<header class="l-header--langing">
<div class="l-inner l-inner--header">
<div class="l-inner l-inner--header <?php if (isset($langing) && $langing == 'motherson'): echo 'l-inner--header-motherson'; endif; ?>">
<a href="<?php echo pll_home_url(); ?>" class="c-logo" title="<?php echo get_the_title( get_option('page_on_front') ); ?>" aria-label="<?php echo get_the_title( get_option('page_on_front') ); ?>">
<svg width="82px" height="49px" class="c-logo--svg">
......@@ -59,5 +62,15 @@
</svg>
</a>
<?php
if (isset($langing) && $langing == 'motherson'):
?>
<svg width="183px" height="41px" viewBox="0 0 526.44 119.38">
<use href="#ico--motherson"></use>
</svg>
<?php
endif;
?>
</div>
</header>
......@@ -41,7 +41,7 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2" crossorigin="anonymous" >
<style><?php include 'css/core-4903178843.min.css'; ?></style>
<style><?php include 'css/core.min.css'; ?></style>
<script>
document.documentElement.classList.replace('no-js', 'js');
......@@ -50,13 +50,13 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-7e0a5b6b86.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-7e0a5b6b86.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript>
<?php
......
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{7:function(e,t,n){"use strict";n.r(t);const o=e=>{if(!e)return;const t=e.parentNode.nextElementSibling;if(!t||!t.classList.contains("c-accordion--content"))return;const n=e.classList.contains("c-accordion--header--is-expanded");n?(e=>{const t=e.scrollHeight,n=e.style.transition;e.style.transition="",requestAnimationFrame(()=>{e.style.height=t+"px",e.style.transition=n,requestAnimationFrame(()=>{e.style.height="0px"})})})(t):(history.pushState({},"",e.hash),requestAnimationFrame(()=>{(e=>{const t=e.offsetTop-(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<960?72:117);window.scrollTo({top:t,behavior:"smooth"}),e.blur()})(e),requestAnimationFrame(()=>{(e=>{const t=e.scrollHeight,n=t=>{e.removeEventListener("transitionend",n)};e.style.height=t+"px",e.addEventListener("transitionend",n)})(t)})})),e.classList.toggle("c-accordion--header--is-expanded",!n)};t.default=()=>{document.querySelectorAll(".c-accordion--content").forEach(e=>{e.classList.add("c-accordion--content--is-collapsed")}),window.location.hash&&o(document.querySelector(window.location.hash)),document.querySelectorAll(".js-accordion--header").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),o(e)})})}}}]);
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["accordion"],{
/***/ "./wp-content/themes/biuro/js/components/accordion/accordion.js":
/*!**********************************************************************!*\
!*** ./wp-content/themes/biuro/js/components/accordion/accordion.js ***!
\**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nconst collapseContent = n => {\n const h = n.scrollHeight;\n const t = n.style.transition;\n n.style.transition = '';\n requestAnimationFrame(() => {\n n.style.height = h + 'px';\n n.style.transition = t;\n requestAnimationFrame(() => {\n n.style.height = 0 + 'px';\n });\n });\n};\n\nconst expandContent = n => {\n const h = n.scrollHeight;\n\n const done = e => {\n n.removeEventListener('transitionend', done);\n };\n\n n.style.height = h + 'px';\n n.addEventListener('transitionend', done);\n};\n\nconst scrollToSection = header => {\n const top = header.offsetTop - (Math.max(document.documentElement.clientWidth, window.innerWidth || 0) < 960 ? 72 : 117);\n window.scrollTo({\n top: top,\n behavior: 'smooth'\n });\n header.blur();\n};\n\nconst toggleSection = header => {\n if (!header) {\n return;\n }\n\n const node = header.parentNode.nextElementSibling;\n\n if (!node || !node.classList.contains('c-accordion--content')) {\n return;\n }\n\n const isOpen = header.classList.contains('c-accordion--header--is-expanded');\n\n if (isOpen) {\n collapseContent(node);\n } else {\n history.pushState({}, '', header.hash);\n requestAnimationFrame(() => {\n scrollToSection(header);\n requestAnimationFrame(() => {\n expandContent(node);\n });\n });\n }\n\n header.classList.toggle('c-accordion--header--is-expanded', !isOpen);\n};\n\nconst inititateAccordion = () => {\n document.querySelectorAll('.c-accordion--content').forEach(content => {\n content.classList.add('c-accordion--content--is-collapsed');\n });\n\n if (window.location.hash) {\n toggleSection(document.querySelector(window.location.hash));\n }\n\n document.querySelectorAll('.js-accordion--header').forEach(header => {\n header.addEventListener('click', e => {\n e.preventDefault();\n toggleSection(header);\n });\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (inititateAccordion);\n\n//# sourceURL=webpack:///./wp-content/themes/biuro/js/components/accordion/accordion.js?");
/***/ })
}]);
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{11:function(e,o,t){"use strict";t.r(o);var n=t(0);let c=!0;function a(){const e=document.querySelector("#copy-tooltip");e&&(e.style.opacity=1,setTimeout(()=>{e.style.opacity=0},3e3))}function i(e){if(!navigator.clipboard)return function(e){var o=document.createElement("textarea");o.className="u-hidden",o.value=e,document.querySelector(".c-share").appendChild(o),o.focus(),o.select();try{var t=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+t)}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(o)}(e),void a();navigator.clipboard.writeText(e).then((function(){a()}),(function(e){console.error("Async: Could not copy text: ",e)}))}window.onfocus=function(){c=!0},window.onblur=function(){c=!1};o.default=()=>{document.querySelector(".js-copy-to-clipboard")&&document.querySelector(".js-copy-to-clipboard").addEventListener("click",e=>{e.preventDefault(),i(window.location.origin+window.location.pathname+"?utm_source=copy_share_button_job_page ")});const e=document.querySelector(".js-share-messenger");e&&e.addEventListener("click",e=>{e.preventDefault();const o=e.currentTarget;window.location.href="fb-messenger://share/?link="+encodeURIComponent(window.location.origin+window.location.pathname+"?utm_source=messenger_share_button_job_page&app_id="+o.dataset.id),setTimeout(()=>{!document.hidden&&c&&(window.location.href=o.href)},100)});const o=document.querySelector(".js-share-whatsapp");o&&o.addEventListener("click",e=>{e.preventDefault();const o=e.currentTarget;window.location.href="whatsapp://send?text="+o.dataset.text,setTimeout(()=>{!document.hidden&&c&&window.open(o.href,"_blank")},100)});const t=document.querySelector(".js-biuro-facebook");t&&setTimeout(()=>{!async function(e){Object(n.a)("https://connect.facebook.net/en_US/sdk.js").then(()=>{window.FB&&window.FB.init({appId:e,version:"v3.3",status:!0,xfbml:!0})})}(t.dataset.id)},1500)}}}]);
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["job-share"],{
/***/ "./wp-content/themes/biuro/js/components/job-share/job-share.js":
/*!**********************************************************************!*\
!*** ./wp-content/themes/biuro/js/components/job-share/job-share.js ***!
\**********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_load_js_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/load-js.js */ \"./wp-content/themes/biuro/js/utils/load-js.js\");\n\n\nasync function inititateFacebook(ID) {\n Object(_utils_load_js_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('https://connect.facebook.net/en_US/sdk.js').then(() => {\n if (!window.FB) {\n return;\n }\n\n window.FB.init({\n appId: ID,\n version: 'v3.3',\n status: true,\n xfbml: true\n });\n });\n}\n\nlet isPageActive = true;\n\nwindow.onfocus = function () {\n isPageActive = true;\n};\n\nwindow.onblur = function () {\n isPageActive = false;\n};\n\nfunction fallbackCopyTextToClipboard(text) {\n var textArea = document.createElement('textarea');\n textArea.className = 'u-hidden';\n textArea.value = text;\n document.querySelector('.c-share').appendChild(textArea);\n textArea.focus();\n textArea.select();\n\n try {\n var successful = document.execCommand('copy');\n var msg = successful ? 'successful' : 'unsuccessful';\n console.log('Fallback: Copying text command was ' + msg);\n } catch (err) {\n console.error('Fallback: Oops, unable to copy', err);\n }\n\n document.body.removeChild(textArea);\n}\n\nfunction showCopyTooltip() {\n const tooltip = document.querySelector('#copy-tooltip');\n\n if (tooltip) {\n tooltip.style.opacity = 1;\n setTimeout(() => {\n tooltip.style.opacity = 0;\n }, 3000);\n }\n}\n\nfunction copyTextToClipboard(text) {\n if (!navigator.clipboard) {\n fallbackCopyTextToClipboard(text);\n showCopyTooltip();\n return;\n }\n\n navigator.clipboard.writeText(text).then(function () {\n showCopyTooltip();\n }, function (err) {\n console.error('Async: Could not copy text: ', err);\n });\n}\n\nconst inititateJobShare = () => {\n if (document.querySelector('.js-copy-to-clipboard')) {\n document.querySelector('.js-copy-to-clipboard').addEventListener('click', e => {\n e.preventDefault();\n copyTextToClipboard(window.location.origin + window.location.pathname + '?utm_source=copy_share_button_job_page ');\n });\n }\n\n const messenger = document.querySelector('.js-share-messenger');\n\n if (messenger) {\n messenger.addEventListener('click', e => {\n e.preventDefault();\n const target = e.currentTarget;\n window.location.href = 'fb-messenger://share/?link=' + encodeURIComponent(window.location.origin + window.location.pathname + '?utm_source=messenger_share_button_job_page&app_id=' + target.dataset.id);\n setTimeout(() => {\n if (document.hidden || !isPageActive) {\n return;\n }\n\n window.location.href = target.href;\n }, 100);\n });\n }\n\n const whatsapp = document.querySelector('.js-share-whatsapp');\n\n if (whatsapp) {\n whatsapp.addEventListener('click', e => {\n e.preventDefault();\n const target = e.currentTarget;\n window.location.href = 'whatsapp://send?text=' + target.dataset.text;\n setTimeout(() => {\n if (document.hidden || !isPageActive) {\n return;\n }\n\n window.open(target.href, '_blank');\n }, 100);\n });\n }\n\n const facebook = document.querySelector('.js-biuro-facebook');\n\n if (facebook) {\n setTimeout(() => {\n inititateFacebook(facebook.dataset.id);\n }, 1500);\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (inititateJobShare);\n\n//# sourceURL=webpack:///./wp-content/themes/biuro/js/components/job-share/job-share.js?");
/***/ })
}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{10:function(e,t,n){"use strict";n.r(t);var o,i=n(0);function s(e,t){const n=function(){function e(e,t,n="top"){this.position=e;var o=document.createElement("div");o.innerHTML=t||"",o.classList.add("popup-bubble"),o.classList.add("popup-bubble--"+n);var i=document.createElement("div");i.classList.add("popup-bubble-anchor"),i.appendChild(o),this.containerDiv=document.createElement("div"),this.containerDiv.classList.add("popup-container"),this.containerDiv.appendChild(i),window.google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.containerDiv)}return e.prototype=Object.create(window.google.maps.OverlayView.prototype),e.prototype.onAdd=function(){this.getPanes().floatPane.appendChild(this.containerDiv)},e.prototype.onRemove=function(){this.containerDiv.parentElement&&this.containerDiv.parentElement.removeChild(this.containerDiv)},e.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this.position),t=Math.abs(e.x)<4e3&&Math.abs(e.y)<4e3?"block":"none";"block"===t&&(this.containerDiv.style.left=e.x+"px",this.containerDiv.style.top=e.y+"px"),this.containerDiv.style.display!==t&&(this.containerDiv.style.display=t)},e}(),o=new window.google.maps.LatLngBounds;let i;for(var s=0;s<t.length;s++){const a=t[s],l=new window.google.maps.LatLng(a.lat,a.lng);i=new n(l,a.title,a.pos),i.setMap(e),o.extend(l)}e.fitBounds(o)}function a(e,t,n){for(var i=new window.google.maps.LatLngBounds,s=0;s<t.length;s++){const l=t[s],c=new window.google.maps.LatLng(l.lat,l.lng);var a=new window.google.maps.Marker({position:c,map:e,icon:"/wp-content/themes/biuro/i/ico--map-pin.svg",title:l.title||""});o&&o.close(),i.extend(c),l.content&&(a.content=l.content,window.google.maps.event.addListener(a,"click",(function(){o&&o.close(),(o=new window.google.maps.InfoWindow({content:this.content})).open(e,this)}))),n&&(window.innerWidth<960&&window.scrollTo(0,0),new google.maps.event.trigger(a,"click"))}e.fitBounds(i),window.innerWidth>1020?e.panBy(250,0):window.innerWidth>959&&e.panBy(180,0)}function l(e){var t=new window.google.maps.Map(e,{}),n=new window.google.maps.StyledMapType([{featureType:"all",elementType:"all",stylers:[{saturation:-92},{lightness:-8},{hue:"#004ed4"}]},{featureType:"water",elementType:"all",stylers:[{saturation:-95},{lightness:-25},{hue:"#004ed4"}]}],{name:"Biuro"});return t.mapTypes.set("biuro",n),t.setMapTypeId("biuro"),window.google.maps.event.addListenerOnce(t,"bounds_changed",(function(){this.getZoom()>15&&this.setZoom(14)})),t}t.default=()=>{const e=document.getElementById("js-map--divisions");e&&fetch("/wp-json/api/v1/divisions?langID="+e.dataset.id).then(e=>e.json()).then(t=>{!function(e,t){Object(i.a)("https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M").then(()=>{window.google&&setTimeout(()=>{var n=l(e);let o=[];Object.keys(t).forEach(e=>{const n=t[e];"city"===e.substr(0,4)&&(o=o.concat(n))}),document.querySelectorAll(".js-division").forEach(e=>{e.addEventListener("click",()=>{const i=e&&e.dataset.id?e.dataset.id:"";t[i]?a(n,t[i].filter(e=>e.lat&&e.lng),!0):a(n,o.filter(e=>e.lat&&e.lng))})}),a(n,o.filter(e=>e.lat&&e.lng))},50)})}(e,t)});const t=document.getElementById("js-map--cities");t&&fetch("/wp-content/themes/biuro/json/"+t.dataset.source+".json").then(e=>e.json()).then(e=>{!function e(t,n){window.google?s(l(t),n):setTimeout(()=>{e(t,n)},250)}(t,e)});const n=document.getElementById("js-map--regions");n&&function e(t){if(!window.google)return void setTimeout(()=>{e(t)},250);a(l(t),[{title:"Vilnius",lat:54.687157,lng:25.279652},{title:"Rīga",lat:56.946285,lng:24.105078},{title:"Tallinn",lat:59.436962,lng:24.753574}])}(n)}}}]);
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["map"],{
/***/ "./wp-content/themes/biuro/js/components/map/map.js":
/*!**********************************************************!*\
!*** ./wp-content/themes/biuro/js/components/map/map.js ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_load_js_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/load-js.js */ \"./wp-content/themes/biuro/js/utils/load-js.js\");\n // https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/javascript/examples/overlay-popup\n\nfunction createPopupClass() {\n function Popup(position, city, pos = 'top') {\n this.position = position;\n var content = document.createElement('div');\n content.innerHTML = city || '';\n content.classList.add('popup-bubble');\n content.classList.add('popup-bubble--' + pos); // This zero-height div is positioned at the bottom of the bubble.\n\n var bubbleAnchor = document.createElement('div');\n bubbleAnchor.classList.add('popup-bubble-anchor');\n bubbleAnchor.appendChild(content); // This zero-height div is positioned at the bottom of the tip.\n\n this.containerDiv = document.createElement('div');\n this.containerDiv.classList.add('popup-container');\n this.containerDiv.appendChild(bubbleAnchor); // Optionally stop clicks, etc., from bubbling up to the map.\n\n window.google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.containerDiv);\n } // ES5 magic to extend google.maps.OverlayView.\n\n\n Popup.prototype = Object.create(window.google.maps.OverlayView.prototype);\n /** Called when the popup is added to the map. */\n\n Popup.prototype.onAdd = function () {\n this.getPanes().floatPane.appendChild(this.containerDiv);\n };\n /** Called when the popup is removed from the map. */\n\n\n Popup.prototype.onRemove = function () {\n if (this.containerDiv.parentElement) {\n this.containerDiv.parentElement.removeChild(this.containerDiv);\n }\n };\n /** Called each frame when the popup needs to draw itself. */\n\n\n Popup.prototype.draw = function () {\n var divPosition = this.getProjection().fromLatLngToDivPixel(this.position); // Hide the popup when it is far out of view.\n\n var display = Math.abs(divPosition.x) < 4000 && Math.abs(divPosition.y) < 4000 ? 'block' : 'none';\n\n if (display === 'block') {\n this.containerDiv.style.left = divPosition.x + 'px';\n this.containerDiv.style.top = divPosition.y + 'px';\n }\n\n if (this.containerDiv.style.display !== display) {\n this.containerDiv.style.display = display;\n }\n };\n\n return Popup;\n}\n\nvar info;\n\nfunction setCitiesMarkers(map, positions) {\n const Popup = createPopupClass();\n const bounds = new window.google.maps.LatLngBounds();\n let popup;\n\n for (var i = 0; i < positions.length; i++) {\n const position = positions[i];\n const pos = new window.google.maps.LatLng(position.lat, position.lng);\n popup = new Popup(pos, position.title, position.pos);\n popup.setMap(map);\n bounds.extend(pos);\n }\n\n map.fitBounds(bounds);\n}\n\nfunction setMarkers(map, positions, focus) {\n var bounds = new window.google.maps.LatLngBounds();\n\n for (var i = 0; i < positions.length; i++) {\n const position = positions[i];\n const pos = new window.google.maps.LatLng(position.lat, position.lng);\n var marker = new window.google.maps.Marker({\n position: pos,\n map: map,\n icon: '/wp-content/themes/biuro/i/ico--map-pin.svg',\n title: position.title || ''\n });\n\n if (info) {\n info.close();\n }\n\n bounds.extend(pos);\n\n if (position.content) {\n marker.content = position.content;\n window.google.maps.event.addListener(marker, 'click', function () {\n if (info) {\n info.close();\n }\n\n info = new window.google.maps.InfoWindow({\n content: this.content\n });\n info.open(map, this);\n });\n }\n\n if (focus) {\n if (window.innerWidth < 960) {\n window.scrollTo(0, 0);\n }\n\n new google.maps.event.trigger(marker, 'click');\n }\n }\n\n map.fitBounds(bounds);\n\n if (window.innerWidth > 1020) {\n map.panBy(250, 0);\n } else if (window.innerWidth > 959) {\n map.panBy(180, 0);\n }\n}\n\nfunction setGoogleMap(node) {\n const mapStyles = [{\n featureType: 'all',\n elementType: 'all',\n stylers: [{\n saturation: -92\n }, {\n lightness: -8\n }, {\n hue: '#004ed4'\n }]\n }, {\n featureType: 'water',\n elementType: 'all',\n stylers: [{\n saturation: -95\n }, {\n lightness: -25\n }, {\n hue: '#004ed4'\n }]\n }];\n var map = new window.google.maps.Map(node, {});\n var biuroMap = new window.google.maps.StyledMapType(mapStyles, {\n name: 'Biuro'\n });\n map.mapTypes.set('biuro', biuroMap);\n map.setMapTypeId('biuro');\n window.google.maps.event.addListenerOnce(map, 'bounds_changed', function () {\n if (this.getZoom() > 15) {\n this.setZoom(14);\n }\n });\n return map;\n}\n\nfunction initCitiesMap(node, cities) {\n if (!window.google) {\n setTimeout(() => {\n initCitiesMap(node, cities);\n }, 250);\n return;\n }\n\n var map = setGoogleMap(node);\n setCitiesMarkers(map, cities);\n}\n\nfunction initRegionsMap(node) {\n if (!window.google) {\n setTimeout(() => {\n initRegionsMap(node);\n }, 250);\n return;\n }\n\n var map = setGoogleMap(node);\n const regions = [{\n title: 'Vilnius',\n lat: 54.687157,\n lng: 25.279652\n }, {\n title: 'Rīga',\n lat: 56.946285,\n lng: 24.105078\n }, {\n title: 'Tallinn',\n lat: 59.436962,\n lng: 24.753574\n }];\n setMarkers(map, regions);\n}\n\nfunction initDivisionsMap(node, data) {\n Object(_utils_load_js_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M').then(() => {\n if (!window.google) {\n return;\n }\n\n setTimeout(() => {\n var map = setGoogleMap(node);\n let divisions = [];\n Object.keys(data).forEach(key => {\n const division = data[key];\n\n if (key.substr(0, 4) === 'city') {\n divisions = divisions.concat(division);\n }\n });\n document.querySelectorAll('.js-division').forEach(node => {\n node.addEventListener('click', () => {\n const ID = node && node.dataset.id ? node.dataset.id : '';\n\n if (data[ID]) {\n setMarkers(map, data[ID].filter(d => {\n return d.lat && d.lng;\n }), true);\n } else {\n setMarkers(map, divisions.filter(d => {\n return d.lat && d.lng;\n }));\n }\n });\n });\n setMarkers(map, divisions.filter(d => {\n return d.lat && d.lng;\n }));\n }, 50);\n });\n}\n\nconst inititateMap = () => {\n // <script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M\" async defer></script>\n const division = document.getElementById('js-map--divisions');\n\n if (division) {\n fetch('/wp-json/api/v1/divisions?langID=' + division.dataset.id).then(t => t.json()).then(data => {\n initDivisionsMap(division, data);\n });\n }\n\n const city = document.getElementById('js-map--cities');\n\n if (city) {\n fetch('/wp-content/themes/biuro/json/' + city.dataset.source + '.json').then(t => t.json()).then(data => {\n initCitiesMap(city, data);\n });\n }\n\n const region = document.getElementById('js-map--regions');\n\n if (region) {\n initRegionsMap(region);\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (inititateMap);\n\n//# sourceURL=webpack:///./wp-content/themes/biuro/js/components/map/map.js?");
/***/ })
}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{12:function(e,p,t){"use strict";t.r(p);const o=(e,p,t)=>{const o={value:p,expiry:(new Date).getTime()+t};localStorage.setItem(e,JSON.stringify(o))},n=e=>{const p=localStorage.getItem(e);if(!p)return null;const t=JSON.parse(p);return(new Date).getTime()>t.expiry?(localStorage.removeItem(e),null):t.value},l=()=>{const e=document.getElementById("employer-popup");e&&!n("employer-popup")&&(o("employer-popup","expires",12096e5),window.dataLayer=window.dataLayer||[],e.style.display="block",window.dataLayer.push({event:"b2b_popup_show"}),e.querySelector(".js-popup--btn")&&e.querySelector(".js-popup--btn").addEventListener("click",e=>{window.dataLayer.push({event:"b2b_popup_navigate",label:"Recommend page"})}),e.querySelector(".js-popup--close")&&e.querySelector(".js-popup--close").addEventListener("click",p=>{p.preventDefault(),e.style.display="none"}))},a=e=>{const p=document.getElementById("employee-popup");p&&!n("employee-popup")&&e.clientY<50&&null==e.relatedTarget&&"select"!==e.target.nodeName.toLowerCase()&&(document.removeEventListener("mouseout",a),o("employee-popup","expires",12096e5),window.dataLayer=window.dataLayer||[],p.style.display="block",window.dataLayer.push({event:"b2c_popup_show"}),p.querySelector(".js-popup--btn")&&p.querySelector(".js-popup--btn").addEventListener("click",e=>{window.dataLayer.push({event:"b2c_popup_navigate",label:"Recommend page"})}),p.querySelector(".js-popup--close")&&p.querySelector(".js-popup--close").addEventListener("click",e=>{e.preventDefault(),p.style.display="none"}))};p.default=()=>{document.getElementById("employee-popup")&&!n("employee-popup")&&setTimeout(()=>{document.addEventListener("mouseout",a)},3e3),document.getElementById("employer-popup")&&!n("employer-popup")&&setTimeout(l,45e3)}}}]);
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["popup"],{
/***/ "./wp-content/themes/biuro/js/components/popup/popup.js":
/*!**************************************************************!*\
!*** ./wp-content/themes/biuro/js/components/popup/popup.js ***!
\**************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nconst EMPLOYEE_DELAY = 3000; // 3 seconds\n\nconst EMPLOYEE_EXPIRY = 14 * 86400 * 1000; // 14 days\n\nconst EMPLOYER_DELAY = 45000; // 45 seconds\n\nconst EMPLOYER_EXPIRY = 14 * 86400 * 1000; // 14 days\n\nconst setExpirableItem = (key, value, ttl) => {\n const now = new Date(); // `item` is an object which contains the original value\n // as well as the time when it's supposed to expire\n\n const item = {\n value: value,\n expiry: now.getTime() + ttl\n };\n localStorage.setItem(key, JSON.stringify(item));\n};\n\nconst getExpirableItem = key => {\n const itemStr = localStorage.getItem(key); // if the item doesn't exist, return null\n\n if (!itemStr) {\n return null;\n }\n\n const item = JSON.parse(itemStr);\n const now = new Date(); // compare the expiry time of the item with the current time\n\n if (now.getTime() > item.expiry) {\n // If the item is expired, delete the item from storage\n // and return null\n localStorage.removeItem(key);\n return null;\n }\n\n return item.value;\n};\n\nconst showEmployerPopup = () => {\n const container = document.getElementById('employer-popup');\n\n if (!container || getExpirableItem('employer-popup')) {\n return;\n }\n\n setExpirableItem('employer-popup', 'expires', EMPLOYER_EXPIRY);\n window.dataLayer = window.dataLayer || [];\n container.style.display = 'block';\n window.dataLayer.push({\n event: 'b2b_popup_show'\n });\n\n if (container.querySelector('.js-popup--btn')) {\n container.querySelector('.js-popup--btn').addEventListener('click', e => {\n window.dataLayer.push({\n event: 'b2b_popup_navigate',\n label: 'Recommend page'\n });\n });\n }\n\n if (container.querySelector('.js-popup--close')) {\n container.querySelector('.js-popup--close').addEventListener('click', e => {\n e.preventDefault();\n container.style.display = 'none';\n });\n }\n};\n\nconst showEmployeePopup = e => {\n const container = document.getElementById('employee-popup');\n\n if (!container || getExpirableItem('employee-popup')) {\n return;\n }\n\n if (e.clientY < 50 && e.relatedTarget == null && e.target.nodeName.toLowerCase() !== 'select') {\n document.removeEventListener('mouseout', showEmployeePopup);\n setExpirableItem('employee-popup', 'expires', EMPLOYEE_EXPIRY);\n window.dataLayer = window.dataLayer || [];\n container.style.display = 'block';\n window.dataLayer.push({\n event: 'b2c_popup_show'\n });\n\n if (container.querySelector('.js-popup--btn')) {\n container.querySelector('.js-popup--btn').addEventListener('click', e => {\n window.dataLayer.push({\n event: 'b2c_popup_navigate',\n label: 'Recommend page'\n });\n });\n }\n\n if (container.querySelector('.js-popup--close')) {\n container.querySelector('.js-popup--close').addEventListener('click', e => {\n e.preventDefault();\n container.style.display = 'none';\n });\n }\n }\n};\n\nconst inititatePopup = () => {\n if (document.getElementById('employee-popup') && !getExpirableItem('employee-popup')) {\n setTimeout(() => {\n document.addEventListener('mouseout', showEmployeePopup);\n }, EMPLOYEE_DELAY);\n }\n\n if (document.getElementById('employer-popup') && !getExpirableItem('employer-popup')) {\n setTimeout(showEmployerPopup, EMPLOYER_DELAY);\n }\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (inititatePopup);\n\n//# sourceURL=webpack:///./wp-content/themes/biuro/js/components/popup/popup.js?");
/***/ })
}]);
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
[
{ "title": "Pasvalys", "lat": 56.061871, "lng": 24.399120, "pos": "right" },
{ "title": "Joniškėlis", "lat": 56.023739, "lng": 24.168850 },
{ "title": "Pakruojis", "lat": 55.977901, "lng": 23.849939, "pos": "left" },
{ "title": "Kupiškis", "lat": 55.839191, "lng": 24.975559 },
{ "title": "Baisogala", "lat": 55.639230, "lng": 23.722990 },
{ "title": "Upytė", "lat": 55.650921, "lng": 24.226330 },
{ "title": "Žibartonys", "lat": 55.5357, "lng": 23.9614, "pos": "left" },
{ "title": "Krekenava", "lat": 55.542782, "lng": 24.097601, "pos": "right" }
]
......@@ -110,4 +110,18 @@
<symbol id="ico--gift">
<path class="u-fill--inherit" d="M26.812 6.75h-3.62c.482-.68.777-1.518.777-2.437 0-2.24-1.696-4.063-3.784-4.063-2.148 0-3.392 1.29-5.56 4.865l-.385-.625C12.302 1.388 11.082.25 9.064.25c-2.087 0-3.783 1.823-3.783 4.063 0 .919.295 1.757.777 2.437h-3.62A2.437 2.437 0 0 0 0 9.188v14.624a2.437 2.437 0 0 0 2.437 2.438h24.375a2.437 2.437 0 0 0 2.438-2.438V9.188a2.437 2.437 0 0 0-2.438-2.438zm-6.627 0H15.54l.444-.737c2.258-3.717 3.073-4.138 4.202-4.138 1.189 0 2.159 1.092 2.159 2.438 0 1.345-.97 2.437-2.159 2.437zM9.065 1.875c1.188 0 2.02.462 4.534 4.692l.107.183H9.059c-1.188 0-2.158-1.092-2.158-2.437.005-1.346.975-2.438 2.163-2.438zm18.56 21.937a.814.814 0 0 1-.813.813H2.437a.814.814 0 0 1-.812-.813v-1.624h26v1.624zm0-3.25h-26v-3.25h26v3.25zm0-4.874h-26v-6.5c0-.45.364-.813.812-.813h10.227L8.65 12.388a.406.406 0 0 0 0 .575l.574.574a.406.406 0 0 0 .574 0l4.826-4.826 4.826 4.826a.406.406 0 0 0 .574 0l.574-.574a.406.406 0 0 0 0-.575l-4.013-4.013h10.226c.45 0 .813.364.813.813v6.5z" fill-rule="nonzero"/>
</symbol>
<symbol id="ico--motherson">
<path fill="#fff" d="m0 79.11h13.75v6.87c2.15-3.66 6.38-6.87 12.6-6.87 5.3 0 8.99 2.19 10.91 6.36 3.46-4.46 8.22-6.36 13.29-6.36 7.61 0 13.14 4.68 13.14 14.27v25.88h-13.73l-0.01-23.69c0-3.87-2-5.78-5.15-5.78-3.69 0-6.15 2.27-6.15 6.44v23.05h-13.59l-0.01-23.71c0-3.87-2-5.78-5.15-5.78-3.69 0-6.15 2.27-6.15 6.44v23.05h-13.75v-40.17z"></path>
<path fill="#fff" d="m68.4 99.72v-0.58c0-12.29 9.61-20.05 22.05-20.05 12.37 0 21.9 7.53 21.9 19.68v0.58c0 12.44-9.61 19.9-21.97 19.9-12.38 0.01-21.98-7.16-21.98-19.53zm29.96-0.22v-0.58c0-6.44-2.68-10.03-7.91-10.03-5.15 0-7.99 3.44-7.99 9.88v0.58c0 6.59 2.69 10.18 7.99 10.18 5.15 0 7.91-3.66 7.91-10.03z"></path>
<path fill="#fff" d="m132.18 104.84v-15.8h7.92v-8.92h-7.92v-9.7l-13.76 5.29v4.42h-4.84v8.92h4.84v17.05c0 9 5.07 13.17 14.14 13.17 3.23 0 5.84-0.66 7.61-1.1v-9.94c-1.23 0.44-2.38 0.66-3.92 0.66-2.62-0.02-4.07-1.26-4.07-4.05z"></path>
<path fill="#fff" d="m172.7 79.11c-6.69 0-11.07 3.21-13.22 7.17v-26.19l-13.76 5.29v53.9h13.76v-22.32c0-4.9 2.77-7.24 6.84-7.24 3.99 0 5.76 2.12 5.76 6.43l-0.01 23.13h13.76v-25.75c0.01-9.81-5.37-14.42-13.13-14.42z"></path>
<path fill="#fff" d="m190.45 99.74v-0.58c0-12.29 9.6-20.05 21.75-20.05 10.99 0 20.45 5.99 20.45 19.75v3.44h-28.28c0.39 5.05 3.46 7.98 8.38 7.98 4.53 0 6.45-1.97 6.99-4.54h12.91c-1.23 8.63-8.23 13.54-20.37 13.54-12.61 0-21.83-7.02-21.83-19.54zm28.82-4.82c-0.23-4.61-2.61-7.17-7.07-7.17-4.15 0-6.99 2.56-7.68 7.17h14.75z"></path>
<path fill="#fff" d="m237.88 79.11h13.76l-0.01 8.12c2.53-5.71 6.76-8.2 12.99-8.12v12.22c-8.38-0.22-12.99 2.27-12.99 8.41v19.54h-13.75v-40.17z"></path>
<path fill="#fff" d="m266.78 106.26h12.68c0.46 2.78 1.77 4.32 5.69 4.32 3.38 0 4.92-1.24 4.92-3.14 0-1.83-1.92-2.71-7.46-3.44-10.75-1.32-15.29-4.32-15.29-12.29 0-8.49 7.92-12.58 17.22-12.58 9.91 0 16.82 3.21 17.75 12.37h-12.45c-0.54-2.56-1.99-3.81-5.15-3.81-3 0-4.54 1.24-4.54 3 0 1.83 1.85 2.56 6.76 3.15 11.14 1.32 16.52 4.1 16.52 12.29 0 9.07-7.07 13.17-18.21 13.17-11.44-0.02-18.13-4.56-18.44-13.04z"></path>
<path fill="#fff" d="m305.93 99.74v-0.58c0-12.29 9.6-20.05 22.05-20.05 12.37 0 21.9 7.53 21.9 19.68v0.58c0 12.44-9.6 19.9-21.97 19.9-12.37 0.01-21.98-7.16-21.98-19.53zm29.97-0.22v-0.58c0-6.44-2.69-10.03-7.91-10.03-5.15 0-7.99 3.44-7.99 9.88v0.58c0 6.59 2.69 10.18 7.99 10.18 5.15 0 7.91-3.66 7.91-10.03z"></path>
<path fill="#fff" d="m354.78 79.11h13.69l0.07 7.17c2.15-3.95 6.53-7.17 13.22-7.17 7.76 0 13.14 4.6 13.14 14.41v25.75h-13.77l0.02-23.12c0-4.31-1.77-6.43-5.77-6.43-4.07 0-6.84 2.34-6.84 7.24l-0.03 22.32h-13.72v-40.17z"></path>
<path fill="#fff" d="M505.55,8.36c-5.22,2.28-8.88,7.46-8.95,13.51l0,97.51h20.89c4.95,0,8.95-4.01,8.95-8.95V0L505.55,8.36z"></path>
<path fill="#fff" d="m466.75 38.2c-5.22 2.28-8.88 7.46-8.95 13.51v67.67h20.89c4.94 0 8.95-4.01 8.95-8.95v-80.59l-20.89 8.36z"></path>
<path fill="#fff" d="m427.96 68.04c-5.22 2.28-8.88 7.46-8.95 13.5v37.83h20.89c4.94 0 8.95-4.01 8.95-8.95v-50.73l-20.89 8.35z"></path>
</symbol>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment