Commit a1ef9b46 authored by Simon's avatar Simon

in progress

parent 07f998e8
......@@ -3,11 +3,15 @@
"presets": [
[
"@babel/preset-env", {
// "modules": false,
"targets": {
"node": "current"
}
"node": "current",
// "ie": 11,
// "browsers": "last 5 versions"
},
// "useBuiltIns": "usage",
}
]
],
"plugins": ["@babel/plugin-syntax-dynamic-import"]
"plugins": ["@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-arrow-functions"]
}
This diff is collapsed.
......@@ -39,19 +39,8 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-modal">
<div class="c-modal--inner">
<svg width="67px" height="67px" viewBox="0 0 67 67" >
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="skelbimo-vidaus-formos-pranesimas" transform="translate(-687.000000, -459.000000)" fill-rule="nonzero">
<g id="pranesimas" transform="translate(409.000000, 403.000000)">
<g id="ok" transform="translate(278.000000, 56.000000)">
<g id="Group-2">
<path d="M44.6239031,22.504689 C44.9259634,22.2026915 45.4156549,22.2026915 45.7177153,22.504689 L47.5406518,24.3276884 C47.8427121,24.6297488 47.8427121,25.1195032 47.5406518,25.4215006 L28.2168453,44.74537 C27.914722,45.0473675 27.4250305,45.0473675 27.1230331,44.74537 L18.5236597,36.1459967 C18.2215994,35.8438734 18.2215994,35.3541819 18.5236597,35.0521215 L20.3465962,33.229185 C20.6487195,32.9271247 21.138411,32.9271247 21.4404714,33.229185 L27.6699392,39.4586528 L44.6239031,22.504689 Z" id="" fill="#1FB299"></path>
<circle id="Oval" stroke="#1FB299" cx="33.5" cy="33.5" r="33"></circle>
</g>
</g>
</g>
</g>
</g>
<svg width="67px" height="67px">
<use xlink:href="#ico--success"></use>
</svg>
<p><?php _e('Thank You, we have successfully received data about you.', 'biuro-contacts'); ?></p>
<p><?php _e('You can add information about yourself by adding a city, message or CV', 'biuro-contacts'); ?></p>
......@@ -87,19 +76,8 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-modal">
<div class="c-modal--inner">
<svg width="67px" height="67px" viewBox="0 0 67 67" >
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="skelbimo-vidaus-formos-pranesimas" transform="translate(-687.000000, -459.000000)" fill-rule="nonzero">
<g id="pranesimas" transform="translate(409.000000, 403.000000)">
<g id="ok" transform="translate(278.000000, 56.000000)">
<g id="Group-2">
<path d="M44.6239031,22.504689 C44.9259634,22.2026915 45.4156549,22.2026915 45.7177153,22.504689 L47.5406518,24.3276884 C47.8427121,24.6297488 47.8427121,25.1195032 47.5406518,25.4215006 L28.2168453,44.74537 C27.914722,45.0473675 27.4250305,45.0473675 27.1230331,44.74537 L18.5236597,36.1459967 C18.2215994,35.8438734 18.2215994,35.3541819 18.5236597,35.0521215 L20.3465962,33.229185 C20.6487195,32.9271247 21.138411,32.9271247 21.4404714,33.229185 L27.6699392,39.4586528 L44.6239031,22.504689 Z" id="" fill="#1FB299"></path>
<circle id="Oval" stroke="#1FB299" cx="33.5" cy="33.5" r="33"></circle>
</g>
</g>
</g>
</g>
</g>
<svg width="67px" height="67px">
<use xlink:href="#ico--success"></use>
</svg>
<p><?php _e('Thank You! The information has been successfully supplemented.', 'biuro-contacts'); ?></p>
<p><button class="js-modal--close o-btn c-btn--main"><?php _e('OK', 'biuro-contacts'); ?></button></p>
......
......@@ -39,19 +39,8 @@ if ( ! defined( 'WPINC' ) ) die;
<div class="c-modal">
<div class="c-modal--inner">
<svg width="67px" height="67px" viewBox="0 0 67 67" >
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="skelbimo-vidaus-formos-pranesimas" transform="translate(-687.000000, -459.000000)" fill-rule="nonzero">
<g id="pranesimas" transform="translate(409.000000, 403.000000)">
<g id="ok" transform="translate(278.000000, 56.000000)">
<g id="Group-2">
<path d="M44.6239031,22.504689 C44.9259634,22.2026915 45.4156549,22.2026915 45.7177153,22.504689 L47.5406518,24.3276884 C47.8427121,24.6297488 47.8427121,25.1195032 47.5406518,25.4215006 L28.2168453,44.74537 C27.914722,45.0473675 27.4250305,45.0473675 27.1230331,44.74537 L18.5236597,36.1459967 C18.2215994,35.8438734 18.2215994,35.3541819 18.5236597,35.0521215 L20.3465962,33.229185 C20.6487195,32.9271247 21.138411,32.9271247 21.4404714,33.229185 L27.6699392,39.4586528 L44.6239031,22.504689 Z" id="" fill="#1FB299"></path>
<circle id="Oval" stroke="#1FB299" cx="33.5" cy="33.5" r="33"></circle>
</g>
</g>
</g>
</g>
</g>
<svg width="67px" height="67px">
<use xlink:href="#ico--success"></use>
</svg>
<p><?php _e('Thank You for contacting!', 'biuro-contacts'); ?></p>
<p><?php _e('You request was send successfully, we will contact You.', 'biuro-contacts'); ?></p>
......@@ -72,19 +61,8 @@ unset($_SESSION['employers--s']);
<div class="c-modal">
<div class="c-modal--inner">
<svg width="67px" height="67px" viewBox="0 0 67 67" >
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="skelbimo-vidaus-formos-pranesimas" transform="translate(-687.000000, -459.000000)" fill-rule="nonzero">
<g id="pranesimas" transform="translate(409.000000, 403.000000)">
<g id="ok" transform="translate(278.000000, 56.000000)">
<g id="Group-2">
<path d="M44.6239031,22.504689 C44.9259634,22.2026915 45.4156549,22.2026915 45.7177153,22.504689 L47.5406518,24.3276884 C47.8427121,24.6297488 47.8427121,25.1195032 47.5406518,25.4215006 L28.2168453,44.74537 C27.914722,45.0473675 27.4250305,45.0473675 27.1230331,44.74537 L18.5236597,36.1459967 C18.2215994,35.8438734 18.2215994,35.3541819 18.5236597,35.0521215 L20.3465962,33.229185 C20.6487195,32.9271247 21.138411,32.9271247 21.4404714,33.229185 L27.6699392,39.4586528 L44.6239031,22.504689 Z" id="" fill="#1FB299"></path>
<circle id="Oval" stroke="#1FB299" cx="33.5" cy="33.5" r="33"></circle>
</g>
</g>
</g>
</g>
</g>
<svg width="67px" height="67px">
<use xlink:href="#ico--success"></use>
</svg>
<p><?php _e('Thank You! The information has been successfully supplemented.', 'biuro-contacts'); ?></p>
<p><button class="js-modal--close o-btn c-btn--main"><?php _e('OK', 'biuro-contacts'); ?></button></p>
......
......@@ -47,19 +47,8 @@ unset($_SESSION['position--s']);
<div class="c-modal">
<div class="c-modal--inner">
<svg width="67px" height="67px" viewBox="0 0 67 67" >
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="skelbimo-vidaus-formos-pranesimas" transform="translate(-687.000000, -459.000000)" fill-rule="nonzero">
<g id="pranesimas" transform="translate(409.000000, 403.000000)">
<g id="ok" transform="translate(278.000000, 56.000000)">
<g id="Group-2">
<path d="M44.6239031,22.504689 C44.9259634,22.2026915 45.4156549,22.2026915 45.7177153,22.504689 L47.5406518,24.3276884 C47.8427121,24.6297488 47.8427121,25.1195032 47.5406518,25.4215006 L28.2168453,44.74537 C27.914722,45.0473675 27.4250305,45.0473675 27.1230331,44.74537 L18.5236597,36.1459967 C18.2215994,35.8438734 18.2215994,35.3541819 18.5236597,35.0521215 L20.3465962,33.229185 C20.6487195,32.9271247 21.138411,32.9271247 21.4404714,33.229185 L27.6699392,39.4586528 L44.6239031,22.504689 Z" id="" fill="#1FB299"></path>
<circle id="Oval" stroke="#1FB299" cx="33.5" cy="33.5" r="33"></circle>
</g>
</g>
</g>
</g>
</g>
<svg width="67px" height="67px">
<use xlink:href="#ico--success"></use>
</svg>
<p><?php _e('Thank You! Your data was send successfully.', 'biuro-contacts'); ?></p>
<p><button class="js-modal--close o-btn c-btn--main"><?php _e('OK', 'biuro-contacts'); ?></button></p>
......
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.
......@@ -91,7 +91,7 @@
<?php
endif;
?>
<script src="/wp-content/themes/biuro/js/main-f697313b.min.js" async></script>
<script src="/wp-content/themes/biuro/js/main.min.js" async></script>
<?php
// global $time_start;
......
......@@ -31,15 +31,15 @@
<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-b4dd038b5e.min.css'; ?></style>
<style><?php include 'css/core.min.css'; ?></style>
<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-5e3bf9f768.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'">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-5e3bf9f768.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -31,15 +31,15 @@
<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-b4dd038b5e.min.css'; ?></style>
<style><?php include 'css/core.min.css'; ?></style>
<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-5e3bf9f768.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'">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-5e3bf9f768.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main.min.css">
</noscript>
<?php wp_head(); ?>
......@@ -57,18 +57,8 @@
</a>
<span class="js-toggle--nav l-nav--open">
<svg width="32px" height="16px" viewBox="0 0 32 16" xmlns="http://www.w3.org/2000/svg">
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="burger" transform="translate(-279.000000, -27.000000)" fill="#2A3644" fill-rule="nonzero">
<g>
<g transform="translate(279.000000, 27.000000)">
<rect id="Rectangle" x="0" y="0" width="32" height="2"></rect>
<rect id="Rectangle-Copy" x="9" y="7" width="23" height="2"></rect>
<rect id="Rectangle-Copy-2" x="0" y="14" width="32" height="2"></rect>
</g>
</g>
</g>
</g>
<svg width="32px" height="16px">
<use xlink:href="#ico--burger"></use>
</svg>
</span>
......@@ -95,8 +85,8 @@
endif;
?>
<a href="tel:<?php echo $phone; ?>" class="c-phone">
<svg xmlns="http://www.w3.org/2000/svg" width="21px" height="22px" viewBox="0 0 21 22">
<path class="u-fill--inherit" d="M20.0073662,1.61350199 C20.5897947,1.74475969 20.9999499,2.26157937 20.9999499,2.86039004 C20.9999499,13.2496151 12.5794702,21.6249937 2.23534623,21.6249937 C1.63653556,21.6249937 1.11971588,21.2148385 0.984372653,20.6283244 L0.0328044109,16.4980528 C-0.106624349,15.8951166 0.205077636,15.2798837 0.775209486,15.0337905 L5.2212686,13.1265685 C5.74217381,12.9009831 6.35740672,13.0527486 6.71833535,13.4916227 L8.52714413,15.7023356 C11.3695122,14.3078077 13.6786783,11.994556 15.0732063,9.15627347 L12.8624533,7.34750474 C12.4236192,6.98653606 12.2718538,6.37130315 12.4974392,5.850438 L14.4046612,1.4002533 C14.6507543,0.830121445 15.2700728,0.51841946 15.873009,0.65784822 L20.0073662,1.61350199 Z M2.25993953,20.3124969 C11.8780807,20.3002002 19.6751564,12.5072501 19.6833675,2.88910892 L15.598197,1.9457518 L13.7114827,6.35079539 L16.6974051,8.79121926 C14.7122776,13.0240297 12.4112825,15.3331958 8.16208992,17.3265745 L5.72166605,14.3406521 L1.3165824,16.2273664 L2.25993953,20.3124969 Z"></path>
<svg width="21px" height="22px">
<use xlink:href="#ico--phone"></use>
</svg> <?php echo $phoneUI; ?>
</a>
<?php
......@@ -148,16 +138,8 @@
</div><!-- .c-nav--lang-wrap -->
<span class="js-toggle--nav l-nav--close">
<svg width="13px" height="13px" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
<g id="DUK" transform="translate(-233.000000, -657.000000)" fill-rule="nonzero" stroke="#ffffff" stroke-width="2">
<g id="Group-" transform="translate(202.000000, 624.000000)">
<g id="Group" transform="translate(26.000000, 28.000000)">
<path d="M11.5,11.5 L11.5,3.5 L11.5,11.5 L3.5,11.5 L11.5,11.5 Z M11.5,11.5 L11.5,19.5 L11.5,11.5 L19.5,11.5 L11.5,11.5 Z" id="Combined-Shape" transform="translate(11.500000, 11.500000) rotate(-45.000000) translate(-11.500000, -11.500000) "></path>
</g>
</g>
</g>
</g>
<svg width="13px" height="13px">
<use xlink:href="#ico--close"></use>
</svg>
</span>
......
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,function(t,e,i){"use strict";i.r(e);var n=i(4);const s=document.getElementById("search-city");if(s){const t=new n.a(s,{minChars:0,maxItems:1e3,sort:!1});s.addEventListener("focus",()=>{t.evaluate()})}const r=document.getElementById("search-query");if(r){const t=new n.a(r,{minChars:0,maxItems:1e3,sort:!1});r.addEventListener("focus",()=>{t.evaluate()})}const o=document.getElementById("form-city"),u=document.getElementById("form-city-id");if(o){const t=new n.a(o,{minChars:0,maxItems:1e3,sort:!1,replace:function(t){this.input.value=t.label,u&&(u.value=t.value)}});o.addEventListener("focus",()=>{t.evaluate()})}},,function(t,e,i){"use strict";(function(t){e.a=function(){var e=function(t,i){var n=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=s(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=i=i||{},function(t,e,i){for(var n in e){var s=e[n],r=t.input.getAttribute("data-"+n.toLowerCase());"number"==typeof s?t[n]=parseInt(r):!1===s?t[n]=null!==r:s instanceof Function?t[n]=null:t[n]=r,t[n]||0===t[n]||(t[n]=n in i?i[n]:s)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==i.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1},i),this.index=-1,this.container=this.container(t),this.ul=s.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container}),this.status=s.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:0!=this.minChars?"Type "+this.minChars+" or more characters for results.":"Begin typing for results."}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;n.opened&&(13===e&&n.selected?(t.preventDefault(),n.select()):9===e&&n.selected&&n.tabSelect?n.select():27===e?n.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),n[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),n.select(e,t.target))}}}},s.bind(this.input,this._events.input),s.bind(this.input.form,this._events.form),s.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||i.list||[],e.all.push(this)};function i(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=s(t))&&t.children){var e=[];n.apply(t.children).forEach(function(t){if(!t.disabled){var i=t.textContent.trim(),n=t.value||i,s=t.label||i;""!==n&&e.push({label:s,value:n})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),s.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),s.fire(this.input,"awesomplete-open")},destroy:function(){if(s.unbind(this.input,this._events.input),s.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var i=e.all.indexOf(this);-1!==i&&e.all.splice(i,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent+", list item "+(t+1)+" of "+e.length,this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,s.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=s.siblingIndex(t):t=this.ul.children[this.index],t){var i=this.suggestions[this.index];s.fire(this.input,"awesomplete-select",{text:i,origin:e||t})&&(this.replace(i),this.close({reason:"select"}),s.fire(this.input,"awesomplete-selectcomplete",{text:i}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(n){return new i(t.data(n,e))}).filter(function(i){return t.filter(i,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(i,n){t.ul.appendChild(t.item(i,e,n))}),0===this.ul.children.length?(this.status.textContent="No results found",this.close({reason:"nomatches"})):(this.open(),this.status.textContent=this.ul.children.length+" results found")):(this.close({reason:"nomatches"}),this.status.textContent="No results found")}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(s.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+s.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return s.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,i){var n=""===e.trim()?t:t.replace(RegExp(s.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return s.create("li",{innerHTML:n,role:"option","aria-selected":"false",id:"awesomplete_list_"+this.count+"_item_"+i})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(i.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),i.prototype.toString=i.prototype.valueOf=function(){return""+this.label};var n=Array.prototype.slice;function s(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function r(t,e){return n.call((e||document).querySelectorAll(t))}function o(){r("input.awesomplete").forEach(function(t){new e(t)})}return s.create=function(t,e){var i=document.createElement(t);for(var n in e){var r=e[n];if("inside"===n)s(r).appendChild(i);else if("around"===n){var o=s(r);o.parentNode.insertBefore(i,o),i.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()}else n in i?i[n]=r:i.setAttribute(n,r)}return i},s.bind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.addEventListener(e,n)})}},s.unbind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.removeEventListener(e,n)})}},s.fire=function(t,e,i){var n=document.createEvent("HTMLEvents");for(var s in n.initEvent(e,!0,!0),i)n[s]=i[s];return t.dispatchEvent(n)},s.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},s.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)),e.$=s,e.$$=r,t.exports&&(t.exports=e),e}()}).call(this,i(5)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}]]);
\ No newline at end of file
......@@ -28,6 +28,17 @@ if (query) {
});
}
const search = document.getElementById('search');
if (search) {
search.addEventListener('submit', (e) => {
if (!city.value && !query.value) {
city.focus();
e.preventDefault();
}
}, false);
}
const node = document.getElementById('form-city');
const cityID = document.getElementById('form-city-id');
......
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.
!function(e){function t(t){for(var o,c,r=t[0],i=t[1],s=0,l=[];s<r.length;s++)c=r[s],n[c]&&l.push(n[c][0]),n[c]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);for(a&&a(t);l.length;)l.shift()()}var o={},n={2:0};function c(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],o=n[e];if(0!==o)if(o)t.push(o[2]);else{var r=new Promise(function(t,c){o=n[e]=[t,c]});t.push(o[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.src=function(e){return c.p+"wp-content/themes/biuro/js/components/"+({0:"autocomplete",1:"feedbacks"}[e]||e)+"-f697313b.min.js"}(e);var a=new Error;i=function(t){s.onerror=s.onload=null,clearTimeout(l);var o=n[e];if(0!==o){if(o){var c=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+c+": "+r+")",a.name="ChunkLoadError",a.type=c,a.request=r,o[1](a)}n[e]=void 0}};var l=setTimeout(function(){i({type:"timeout",target:s})},12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(t)},c.m=e,c.c=o,c.d=function(e,t,o){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(c.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(o,n,function(t){return e[t]}.bind(null,n));return o},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],i=r.push.bind(r);r.push=t,r=r.slice();for(var s=0;s<r.length;s++)t(r[s]);var a=i;c(c.s=0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){(e=>{const t=document.getElementById("cookie-warning"),o=document.getElementById("cookie-agree"),n=document.getElementById("cookie-close"),c=!!r()&&localStorage.getItem("biuro-agree");function r(){try{return localStorage.setItem("a","a"),localStorage.removeItem("a"),!0}catch(e){return!1}}t&&o&&n&&!c&&(t.style.display="block",o.addEventListener("click",()=>{r()&&localStorage.setItem("biuro-agree","true"),t.style.display="none"}),n.addEventListener("click",()=>{t.style.display="none"}))})(window),(e=>{const t=document.getElementById("js-map--divisions");t&&fetch("/wp-json/api/v1/divisions?langID="+t.dataset.id).then(e=>e.json()).then(e=>{!function e(t,o){if(!window.google)return void setTimeout(()=>{e(t,o)},250);const c=new window.google.maps.Map(t,{mapTypeIds:[window.google.maps.MapTypeId.ROADMAP,window.google.maps.MapTypeId.HYBRID,"biuro"]});c.mapTypes.set("biuro",new window.google.maps.StyledMapType(n,{name:"Biuro"}));c.setMapTypeId("biuro");window.google.maps.event.addListenerOnce(c,"bounds_changed",function(){this.getZoom()>15&&this.setZoom(14)});let i=[];Object.keys(o).forEach(e=>{const t=o[e];"city"===e.substr(0,4)&&(i=i.concat(t))});document.querySelectorAll(".js-division").forEach(e=>{e.addEventListener("click",()=>{const t=e&&e.dataset.id?e.dataset.id:"";o[t]?r(c,o[t].filter(e=>e.lat&&e.lng),!0):r(c,i.filter(e=>e.lat&&e.lng))})});r(c,i.filter(e=>e.lat&&e.lng))}(t,e)})})(window),(e=>{const t=document.querySelector(".c-nav--lang");t&&t.addEventListener("click",e=>{e.currentTarget.classList.toggle("c-nav--lang--is-open")})})(window),(e=>{const t=document.getElementById("js-map--regions");t&&function e(t){if(!window.google)return void setTimeout(()=>{e(t)},250);const o=new window.google.maps.Map(t,{mapTypeIds:[window.google.maps.MapTypeId.ROADMAP,window.google.maps.MapTypeId.HYBRID,"biuro"]});o.mapTypes.set("biuro",new window.google.maps.StyledMapType(n,{name:"Biuro"}));o.setMapTypeId("biuro");window.google.maps.event.addListenerOnce(o,"bounds_changed",function(){this.getZoom()>15&&this.setZoom(14)});r(o,[{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}])}(t)})(window),window,document.querySelectorAll(".js-toggle--nav").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-nav--open")})}),document.querySelectorAll(".js-toggle--aside").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-aside--open")})});const n=[{featureType:"all",elementType:"all",stylers:[{saturation:-92},{lightness:-8},{hue:"#0000ff"}]},{featureType:"water",elementType:"all",stylers:[{saturation:-95},{lightness:-25},{hue:"#0000ff"}]}];var c;function r(e,t,o){for(var n=new window.google.maps.LatLngBounds,r=0;r<t.length;r++){const s=t[r],a=new window.google.maps.LatLng(s.lat,s.lng);var i=new window.google.maps.Marker({position:a,map:e,icon:"/wp-content/themes/biuro/i/ico--map-pin.svg",title:s.title||""});c&&c.close(),n.extend(a),s.content&&(i.content=s.content,window.google.maps.event.addListener(i,"click",function(){(c=new window.google.maps.InfoWindow({content:this.content})).open(e,this)})),o&&(window.innerWidth<960&&window.scrollTo(0,0),new google.maps.event.trigger(i,"click"))}e.fitBounds(n)}document.querySelectorAll(".js-toggle--services").forEach(e=>{e.addEventListener("click",()=>{e.parentNode.classList.toggle("c-services--is-open")})}),document.querySelectorAll(".js-toggle--sections").forEach(e=>{e.addEventListener("click",()=>{const t=e.parentNode;t.classList.contains("c-sections--is-open")?t.classList.toggle("c-sections--is-open"):(document.querySelectorAll(".c-sections--is-open").forEach(e=>{e.classList.remove("c-sections--is-open")}),t.classList.toggle("c-sections--is-open"))})}),document.querySelectorAll(".js-expand-jobs-section").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.classList.remove("c-jobs-section--is-closed"),e.remove()})});const i=()=>{const e=document.querySelector('[name="s"][value="1"]');if(e)return void e.click();const t=document.querySelector('[name="name"]');t&&t.focus()};function s(e){navigator.clipboard?navigator.clipboard.writeText(e).then(function(){},function(e){console.error("Async: Could not copy text: ",e)}):function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{var o=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+o)}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)}(e)}document.querySelector(".js-inititate-position-form")&&document.querySelector(".js-inititate-position-form").addEventListener("click",i),document.querySelector(".js-focus-form")&&document.querySelector(".js-focus-form").addEventListener("click",()=>{const e=document.querySelector(".c-form input:first-of-type");e&&e.focus()}),document.querySelector(".js-modal--close")&&document.querySelector(".js-modal--close").addEventListener("click",()=>{const e=document.querySelector(".c-modal");e&&e.remove();const t=document.querySelector(".c-form [autofocus]");t&&t.focus()}),document.querySelector(".js-copy-to-clipboard")&&document.querySelector(".js-copy-to-clipboard").addEventListener("click",e=>{e.preventDefault(),s(window.location)}),(e=>{const t=document.querySelector(".c-form [autofocus]");if(t&&t.focus(),location.hash){const e=document.querySelector(".c-form--input-wrap--error input")||document.querySelector(".c-form--checkbox--error");if(e)return void e.focus();const t=document.querySelector('.c-form [name="name"]');t&&t.focus()}})(window),window,document.querySelectorAll(".gtm-share-click").forEach(e=>{e.addEventListener("click",t=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"shareClick",shareLabel:e.dataset.label||""})})});const a=document.getElementById("search");a&&a.addEventListener("submit",e=>{city.value||query.value||(city.focus(),e.preventDefault())},!1),(document.getElementById("search-city")||document.getElementById("search-query")||document.getElementById("form-city"))&&async function(){await o.e(0).then(o.bind(null,2))}(),document.querySelectorAll(".c-feedbacks--inner").length&&async function(){await o.e(1).then(o.bind(null,3))}()}]);
\ No newline at end of file
// https://github.com/webpack/webpack/issues/8656#issuecomment-456001556
// import Awesomplete from './vendor/awesomplete';
// import Swiper from './vendor/swiper';
// const swiper = new Swiper('.c-feedbacks--inner', {
// speed: 900,
// autoplay: {
// delay: 6000,
// disableOnInteraction: false
// },
// grabCursor: true,
// loop: true,
// pagination: {
// el: '.swiper-pagination',
// clickable: true
// }
// });
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = Array.prototype.forEach;
}
(global => {
const container = document.getElementById('cookie-warning');
......@@ -261,52 +248,6 @@ function initDivisionsMap (node, data) {
setMarkers(map, divisions.filter((d) => { return d.lat && d.lng; }));
}
// (global => {
// const city = document.getElementById('search-city');
// if (!city) {
// return;
// }
// const cityBox = new Awesomplete(city, {
// minChars: 0,
// maxItems: 1000,
// sort: false
// });
// city.addEventListener('focus', () => {
// cityBox.evaluate();
// });
// const search = document.getElementById('search');
// const query = document.getElementById('search-query');
// const queryBox = new Awesomplete(query, {
// minChars: 0,
// maxItems: 1000,
// sort: false
// });
// query.addEventListener('focus', () => {
// queryBox.evaluate();
// });
// if (search) {
// search.addEventListener('submit', (e) => {
// if (!city.value && !query.value) {
// city.focus();
// e.preventDefault();
// }
// }, false);
// }
// })(window);
// import(/* webpackChunkName: "autocomplete" */ './components/autocomplete').then( ( data ) => {
// // import( './components/autocomplete.js'
// console.log( data );
// } );
document.querySelectorAll('.js-toggle--services').forEach((node) => {
node.addEventListener('click', () => {
node.parentNode.classList.toggle('c-services--is-open');
......@@ -349,7 +290,7 @@ const initiatePositionForm = () => {
if (input) {
input.focus();
}
}
};
if (document.querySelector('.js-inititate-position-form')) {
document.querySelector('.js-inititate-position-form').addEventListener('click', initiatePositionForm);
......@@ -398,6 +339,7 @@ function fallbackCopyTextToClipboard (text) {
document.body.removeChild(textArea);
}
function copyTextToClipboard (text) {
if (!navigator.clipboard) {
fallbackCopyTextToClipboard(text);
......@@ -453,27 +395,14 @@ if (document.querySelector('.js-copy-to-clipboard')) {
});
})(window);
const search = document.getElementById('search');
if (search) {
search.addEventListener('submit', (e) => {
if (!city.value && !query.value) {
city.focus();
e.preventDefault();
}
}, false);
}
async function autocomplete() {
await import(/* webpackChunkName: "autocomplete" */ './components/autocomplete');
};
}
if (document.getElementById('search-city') || document.getElementById('search-query') || document.getElementById('form-city')) {
autocomplete();
}
async function feedbacks() {
await import(/* webpackChunkName: "feedbacks" */ './components/feedbacks');
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -60,16 +60,8 @@ get_header(); ?>
get_template_part( 'template-parts/layout/aside', 'job-list' );
?>
<span class="js-toggle--aside l-aside--close">
<svg width="13px" height="13px" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
<g id="DUK" transform="translate(-233.000000, -657.000000)" fill-rule="nonzero" stroke="#ffffff" stroke-width="2">
<g id="Group-" transform="translate(202.000000, 624.000000)">
<g id="Group" transform="translate(26.000000, 28.000000)">
<path d="M11.5,11.5 L11.5,3.5 L11.5,11.5 L3.5,11.5 L11.5,11.5 Z M11.5,11.5 L11.5,19.5 L11.5,11.5 L19.5,11.5 L11.5,11.5 Z" id="Combined-Shape" transform="translate(11.500000, 11.500000) rotate(-45.000000) translate(-11.500000, -11.500000) "></path>
</g>
</g>
</g>
</g>
<svg width="13px" height="13px">
<use xlink:href="#ico--close"></use>
</svg>
</span>
</aside><!-- .l-aside -->
......
......@@ -53,16 +53,8 @@ get_header(); ?>
get_template_part( 'template-parts/layout/aside', 'job-list' );
?>
<span class="js-toggle--aside l-aside--close">
<svg width="13px" height="13px" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
<g id="FINAL@" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
<g id="DUK" transform="translate(-233.000000, -657.000000)" fill-rule="nonzero" stroke="#ffffff" stroke-width="2">
<g id="Group-" transform="translate(202.000000, 624.000000)">
<g id="Group" transform="translate(26.000000, 28.000000)">
<path d="M11.5,11.5 L11.5,3.5 L11.5,11.5 L3.5,11.5 L11.5,11.5 Z M11.5,11.5 L11.5,19.5 L11.5,11.5 L19.5,11.5 L11.5,11.5 Z" id="Combined-Shape" transform="translate(11.500000, 11.500000) rotate(-45.000000) translate(-11.500000, -11.500000) "></path>
</g>
</g>
</g>
</g>
<svg width="13px" height="13px">
<use xlink:href="#ico--close"></use>
</svg>
</span>
</aside><!-- .l-aside -->
......
......@@ -46,4 +46,17 @@
<symbol id="ico--easy" viewBox="0 0 23 23">
<path fill="#2A3644" d="M22.311,12.833c0.247,1.003,0.127,2.241-0.433,3.118c0.194,1.068-0.139,2.218-0.819,3.015 c0.086,2.422-1.395,4.034-4.058,4.034c-0.151,0.001-1.595,0-1.842,0C11.711,23,8.647,21.17,7.188,21.17v0.393 C7.188,22.356,6.544,23,5.75,23H1.438C0.644,23,0,22.356,0,21.563v-11.5c0-0.794,0.644-1.438,1.438-1.438H5.75 c0.491,0,0.924,0.246,1.184,0.622c0.137-0.026,0.263-0.058,0.361-0.1c0.971-0.522,2.588-3.094,3.646-4.153 c0.445-0.445,0.589-1.188,0.742-1.974C11.94,1.703,12.44,0,13.787,0c2.678,0,3.724,1.558,3.724,4.181 c0,1.388-0.538,2.356-0.93,3.136h3.151c1.826,0,3.267,1.568,3.267,3.26C23,11.5,22.757,12.255,22.311,12.833z M1.438,21.563H5.75 v-11.5H1.438V21.563z M20.485,12.414c0.718-0.195,1.082-0.915,1.077-1.83c-0.005-0.915-0.809-1.83-1.83-1.83h-5.031 c0-1.83,1.372-2.679,1.372-4.574c0-1.149,0-2.744-2.287-2.744c-0.915,0.915-0.457,3.202-1.83,4.574 c-1.522,1.522-3.076,4.574-4.77,4.574v9.148c1.919,0,4.696,1.83,7.972,1.83c0.156,0,1.681,0.001,1.83,0 c1.718-0.017,2.943-0.828,2.57-3.188c0.735-0.394,1.282-1.763,0.675-2.785C21.203,15.094,21.203,12.938,20.485,12.414z M4.672,19.406c0,0.595-0.483,1.078-1.078,1.078s-1.078-0.483-1.078-1.078c0-0.595,0.483-1.078,1.078-1.078 S4.672,18.811,4.672,19.406z"/>
</symbol>
<symbol id="ico--burger" viewBox="0 0 32 16">
<rect fill="#2A3644" width="32" height="2"/> <rect x="9" y="7" fill="#2A3644" width="23" height="2"/> <rect y="14" fill="#2A3644" width="32" height="2"/>
</symbol>
<symbol id="ico--phone" viewBox="0 0 21 22">
<path class="u-fill--inherit" d="M20.0073662,1.61350199 C20.5897947,1.74475969 20.9999499,2.26157937 20.9999499,2.86039004 C20.9999499,13.2496151 12.5794702,21.6249937 2.23534623,21.6249937 C1.63653556,21.6249937 1.11971588,21.2148385 0.984372653,20.6283244 L0.0328044109,16.4980528 C-0.106624349,15.8951166 0.205077636,15.2798837 0.775209486,15.0337905 L5.2212686,13.1265685 C5.74217381,12.9009831 6.35740672,13.0527486 6.71833535,13.4916227 L8.52714413,15.7023356 C11.3695122,14.3078077 13.6786783,11.994556 15.0732063,9.15627347 L12.8624533,7.34750474 C12.4236192,6.98653606 12.2718538,6.37130315 12.4974392,5.850438 L14.4046612,1.4002533 C14.6507543,0.830121445 15.2700728,0.51841946 15.873009,0.65784822 L20.0073662,1.61350199 Z M2.25993953,20.3124969 C11.8780807,20.3002002 19.6751564,12.5072501 19.6833675,2.88910892 L15.598197,1.9457518 L13.7114827,6.35079539 L16.6974051,8.79121926 C14.7122776,13.0240297 12.4112825,15.3331958 8.16208992,17.3265745 L5.72166605,14.3406521 L1.3165824,16.2273664 L2.25993953,20.3124969 Z"></path>
</symbol>
<symbol id="ico--success" viewBox="0 0 67 67">
<path fill="#1FB299" d="M44.624,22.505c0.302-0.302,0.792-0.302,1.094,0l1.823,1.823c0.302,0.302,0.302,0.792,0,1.094 L28.217,44.745c-0.302,0.302-0.792,0.302-1.094,0l-8.599-8.599c-0.302-0.302-0.302-0.792,0-1.094l1.823-1.823 c0.302-0.302,0.792-0.302,1.094,0l6.229,6.229L44.624,22.505z"/>
<circle id="Oval" fill="none" stroke="#1FB299" cx="33.5" cy="33.5" r="33"/>
</symbol>
<symbol id="ico--close" viewBox="0 0 13 13">
<path fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="square" d="M6.5,6.5L0.843,0.843L6.5,6.5 l-5.657,5.657L6.5,6.5z M6.5,6.5l5.657,5.657L6.5,6.5l5.657-5.657L6.5,6.5z"/>
</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