CINXE.COM

<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="google" value="notranslate"> <meta name="theme-color" content="#00b0dd"> <meta name="twitter:image" content="https://exposale-a.akamaihd.net/img/exposale.jpg"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=yes, shrink-to-fit=no"> <link rel="shortcut icon" type="image/png" href="https://exposale.net/template/img/logo.png"/> <link defer async rel="stylesheet" href="https://exposale.net/template/style/styles.css"> <link defer async rel="stylesheet" href="https://exposale.net/template/style/style.css"> <style> @font-face { font-family: 'FontAwesome'; font-display: swap; src: url('/template/fonts/fontawesome-webfont.eot'); src: url('/template/fonts/fontawesome-webfont.eot') format('embedded-opentype'), url('/template/fonts/fontawesome-webfont.woff2') format('woff2'), url('/template/fonts/fontawesome-webfont.woff') format('woff'), url('/template/fonts/fontawesome-webfont.ttf') format('truetype'), url('/template/fonts/fontawesome-webfont.svg') format('svg'); font-weight: normal; font-style: normal } </style> <!-- Google tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-N6YD1NXR3M"> </script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-N6YD1NXR3M'); </script> <!-- Google Tag Manager --> <script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-PLHM4D3');</script> <!-- End Google Tag Manager --> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PLHM4D3" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <!-- Google Tag Manager (noscript) --> <!-- End Google Tag Manager (noscript) --> <script> const choose_subject = 'Choose a subject'; const country_or_city = 'Country or city'; const lang_name_segment = "/en"; </script> <!-- Image and text --> <div class="container-fluid" style="position: fixed; z-index: 99999;"> <div class="container " style="position: relative;"> </div> </div> <nav class="navbar navbar-expand-lg navbar-light bg-dark bg-exposale"> <div class="container exposale-container" style="padding-left: 0;"> <a class="navbar-brand exposale-brand" href="https://exposale.net/en"> <img class="logo" src="https://exposale-a.akamaihd.net/img/logo.png"> Find your exhibition!<sup>&copy;</sup> <i class="fa fa-search" aria-hidden="true" style="margin-left: 10px;"></i> </a> <div class="collapse navbar-collapse " id="navbarNav"> <div class="hero_exposale_top clearfix"> <div class="subscribe header_popup_button" style="visibility: hidden;"><i class="fa fa-envelope-open-o" aria-hidden="true"></i> Subscription </div> <div class="registration signup header_popup_button"> <i style="font-size:15px;" class="fa fa-pencil-square-o" aria-hidden="true"></i> Registration <div class=" hero_popup_top registraion_popup_hero "> <div class="hero_popup"> <i class="datepicker--pointer"></i> <div class="registration_description_top"> <span id="regicon" class="registration_icon fa fa-pencil-square-o"></span> <a class="go_registration" name="#">Sign up<br>and get more options</a><br> </div> <div class="registration-form" style=""> <noindex> <!--googleoff: all--> <form method="post" id="registration_from_submit" action="/en/userregistration" data-parsley-validate=""> <input type="hidden" name="_token" value=""> <input type="checkbox" value="ok" name="563873d38950b841aebf89c3be1b1a35" style="display:none;"> <div class="form-group"> <input type="text" name="name" class="form-control" placeholder="Your name" data-parsley-error-message="" required=""/> </div> <div class="form-group"> <input type="email" name="email" class="form-control" placeholder="E-mail" data-parsley-error-message="" required=""/> </div> <div class="form-group modal-more"> <div class=" more-information"> <label for="check-more-information"> <input type="checkbox" id="check-more-information" value="1" name="more_information" checked="checked">Receive announcements on exhibitions <span></span> </label> </div> </div> <div class="form-group"> <button type="submit" name="registration" class="btn btn-outline-success btn-outline-registraion">Sign up</button> <p class="agree-reg">By clicking on the "Sign up" button, you agree to the <a href="/en/page/privacy-policy" target="_blank"> privacy policy </a> <br>and rules for the processing of <a href="/en/page/privacy-policy" target="_blank"> personal data </a>.</p> </div> </form> <!--googleon: all--> </noindex> </div> <div class="registration_description"> <p><span>Enter without registration</span><br>Use your social network account</p> </div> <div class="registration_with_social"> <a href="https://www.facebook.com/v2.2/dialog/oauth?client_id=752456221948261&amp;state=b7d73bfdd36e919dfbbbd66a067e2955&amp;response_type=code&amp;sdk=php-sdk-5.6.2&amp;redirect_uri=https%3A%2F%2Fexposale.net%2Fen%2Ffb-login&amp;scope=email%2Cpublic_profile" class="fa fa-facebook-square" aria-hidden="true"></a> <!-- <i class="fa fa-linkedin-square" onclick="liAuth()"></i> <i class="fa fa-twitter-square" aria-hidden="true"></i> <i class="fa fa-vk" aria-hidden="true"></i> --> <div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div> </div> </div> </div> <div class="note_for_reg"><span class="note_for_reg_span">&times;</span> <p><span></span>, glad to see you! <br> Sign up<br>and get more options</p></div> </div> <div class="registration signin header_popup_button hide "> <i class="fa fa-user-o" aria-hidden="true"></i> Login <div class="signin_popup_hero hero_popup_top "> <div class="hero_popup"> <i class="datepicker--pointer"></i> <script> function onSubmit(token) { var error = true; $('#login_form').find('input').each(function(){ if($(this).val() == ''){ error = false; $(this).addClass('parsley-error'); } if($(this).hasClass('focus_email') ){ alert(); if( !validateEmail( $(this).val() ) ) { error = false; } } }); if(error){ $('#login_form').find('input').each(function(){ $(this).removeClass('parsley-error'); }); document.getElementById("login_form").submit(); }else{ $('.focus_email').focus(); } //alert('yes'); } function validateEmail($email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test( $email ); } </script> <form method="post" action="https://exposale.net/en/user-login" style="" id="login_form" data-parsley-validate=""> <input type="hidden" name="_token" value=""> <input type="checkbox" value="ok" name="d56b699830e77ba53855679cb1d252da" style="display:none;"> <div class="form-group"> <input type="email" name="email" class="form-control" placeholder="E-mail" data-parsley-error-message="Enter E-mail address" required="" /> </div> <div class="form-group" style="margin-bottom: 8px;"> <input type="password" name="password" class="form-control" placeholder="Password" data-parsley-error-message="" required="" /> </div> <div class="form-group remember_me"> <a style="float:left" id="reset_login_href" href="https://exposale.net/password/reset">Forgot your password?</a> <label for="remember_me"> <input type="checkbox" id="remember_me" name="remember" checked>Stay connected<span></span> </label> </div> <div class="form-group"> <button type="submit" name="login" class="btn btn-outline-success btn-outline-registraion">Login</button> </div> </form> <form method="POST" action="https://exposale.net/en/password/email" style= "" id="login_rest_form" data-parsley-validate=""> <i class="fa fa-angle-double-left back_login_form" aria-hidden="true"></i> <p style="font-size: 14px;" class="text-center">Enter your E-mail address <br> associated with this account </p> <input type="hidden" name="_token" value=""> <div class="form-group text-center"> <input type="email" name="email" class="form-control" placeholder="E-mail" data-parsley-error-message="Enter E-mail address" required="" /> </div> <div class="form-group"> <button type="submit" name="login" class="btn btn-outline-success btn-outline-registraion">Reset password</button> </div> </form> <div> <p style="text-align: center;">No account? <a href="javascript:void(0)" class="open_login">Registration</a></p> </div> <div class="registration_description"> <p><span>Enter without registration</span><br>Use your social network account</p> </div> <div class="registration_with_social"> <a href="https://www.facebook.com/v2.2/dialog/oauth?client_id=752456221948261&amp;state=b7d73bfdd36e919dfbbbd66a067e2955&amp;response_type=code&amp;sdk=php-sdk-5.6.2&amp;redirect_uri=https%3A%2F%2Fexposale.net%2Fen%2Ffb-login&amp;scope=email%2Cpublic_profile" class="fa fa-facebook-square" aria-hidden="true"></a> <!--<i class="fa fa-twitter-square" aria-hidden="true"></i> <i class="fa fa-vk" aria-hidden="true"></i> <i class="fa fa-odnoklassniki-square" aria-hidden="true"></i> <i class="fa fa-google-plus-square" aria-hidden="true"></i> --> </div> </div> </div> </div> <div class="language_section_badge"> <span class="current_language"> <img class="current_language_img lazy" data-src="https://exposale-a.akamaihd.net/img/flags/united-kingdom.png"> <div class="language_hero_popup "> <div class="language_hero_popup_child"> <span class="language_hero_popup_child_close">&times;</span> <i class="datepicker--pointer"></i> <ul> <li class="current_language_item"> <span><img src="https://exposale-a.akamaihd.net/img/flags/united-kingdom.png">English</span> <div class="current_lang_text"><i class="datepicker--pointer"></i> <span class="current_lang_text_first"><p>Choose language.</p>We speak English and <b>9</b> other languages</span> <span class="current_lang_text_second"> <img style="width:100%; height:90px;" src="https://exposale-a.akamaihd.net/img/exposale-mini.jpg" alt="EXPOSALE.net"> Find your exhibition<br>in your language! </span> </div> </li><li> <a href="/de/"><img src="https://exposale-a.akamaihd.net/img/flags/germany.png">Deutsch</a> </li><li> <a href="/fr/"><img src="https://exposale-a.akamaihd.net/img/flags/france.png">Français</a> </li><li> <a href="/es/"><img src="https://exposale-a.akamaihd.net/img/flags/spain.png">Español</a> </li><li> <a href="/zh-cn/"><img src="https://exposale-a.akamaihd.net/img/flags/china.png">中文</a> </li><li> <a href="/ja/"><img src="https://exposale-a.akamaihd.net/img/flags/japan.png">日本語</a> </li><li> <a href="/ru/"><img src="https://exposale-a.akamaihd.net/img/flags/russia.png">Русский</a> </li><li> <a href="/tr/"><img src="https://exposale-a.akamaihd.net/img/flags/turkey.png">Türkçe</a> </li><li> <a href="/ko/"><img src="https://exposale-a.akamaihd.net/img/flags/south-korea.png">한국어</a> </li><li> <a href="/uk/"><img src="https://exposale-a.akamaihd.net/img/flags/ukraine.png">Українська</a> </li> </ul> </div> </div> </span> </div> </div> <div class="mobile-menu"> <ul> <li> <a href="/en" title="Find an exhibition"> <i class="fa fa-search" aria-hidden="true"></i> Find an exhibition!</a> </li> <li> <a href="/en/contacts" title="Contacts"> <i class="fa fa-volume-control-phone" aria-hidden="true"></i> Contacts </a> </li> </ul> <button class="close-moobile-menu"> Close menu <i class="fa fa-angle-double-up" aria-hidden="true"></i> </button> </div> </div> </div> </nav> <style> body { margin: 0; padding: 0; width: 100%; display: table; font-family: 'Roboto', sans-serif; font-weight: 500; } .container { font-family: 'Roboto', sans-serif; display: block; //vertical-align: middle; font-weight: 500; } .content { text-align: center; color: #B0BEC5; margin-bottom:40px; } .title { font-size: 120px; color: #B0BEC5; } h2{ color: #B0BEC5; font-weight: normal; } .searchform_landing{ color: #000!important; font-family: 'Roboto', sans-serif; } </style> <div class="container text-center" style="margin-top:67px;"> <div class="content"> <div class="title">404</div> <h2>Page not found!</h2> Probably a type in the set of text, or you went through a faulty link. <br> To find the exhibitions you need use the search form or go to the home page.</p> <div class="searchform_landing text-left"> <hr> <h3 style=" font-size: 13px;font-family: 'Roboto', sans-serif;margin-bottom: 18px;text-align:center">Find your exhibition on EXPOSALE.net <sup>&copy;</sup></h3> <div class="row align-items-start form-group global_searchform"> <div class="col-md-4 form-group "> <input type="hidden" name="category" id="categoryhidden" value=""> <div class="moreitemscat"><ul></ul><i class="datepicker--pointer--more"></i></div> <div class="moreplacecategory"></div> <h5 class="exhibition_search_title">Exhibition subjects</h5> <div class="category_wrap"> <div class="choosecat" onclick="openWindow('category_text_wrap','input_category')"> <ul> <li> <input type="text" class="form-control input_category" placeholder="Choose a subject" autocomplete="off"> </li> </ul> </div> <div class="c_area"> <div class="category_text_wrap"> <i class="datepicker--pointer"></i> <div class="category_text scrollstyle"> <div class="topsearch"> <div class="la-ball-beat" style="position: relative;z-index: 999;top: 10px;left: 50%; transform: translateX(-50%);"> <div></div> <div></div> <div></div> </div> <div class="close_result close_result_cat"> <i class="fa fa-times" aria-hidden="true"></i> </div> </div> <div class="searchresultcat" style="display:none"> <div class="searchresultcat_text"> </div> </div> <div class="allcategory"> </div> <span class="printtext"></span> </div> </div> </div> </div> </div> <div class="col-md-4 form-group "> <input type="hidden" name="country" id="countryhidden" value=""> <input type="hidden" name="city" id="cityhidden" value=""> <h5 class="exhibition_search_title">Location</h5> <div class="country_wrap"> <div class="choosecountry" onclick="openWindow('country_text_wrap','input_country')"> <div class="moreplacecountry"></div> <ul> <li><input type="text" class="form-control input_country" placeholder="Country or city" autocomplete="off"></li> </ul> </div> <div class="c_area"> <div class="country_text_wrap"> <i class="datepicker--pointer"></i> <div class="country_text scrollstyle"> <div class="topsearch"> <div class="la-ball-beat" style="position: relative;z-index: 999;top: 10px;left: 50%; transform: translateX(-50%);"> <div></div> <div></div> <div></div> </div> <div class="close_result close_result_country"> <i class="fa fa-times" aria-hidden="true"></i> </div> </div> <!-- --> <div class="searchresultcountry" style="display:none"> <div class="searchresultcountry_text"> </div> </div> <div class="allcountry"> </div> <span class="printtext"></span> </div> </div> </div> </div> </div> <div class="col-md-4 form-group searchbutton "> <a href="https://exposale.net/en/exhibitions/all/all/all" id="general_search" class="btn btn-success btn-search"> <span>Find an exhibition! <i class="fa fa-search" aria-hidden="true" style=" transition: 0ms;"></i></span> <div class="la-ball-pulse" style="display:none"> <div></div> <div></div> <div></div> </div> </a> </div> </div> <hr> <br> </div> <a class="btn btn-outline-success btn-outline-green" href="https://exposale.net/en">Go home</a> </div> </div> <a href="#" id="toTop" style="display: none;"><span>Top</span></a> <footer> <div class="firstfooter"> <div class="container"> <div class="row" id="footer_widget"> </div> </div> </div> <div class="secondfooter"> <div class="container"> <div class="row"> <div class="col-md-6"> <!--<p style="font-size:11px;">Копирование любых материалов сайта запрещено, нарушение авторских прав контролируется и преследуется по закону.</p>--> <p style="font-size:11px;">Copyright © 2012 - 2024 <a href="/">EXPOSALE.net</a> | All rights reserved</p> </div> <div class="col-md-6 text-right"> </div> </div> </div> </div> <!-- <button type="button" nofollow data-exid="24" data-toggle="modal" data-target="#exTestModal" data-infexcenter="СКК им. Карена Демирчяна" data-exname="Образование и карьера EXPO 2025" id="testModal" name="button" style="position: fixed; border:0; padding:0; bottom:20px; color:#fff"> . </button> --> </footer> <script src="https://exposale.net/template/script/scripts.js"></script> <!--LiveInternet counter--> <span id="live_internet"></span> <!--/LiveInternet--> <span style="display:none;" class="aviasales_code_here"></span> <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "WebSite", "@id": "https://exposale.net/vi/#website", "url": "https://exposale.net/vi", "inLanguage": "en", "publisher": {"@id": "https://exposale.net/vi/#organization"} } </script> <script> var token = ''; var your_location_city = 'Tallinn'; var your_location_country = 'Estonia'; var your_location_country_code = 'EE'; var filter_ajax_select; var auth_prefix_phone = false; function modalSlider() { $('.place_meter').ionRangeSlider({ hide_min_max: true, hide_from_to: false, from: 6, values: [ "<b>Remote participation</b>", "<b>4</b> m<sup>2</sup>", "<b>6</b> m<sup>2</sup>", "<b>8</b> m<sup>2</sup>", "<b>9</b> m<sup>2</sup>", "<b>10</b> m<sup>2</sup>", "<b>12</b> m<sup>2</sup>", "<b>14</b> m<sup>2</sup>", "<b>15</b> m<sup>2</sup>", "<b>16</b> m<sup>2</sup>", "<b>18</b> m<sup>2</sup>", "<b>20</b> m<sup>2</sup>", "<b>21</b> m<sup>2</sup>", "<b>22</b> m<sup>2</sup>", "<b>24</b> m<sup>2</sup>", "<b>25</b> m<sup>2</sup>", "<b>26</b> m<sup>2</sup>", "<b>27</b> m<sup>2</sup>", "<b>28</b> m<sup>2</sup>", "<b>30</b> m<sup>2</sup>", "<b>32</b> m<sup>2</sup>", "<b>33</b> m<sup>2</sup>", "<b>34</b> m<sup>2</sup>", "<b>35</b> m<sup>2</sup>", "<b>36</b> m<sup>2</sup>", "<b>38</b> m<sup>2</sup>", "<b>39</b> m<sup>2</sup>", "<b>40</b> m<sup>2</sup>", "<b>more than 40</b> m<sup>2</sup>" ], onChange: function (data) { var put_data = data.from_value.match(/<([^\s>]+)\s?[^>]*>(.*)(?:<\/\1)>+/)[2] if (put_data == 0) { put_data = ''; } if (put_data == 'Remote participation') { $('.modal-more-click').hide(); $('.modal-more').hide(); } else { if (!$('.modal-more-click').is(':visible')) { $('.modal-more-button a').text('I want to make a detailed request '); } $('.modal-more').show(); } $('#place_meter').val(put_data) }, }); $('.stock_meter').ionRangeSlider({ hide_min_max: true, hide_from_to: false, from: 0, values: [ "<b>0</b> m<sup>2</sup>", "<b>4-10</b> m<sup>2</sup>", "<b>10-20</b> m<sup>2</sup>", "<b>20-40</b> m<sup>2</sup>", "<b>40-60</b> m<sup>2</sup>", "<b>60-100</b> m<sup>2</sup>", "<b>more than 100</b> m<sup>2</sup>" ], onChange: function (data) { var put_stock_data = data.from_value.match(/<([^\s>]+)\s?[^>]*>(.*)(?:<\/\1)>+/)[2] if (put_stock_data == 0) { put_stock_data = ''; } $('#stock_meter').val(put_stock_data); }, }); } </script> <script src="https://exposale.net/template/script/scripts-footer-third.js"></script> <script async defer type="text/javascript" src="https://exposale.net/template/script/countries/en_countries.js"></script> <script> var isMobile = { Android: function () { return navigator.userAgent.match(/Android/i); }, BlackBerry: function () { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function () { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function () { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function () { return navigator.userAgent.match(/IEMobile/i); }, any: function () { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; disabeKeypoard('input_category'); disabeKeypoard('input_country'); if (isMobile.any()) { $('[data-toggle="tooltip"]').tooltip('disable'); $('.search_page_modal_button').tooltip('disable'); $('.secondtext').remove(); $('.btn-outline-green').attr('title', ''); $('a').data('toggle', ''); $('#exModal #organization_name').blur(); $('.exhibition_block ').addClass('exhibition_block_mobile'); $('.btn-outline-green').removeAttr('title'); } function disabeKeypoard(element) { $('.' + element).on('focus', function () { $(this).trigger('blur'); if ($('.exhibition_sidebar_title').length) { $('html, body').animate({ scrollTop: $('.exhibition_sidebar_title').offset().top - 90 }, 1000); } }); } $(".close-moobile-menu").on("click", function () { $(".navbar-collapse").collapse('hide'); }); $(".mobile_menu_close_btn").on("click", function (e) { e.preventDefault(); $(".navbar-collapse").collapse('hide'); }); $(document).on('click', '.open_login_footer', function () { $('#loginreg_modal').modal('show'); $('#myTab a[href="#profile"]').tab('show'); }); $('.makereg, .open_login').on('click', function () { $('#myTab a[href="#profile"]').tab('show'); }); $('.makelogin').on('click', function () { $('#myTab a[href="#home"]').tab('show'); }); $('.result_item_login_btn').on('click', function () { $('#loginreg_modal').modal('show'); $('#myTab a[href="#profile"]').tab('show'); }); $('.result_item_login .fa-pencil-square-o').on('click', function () { $('#loginreg_modal').modal('show'); $('#myTab a[href="#profile"]').tab('show'); }); $(".header_popup_button").on('click', function (e) { if ($(e.target).hasClass('note_for_reg_span')) { return; } if (!$(e.target).hasClass('open_login')) { $('.header_popup_button').not(this).find('.hero_popup_top').removeClass('active_hero'); $(this).find('.hero_popup_top').addClass('active_hero'); } else { $('.signin_popup_hero').removeClass('active_hero'); $('.registraion_popup_hero').addClass('active_hero'); } if ($(e.target).hasClass('reset_login_href')) { $('.signin_popup_hero').addClass('active_hero'); $('.registraion_popup_hero').removeClass('active_hero'); } $('.note_for_reg_span').trigger('click'); $('.login_welocme_text').fadeOut(900); }); $('.header_popup_button .reset_login_href').on('click', function (e) { $('.signin.header_popup_button').trigger("click"); $('#reset_login_href').trigger("click"); }); $(document).on('click', '.back_login_form', function () { $('#login_rest_form').slideUp(); $('#login_form').slideDown(); }); $(document).on('click', '.open_login_footer', function (e) { $('html, body').animate({scrollTop: 0}, 800); $('.registraion_popup_hero').addClass('active_hero'); $('.signin_popup_hero').removeClass('active_hero'); }); $(document).on('click', '.result_item_login_btn', function (e) { $('html, body').animate({scrollTop: 0}, 800); $('.registraion_popup_hero').addClass('active_hero'); $('.signin_popup_hero').removeClass('active_hero'); }); $(document).on('click', '.result_item_login .fa-pencil-square-o', function (e) { $('html, body').animate({scrollTop: 0}, 800); $('.registraion_popup_hero').addClass('active_hero'); $('.signin_popup_hero').removeClass('active_hero'); }); docWidth = $(document).width(); $(window).scroll(function () { if ($(window).scrollTop() >= '300') { $('#toTop').fadeIn(); } else { $('#toTop').fadeOut(); } // if (docWidth > 780) { // // // if ($(window).scrollTop() > '1') { // // $('.exposale-brand img').css({ // 'width': '30px', // }); // $('.exposale-brand').css({ // 'font-size': '0.8rem', // }); // $('.search-title').css({ // 'font-size': '1.0rem', // 'margin-top': '0', // 'margin-bottom': '0', // }); // $('.search-title sup').css({ // 'font-size': '12px', // }); // } else { // // $('.exposale-brand img').css({ // 'width': '50px', // }); // $('.exposale-brand ').css({ // 'font-size': '1.0rem', // }); // $('.search-title').css({ // 'font-size': '1.1rem', // 'margin-top': '20px', // 'margin-bottom': '25px', // }); // $('.search-title sup').css({ // 'font-size': '16px', // }); // } // // if ($(window).scrollTop() >= '40') { // $('.top-line-tools').css({'top': '46px'}); // } else { // $('.top-line-tools').css({'top': '66px'}); // } // // } }); $('.close_notesended').click(function () { $('#notesended').modal('hide'); $('#registration_modal').modal('hide'); }); $('#toTop').click(function (e) { e.preventDefault(); $('html, body').animate({scrollTop: 0}, 800); return false; }); $('#totopsearch').click(function (e) { e.preventDefault(); $('html, body').animate({scrollTop: 0}, 800); return false; }); $(document).on('click', '#toTopSidebar', function (e) { e.preventDefault(); $('html, body').animate({scrollTop: 0}, 800); return false; }); function transliterate(word) { var result = '', A = {}; /*A ={A:"А",a:"а",B:"Б",b:"б",V:"В",v:"в",G:"Г",g:"г",D:"Д",d:"д",E:"Е",e:"е",Z:"З",z:"з",I:"И",i:"и",J:"Й",j:"й",K:"К",k:"к",L:"Л",l:"л",M:"М",m:"м",N:"Н",n:"н",O:"О",o:"о",P:"П",p:"п",R:"Р",r:"р",S:"С",s:"с",T:"Т",t:"т",U:"У",u:"у",F:"Ф",f:"ф",X:"Х",x:"х",H:"Х",h:"х",C:"Ц",c:"ц",W:"В",w:"в","ъъ":"Ъ","\u0022":"ъ",Y:"Ы",y:"ы","ьь":"Ь","\u0027":"ь",:"Э",:"э",:"Ё",:"ё",:"Ю",:"ю","#":"№",ЙЕ:"Э",Йе:"Э",йе:"э",ЙО:"Ё",Йо:"Ё",йо:"ё",ЫО:"Ё",Ыо:"Ё",ыо:"ё",ЙУ:"Ю",Йу:"Ю",йу:"ю",ЫУ:"Ю",Ыу:"Ю",ыу:"ю",Q:"Я",q:"я",ЙА:"Я",Йа:"Я",йа:"я",ЫА:"Я",Ыа:"Я",ыа:"я",ЦХ:"Ч",Цх:"Ч",цх:"ч",СХ:"Ш",Сх:"Ш",сх:"ш",ЗХ:"Ж",Зх:"Ж",зх:"ж",ШХ:"Щ",Шх:"Щ",шх:"щ","#":"№"};*/ for (var i = 0; i < word.length; i++) { var c = word.charAt(i); result += A[c] || c; } return result; } function inpulength() { $(".global_searchform input[placeholder]").each(function () { $(this).attr('size', $(this).attr('placeholder').length + 3); }); } inpulength(); var category_dropdown = false; var country_dropdown = false; function openWindow(divEl, inpEl) { $('.' + divEl).addClass('active_tooltip'); $("." + inpEl).focus(); if (inpEl == 'input_country' && !country_dropdown) { ajax_show_dropdown(inpEl); } else if (inpEl == 'input_category' && !category_dropdown) { ajax_show_dropdown(inpEl); } } function ajax_show_dropdown(inpEl) { $.ajax({ url: lang_name_segment + '/ajax-show-dropdown', method: 'get', data: {inpEl: inpEl}, success: function (data) { if (data != '') { if (inpEl == 'input_country') { $('.country_text').find('.la-ball-beat').hide(); country_dropdown = true; $('.allcountry').html(data) } else if (inpEl == 'input_category') { $('.category_text').find('.la-ball-beat').hide(); category_dropdown = true; $('.allcategory').html(data) } } if (window.location.href.indexOf("exhibitions/") > -1) { checkSearchInputValCountry(); checkSearchInputValCity(); checkSearchInputValCategory(); } } }); } $(function () { $('[data-toggle="tooltip"]').tooltip() $('.search_page_modal_button').tooltip({}) }) $('body').on('click', function (event) { if (!$(event.target).closest('.category_wrap').length) { if ($('.category_wrap').is(":visible")) { $('.category_text_wrap').removeClass('active_tooltip'); } } if (!$(event.target).closest('.country_wrap').length) { if ($('.country_wrap').is(":visible")) { $('.country_text_wrap').removeClass('active_tooltip'); } } if (!$(event.target).closest('.moreitemscat').length) { if ($('.moreitemscat').is(":visible")) { $('.moreitemscat').removeClass('active_more'); } } if (!$(event.target).closest('.header_popup_button').length && $(event.target).closest('.open_login_footer').length == false) { if ($('.header_popup_button').is(":visible")) { $('.hero_popup_top').removeClass('active_hero'); } } $('.click_bread_link').removeClass('active_click_bread_link') if (!$(event.target).closest('.click_bread_link').length) { $('.dropdown_list_item').hide(); } if (!$(event.target).closest('.country-phone-selected-custom').length) { $('.country-phone-selected-custom-div').hide(); } }); var category = $(".input_category"); var country = $(".input_country"); /***************category********************/ var checkArrayCat = []; var checkArrayCountry = []; var checkArrayCity = []; function placeholderCatInput() { if (checkArrayCat.length > 0) { $('.input_category').attr('placeholder', ''); } else { $('.input_category').attr('placeholder', choose_subject); } } checkSearchInputValCountry(); checkSearchInputValCity(); checkSearchInputValCategory(); function checkSearchInputValCategory() { if ($('#categoryhidden').length > 0 && $('#categoryhidden').val().length > 0) { checkArrayCat = $('#categoryhidden').val().split(','); for (var i = 0; i < checkArrayCat.length; i++) { $('.exhibition_sidebar .category_text').find('.select_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.exhibition_sidebar .category_text').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.exhibition_sidebar .category_text').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').prop('checked', true); $('.categoryall_choose[data-choose=' + checkArrayCat[i] + ']').text('Clear all'); $('.exhibition_sidebar .searchresultcat_text').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').parent().hide(); $('.exhibition_sidebar .searchresultcat_text').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').parent().hide(); $('.exhibition_sidebar .searchresultcat_text').find('.categoryall_showall[data-show=' + checkArrayCat[i] + ']').hide(); } placeholderCatInput() } } $(".input_category").keyup(function () { if ($(this).val().length > 0) { $('.filtered_result').hide(); $('.categoryall_showall').hide(); $('.categoryall_choose').hide(); var value = $(this).val().toLowerCase(); $('.filter_result_jquery').each(function () { var str1 = $(this).text().toLowerCase(); if (str1.indexOf(value) != -1) { $(this).closest('.filtered_result').show(); $(this).closest('.category_wrapper').find('.parent_category').show() $(this).closest('.category_wrapper').find('.categoryall_showall').show(); } }); hightLight(); } else { $('.child_category').hide(); $('.categoryall_choose').hide(); $('.categoryall_showall').hide(); $('.parent_category').show() $('.category_text .la-ball-beat').hide(); } }); /* LINKEDIN LOGIN */ function getProfileData() { } var searchRequest = null; function ajaxcatfilter(inputVal, urldata) { $('.category_text .la-ball-beat').show(); if (searchRequest != null) { searchRequest.abort(); } searchRequest = $.ajax({ url: urldata, method: 'get', data: {inputVal: inputVal}, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, cache: false, success: function (data) { if (data != '') { $('.category_text .la-ball-beat').hide(); if (!$('.category_text_wrap').hasClass("active_tooltip")) { $('.category_text_wrap').addClass('active_tooltip'); } $('.category_text .searchresultcat .searchresultcat_text').html(data); $('.category_text .searchresultcat').show(); $('.category_text .topsearch').show(); $('.category_text .printtext').hide() $('.category_text .allcategory').hide(); for (var i = 0; i < checkArrayCat.length; i++) { $('.category_text .searchresultcat .searchresultcat_text').find('.select_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .searchresultcat .searchresultcat_text').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .searchresultcat .searchresultcat_text').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').prop('checked', true); $('.searchresultcat_text').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').parent().hide(); $('.searchresultcat_text').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').parent().hide(); $('.searchresultcat_text').find('.categoryall_showall[data-show=' + checkArrayCat[i] + ']').hide(); } hightLight(); } else { $('.category_text .searchresultcat').hide(); $('.category_text .allcategory').hide(); $('.category_text .topsearch').hide(); $('.category_text .printtext').show(); $('.category_text .printtext').html(no_typos + '<br>' + nothing_found_text); } } }); } $('html').on('click', '.select_cat', function () { var getId = $(this).attr('id'); var parentId = $(this).data('parentid'); var valueselect = $(this).parent().find('label').text(); if ($(this).is(':checked') && !$('.selectall_cat[data-getid=' + parentId + ']').is(':checked')) { $('.select_cat[data-getid=' + getId + ']').prop('checked', true); var numbercheck = $('.select_cat[data-parentid=' + parentId + ']:checked').length; var numberitems = $('.select_cat[data-parentid=' + parentId + ']').length; if (numbercheck == numberitems) { valueselect = $('.allcategory .selectall_cat[data-getid=' + parentId + ']').parent().find('label').text(); $('.selectall_cat[data-getid=' + parentId + ']').prop('checked', true); $('.choosecat ul').find("li[data-parentId=" + parentId + "]").remove(); $('.choosecat ul li:last').before('<li class="chosen chosenchild" data-id="' + parentId + '">' + valueselect + '<button class="escape_parent">&times;</button></li>'); $('.categoryall_choose[data-choose=' + parentId + ']').text('Clear all'); checkArrayCat.push(parentId); var deleteitem = []; for (var i = 0; i < checkArrayCat.length; i++) { if ($('.select_cat[data-getid=' + checkArrayCat[i] + ']').data('parentid') == parentId) { deleteitem.push(checkArrayCat[i]); } } for (var j = 0; j < deleteitem.length; j++) { checkArrayCat = $.grep(checkArrayCat, function (value) { return value != deleteitem[j]; }) } } else { checkArrayCat.push(getId); $('.choosecat ul li:last').before('<li class="chosen" data-parentId="' + parentId + '" data-id="' + getId + '">' + valueselect + '<button class="escape">&times;</button></li>'); } } else if (!$(this).is(':checked') && $('.selectall_cat[data-getid=' + parentId + ']').is(':checked')) { $('.select_cat[data-getid=' + getId + ']').prop('checked', false); checkArrayCat = $.grep(checkArrayCat, function (value) { return value != parentId; }); $('.choosecat ul').find("li[data-id=" + parentId + "]").remove(); $('.selectall_cat[data-getid=' + parentId + ']').prop('checked', false); $('.categoryall_choose[data-choose=' + parentId + ']').text('Select all'); $('.allcategory .select_cat[data-parentId=' + parentId + ']:not(.allcategory .select_cat[data-getid=' + getId + '])').each(function (index) { var addcatitem = $(this).parent().find('label').text(); var addcatiid = $(this).attr('id'); $('.choosecat ul li:last').before('<li class="chosen" data-parentId="' + parentId + '" data-id="' + addcatiid + '">' + addcatitem + '<span class="escape">&times;</span></li>'); checkArrayCat.push(addcatiid); }) } else { if ($(this).is(':checked')) { $('.select_cat[data-getid=' + getId + ']').prop('checked', true); } else { $('.select_cat[data-getid=' + getId + ']').prop('checked', false); } checkArrayCat = $.grep(checkArrayCat, function (value) { return value != getId; }); $('.choosecat ul').find("li[data-id=" + getId + "]").remove(); } placeholderCatInput(); $('.input_category').val(''); $('.input_category').focus(); $('#categoryhidden').val(checkArrayCat); countItem(); }); $('body').on('click', '.escape', function (event) { var checkCat = $(this).parent().data('id'); $('.select_cat[data-getid=' + checkCat + ']').prop('checked', false); $('.chosen[data-id=' + checkCat + ']').remove(); checkArrayCat = $.grep(checkArrayCat, function (value) { return value != checkCat; }); placeholderCatInput(); countItem(); $('#categoryhidden').val(checkArrayCat); event.stopPropagation(); }); function countItem() { return true; } $('body').on('click', '.selectall_cat', function () { var parentId = $(this).attr('id'); var valueselect = $(this).parent().find('label').text(); if ($(this).is(':checked')) { $('.choosecat ul li:last').before('<li class="chosen chosenchild" data-id="' + parentId + '">' + valueselect + '<button class="escape_parent">&times;</button></li>'); $('.select_cat[data-parentId=' + parentId + ']').prop('checked', true); $('.selectall_cat[data-getid=' + parentId + ']').prop('checked', true); $('.searchresultcat_text').find('.select_cat[data-parentId=' + parentId + ']').parent().hide(); $('.searchresultcat_text').find('.selectall_cat[data-getid=' + parentId + ']').parent().hide(); $('.searchresultcat_text').find('.categoryall_showall[data-show=' + parentId + ']').hide(); $('.categoryall_choose[data-choose=' + parentId + ']').text('Clear all'); if ($(this).parent().parent().attr('class') == "searchresultcat_text") { } checkArrayCat.push(parentId); var deleteitem = []; for (var i = 0; i < checkArrayCat.length; i++) { if ($('.select_cat[data-getid=' + checkArrayCat[i] + ']').data('parentid') == parentId) { deleteitem.push(checkArrayCat[i]); } } for (var j = 0; j < deleteitem.length; j++) { checkArrayCat = $.grep(checkArrayCat, function (value) { return value != deleteitem[j]; }) } $('.choosecat ul').find("li[data-parentId=" + parentId + "]").remove(); $('.input_category').val('') $('.input_category').focus(); } else { $('.choosecat ul').find("li[data-id=" + parentId + "]").remove(); $('.select_cat[data-parentId=' + parentId + ']').prop('checked', false); $('.selectall_cat[data-getid=' + parentId + ']').prop('checked', false); $('.searchresultcat_text').find('.select_cat[data-parentId=' + parentId + ']').parent().show(); $('.searchresultcat_text').find('.selectall_cat[data-getid=' + parentId + ']').parent().show(); $('.searchresultcat_text').find('.categoryall_showall[data-show=' + parentId + ']').show(); $('.categoryall_choose[data-choose=' + parentId + ']').text('Select all'); checkArrayCat = $.grep(checkArrayCat, function (value) { return value != parentId; }); } $('#categoryhidden').val(checkArrayCat); placeholderCatInput(); countItem() }) $('body').on('click', '.escape_parent', function (event) { var checkCat = $(this).parent().data('id'); $('.selectall_cat[data-getid=' + checkCat + ']').prop('checked', false); $('.select_cat[data-parentId=' + checkCat + ']').prop('checked', false); $('.chosenchild[data-id=' + checkCat + ']').remove(); checkArrayCat = $.grep(checkArrayCat, function (value) { return value != checkCat; }); $('.categoryall_choose[data-choose=' + checkCat + ']').text('Select all'); placeholderCatInput(); countItem(); $('#categoryhidden').val(checkArrayCat); event.stopPropagation(); }) $('html').on('click', '.close_result_cat i', function () { $('.category_text_wrap').removeClass('active_tooltip'); for (var i = 0; i < checkArrayCat.length; i++) { $('.category_text .allcategory').find('.select_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .allcategory').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .allcategory').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').prop('checked', true); } $('.input_category').val('') }) $('html').on('click', '.parent_category_click', function (event) { $('.input_category').focus(); var dataid = $(this).data('name'); $('.child_category:not([data-sub=' + dataid + '])').hide(); $('.categoryall_choose:not([data-choose=' + dataid + '])').hide(); $('.child_category[data-sub=' + dataid + ']').slideToggle(function () { }); $('.categoryall_choose[data-choose=' + dataid + ']').slideToggle(); $('.category_text').stop().animate({ scrollTop: $('.category_text').scrollTop() + $(this).position().top - $(this).find('label').outerHeight() }, 500); }); $("html").on('click', '.categoryall_showall', function (event) { var showall = $(this).data('show'); $('.searchresultcat').hide(); $('.allcategory').show(); $('.input_category').focus(); for (var i = 0; i < checkArrayCat.length; i++) { $('.category_text .allcategory').find('.select_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .allcategory').find('.selectall_cat[data-getid=' + checkArrayCat[i] + ']').prop('checked', true); $('.category_text .allcategory').find('.select_cat[data-parentId=' + checkArrayCat[i] + ']').prop('checked', true); } $('.allcategory parent_category_click[data-name=' + showall + ']').find('i').toggleClass('fa-angle-down'); $('.child_category:not([data-sub=' + showall + '])').hide(); $('.categoryall_choose:not([data-choose=' + showall + '])').hide(); $('.child_category[data-sub=' + showall + ']').show() $('.categoryall_choose[data-choose=' + showall + ']').show(); var target = $('.parent_category_click[data-name=' + showall + ']'); if (target.length) { event.preventDefault(); $('.category_text').stop().animate({ scrollTop: $('.category_text').scrollTop() + target.position().top - target.find('label').outerHeight() }, 500); } $('.categoryall_showall').hide(); }); function hightLight() { var text = $('.input_category').val(); text = text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); var re = new RegExp(text, 'gi'); $('.category_text label').children().each(function () { if (!text) { $(this).html($(this).text()); return; } $(this).html($(this).text().replace(re, function (match) { return '<span class="expo_highlight">' + match + '</span>'; })); }); } function placeholderCountryInput() { if (checkArrayCountry.length > 0 || checkArrayCity.length > 0) { $('.input_country').attr('placeholder', ''); inpulength(); } else { $('.input_country').attr('placeholder', country_or_city); inpulength(); } } function checkSearchInputValCountry() { if ($('#countryhidden').length > 0 && $('#countryhidden').val().length > 0) { checkArrayCountry = $(' #countryhidden').val().split(','); var valuecat; for (var i = 0; i < checkArrayCountry.length; i++) { $('.country_text').find('.selectall_country[data-getidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); $('.country_text').find('.select_city[data-parentidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); $('.countryall_choose[data-choose=' + checkArrayCountry[i] + ']').text('Clear all'); $('.searchresultcountry_text').find('.select_city[data-parentidcountry=' + checkArrayCountry[i] + ']').parent().hide(); $('.searchresultcountry_text').find('.selectall_country[data-getidcountry=' + checkArrayCountry[i] + ']').parent().hide(); $('.searchresultcountry_text').find('.countryall_showall[data-show=' + checkArrayCountry[i] + ']').hide(); } placeholderCountryInput() } } function checkSearchInputValCity() { if (window.location.href.indexOf("exhibitions/") > -1) { if ($('#cityhidden').length > 0 && $('#cityhidden').val().length > 0) { checkArrayCity = $('#cityhidden').val().split(','); for (var i = 0; i < checkArrayCity.length; i++) { $('.country_text').find('.select_city[data-getidcity=' + checkArrayCity[i] + ']').prop('checked', true); } placeholderCountryInput(); } } } var searchRequestCountry = null; $(".input_country").keyup(function () { if ($(this).val().length > 0) { $('.filtered_result').hide(); $('.countryall_showall').hide(); $('.countryall_choose').hide(); var value = $(this).val().toLowerCase(); $('.filter_result_jquery').each(function () { var str1 = $(this).text().toLowerCase(); if (str1.indexOf(value) != -1) { $(this).closest('.filtered_result').show(); $(this).closest('.country_wrapper').find('.parent_country').show() $(this).closest('.country_wrapper').find('.countryall_showall').show(); } }); hightLight(); } else { $('.child_country').hide(); $('.countryall_choose').hide(); $('.countryall_showall').hide(); $('.parent_country').show() $('.country_text .la-ball-beat').hide(); } }); $('body').on('click', '.select_city', function () { var getId = $(this).data('getidcity'); var parentId = $(this).data('parentidcountry'); var valueselect = $(this).parent().find('label').text(); if ($(this).is(':checked') && !$('.selectall_country[data-getidcountry=' + parentId + ']').is(':checked')) { $('.select_city[data-getidcity=' + getId + ']').prop('checked', true); var numbercheck = $('.select_city[data-parentidcountry=' + parentId + ']:checked').length; var numberitems = $('.select_city[data-parentidcountry=' + parentId + ']').length; if (numbercheck == numberitems) { valueselect = $('.allcountry .selectall_country[data-getidcountry=' + parentId + ']').parent().find('label').text(); $('.selectall_country[data-getidcountry=' + parentId + ']').prop('checked', true); $('.choosecountry ul').find("li[data-parentId=" + parentId + "]").remove(); $('.choosecountry ul li:last').before('<li class="chosen chosenchild" data-country="' + parentId + '">' + valueselect + '<button class="escapecountry_parent">&times;</button></li>'); $('.countryall_choose[data-choose=' + parentId + ']').text('Clear all'); checkArrayCountry.push(parentId); var deleteitem = []; for (var i = 0; i < checkArrayCity.length; i++) { if ($('.select_city[data-getidcity=' + checkArrayCity[i] + ']').data('parentid') == parentId) { deleteitem.push(checkArrayCity[i]); } } for (var j = 0; j < deleteitem.length; j++) { checkArrayCity = $.grep(checkArrayCity, function (value) { return value != deleteitem[j]; }) } } else { checkArrayCity.push(getId); $('.choosecountry ul li:last').before('<li class="chosen" data-parentId="' + parentId + '" data-city="' + getId + '">' + valueselect + '<span class="escapecountry">&times;</span></li>') } } else if (!$(this).is(':checked') && $('.selectall_country[data-getidcountry=' + parentId + ']').is(':checked')) { $('.select_city[data-getidcity=' + getId + ']').prop('checked', false); checkArrayCountry = $.grep(checkArrayCountry, function (value) { return value != parentId; }); $('.choosecountry ul').find("li[data-country=" + parentId + "]").remove(); $('.selectall_country[data-getidcountry=' + parentId + ']').prop('checked', false); $('.countryall_choose[data-choose=' + parentId + ']').text('Select all'); $('.allcountry .select_city[data-parentidcountry=' + parentId + ']:not(.allcountry .select_city[data-getidcity=' + getId + '])').each(function (index) { var addcatitem = $(this).parent().find('label').text(); var addcatiid = $(this).data('getidcity'); $('.choosecountry ul li:last').before('<li class="chosen" data-parentId="' + parentId + '" data-city="' + addcatiid + '">' + addcatitem + '<span class="escapecountry">&times;</span></li>'); checkArrayCity.push(addcatiid); }) } else { if ($(this).is(':checked')) { $('.select_city[data-getidcity=' + getId + ']').prop('checked', true); } else { $('.select_city[data-getidcity=' + getId + ']').prop('checked', false); } checkArrayCity = $.grep(checkArrayCity, function (value) { return value != getId; }); $('.choosecountry ul').find("li[data-city=" + getId + "]").remove(); } $('.input_country').val('') $('.input_country').focus(); placeholderCountryInput(); $('#countryhidden').val(checkArrayCountry); $('#cityhidden').val(checkArrayCity); countItemCountry() }); $('body').on('click', '.escapecountry', function (event) { var checkCat = $(this).parent().data('city'); $('.select_city[data-getidcity=' + checkCat + ']').prop('checked', false); $(this).parent().remove(); checkArrayCity = $.grep(checkArrayCity, function (value) { return value != checkCat; }); placeholderCountryInput(); countItemCountry(); $('#countryhidden').val(checkArrayCountry); $('#cityhidden').val(checkArrayCity); event.stopPropagation(); }); function countItemCountry() { return true; } $('body').on('click', '.selectall_country', function () { var parentId = $(this).data('getidcountry'); var valueselect = $(this).parent().find('label').text(); if ($(this).is(':checked')) { $('.choosecountry ul li:last').before('<li class="chosen chosenchild" data-country="' + parentId + '">' + valueselect + '<button class="escapecountry_parent">&times</button></li>'); $('.select_city[data-parentidcountry=' + parentId + ']').prop('checked', true); $('.searchresultcountry_text').find('.select_city[data-parentidcountry=' + parentId + ']').parent().hide(); $('.searchresultcountry_text').find('.selectall_country[data-getidcountry=' + parentId + ']').parent().hide(); $('.searchresultcountry_text').find('.countryall_showall[data-show=' + parentId + ']').hide(); $('.countryall_choose[data-choose=' + parentId + ']').text('Clear all'); checkArrayCountry.push(parentId); var deleteitemCt = []; for (var i = 0; i < checkArrayCity.length; i++) { if ($('.select_city[data-getidcity=' + checkArrayCity[i] + ']').data('parentidcountry') == parentId) { deleteitemCt.push(checkArrayCity[i]); } } for (var j = 0; j < deleteitemCt.length; j++) { checkArrayCity = $.grep(checkArrayCity, function (value) { return value != deleteitemCt[j]; }) } $('.choosecountry ul').find("li[data-parentId=" + parentId + "]").remove(); $('.input_country').val('') $('.input_country').focus() } else { $('.choosecountry ul').find("li[data-country=" + parentId + "]").remove(); $('.select_city[data-parentidcountry=' + parentId + ']').prop('checked', false); $('.searchresultcountry_text').find('.select_city[data-parentidcountry=' + parentId + ']').parent().show(); $('.searchresultcountry_text').find('.selectall_country[data-getidcountry=' + parentId + ']').parent().show(); $('.searchresultcountry_text').find('.countryall_showall[data-show=' + parentId + ']').show(); $('.countryall_choose[data-choose=' + parentId + ']').text('Select all'); checkArrayCountry = $.grep(checkArrayCountry, function (value) { return value != parentId; }); } placeholderCountryInput(); $('#countryhidden').val(checkArrayCountry); $('#cityhidden').val(checkArrayCity); countItemCountry() }); $('body').on('click', '.escapecountry_parent', function (event) { var checkCat = $(this).parent().data('country'); var checkCity = $(this).parent().data('city'); $('.selectall_country[data-getidcountry=' + checkCat + ']').prop('checked', false); $('.select_city[data-parentidcountry=' + checkCat + ']').prop('checked', false); $(this).parent().remove(); checkArrayCountry = $.grep(checkArrayCountry, function (value) { return value != checkCat; }); checkArrayCity = $.grep(checkArrayCity, function (value) { return value != checkCity; }); $('.countryall_choose[data-choose=' + checkCat + ']').text('Select all'); placeholderCountryInput(); countItemCountry(); $('#countryhidden').val(checkArrayCountry); $('#cityhidden').val(checkArrayCity); event.stopPropagation(); }); $('html').on('click', '.parent_country_click', function () { $('.input_country').focus(); var dataid = $(this).data('name'); $('.child_country:not([data-sub=' + dataid + '])').hide(); $('.countryall_choose:not([data-choose=' + dataid + '])').hide(); $('.child_country[data-sub=' + dataid + ']').slideToggle(); $('.countryall_choose[data-choose=' + dataid + ']').slideToggle(); $('.country_text').stop().animate({ scrollTop: $('.country_text').scrollTop() + $(this).position().top - $(this).find('label').outerHeight() }, 500); }); $('html').on('click', '.close_result_country i', function () { $('.country_text_wrap').removeClass('active_tooltip'); for (var i = 0; i < checkArrayCountry.length; i++) { $('.country_text .allcountry').find('.selectall_country[data-getidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); $('.country_text .allcountry').find('.select_city[data-parentidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); } for (var i = 0; i < checkArrayCity.length; i++) { $('.country_text .allcountry').find('.select_city[data-getidcity=' + checkArrayCity[i] + ']').prop('checked', true); } $('.input_country').val('') }); $("html").on('click', '.countryall_showall', function () { var showall = $(this).data('show'); $('.searchresultcountry').hide(); $('.allcountry').show(); $('.input_country').focus(); for (var i = 0; i < checkArrayCountry.length; i++) { $('.country_text .allcountry').find('.selectall_country[data-getidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); $('.country_text .allcountry').find('.select_city[data-parentidcountry=' + checkArrayCountry[i] + ']').prop('checked', true); } for (var i = 0; i < checkArrayCity.length; i++) { $('.country_text .allcountry').find('.select_city[data-getidcity=' + checkArrayCity[i] + ']').prop('checked', true); } $('.allcountry parent_country_click[data-name=' + showall + ']').find('i').toggleClass('fa-angle-down'); $('.child_country:not([data-sub=' + showall + '])').hide(); $('.countryall_choose:not([data-choose=' + showall + '])').hide(); $('.child_country[data-sub=' + showall + ']').show() $('.countryall_choose[data-choose=' + showall + ']').show(); var target = $('.parent_country_click[data-name=' + showall + ']'); if (target.length) { event.preventDefault(); $('.country_text').stop().animate({ scrollTop: $('.country_text').scrollTop() + target.position().top - target.find('label').outerHeight() }, 500); } }); function hightLightCountry() { var text = $('.input_country').val(); text = text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); var re = new RegExp(text, 'gi'); $('.country_text label').children().each(function () { if (!text) { $(this).html($(this).text()); return; } $(this).html($(this).text().replace(re, function (match) { return '<span class="expo_highlight">' + match + '</span>'; })); }); } function sendajaxproccess() { var url = $(location).attr('href'); var segments = url.split('/'); var categoryurl = 'all'; var countryurl = 'all'; var cityurl = 'all'; var datasend = 'a'; var datainterval = null; if ($('#categoryhidden').val().length > 0) { categoryurl = $('#categoryhidden').val(); } if ($('#countryhidden').val().length > 0) { countryurl = $('#countryhidden').val(); } if ($('#cityhidden').val().length > 0) { cityurl = $('#cityhidden').val(); } if ($('#datainterval').val().length > 0) { datainterval = $('#datainterval').val(); } var sendUrl = $(location).attr('protocol') + '//' + $(location).attr('hostname') + '/en/exhibitions/' + categoryurl + '/' + countryurl + '/' + cityurl; var aviasales_code_here = $('.aviasales_code_here').text(); window.history.pushState(sendUrl, sendUrl, sendUrl); ajaxExFilter(sendUrl, datasend, datainterval, aviasales_code_here, categoryurl, countryurl, cityurl); } function sendajaxproccessWithrange() { var categoryurl = 'all'; var countryurl = 'all'; var cityurl = 'all'; var datasend = null; var datainterval = null; if ($('#categoryhidden').val().length > 0) { categoryurl = $('#categoryhidden').val(); } if ($('#countryhidden').val().length > 0) { countryurl = $('#countryhidden').val(); } if ($('#cityhidden').val().length > 0) { cityurl = $('#cityhidden').val(); } if ($('#datainterval')) { datainterval = $('#datainterval').val(); } var aviasales_code_here = $('aviasales_code_here').text(); ajaxExFilter( datasend, aviasales_code_here, categoryurl, countryurl, cityurl, datainterval ); } $('.close_result_ajax i').on('click', function () { var url = $(location).attr('href'); var categoryurl = 'all'; var countryurl = 'all'; var cityurl = 'all'; if ($('#categoryhidden').val().length > 0) { categoryurl = $('#categoryhidden').val(); } if ($('#countryhidden').val().length > 0) { countryurl = $('#countryhidden').val(); } if ($('#cityhidden').val().length > 0) { cityurl = $('#cityhidden').val(); } var sendUrl = $(location).attr('protocol') + '//' + $(location).attr('hostname') + '/en/exhibitions/' + categoryurl + '/' + countryurl + '/' + cityurl; window.location.href = sendUrl }); $('#order span').on('click', function () { $(this).addClass('active_sort'); $('#order span').not(this).removeClass('active_sort'); sendajaxproccessWithrange(); }) $('#order .ordering i').on('click', function () { $(this).addClass('order'); $('#order .ordering i').not(this).removeClass('order'); sendajaxproccessWithrange(); }); function ajaxExFilter(datasend, aviasales_code_here, categoryurl, countryurl, cityurl, datainterval) { var order = $('#order .active_sort').data('sort'); var ordering = $('#order .order').data('orderby'); var rating = []; $("#search_filter_rating input:checkbox:checked").each(function () { rating.push($(this).val()); }); var excenter = []; $("#search_filter_excenter .filter_input_checkbox:checkbox:checked").each(function () { excenter.push($(this).val()); }); $.ajax({ url: lang_name_segment + '/get-result-item', method: 'post', dataType: 'json', data: { datasend: datasend, order: order, ordering: ordering, aviasales_code_here: aviasales_code_here, categoryurl: categoryurl, countryurl: countryurl, cityurl: cityurl, datainterval: datainterval, rating: rating, excenter: excenter, _token: token }, beforeSend: function () { if (isMobile.any()) { $('.la-ball-spin-clockwise').show(); $('.exhibition_sidebar').css({ 'opacity': '0.2', }) } else { //$('.la-ball-pulse-rise').show(); $('#clock_load').show(); } $('.ex_all_blocks').css({ 'opacity': '0.2', }) }, success: function (data) { if (isMobile.any()) { $('.la-ball-spin-clockwise').hide(); $('.exhibition_sidebar').css({ 'opacity': '1', }) } else { $('#clock_load').hide(); } $('.ex_all_blocks').css({ 'opacity': '1', }) if (data != '') { $('html, body').animate({scrollTop: 0}, 800); $('.ex_all_blocks').html(data.items); $('.btn-outline-green').tooltip({ delay: { show: 2000, hide: 0 } }); ratingExh(); $('.lazy').lazy(); } } }); } function not_found_ex(cityurl, countryurl, categoryurl, block_place, title = "You may also be interested in exhibitions:", search = 'false') { $.ajax({ url: lang_name_segment + '/ex-not-found', method: 'get', async: true, data: {categoryurl: categoryurl, countryurl: countryurl, cityurl: cityurl, title: title, search: search}, success: function (data) { $('.' + block_place).html(data); if (block_place == 'ex_all_blocks_no_found') { $('.ex_all_blocks_no_found_second').html(''); } else { $('.ex_all_blocks_no_found').html(''); } } }); } var cPosition = false; $('#exModal').on('show.bs.modal', function () { cPosition = $(window).scrollTop(); }) .on('shown.bs.modal', function () { $('#exModal').modal({ backdrop: 'static', keyboard: false }) }) .on('hide.bs.modal', function () { window.scrollTo(0, cPosition); }) var cPositionVisit = false; $('#exModalVisit').on('show.bs.modal', function () { cPositionVisit = $(window).scrollTop(); }) .on('shown.bs.modal', function () { $('#exModalVisit').modal({ backdrop: 'static', keyboard: false }) }) .on('hide.bs.modal', function () { window.scrollTo(0, cPositionVisit); }) $('.make-order').on('click', function (event) { var recipient = $(this).data('exname'); $(".bobo").text(recipient); var windowHeight = $(window).height() - 40; $(".make_order_modal").css({'height': windowHeight + "px"}); $(".make_order_modal").show(200); $('html, body').css({ overflow: 'hidden', height: '100%' }); }); $(document).on('click', '.modal-more-button a', function (e) { var jthis = $(this); e.preventDefault(); $(".modal-more-click").slideToggle('500', function () { if ($('.modal-more-click').is(':visible')) { $('.modal-more-button a').text('Close detailed request'); $('.hidden_request').attr('checked', true) } else { if (jthis.data('page') == 'landing') { $('html, body').animate({ scrollTop: $(".landing_form").offset().top - 200 }, 500); } $('.modal-more-button .desktop-hidden').text('Make a detailed request'); $('.modal-more-button .mobile-hidden').text('I want to make a detailed request '); $('.hidden_request').attr('checked', false); } }); }); $('#landing_extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $(document).on('toggle touchstart', '#extoggle', function (e, active) { if (active) { $('#standart').prop('checked', true); $('#equipped').val('1') } else { $('#himself').prop('checked', true); $('#equipped').val('0') } }); $('#landing_extoggle').on('toggle', function (e, active) { if (active) { $('#landing_standart').prop('checked', true); $('#landing_equipped').val('1') } else { $('#landing_himself').prop('checked', true); $('#landing_equipped').val('0') } }); $(document).on('change', '.exstand', function () { var hovertype = $(this).attr('id'); $('.hovertype[data-hover=' + hovertype + ']').addClass('active_stend'); $('.hovertype:not([data-hover=' + hovertype + '])').removeClass('active_stend'); if ($('.exstendtitles input[type=checkbox]:checked').length == 0) { $('.hovertype').removeClass('active_stend'); } if ($('.exstendtitles input[type=checkbox]:checked').length > 1) { $('.exstendtitles').find('input').prop('checked', false); $('.exstendtitles').find(this).prop('checked', true); } }) $(document).on('change', '.modal_exexclusivetitle', function () { if ($('.modal_exexclusivetitle input[type=radio]:checked').attr('id') == 'himself' || $('.modal_exexclusivetitle input[type=radio]:checked').attr('id') == 'exclusive') { $('#extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: false }); $('#equipped').val('0') } else { $('#extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $('#equipped').val('1') } }); $('.landing_exexclusivetitle').change(function () { if ($('.landing_exexclusivetitle input[type=radio]:checked').attr('id') == 'landing_himself' || $('.landing_exexclusivetitle input[type=radio]:checked').attr('id') == 'landing_exclusive') { $('#landing_extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: false }); $('#landing_equipped').val('0') } else { $('#landing_extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $('#landing_equipped').val('1') } }); function fisrtitems() { $('.exhibition_block:not(:lt(30))').remove(); $('.after_ajax_callback').remove(); $('#shomoreitems').data('offset_first', $('.offsetcount_first_general').text()); $('#shomoreitems').data('offset_second', $('.offsetcount_second_general').text()); $('#shomoreitems').find('.countnow').text(parseInt($('.offsetcount_first_general').text()) + parseInt($('.offsetcount_second_general').text())); $('#showmoresel_saved').data('offset_first', $('.offsetcount_first_general').text()); $('#showmoresel_saved').find('.countnow').text(parseInt($('.offsetcount_first_general').text())); } fisrtitems(); function ratingExh() { if (!isMobile.any()) { var localStorageObj = JSON.parse(localStorage.getItem('rating_exh')); $('.exhibition_rating').each(function (index) { var that = $(this); var readOnly = false; if (localStorageObj) { $.each(localStorageObj, function (key, value) { if (that.data('id') == key) { readOnly = true } }); } that.rateYo({ starWidth: "14px", rating: that.data('rating'), readOnly: readOnly }).on("rateyo.set", function (e, data) { $.ajax({ url: lang_name_segment + '/exhibition-rate/' + that.data('id'), method: 'get', data: {rating: data.rating}, success: function (response) { if (response == 'success') { that.rateYo("destroy"); that.rateYo({ starWidth: "14px", readOnly: true, rating: that.data('rating') }); if (localStorageObj) { localStorageObj[that.data('id')] = { rating: data.rating } } else { localStorageObj = {}; localStorageObj[that.data('id')] = { rating: data.rating }; } localStorage.setItem('rating_exh', JSON.stringify(localStorageObj)); } } }); }); }); } } ratingExh(); function ratingFilter() { var localStorageObj = JSON.parse(localStorage.getItem('rating_exh')); $('.filter_rating').each(function (index) { var that = $(this); that.rateYo({ starWidth: "14px", rating: that.data('rating'), readOnly: true }) }); } function ratingFilterHistory() { if (!isMobile.any()) { $('.filter_rating_history').each(function (index) { var that = $(this); that.rateYo({ starWidth: "11px", rating: that.data('rating'), readOnly: true }) }); } } ratingFilter(); var getDateIntervalValue = false; var exhibitionDaterangeSlider = false; function getDateInterval(data) { $.ajax({ url: lang_name_segment + '/get-date-interval', method: 'get', data: data, success: function (data) { getDateIntervalValue = data; if (data.interval.length > 1) { $('#period_filter').show(); var exhibitionDaterangeSliderData = $("#exhibition_daterange") exhibitionDaterangeSliderData.ionRangeSlider({ type: "double", values: data.interval, grid: true, from: data.from, to: data.to, onFinish: function (d) { var fromHtml = $.parseHTML('<output>' + d.from_value + '</output>'); var toHtml = $.parseHTML('<output>' + d.to_value + '</output>'); var from_month = $('.month_get', fromHtml).text(); var to_month = $('.month_get', toHtml).text(); var from_year = '20' + $('.yearinterval', fromHtml).text(); var to_year = '20' + $('.yearinterval', toHtml).text(); var get_from_month = parseInt(getKeyByValue(data.months, from_month)) + 1; get_from_month = ("0" + get_from_month).slice(-2) var get_to_month = parseInt(getKeyByValue(data.months, to_month)) + 1; get_to_month = ("0" + get_to_month).slice(-2) $('#datainterval').val(from_year + '-' + get_from_month + ',' + to_year + '-' + get_to_month); filterInputCheckbox(); getDateIntervalValue.from = d.from; getDateIntervalValue.to = d.to; }, }); exhibitionDaterangeSlider = exhibitionDaterangeSliderData.data("ionRangeSlider"); } else { $('#period_filter').hide(); } } }); } function dateRangeIntervalHistory(data) { $("#dataintervalhistory").ionRangeSlider({ type: "double", values: data.interval, grid: true, from: data.from, to: data.to, onFinish: function (d) { var fromHtml = $.parseHTML('<output>' + d.from_value + '</output>'); var toHtml = $.parseHTML('<output>' + d.to_value + '</output>'); var from_month = $('.month_get', fromHtml).text(); var to_month = $('.month_get', toHtml).text(); var from_year = '20' + $('.yearinterval', fromHtml).text(); var to_year = '20' + $('.yearinterval', toHtml).text(); var get_from_month = parseInt(getKeyByValue(data.months, from_month)) + 1; get_from_month = ("0" + get_from_month).slice(-2) var get_to_month = parseInt(getKeyByValue(data.months, to_month)) + 1; get_to_month = ("0" + get_to_month).slice(-2) $('#dataintervalhistory').val(from_year + '-' + get_from_month + ',' + to_year + '-' + get_to_month); $('#datainterval').val(from_year + '-' + get_from_month + ',' + to_year + '-' + get_to_month); exhibitionDaterangeSlider.update({ from: d.from, to: d.to }); getDateIntervalValue.from = d.from; getDateIntervalValue.to = d.to; filterInputCheckbox(); }, }); } function getKeyByValue(object, value) { return Object.keys(object).find(key => object[key] === value); } var ajaxLoad = true; var reset = false; var resetSkip = false; $(document).on('scroll', function () { if ($('#loader_scroll').length && ($(this).scrollTop() + 2000) >= $('#loader_scroll').position().top) { if (ajaxLoad) { var countblock = $('.exhibition_count span').text(); var countnow = $('#shomoreitems .countnow').text(); if (parseInt(countblock) > parseInt(countnow)) { ajaxLoad = false showMoreItem($('#shomoreitems')); } } } }) function showMoreItem(that) { var category = 'all'; var country = 'all'; var city = 'all'; var order = $('#order .active_sort').data('sort'); var ordering = $('#order .order').data('orderby'); if ($('#categoryhidden').val().length > 0) { category = $('#categoryhidden').val(); } if ($('#countryhidden').val().length > 0) { country = $('#countryhidden').val(); } if ($('#cityhidden').val().length > 0) { city = $('#cityhidden').val(); } var take = that.data('take'); var skip = that.data('skip'); var rating = []; $("#search_filter_rating input:checkbox:checked").each(function () { rating.push($(this).val()); }); var excenter = []; $("#search_filter_excenter .filter_input_checkbox:checkbox:checked").each(function () { excenter.push($(this).val()); }); $.ajax({ url: lang_name_segment + '/show-more-exhibitions', method: 'get', dataType: 'json', data: { category: category, country: country, city: city, take: take, skip: skip, order: order, ordering: ordering, rating: rating, excenter: excenter, reset: reset }, beforeSend: function () { $('.loading').slideDown() }, success: function (data) { $('.loading').hide(); if (data != '') { $('.ex_all_blocks').append(data.data); that.find('.countnow').text(data.count + parseInt(that.find('.countnow').text())) if(data.reset && !resetSkip){ that.data('skip', $('.second_res').length); reset = true; resetSkip = true; }else{ that.data('skip', skip + data.count); } ajaxLoad = true; if (that.find('.countnow').text() == that.find('.allitems_block_count').text()) { ajaxLoad = false; $('#allitems').show(); $('#shomoreitems').hide(); $('.countmaxten').show(); } $('.btn-outline-green').tooltip(); $('.lazy').lazy(); ratingExh(); alarmInit() } } }); } $('#shomoreitems').on('click', function () { showMoreItem($(this)) }); $('#showmoresel_saved').on('click', function () { var that = $(this); var offsetcount_first = parseInt(that.data('offset_first')); var loopcount = that.data('loop'); $.ajax({ url: lang_name_segment + '/show-more-exhibitions-saved', method: 'get', data: {loopcount: loopcount, offsetcount_first: offsetcount_first}, beforeSend: function () { $('.loading').slideDown() }, success: function (data) { $('.loading').hide(); if (data != '') { $('.ex_all_blocks').append(data.data); that.find('.countnow').text(parseInt(data.offsetcount_first) + parseInt(that.find('.countnow').text())) that.data('offset_first', offsetcount_first + parseInt(data.offsetcount_first)) if (that.find('.countnow').text() == that.find('.allitems_block_count').text()) { that.hide(); $('#allitems').show(); } $('.lazy').lazy(); $('.btn-outline-green').tooltip({}); } else { } } }); }); $('#allitems').on('click', function () { $('html, body').animate({scrollTop: 0}, 800); }); function findcount() { var countblock = $('.exhibition_count span').text(); $('.allitems_block_count').text(countblock); $('.allitems .countnow').text(countblock) $('#totopsearch .countnow').text(countblock) $('#shomoreitems .countnow').text('30') if (countblock > 30) { $('.countmaxten').hide(); $('.countzero').hide(); $('.countmaxzero').hide(); $('#period').show(); } else if (countblock > 0) { $('.countmaxten').hide(); $('.countzero').hide(); $('.countmaxzero').show(); $('#period').show(); } else { $('.countmaxten').hide(); $('.countzero').show(); $('.countmaxzero').hide(); $('#period').hide(); } } $('#reset_login_href').click(function (e) { e.preventDefault(); $('#login_form').slideUp(); $('#login_rest_form').slideDown(); }) $('#excenter_location').on('shown.bs.modal', function (event) { var button = $(event.relatedTarget) var exid = button.data('exid') var excenterid = button.data('excenterid') var address = button.data('address') var image = button.data('image') $.ajax({ url: lang_name_segment + '/location_map', method: 'get', data: {exid: exid, excenterid: excenterid}, dataType: 'json', success: function (data) { $('#excenter_location').find('.ex_address').html('<i class="fa fa-map-marker" aria-hidden="true"></i> ' + data.address + address + ' <img src="/template/img/falgs_circle/' + image + '" style="margin-top: -2px;">'); $('#excenter_location').find('.modal-body .first_map').html(data.location_map); $('#excenter_location').find('#excenter_name').html(data.location_name); $('#excenter_location').find('.modal-body .second_map').html(data.same_location_data); } }); }) function cursorFocus(elem) { var x = window.scrollX, y = window.scrollY; if (elem.length) { elem.focus(); window.scrollTo(x, y); } } cursorFocus($('#landing_organization_name')); $(document).ready(function () { $('.exhibition_others_icons').addClass("hidden").viewportChecker({ offset: 100, classToAdd: 'visible animated fadeIn', callbackFunction: function (elem) { elem.find('.exhibition_counter').each(function () { $(this).prop('Counter', 0).animate({ Counter: $(this).text() }, { duration: 2000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); } }); }); $(".additional_service").click(function () { if ($(this).parent().find('input').is(':checked')) { $(this).removeClass('active_serive'); $(this).parent().find('.additional_service').removeClass('active_serive') } else { $(this).addClass('active_serive'); $(this).parent().find('.additional_service').addClass('active_serive') } }); setInterval(transform_text, 5000); function transform_text() { $('.transform_text_second').toggleClass("add_transform"); $('.transform_text_fisrt').toggleClass("add_opactity_transform"); if ($('.transform_text_fisrt').hasClass("add_opactity_transform")) { $('.transform_text_second').addClass("hovered_alarm"); $('.transform_text_fisrt').removeClass("hovered_alarm"); } else { $('.transform_text_second').removeClass("hovered_alarm"); $('.transform_text_fisrt').addClass("hovered_alarm"); } } $(document).on('mouseenter', '.hovered_alarm', function () { $(this).parents('.exhibition_block').find('.exhibition_alarm') .addClass('width_div') }).on('mouseleave', '.hovered_alarm', function () { $(this).parents('.exhibition_block').find('.exhibition_alarm') .removeClass('width_div') }); $(document).on('click', '.transform_text-mobile', function () { $(this).parents('.exhibition_block').find('.exhibition_alarm_parent').slideToggle(500) }); $(document).on('click', '.alarm_close', function () { $(this).parents('.exhibition_block').find('.exhibition_alarm_parent').slideToggle(500) }); if (docWidth < 780) { $(".useraccount").removeClass('header_popup_button'); $(".useraccount div.popok").removeClass('hero_popup_top'); } else { $(".useraccount").addClass('header_popup_button'); $(".useraccount div.popok").addClass('hero_popup_top'); } $(window).resize(function () { docWidth = $(document).width(); if (docWidth < 780) { $(".useraccount").removeClass('header_popup_button'); $(".useraccount div.popok").removeClass('hero_popup_top'); } else { $(".useraccount").addClass('header_popup_button'); $(".useraccount div.popok").addClass('hero_popup_top'); } }); function copyFunc() { var copyText = document.querySelector(".copyInput"); copyText.select(); document.execCommand("Copy"); $('#myTooltip').text('Код баннера скопирован в буфер обмена!') } // $('#myTab a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // var target = $(e.target).attr("href"); // if ((target == '#hotel')) { // $('.ex_address_land').hide(); // } else { // $('.ex_address_land').show(); // } // }); $(document).on('click', '#general_search_filter', function (e) { e.preventDefault(); var url = $(location).attr('href'); var segments = url.split('/'); var categoryurl = 'all'; var countryurl = 'all'; var cityurl = 'all'; if ($('#categoryhidden').val().length > 0) { categoryurl = $('#categoryhidden').val(); } if ($('#countryhidden').val().length > 0) { countryurl = $('#countryhidden').val(); } if ($('#cityhidden').val().length > 0) { cityurl = $('#cityhidden').val(); } var sendUrl = $(location).attr('protocol') + '//' + $(location).attr('hostname') + '/en/exhibitions/' + categoryurl + '/' + countryurl + '/' + cityurl; window.history.pushState(sendUrl, sendUrl, sendUrl); window.location.href = sendUrl }) $(document).on('click', ".exhibition_saved-ontouch .fa-star-o", function (e) { $(this).closest('.exhibition_saved_any').css({'width': '300px', 'background-color': '#FFF !important'}); $(this).css({'color': '#00b0dd !important'}); $(this).addClass('do-that-too'); $(this).closest('.exhibition_saved_any').find('button').css({'color': '#00b0dd !important'}); $(this).closest('.mobile_saved_ex').addClass('mobile_saved_ex_active'); }); $(document).on('click', ".exhibition_saved-ontouch .fa-angle-double-right", function (e) { $(this).closest('.exhibition_saved_any').css({'width': '41px', 'background': '#00b0dd'}); $(this).closest('.exhibition_saved_any').find('button').css({'color': '#fff !important'}); $(this).closest('.mobile_saved_ex').removeClass('mobile_saved_ex_active'); }); $("body").click(function (e) { $(".exhibition_saved-ontouch").css({'width': '41px', 'background': '#00b0dd'}); $(".exhibition_saved-ontouch button").css({'color': '#fff !important'}); }); if (isMobile.any()) { $(document).on('click', '.mobile_saved_ex_active', function (e) { var that = $(this).parents('.exhibition_saved-ontouch'); var exhibtion_id = that.data('exhid'); console.log(that.hasClass('added_to_save')); if (!that.hasClass('added_to_save') && !that.hasClass('exhibition_saved_remove')) { if (!that.hasClass('open_login_footer')) { $.ajax({ url: lang_name_segment + '/saved-exhbition/' + exhibtion_id, method: 'get', data: {}, dataType: 'json', success: function (data) { if (data.success == 'ok') { that.addClass('added_to_save'); that.find('.saved_text_first').hide(); that.find('.saved_text_second').show(); if (parseInt($('.note_fa-star-o>span').text()) == 0) { $('.note_fa-star-o').fadeIn(); } $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) + 1); $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').prop('checked', true); } } }); } } else if (that.hasClass('added_to_save')) { $.ajax({ url: lang_name_segment + '/remove-saved-exhbition/' + exhibtion_id, method: 'get', data: {}, dataType: 'json', success: function (data) { if (data.success == 'ok') { that.closest('.exhibition_block').fadeOut("slow"); if (parseInt($('.note_fa-star-o>span').text()) > 0) { $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) - 1) $('.note_fa-star-o_span').text(parseInt($('.note_fa-star-o_span').text()) - 1) $('#showmoresel_saved .allitems_block_count').text(parseInt($('#showmoresel_saved .allitems_block_count').text()) - 1) $('#allitems .allitems_block_count').text(parseInt($('#allitems .allitems_block_count').text()) - 1) $('#allitems .countnow').text(parseInt($('#allitems .countnow').text()) - 1) $('#totopsearch .allitems_block_count').text(parseInt($('#totopsearch .allitems_block_count').text()) - 1) $('#totopsearch .countnow').text(parseInt($('#totopsearch .countnow').text()) - 1) } if (parseInt($('.note_fa-star-o>span').text()) == 0) { $('.note_fa-star-o').fadeOut(); $('#nothing_show_ex').show(); $('#all_show_ex').hide(); $('.countmaxzero').hide(); $('.countmaxten').hide(); } if (parseInt($('.note_fa-star-o>span').text()) <= 20) { $('#showmoresel_saved').hide(); $('#allitems').show(); } $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').prop('checked', false); } } }); } }) } else { $(document).on('click', '.exhibition_saved', function (e) { var that = $(this); var exhibtion_id = that.data('exhid'); if (!that.hasClass('added_to_save')) { if (!that.hasClass('open_login_footer')) { $.ajax({ url: '/en/saved-exhbition/' + exhibtion_id, method: 'get', data: {}, dataType: 'json', success: function (data) { if (data.success == 'ok') { that.addClass('added_to_save'); that.find('.saved_text_first').hide(); that.find('.saved_text_second').show(); if (parseInt($('.note_fa-star-o>span').text()) == 0) { $('.note_fa-star-o').fadeIn(); } $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) + 1); $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').prop('checked', true); $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').parent().attr('data-original-title', remove_ex_saved); } } }); } } else { if (that.hasClass('exhibition_saved_remove')) { remove_ex_item(exhibtion_id, that) } } }) } $(document).on('click', '.mobile_remove_exhib', function () { var that = $(this); var exhibtion_id = that.data('exhid'); remove_ex_item(exhibtion_id, that) }); function remove_ex_item(exhibtion_id, that) { $.ajax({ url: '/en/remove-saved-exhbition/' + exhibtion_id, method: 'get', data: {}, dataType: 'json', success: function (data) { if (data.success == 'ok') { that.closest('.exhibition_block ').fadeOut("slow"); if (parseInt($('.note_fa-star-o>span').text()) > 0) { $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) - 1) $('.note_fa-star-o_span').text(parseInt($('.note_fa-star-o_span').text()) - 1) $('#showmoresel_saved .allitems_block_count').text(parseInt($('#showmoresel_saved .allitems_block_count').text()) - 1) $('#allitems .allitems_block_count').text(parseInt($('#allitems .allitems_block_count').text()) - 1) $('#allitems .countnow').text(parseInt($('#allitems .countnow').text()) - 1) $('#totopsearch .allitems_block_count').text(parseInt($('#totopsearch .allitems_block_count').text()) - 1) $('#totopsearch .countnow').text(parseInt($('#totopsearch .countnow').text()) - 1) } if (parseInt($('.note_fa-star-o>span').text()) == 0) { $('.note_fa-star-o').fadeOut(); $('#nothing_show_ex').show(); $('#all_show_ex').hide(); $('.countmaxzero').hide(); $('.countmaxten').hide(); } if (parseInt($('.note_fa-star-o>span').text()) <= 20) { $('#showmoresel_saved').hide(); $('#allitems').show(); } $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').prop('checked', false); $('.recentlyViewedExhibitionItem').find('.fav_block_star .label__checkbox[data-exid="' + exhibtion_id + '"]').parent().attr('data-original-title', add_ex_saved); } } }); } !function (t, e) { "use strict"; var a = function (t) { this.elem = t }; a.prototype = { getValue: function (t) { var e = this.elem.getAttribute(t); return void 0 === e || null === e ? "" : e }, share: function () { var t = this.elem.getAttribute("data-sharer"); switch (t) { case "facebook": var e = "http://www.facebook.com/sharer/sharer.php", a = { u: this.getValue("data-url") }; this.urlSharer(e, a); break; case "googleplus": var e = "https://plus.google.com/share", a = { url: this.getValue("data-url") }; this.urlSharer(e, a); break; case "linkedin": var e = "https://www.linkedin.com/shareArticle", a = { url: this.getValue("data-url"), mini: !0 }; this.urlSharer(e, a); break; case "twitter": var e = "https://twitter.com/intent/tweet/", a = { text: this.getValue("data-title"), url: this.getValue("data-url") }; this.urlSharer(e, a); break; case "email": this.email(); break; case "whatsapp": var e = "whatsapp://send", r = this.getValue("data-title"), a = { text: r + " " + this.getValue("data-url") }; this.urlSharer(e, a, !0); break; case "wechat": var e = "wechat://send", r = this.getValue("data-title"), a = { text: r + " " + this.getValue("data-url") }; this.urlSharer(e, a, !0); break; case "telegram": var e = "https://telegram.me/share/url", a = { url: this.getValue("data-url"), text: this.getValue("data-title") }; this.urlSharer(e, a); break; case "viber": var e = "viber://forward", r = this.getValue("data-title"), a = { text: r + " " + this.getValue("data-url") }; this.urlSharer(e, a, !0); break; case "pinterest": var e = "https://www.pinterest.com/pin/create/button/", a = { url: this.getValue("data-url") }; this.urlSharer(e, a); break; case "vkontakte": var e = "https://vk.com/share.php", a = { url: this.getValue("data-url") }; this.urlSharer(e, a); break; case "ok": var e = "https://connect.ok.ru/offer", a = { url: this.getValue("data-url") }; this.urlSharer(e, a); break; case "tumblr": var e = "http://tumblr.com/widgets/share/tool", a = { canonicalUrl: this.getValue("data-url"), content: this.getValue("data-url"), posttype: "link", title: this.getValue("data-title"), caption: this.getValue("data-caption"), tags: this.getValue("data-tags") }; this.urlSharer(e, a) } }, urlSharer: function (e, a, r) { var l, a = "object" == typeof a ? a : {}, i = Object.keys(a), s = "?"; for (l = 0; l < i.length; l++) "?" !== s && (s += "&"), s += i[l] + "=" + encodeURIComponent(a[i[l]]); e += s, r ? t.location.href = e : t.open(e, "", "height=400,width=400,scrollbars=no") }, email: function () { var e = this.getValue("data-to"), a = this.getValue("data-subject"), r = a + "\n" + this.getValue("data-title") + "\n" + this.getValue("data-url"), l = e + "?subject=" + encodeURIComponent(a) + "&body=" + encodeURIComponent(r); t.location.href = "mailto:" + l } }, t.addEventListener("load", function () { var t, r = e.querySelectorAll(".sharer"), l = r.length; for (t = 0; l > t; t++) r[t].addEventListener("click", function () { console.log($(this)) /* var t = new a(this); t.share()*/ }, !1) }) $(document).on('click', ".sharer", function () { var t = new a(this); t.share() }) }(window, document); function rudr_favorite(a) { pageTitle = document.title; pageURL = document.location; try { eval("window.external.AddFa-vorite(pageURL, pageTitle)".replace(/-/g, '')); } catch (e) { try { window.sidebar.addPanel(pageTitle, pageURL, ""); } catch (e) { if (typeof (opera) == "object") { a.rel = "sidebar"; a.title = pageTitle; a.url = pageURL; return true; } else { alert('Добавления страницы в закладки. Нажмите комбинацию ' + (navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D на клавиатуре.'); } } } return false; } var count_tooltip = false; $(window).scroll(function () { if ($(window).scrollTop() >= '300') { count_tooltip = true; $('#alert_tooltip_fav').fadeIn(800); $('#close_alert_tooltip_fav').fadeIn(800); } else { $('#alert_tooltip_fav').fadeOut(800); $('#close_alert_tooltip_fav').fadeOut(800); } }); function hide_tooltip(this_click) { $('#alert_tooltip_fav').fadeOut(300, function () { $('#alert_tooltip_fav').remove(); }); this_click.fadeOut(300, function () { this_click.remove(); }); } $(document).on('click', '#close_alert_tooltip_fav', function () { var this_click = $(this); hide_tooltip(this_click) }); $(document).on('click', '#close_alert_tooltip_fav', function () { var this_click = $(this); hide_tooltip(this_click) }); $('#more_social_icons').on('shown.bs.modal', function (event) { var button = $(event.relatedTarget); var shareurl = button.data('shareurl'); var sharetitle = button.data('titles'); $('.share_title_modal').find('span').html(sharetitle) $('#more_social_icons').find('.sharer').each(function () { $(this).attr('data-url', shareurl); $(this).attr('data-title', sharetitle); }); }); $(document).on('click', '.exhibition_block .fa-share', function () { if (!$(event.target).closest('.sharer').length) { var that = $(this); var shareurl = that.data('shareurl'); var sharetitle = that.data('titles'); $('.share_title_modal').find('span').text(sharetitle) $('#more_social_icons').modal('show'); $('#more_social_icons').find('.sharer').each(function () { $(this).attr('data-url', shareurl); $(this).attr('data-title', sharetitle); }); } }); $(document).on('click', '.fa-thumbs-up', function () { var that = $(this); var shareurl = that.data('shareurl'); var sharetitle = that.data('titles'); $('.share_title_modal').find('span').text(sharetitle); $('#more_social_icons').find('.sharer').each(function () { $(this).attr('data-url', shareurl); $(this).attr('data-title', sharetitle); }); }); function count_tooltip_reg_func() { setTimeout(function () { var this_click = $('.note_for_reg'); show_tooltip_reg(this_click); }, 6000); } function show_tooltip_reg(this_click) { this_click.fadeIn(900); }; count_tooltip_reg_func(); $(document).on('click', '.note_for_reg_span', function () { $('.note_for_reg').fadeOut(900); $.ajax({ url: lang_name_segment + '/out-tooltip', method: 'get', success: function (data) { } }); }); function count_tooltip_signin_func() { setTimeout(function () { var this_click = $('.login_welocme_text'); show_tooltip_signin(this_click); }, 2000); } function show_tooltip_signin(this_click) { this_click.fadeIn(900); }; count_tooltip_signin_func(); $(document).on('click', '.login_welocme_text_i', function () { $('.login_welocme_text').fadeOut(900); }); $(document).on('click', '.more_viewed', function (e) { e.preventDefault(); $('.recentlyViewedExhibitionItem').removeClass('hide_viewed'); $(this).hide(); $('.less_viewed').show(); height_resize() }); $(document).on('click', '.less_viewed', function (e) { e.preventDefault(); $(".recentlyViewedExhibitionItem:gt(1)").addClass("hide_viewed"); $(this).hide(); $('.more_viewed').show(); height_resize() }); $(document).on('click', '#all_add_fav', function (e) { if (!$(this).hasClass('open_login_footer')) { e.preventDefault(); $(".recentlyViewedExhibitionItem").find(".alarm_block_bell").hide(); $(".recentlyViewedExhibitionItem").find(".shares_block_share").hide(); $(".recentlyViewedExhibitionItem").find(".fav_block_star").show(); $(this).css("visibility", "hidden") $('#all_alrams_bell').css("visibility", "visible") $('#all_shares_share').css("visibility", "visible") $('#close_viewed_block').show().css('right', '0px'); $('.alarm_block_reminder').slideUp(); $('.share_block_sharer').slideUp(); $(".recentlyViewedExhibitionItem .alarm_block_bell .label__checkbox").prop('checked', false); $(".recentlyViewedExhibitionItem .shares_block_share .label__checkbox").prop('checked', false); $('.more_viewed').click() } }); $(document).on('click', '#close_viewed_block', function (e) { if (!$(this).hasClass('open_login_footer')) { e.preventDefault(); $(".recentlyViewedExhibitionItem").find(".fav_block_star").hide(); $(".recentlyViewedExhibitionItem").find(".alarm_block_bell").hide(); $(".recentlyViewedExhibitionItem").find(".shares_block_share").hide(); $('#all_add_fav').css("visibility", "visible") $('#all_alrams_bell').css("visibility", "visible") $('#all_shares_share').css("visibility", "visible") $(this).hide() $('.alarm_block_reminder').slideUp(); $('.share_block_sharer').slideUp(); $(".recentlyViewedExhibitionItem .alarm_block_bell .label__checkbox").prop('checked', false); $(".recentlyViewedExhibitionItem .shares_block_share .label__checkbox").prop('checked', false); $('.less_viewed').click(); } }); $(document).on('click', '.recentlyViewedExhibitionItem .fav_block_star .label__checkbox', function (e) { var that_check = $(this); var isChecked = that_check.is(':checked'); var ex_id = that_check.data('exid'); that_check.parent().tooltip('hide') $.ajax({ url: lang_name_segment + '/sidebar-ex-saved', method: 'get', data: {ex_id: ex_id, isChecked: isChecked}, success: function (data) { if (isChecked) { that_check.parent().attr('data-original-title', $('.remove_exhibition_from_favorites_hide[data-exid="' + ex_id + '"]').html()); $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) + 1) $('#added_fav_note_' + ex_id).fadeIn('normal').delay(2000).fadeOut('normal'); if ($('.exhibition_saved').data('exhid') == ex_id) { $('.saved_text_first').hide() $('.saved_text_second').show(); $('.exhibition_saved').addClass('added_to_save') } } else { that_check.parent().attr('data-original-title', $('.add_exhibition_to_your_favorites_hide[data-exid="' + ex_id + '"]').html()); $('.note_fa-star-o>span').text(parseInt($('.note_fa-star-o>span').text()) - 1) $('#remove_fav_note_' + ex_id).fadeIn('normal').delay(2000).fadeOut('normal'); if ($('.exhibition_saved').data('exhid') == ex_id) { $('.saved_text_first').show() $('.saved_text_second').hide(); $('.exhibition_saved').removeClass('added_to_save') } } } }); }) $(document).on('click', '#all_alrams_bell', function (e) { e.preventDefault(); $(".recentlyViewedExhibitionItem").find(".fav_block_star").hide(); $(".recentlyViewedExhibitionItem").find(".shares_block_share").hide(); $(".recentlyViewedExhibitionItem").find(".alarm_block_bell").show(); $('.share_block_sharer').slideUp(); $(".recentlyViewedExhibitionItem .shares_block_share .label__checkbox").prop('checked', false); $(this).css("visibility", "hidden") $('#all_add_fav').css("visibility", "visible") $('#all_shares_share').css("visibility", "visible") $('#close_viewed_block').show().css('right', '19px'); $('.more_viewed').click(); }); $(document).on('click', '.recentlyViewedExhibitionItem .alarm_block_bell .label__checkbox', function (e) { var that_check = $(this); var isChecked = that_check.is(':checked'); var ex_id = that_check.data('exid'); $('.alarm_block_reminder').slideUp(); $(".recentlyViewedExhibitionItem .alarm_block_bell .label__checkbox").not(this).prop('checked', false); if (isChecked) { that_check.parent().tooltip('hide') that_check.parent().tooltip('disable') $('#alarm_block_reminder_' + ex_id).slideDown(); } else { that_check.parent().tooltip('enable') that_check.parent().tooltip('show') } }); $(document).on('click', '#all_shares_share', function (e) { e.preventDefault(); $(".recentlyViewedExhibitionItem").find(".fav_block_star").hide(); $(".recentlyViewedExhibitionItem").find(".alarm_block_bell").hide(); $(".recentlyViewedExhibitionItem").find(".shares_block_share").show(); $('.alarm_block_reminder').slideUp(); $(this).css("visibility", "hidden") $('#all_alrams_bell').css("visibility", "visible") $('#all_add_fav').css("visibility", "visible") $(".recentlyViewedExhibitionItem .alarm_block_bell .label__checkbox").prop('checked', false); $('#close_viewed_block').show().css('right', '39px'); $('.more_viewed').click(); }); $(document).on('click', '.recentlyViewedExhibitionItem .shares_block_share .label__checkbox', function (e) { var that_check = $(this); var isChecked = that_check.is(':checked'); var ex_id = that_check.data('exid'); $('.share_block_sharer').slideUp(); $(".recentlyViewedExhibitionItem .shares_block_share .label__checkbox").not(this).prop('checked', false); if (isChecked) { that_check.parent().tooltip('hide') that_check.parent().tooltip('disable') $('#share_block_sharer_' + ex_id).slideDown(); } else { that_check.parent().tooltip('enable') that_check.parent().tooltip('show') } }); function height_resize() { var height_resize = parseInt($('#height_block_px').innerHeight()) - 140 $('.landing_exhibition_other .can_interesting_second.scrollstyle').css({ 'max-height': height_resize + 'px' }) } height_resize(); function selectmonth() { var selected_city = $('.selected-city-month').text(); $('#month_block_city > span').text(selected_city); } $(document).on('click', '#month_block_city', function () { $('#list_month_block_city').toggle(); }); $(document).on('click', '#list_month_block_city ul li a', function (e) { e.preventDefault(); $('#month_block_city > span').text($(this).text()); change_calendar($(this).data('id')) }); $('body').on('click', function (e) { if ($(e.target).hasClass('bs-searchbox')) { return } else { if ($('#list_month_block_city').is(":visible")) { $('#list_month_block_city').hide(); } } }) $(document).on('keyup', '#list_month_block_city input', function (e) { var value = $(this).val().toLowerCase(); $('#list_month_block_city div').hide(); $("#list_month_block_city ul li a").filter(function () { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) if ($("#list_month_block_city ul li a:visible").length == 0) { $('#list_month_block_city div').show(); } }); }); $(document).on('click', function (e) { if (!$(e.target).hasClass('current_language_img') && !$(e.target).closest('.language_hero_popup').length != false) { if ($('.language_hero_popup').hasClass('language_hero_popup_active')) { $('.language_hero_popup').removeClass('language_hero_popup_active'); } } }); $('.current_language').hover(function (e) { if (!$(e.target).closest('.language_hero_popup').length != false) { if (!$('.language_hero_popup').hasClass('language_hero_popup_active')) { $('.language_hero_popup').addClass('language_hero_popup_active') var position = $('.current_language_item').position(); $('.current_lang_text .datepicker--pointer').css({ 'top': position.top + 'px' }); } } }); $(document).on('click', '.language_hero_popup_child_close', function (e) { e.preventDefault(); $('.language_hero_popup').removeClass('language_hero_popup_active') }); if (localStorage.getItem("cookie_modal") == null) { localStorage.setItem("cookie_modal", 1); $('.cookie_policy_modal').show(); } $(document).on('click', '.close_cookies', function (e) { e.preventDefault(); $('.cookie_policy_modal').css({ 'transform': 'translateY(100%)' }); }) $('#accordionContacts').on('shown.bs.collapse', function (e) { $(e.target).parent().find('.fa-angle-double-down').hide(); $(e.target).parent().find('.fa-angle-double-up').show(); }) $('#accordionContacts').on('hidden.bs.collapse', function (e) { $(e.target).parent().find('.fa-angle-double-down').show(); $(e.target).parent().find('.fa-angle-double-up').hide(); }) var $accordionCityClass = $('.accordionCityClass'); $accordionCityClass.on('show.bs.collapse', '.collapse', function () { }); $('.accordionCityClass .card-header button').on('click', function (e) { if ($(this).parents('.accordionCityClass').find('.card').length == 1) e.stopPropagation(); }); $accordionCityClass.on('hidden.bs.collapse', '.collapse', function () { }); $('#accordionContacts').on('shown.bs.collapse', '.collapse', function () { var $panel = $(this); $('html,body').animate({ scrollTop: $panel.offset().top - 94 }, 500); }); $(document).on('submit', '.contact_form_action', function (e) { e.preventDefault(); var that = $(this); var organization_name = $(this).find('.organization_name').val(); var customer_name = $(this).find('.customer_name').val(); var phone = $(this).find('.phone').val(); var __phone_prefix = $(this).find('.__phone_prefix').val(); var email = $(this).find('.email').val(); var comment = $(this).find('.comment').val(); var email_to = $(this).parents('.card-body').find('.collapse.show').data('email'); $.ajax({ url: lang_name_segment + '/contact-message', method: 'post', data: { organization_name: organization_name, customer_name: customer_name, phone: phone, __phone_prefix: __phone_prefix, email: email, comment: comment, email_to: email_to, _token: token }, beforeSend: function () { that.find('.btn-outline-blue').hide(); that.find('.fa-spin').show(); }, success: function (data) { that.find('.fa-spin').hide(); that.find('.fa-check-square').fadeIn('normal', function () { $(this).delay(1000).fadeOut('normal', function () { that.find('.btn-outline-blue').show() }); }); that.find('.organization_name').val(''); that.find('.customer_name').val(''); that.find('.phone').val(''); that.find('.__phone_prefix').val(''); that.find('.email').val(''); that.find('.comment').val(''); } }) }); $('#navbarNav').on('shown.bs.collapse', function () { $('.header_menu_flex .fa-bars').hide() $('.header_menu_flex .fa-ex-times').show() }); $('#navbarNav').on('hidden.bs.collapse', function () { $('.header_menu_flex .fa-bars').show() $('.header_menu_flex .fa-ex-times').hide() }); function index_exhibtions_location(cityurl, countryurl = null) { if ($('#index_exhibtions_location').length > 0) { var country = countryurl; $.ajax({ url: lang_name_segment + '/index-exhibtions-location', method: 'get', data: {cityurl: cityurl, country: country}, async: true, success: function (data) { $('#index_exhibtions_location').html(data) } }); } } // var pagLoaded = true; function get_result_count(cityurl, countryurl, categoryurl, rating, excenter, datainterval = null, sale) { $.ajax({ url: lang_name_segment + '/get-result-count', method: 'get', async: true, data: { city: cityurl, country: countryurl, category: categoryurl, rating: rating, excenter: excenter, datainterval: datainterval, sale: sale }, success: function (data) { $('.exhibition_count span').text(data); $('.allitems_block_count').text(data); $('.allitems .countnow').text(data); fisrtitems(); findcount(); $('#shomoreitems').show(); $('#allitems').hide(); if (data < 2) $('#period_filter').hide(); if (data == '0') { $('#order').hide(); not_found_ex(cityurl, countryurl, categoryurl, block_place = 'ex_all_blocks_no_found', title = "You may also be interested in exhibitions:", search = 'true') } else { //if(pagLoaded){ getSearchFilter(); // pagLoaded = false; // } $('#order').show(); alarmInit(); } if (data < 31 && data != 0) { not_found_ex(cityurl, countryurl, categoryurl, block_place = 'ex_all_blocks_no_found_second', title = "You may also be interested in exhibitions:", search = 'true') } else { $('.ex_all_blocks_no_found_second').html('') } } }); } $('#hotel-tab').on('shown.bs.tab', function (e) { e.target e.relatedTarget }); $(document).on('click', '.see_all_near_countries_btn', function (e) { e.preventDefault(); $('#index_exhibtions_location li').removeClass('hide_viewed'); $(this).hide(); $('.hide_all_near_countries_btn').show(); }); $(document).on('click', '.hide_all_near_countries_btn', function (e) { e.preventDefault(); $("#index_exhibtions_location .can_interesting_countries li").slice(8).addClass("hide_viewed"); $(this).hide(); $('.see_all_near_countries_btn').show(); }); $(document).on('click', '.dropdown_list_item .close_filter', function (e) { e.preventDefault(); $('.dropdown_list_item').hide(); }); $(document).on('click', '.click_bread_link', function (e) { e.preventDefault(); $('.dropdown_list_item').not($(this).parent().find('.dropdown_list_item')).hide(); $('.click_bread_link').removeClass('active_click_bread_link'); if ($(this).hasClass('not_click')) return; var that = $(this), exceptId = that.find('i').data('except'), actionName = that.find('i').data('action'), excpetDisable = that.find('i').data('expcept-disable'), fullLink = $('.exhibition_bread').data('link'), startLink = $('.exhibition_bread').data('start-link'), htmlAppend = that.parent().find('.dropdown_list_item'); that.addClass('active_click_bread_link'); if (actionName == 'exhibition') var wdth = 15; else var wdth = 43; htmlAppend.toggle(); $('head').append('<style>.dropdown_list_item:before{right:' + wdth + 'px !important;}</style>'); if (htmlAppend.is(':empty')) { htmlAppend.html('<div class="loading text-center loading_filter">\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' </div>') $.ajax({ url: lang_name_segment + '/get-bread-items', method: 'get', dataType: 'json', data: {exceptId: exceptId, actionName: actionName, fullLink: fullLink, excpetDisable: excpetDisable}, async: true, success: function (data) { htmlAppend.html('<ul class="scrollstyle"></ul>' + '<a href="" class="close_filter">&times</a>'); $.each(data.data, function (k, v) { if (data.order == 3) { url = 'https://exposale.net' + lang_name_segment + '/exhibition/' + v.slug; } else { var fullLinkArr = fullLink.split('/') fullLinkArr[data.order] = v.id; if (data.order == 1) fullLinkArr[2] = 'all'; var url = startLink + fullLinkArr.join('/'); } var flag = ''; if (v.en_name) flag = '<img src="https://exposale-a.akamaihd.net/img/falgs_circle/' + v.en_name.toLowerCase() + '.png">'; var view = '<li><a href="' + url + '">' + v.name + ' ' + flag + '</a>'; var count = 0; $.each(data.subdata, function (k_sub, v_sub) { if (v_sub.country_id == v.id) { count++; if (count == 1) view = view + '<div class="sub_menu_filter"><div><ul class="">'; var fullLinkArr = fullLink.split('/') fullLinkArr[data.suborder] = v_sub.id; fullLinkArr[1] = 'all'; var url = startLink + fullLinkArr.join('/'); view = view + '<li><a href="' + url + '">' + v_sub.name + '</a></li>'; } }); if (count > 0) view = view + '</ul></div></div>'; view = view + '</li>'; htmlAppend.find('.scrollstyle').append(view); }); } }); } }); $(document).on('mouseover', '.dropdown_list_item > ul > li', function () { var $menuItem = $(this), $submenuWrapper = $('> .sub_menu_filter', $menuItem); var menuItemPos = $menuItem.position(); $submenuWrapper.css({ top: menuItemPos.top, left: menuItemPos.left + $menuItem.outerWidth() }); }); $(document).on('click', 'button[data-target="#exModal"], a[data-target="#exModal"]', function () { var windowHeight = $(window).height() - 40; $(".modal-dialog").css({'height': windowHeight + "px"}); var that = $(this), htmlAppend = $('#exModal #exModalContent'), exTitle = that.data('exname'), infcountry = that.data('infcountry'), exid = that.data('exid'), infcity = that.data('infcity'), infexcenter = that.data('infexcenter'), dateex = $('.exhibition_datetime[data-id=' + exid + '] .only_days'), hiddateex = $('.exhibition_hiddendatetime[data-id=' + exid + '] .for_modal_days'), ex_logo = $('.exhibition_logo[data-reslogo-id=' + exid + ']').attr('src'); htmlAppend.addClass('loader'); htmlAppend.html('<div class="loading text-center loading_filter">\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' </div>'); $.ajax({ url: lang_name_segment + '/modal-request', method: 'get', dataType: 'json', success: function (data) { htmlAppend.removeClass('loader'); htmlAppend.html(data.view); htmlAppend.find('.modal_ex_logo').html('<img class="" src="' + ex_logo + '">'); htmlAppend.find('.infexdate').html(dateex.html()) if (window.location.href.indexOf("exhibition/") <= -1) { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span><span>, Have time to book the best stand!</span>') } else { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span><span>, Have time to book the best stand!</span>') } htmlAppend.find('.extitle').text(exTitle); htmlAppend.find('.infex').html('<span class="exhibition_icon"><i class="fa fa-map-marker" aria-hidden="true"></i></span> ' + infexcenter + ', ' + infcity + ', ' + infcountry); if (isMobile.any()) { htmlAppend.find('#organization_name').blur(); } else { htmlAppend.find('#organization_name').focus(); } $('#sendrequest').attr('action', '/en/sendrequest/' + exid); modalSlider(); $('.rangeslide').tooltip(); $('.extoggle').tooltip(); $('#extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $.ajax({ url: lang_name_segment + '/get-exhibition-hash/' + exid, method: 'get', async: true, success: function (data) { $('#checkbox_form_exhibition_checkbox').attr('name', data) } }); } }); }); /*Test */ $(document).on('click', 'button[data-target="#exTestModal"], a[data-target="#exTestModal"]', function () { var windowHeight = $(window).height() - 40; $(".modal-dialog").css({'height': windowHeight + "px"}); var that = $(this), htmlAppend = $('#exTestModal #exModalContent'), exTitle = that.data('exname'), infcountry = that.data('infcountry'), exid = that.data('exid'), infcity = that.data('infcity'), infexcenter = that.data('infexcenter'), dateex = $('.exhibition_datetime[data-id=' + exid + '] .only_days'), hiddateex = $('.exhibition_hiddendatetime[data-id=' + exid + '] .for_modal_days'), ex_logo = $('.exhibition_logo[data-reslogo-id=' + exid + ']').attr('src'); htmlAppend.addClass('loader'); htmlAppend.html('<div class="loading text-center loading_filter">\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' </div>'); $.ajax({ url: lang_name_segment + '/modal-testrequest', method: 'get', dataType: 'json', success: function (data) { htmlAppend.removeClass('loader'); htmlAppend.html(data.view); htmlAppend.find('.modal_ex_logo').html('<img class="" src="' + ex_logo + '">'); htmlAppend.find('.infexdate').html(dateex.html()) if (window.location.href.indexOf("exhibition/") <= -1) { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span><span>, Have time to book the best stand!</span>') } else { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span><span>, Have time to book the best stand!</span>') } htmlAppend.find('.extitle').text(exTitle); htmlAppend.find('.infex').html('<span class="exhibition_icon"><i class="fa fa-map-marker" aria-hidden="true"></i></span> ' + infexcenter + ', ' + infcity + ', ' + infcountry); if (isMobile.any()) { htmlAppend.find('#organization_name').blur(); } else { htmlAppend.find('#organization_name').focus(); } $('#sendrequest').attr('action', '/en/sendrequest/' + exid); modalSlider(); $('.rangeslide').tooltip(); $('.extoggle').tooltip(); $('#extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $.ajax({ url: lang_name_segment + '/get-exhibition-hash/' + exid, method: 'get', async: true, success: function (data) { $('#checkbox_form_exhibition_checkbox').attr('name', data) } }); } }); }); /*End Test */ $(document).on('click', 'button[data-target="#exModalVisit"], a[data-target="#exModalVisit"]', function () { var windowHeight = $(window).height() - 40; $(".modal-dialog").css({'height': windowHeight + "px"}); var that = $(this), htmlAppend = $('#exModalVisit #exModalVisitContent'), exTitle = that.data('exname'), infcountry = that.data('infcountry'), exid = that.data('exid'), infcity = that.data('infcity'), infexcenter = that.data('infexcenter'), dateex = $('.exhibition_datetime[data-id=' + exid + '] .only_days'), hiddateex = $('.exhibition_hiddendatetime[data-id=' + exid + '] .for_modal_days'), ex_logo = $('.exhibition_logo[data-reslogo-id=' + exid + ']').attr('src'); htmlAppend.addClass('loader'); htmlAppend.html('<div class="loading text-center loading_filter">\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' </div>'); $.ajax({ url: lang_name_segment + '/modal-request-visit', method: 'get', dataType: 'json', success: function (data) { htmlAppend.removeClass('loader'); htmlAppend.html(data.view); htmlAppend.find('.modal_ex_logo').html('<img class="" src="' + ex_logo + '">'); htmlAppend.find('.infexdate').html(dateex.html()) if (window.location.href.indexOf("exhibition/") <= -1) { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span>') } else { htmlAppend.find('.hidinfexdate').html('<i class="fa fa-bullhorn" style="margin-right: 3px;" aria-hidden="true"></i><span> ' + hiddateex.html() + '</span>') } htmlAppend.find('.extitle').text(exTitle); htmlAppend.find('.infex').html('<span class="exhibition_icon"><i class="fa fa-map-marker" aria-hidden="true"></i></span> ' + infexcenter + ', ' + infcity + ', ' + infcountry); if (isMobile.any()) { htmlAppend.find('#organization_name').blur(); } else { htmlAppend.find('#organization_name').focus(); } $('#sendrequestvisit').attr('action', '/en/sendrequestvisit/' + exid); modalSlider(); $('.rangeslide').tooltip(); $('.extoggle').tooltip(); $('#extoggle').toggles({ text: {on: 'equipped', off: 'unequipped'}, width: 162, on: true }); $.ajax({ url: lang_name_segment + '/get-exhibition-hash/' + exid, method: 'get', async: true, success: function (data) { $('#checkbox_form_exhibition_checkbox').attr('name', data) } }); } }); }); $(document).on('click', '.country-phone-selected-custom', function () { var htmlAppend = $('.country-phone-selected-custom-div'); htmlAppend.show(); htmlAppend.html('<div class="loading text-center loading_filter">\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' <div class="loading-bar"></div>\n' + ' </div>'); $.ajax({ url: "/template/script/json/" + lang_name_segment + "_countries.json?v=1.1.1", method: "get", dataType: "json", success: function (data) { htmlAppend.html('<ul class="scrollstyle"></ul>'); $.each(data, function (k, v) { htmlAppend.find('.scrollstyle').append('<li><a href="#" class="choose_code" data-phone-code="+' + v.ph + '" data-image="' + v.co + '" data-name="' + v.na + '">' + v.na + '<img src="https://exposale.net/template/img/blank.gif" class="flag flag-' + v.co + '"></a></li>'); }); } }) }); $(document).on('click', '.choose_code', function (e) { e.preventDefault(); var that = $(this); $('.country-phone-selected-custom-div').hide(); $('.country-phone-selected-custom').html('<img src="https://exposale.net/template/img/blank.gif" class="flag flag-' + that.data('image').toLowerCase() + '">' + that.data('phone-code')); $('#exModalContent .__phone_prefix').val(that.data('phone-code')); $('#exModalContent .country_Name').val(that.data('image')); $('#exModalContentVisit .__phone_prefix').val(that.data('phone-code')); $('#exModalContentVisit .country_Name').val(that.data('image')); }); $(document).on('click', '.form_sale_click', function (e) { e.preventDefault(); $('html,body').animate({ scrollTop: $('.landing_request_form').offset().top - 82 }, 500); }) $(document).on('click', '.sale_bade_wrapper', function (e) { e.preventDefault(); $(this).parent().find('.search_page_modal_button').trigger('click'); }) $(document).on('click', '.sale_not_found_click', function (e) { e.preventDefault(); $(this).closest('.post-content').find('.btn-part-orange').trigger('click'); }); $(document).on('submit', '#sendrequest', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('#sendrequest').prepend('<input type="hidden" name="token" value="' + token + '">'); $('#sendrequest').prepend('<input type="hidden" name="action" value="' + action + '">'); if (that.find('.btn-outline-green span').is(":visible")) { that.find('.btn-outline-green span').hide(); that.find('.btn-outline-green .la-ball-pulse').show(); that[0].submit(); //$('#sendrequest').unbind('submit').submit(); } }); }); }); $(document).on('submit', '#sendrequestvisit', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('#sendrequestvisit').prepend('<input type="hidden" name="token" value="' + token + '">'); $('#sendrequestvisit').prepend('<input type="hidden" name="action" value="' + action + '">'); if (that.find('.btn-outline-green span').is(":visible")) { that.find('.btn-outline-green span').hide(); that.find('.btn-outline-green .la-ball-pulse').show(); that[0].submit(); //$('#sendrequest').unbind('submit').submit(); } }); }); }); $(document).on('submit', '#create_form_org', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('#create_form_org').prepend('<input type="hidden" name="token" value="' + token + '">'); $('#create_form_org').prepend('<input type="hidden" name="action" value="' + action + '">'); if (that.find('.btn-outline-success span').is(":visible")) { that.find('.btn-outline-success span').hide(); that.find('.btn-outline-success .la-ball-pulse').show(); that[0].submit(); //$('#sendrequest').unbind('submit').submit(); } }); }); }); $(document).on('submit', '#login_form_org', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('#login_form_org').prepend('<input type="hidden" name="token" value="' + token + '">'); $('#login_form_org').prepend('<input type="hidden" name="action" value="' + action + '">'); that[0].submit(); }); }); }); $(document).on('submit', '.landing_form', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); console.log(action); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('.landing_form').prepend('<input type="hidden" name="token" value="' + token + '">'); $('.landing_form').prepend('<input type="hidden" name="action" value="' + action + '">'); if (that.find('.btn-outline-blue span').is(":visible")) { that.find('.btn-outline-blue span').hide(); that.find('.btn-outline-blue .la-ball-pulse').show(); that[0].submit(); } }); }); }); $('.js-tabbuttons-trigger').click(function () { var id = $(this).attr('data-tab'); var content = $('.js-tab-content[data-tab="' + id + '"]'); $('.js-tabbuttons-trigger.active').removeClass('active'); // 1 $(this).addClass('active'); // 2 $('.js-tab-content.active').removeClass('active'); // 3 content.addClass('active'); // 4 }); $('.js-instrumentslist').click(function () { var iddata = $(this).attr('data-instr'); var listcontent = $('.js-instrumentscontentcontainer[data-instr="' + iddata + '"]'); $('.js-instrumentslist.active').removeClass('active'); $(this).addClass('active'); $('.js-instrumentscontentcontainer.active').removeClass('active'); listcontent.addClass('active'); }) // $(".js-instrumentslist").click(function(){ // if($(".js-instrumentslist.active")) { // $(this).append("<i class='datapickaff'></i>"); // $('.datapickaff').addClass('datepicker--pointer datapickerpointaff'); // // // }else { // if ($(".js-instrumentslist")) { // $(".js-instrumentslist").remove("<i class='datapickaff'></i>"); // } // } // // }) $('.js-settingsaffiliatemenu').click(function () { var iddatasett = $(this).attr('data-sett'); var listsettingscontent = $('.js-settingaffiliatecontent[data-sett="' + iddatasett + '"]'); $('.js-settingsaffiliatemenu.active').removeClass('active'); $(this).addClass('active'); $('.js-settingaffiliatecontent.active').removeClass('active'); listsettingscontent.addClass('active'); }) $('.labelsettingsaff').click(function () { var idpayment = $(this).attr('data-pay'); var paymentinstrcontent = $('.formfofpaymentdetails[data-pay="' + idpayment + '"]'); $('.formfofpaymentdetails').addClass('active'); $(this).removeClass('active'); $('.formfofpaymentdetails.active').removeClass('active'); paymentinstrcontent.addClass('active'); }) $(".labelagreeaffiliate").click(function () { $(".spanaffiliatecheck").toggleClass("checkaffiliate"); if ($(".spanaffiliatecheck").hasClass("checkaffiliate")) { $(".btn-affiliaterightsdisabled").removeAttr("disabled"); $(".btn-affiliaterightsdisabled").addClass("btn-affiliatenotdisabled"); } else { $(".btn-affiliaterightsdisabled").attr("disabled", "disabled"); $(".btn-affiliaterightsdisabled").removeClass("btn-affiliatenotdisabled"); } }) $(window).scroll(function () { var cookie = false; if ($('.cookie_policy_modal').is(":visible")) { cookie = true; } if ($(window).scrollTop() >= '450') { $('.fixed_bottom_btn').fadeIn(); if (cookie) $('.cookie_policy_modal').hide(); } else { $('.fixed_bottom_btn').fadeOut(); if (cookie) $('.cookie_policy_modal').show(); } }) $(document).on('submit', '#registration_from_submit', function (e) { e.preventDefault(); var that = $(this); var action = that.attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: action}).then(function (token) { $('#registration_from_submit').prepend('<input type="hidden" name="token" value="' + token + '">'); $('#registration_from_submit').prepend('<input type="hidden" name="action" value="' + action + '">'); that[0].submit(); }); }); }); $(document).on('click', '.saved_a_landing', function (e) { e.preventDefault(); var href = $(this).attr('href'); var check = $(this).attr('data-check'); var exId = $(this).attr('data-exId'); var lang = $(this).attr('data-lang'); $.ajax({ url: href, method: 'get', success: function (data) { if (data.success == 'ok') { if (check == 0) { $(".saved_heart_landing").removeClass("fa-heart-o"); $(".saved_heart_landing").addClass("fa-heart"); $(".saved_a_landing").removeAttr("href"); $(".saved_a_landing").attr('href', lang + '/remove-saved-exhbition/' + exId); $(".saved_a_landing").attr('data-check', 1); } else { $(".saved_heart_landing").removeClass("fa-heart"); $(".saved_heart_landing").addClass("fa-heart-o"); $(".saved_a_landing").removeAttr("href"); $(".saved_a_landing").attr('href', lang + '/saved-exhbition/' + exId); $(".saved_a_landing").attr('data-check', 0); } } } }); }); $('#landing_excenter_location a[data-toggle="tab"]').on('shown.bs.tab', function (e) { var target = $(e.target).attr("href") // activated tab var excenterId = $(e.target).attr("data-excenterid") // activated tab if (target == '#map') { $.ajax({ url: lang_name_segment + '/get-excenter-map-frame/' + excenterId, method: 'get', dataType: 'json', success: function (data) { $('#loaction_map_frame').html(data) } }); } }); // $(document).on('click', '.see_all_excenters_btn', function (e) { // e.preventDefault(); // $('#search_filter_excenter ul li').removeClass('hide_viewed'); // $(this).hide(); // $('.hide_all_excenters_btn').show(); // }); // // $(document).on('click', '.hide_all_excenters_btn', function (e) { // e.preventDefault(); // $("#search_filter_excenter ul li").slice(15).addClass("hide_viewed"); // $(this).hide(); // $('.see_all_excenters_btn').show(); // }); // $(document).on('click', '#menu_exs_block > li > a', function (e) { // $(this).parent('li').find('.menu_exs_block_add').toggle('show') // }); </script> <div id="response"></div> <script> var no_typos = "Is it correct?"; var nothing_found_text = "Nothing found"; $(document).ready(function () { var cityurl = null; var countryurl = null; var categoryurl = null; if ($('#cityhidden').length > 0 && $('#cityhidden').val().length > 0) { cityurl = $('#cityhidden').val(); } if ($('#countryhidden').length > 0 && $('#countryhidden').val().length > 0) { countryurl = $('#countryhidden').val(); } if ($('#categoryhidden').length > 0 && $('#categoryhidden').val().length > 0) { categoryurl = $('#categoryhidden').val(); } if (window.location.href.indexOf("exhibition/") > -1) { } if (window.location.href.indexOf("search-exhibition/") > -1) { cityurl = city_month_url; } var landing_page = false; if (window.location.href.indexOf("exhibition/") > -1) { landing_page = true; } $.ajax({ url: '/en/recently-viewed', method: 'get', async: true, data: {landing_page: landing_page}, success: function (data) { $('#recentlyviewed_place').html(data); $('#recentlyviewed_place').tooltip({ selector: '[data-toggle="tooltip"]', html: true, }); height_resize() } }); if (window.location.href.indexOf("exhibitions/") > -1 || window.location.href.indexOf("search-exhibition/") > -1) { $.ajax({ url: '/en/advertisement-place', method: 'get', async: true, data: {cityurl: cityurl, countryurl: countryurl, categoryurl: categoryurl, order: 'first'}, success: function (data) { $('#advertisement_first_place').html(data); } }); } $.ajax({ url: '/en/footer-widget', method: 'get', async: true, success: function (data) { $('#footer_widget').html(data); } }); $.ajax({ url: '/en/left-widget', method: 'get', async: true, success: function (data) { $('#left_sidebar_place').html(data); } }); if (window.location.href.indexOf("exhibitions/") <= -1) { $.ajax({ url: '/en/ajax-get-location', method: 'get', async: true, success: function (data) { $.ajax({ url: '/en/get-month-block', method: 'get', async: true, data: {cityurl: cityurl, countryurl: countryurl}, success: function (data) { $('.month_block_append').html(data) selectmonth(); $('.corner_month_count_number').tooltip(); if (window.location.href === "https://exposale.net/en" || window.location.href === "https://exposale.net/en/" || window.location.href.indexOf("search-exhibition/") > -1) { var cityurl = $('.selected-city-month a').data('id'); not_found_ex(cityurl, countryurl = null, categoryurl = null, block_place = 'index_ex_all_blocks_no_found', title = "We recommend to see!"); } } }); } }); index_exhibtions_location(cityurl, countryurl); } if (window.location.href.indexOf("search-exhibition/") > -1) { $.ajax({ url: '/en/advertisement-place', method: 'get', async: true, data: {cityurl: cityurl, countryurl: countryurl, categoryurl: categoryurl, order: 'second'}, success: function (data) { $('.advertisement_second_place').html(data); } }); index_exhibtions_location(cityurl, countryurl); } addBanner(); $(window).scroll(function() { addBanner(); }); function addBanner(){ var scroll = $(window).scrollTop(); //>=, not <= if (scroll >= 50) { //clearHeader, not clearheader - caps H $(".add_exhibition_banner a").addClass("add_exhibition_banner_show"); }else{ $(".add_exhibition_banner a").removeClass("add_exhibition_banner_show"); } } }); </script> <script> var category_dropdown = false; var country_dropdown = false; function openWindow(divEl,inpEl){ $('.'+divEl).addClass('active_tooltip'); $("."+inpEl).focus(); if(inpEl=='input_country' && !country_dropdown){ ajax_show_dropdown(inpEl); } else if(inpEl=='input_category' && !category_dropdown){ ajax_show_dropdown(inpEl); } } function ajax_show_dropdown(inpEl){ $.ajax({ url: lang_name_segment+'/ajax-show-dropdown', method:'get', data: {inpEl:inpEl}, success:function(data){ if(data!=''){ if(inpEl=='input_country'){ $('.country_text').find('.la-ball-beat').hide(); country_dropdown = true; $('.allcountry').html(data) }else if(inpEl=='input_category'){ $('.category_text').find('.la-ball-beat').hide(); category_dropdown = true; $('.allcategory').html(data) } } } }); } </script> <!-- Yandex.Metrika counter --> <script type="text/javascript"> $(document).ready(function () { //$.getScript("https://www.google.com/recaptcha/api.js?render=6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY"); setTimeout(function () { (function (d, w, c) { (w[c] = w[c] || []).push(function () { try { w.yaCounter46308453 = new Ya.Metrika({ id: 46308453, clickmap: true, trackLinks: true, accurateTrackBounce: true, webvisor: true }); } catch (e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = "https://www.google.com/recaptcha/api.js?render=6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY"; head.appendChild(script); $("#live_internet").html("<a href='//www.liveinternet.ru/click' " + "target=_blank><img style='display:none' src='//counter.yadro.ru/hit?t52.6;r" + escape(document.referrer) + ((typeof (screen) == "undefined") ? "" : ";s" + screen.width + "" + screen.height + "" + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) + ";u" + escape(document.URL) + ";h" + escape(document.title.substring(0, 150)) + ";" + Math.random() + "' alt='' title='LiveInternet: показано число просмотров и" + " посетителей за 24 часа' " + "border='0' width='0' height='0'><\/a>") }, 5000); $('.lazy').lazy(); $('.btn-outline-green').tooltip(); $('.btn-outline-blue').tooltip(); $('.extoggle').tooltip(); $('.rangeslide').tooltip(); $(document).ajaxComplete(function () { $('.ex_btn-booking').tooltip(); }); $('.landing_place_meter').ionRangeSlider({ hide_min_max: true, hide_from_to: false, from: 6, values: [ "<b>Remote participation</b>", "<b>4</b> m<sup>2</sup>", "<b>6</b> m<sup>2</sup>", "<b>8</b> m<sup>2</sup>", "<b>9</b> m<sup>2</sup>", "<b>10</b> m<sup>2</sup>", "<b>12</b> m<sup>2</sup>", "<b>14</b> m<sup>2</sup>", "<b>15</b> m<sup>2</sup>", "<b>16</b> m<sup>2</sup>", "<b>18</b> m<sup>2</sup>", "<b>20</b> m<sup>2</sup>", "<b>21</b> m<sup>2</sup>", "<b>22</b> m<sup>2</sup>", "<b>24</b> m<sup>2</sup>", "<b>25</b> m<sup>2</sup>", "<b>26</b> m<sup>2</sup>", "<b>27</b> m<sup>2</sup>", "<b>28</b> m<sup>2</sup>", "<b>30</b> m<sup>2</sup>", "<b>32</b> m<sup>2</sup>", "<b>33</b> m<sup>2</sup>", "<b>34</b> m<sup>2</sup>", "<b>35</b> m<sup>2</sup>", "<b>36</b> m<sup>2</sup>", "<b>38</b> m<sup>2</sup>", "<b>39</b> m<sup>2</sup>", "<b>40</b> m<sup>2</sup>", "<b>more than 40</b> m<sup>2</sup>" ], onChange: function (data) { var put_data = data.from_value.match(/<([^\s>]+)\s?[^>]*>(.*)(?:<\/\1)>+/)[2] if (put_data == 0) { put_data = ''; } $('#landing_place_meter').val(put_data) }, }); $('.landing_stock_meter').ionRangeSlider({ hide_min_max: true, hide_from_to: false, from: 0, values: [ "<b>0</b> m<sup>2</sup>", "<b>4-10</b> m<sup>2</sup>", "<b>10-20</b> m<sup>2</sup>", "<b>20-40</b> m<sup>2</sup>", "<b>40-60</b> m<sup>2</sup>", "<b>60-100</b> m<sup>2</sup>", "<b>more than 100</b> m<sup>2</sup>" ], onChange: function (data) { var put_stock_data = data.from_value.match(/<([^\s>]+)\s?[^>]*>(.*)(?:<\/\1)>+/)[2] if (put_stock_data == 0) { put_stock_data = ''; } $('#landing_stock_meter').val(put_stock_data); }, }); }); $(document).on('change', '#month_block_city', function () { var that = $(this); var city_val = that.val(); change_calendar(city_val); }); function change_calendar(city_val) { $('.month_block_item_div').css({ 'opacity': '0.2' }); $('.la-ball-grid-beat').show(); setTimeout(function () { $.ajax({ url: '/en/select-city', method: 'get', data: {city_val: city_val}, beforeSend: function () { }, success: function (response) { $('.la-ball-grid-beat').hide(); $('.month_block_item_div').css({ 'opacity': '1' }); $('.month_block_item_div').html(response); $('.corner_month_count_number').tooltip(); if (window.location.href === "https://exposale.net/en" || window.location.href.indexOf("search-exhibition/") > -1) { index_exhibtions_location(cityurl = city_val); not_found_ex(cityurl = city_val, countryurl = null, categoryurl = null, block_place = 'index_ex_all_blocks_no_found', title = "We recommend to see!"); } } }); }, 500); } //$('#general_search').click(function(e){ $(document).on('click', '#general_search', function (e) { e.preventDefault(); var categoryhidden = $('#categoryhidden').val() var countryhidden = $('#countryhidden').val() var cityhidden = $('#cityhidden').val() if (categoryhidden == '') { categoryhidden = 'all'; } if (countryhidden == '') { countryhidden = 'all'; } if (cityhidden == '') { cityhidden = 'all'; } $(this).find('span').hide(); $(this).find('.la-ball-pulse').show(); window.location.href = "https://exposale.net/en/exhibitions/" + categoryhidden + '/' + countryhidden + '/' + cityhidden + '/'; }) $(document).on('mouseenter', '.month_top_block .dropdown-toggle', function (e) { e.preventDefault(); $(this).attr('title', ''); }); function isValidEmailAddress(emailAddress) { var pattern = new RegExp(/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i); return pattern.test(emailAddress); }; $(document).on('submit', '.alarm_post_submit', function (e) { e.preventDefault(); var that = $(this); if (isValidEmailAddress(that.find('input[name="user_email"]').val())) { that.find('input[name="user_email"]').removeClass('parsley-error') var url = $(this).attr('action'); grecaptcha.ready(function () { grecaptcha.execute('6Lf-bLcaAAAAACt93mEyXx_9PQBHIrQIOek87QnY', {action: url}).then(function (token) { $('.alarm_post_submit').prepend('<input type="hidden" name="token" value="' + token + '">'); $('.alarm_post_submit').prepend('<input type="hidden" name="action" value="' + url + '">'); var form_val = that.serialize(); $.ajax({ url: url, method: 'post', data: form_val, beforeSend: function () { that.find('.before_ajax_form').hide(); that.find('.after_ajax_form_load').show(); }, success: function (data) { that.parents('.exhibition_block').find('.transform_text').hide(); that.parents('.exhibition_block').find('.transform_text_success').show(); that.find('.after_ajax_form_load').hide(); that.find('.after_ajax_form').show(); that.parents('.exhibition_block').find('.transform_text-mobile').hide(200) /*that.parent().css({ 'background':'#fff', 'border':'1px solid #7fbc0b', })*/ that.find('.fa-bell-o').css({ 'color': '#7ebc0a', }) that.find('.get_email').text(that.find('input[name="user_email"]').val()) } }); }); }); } else { that.find('input[name="user_email"]').addClass('parsley-error') } }) var day_time; var offset_time = new Date().getHours(); offset_time = parseInt(offset_time, 10); switch (true) { case (offset_time >= 1 && offset_time < 3): day_time = "Hello"; break; case (offset_time >= 3 && offset_time < 12): day_time = "Good morning"; break; case (offset_time >= 12 && offset_time < 18): day_time = "Hi"; break; case (offset_time >= 18): day_time = "Good evening"; break; case (offset_time < 1): day_time = "Good evening"; break; default: day_time = "Hello"; break; } $('.note_for_reg>p>span').text(day_time); $('.login_welocme_text span').text(day_time); </script> <noscript> <div><img src="https://mc.yandex.ru/watch/46308453" style="position:absolute; left:-9999px;" alt=""/></div> </noscript> <!-- /Yandex.Metrika counter --> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10