var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $(document).ready(function () { /*header-nav*/ $('.header-burger').click(function () { $('.header-burger, body').toggleClass('active'); $('.header-nav, .header-bg').fadeToggle(); return false; }); /*header-profile*/ $('.header-profile_btn').click(function () { $(this).toggleClass('active'); $(this).next().slideToggle(); return false; }); /*page-list*/ $('.page-list_point:not(.no-open):nth-child(1) .page-list_top').eq(0).addClass('active'); $('.page-list_point:not(.no-open):nth-child(1) .page-list_bottom').eq(0).show(); $('.page-list_top').click(function () { $(this).toggleClass('active'); $(this).next().slideToggle(); return false; }); /*modal-close*/ $('.modal-close, .modal-false').click(function () { $(this).parents('.modal').removeClass('active'); return false; }); /*modal-dashboard*/ $('.dashboard-remove').click(function () { $('.modal-dashboard').addClass('active'); return false; }); /*modal-ticket*/ $('.support-ticket').click(function () { $('.modal-ticket').addClass('active'); return false; }); /*modal-reply*/ $('.support-reply').click(function () { $('.modal-reply').addClass('active'); return false; }); /*support-faq*/ $('.support-table_btn').click(function () { $('.support-info').hide(); $('.support-faq').show(); return false; }); /*support-info*/ $('.support-back').click(function () { $('.support-info').show(); $('.support-faq').hide(); return false; }); /*dashboard-play*/ $('.dashboard-publish').click(function () { $(this).toggleClass('active'); return false; }); /*create-tabs*/ $('.create-info_tabs li').eq(0).addClass('active'); $('.create-info_textarea').eq(0).addClass('active'); $('.create-info_tabs li').click(function () { if (!$(this).hasClass('active')) { var i = $(this).index(); $('.create-info_tabs li.active').removeClass('active'); $('.create-info_textarea.active').removeClass('active'); $(this).addClass('active'); $($('.create-info_boxs').children('.create-info_textarea')[i]).addClass('active'); } }); /*create-range*/ $(".create-range").each(function () { var range = $(this).find('.create-range_line'); var rangeNumber = $(this).find('.create-range_number'); range.slider({ range: true, min: 0, max: 24, values: [10, 20], slide: function (event, ui) { rangeNumber.val(ui.values[0] + ":00" + " - " + ui.values[1] + ":00"); } }); rangeNumber.val(range.slider("values", 0) + ":00" + " - " + range.slider("values", 1) + ":00"); }); /*create-photo*/ $(".create-photo_input").change(function () { var input = (this); var image = $(this).parent().prev(); var box = $(this).parent().parent(); if (input.files && input.files[0]) { var reader = new FileReader(); box.addClass('active'); reader.onload = function (e) { image.attr('src', e.target.result); console.log(this); } reader.readAsDataURL(input.files[0]); } }); $(".create-photo_delate").click(function () { $(this).parent().parent().removeClass('active'); }); /*start-slider*/ var startSwiper = new Swiper('.start-slider', { loop: true, observer: true, observeParents: true, slidesPerView: 1, spaceBetween: 0, speed: 1200, autoplay: { delay: 3000, }, effect: "creative", creativeEffect: { prev: { translate: ["-20%", 0, -1], }, next: { translate: ["100%", 0, 0], }, }, keyboard: { enabled: true, }, pagination: { el: '.start-pagination', clickable: true, }, navigation: { prevEl: '.start-prev', nextEl: '.start-next', }, }); /*recomended-slider*/ if (matchMedia('only screen and (max-width: 1200px)').matches) { var recomendedSwiper = new Swiper('.recomended-slider', { loop: true, loopedSlides: 3, observer: true, observeParents: true, slidesPerView: 1, spaceBetween: 0, speed: 1000, autoplay: { delay: 3000, }, navigation: { prevEl: '.recomended-prev', nextEl: '.recomended-next', }, }); } /*profile-slider*/ var profileSwiper = new Swiper('.profile-slider', { loop: true, observer: true, observeParents: true, slidesPerView: 'auto', spaceBetween: 0, speed: 1000, autoplay: { delay: 3000, }, grabCursor: true, centeredSlides: true, navigation: { prevEl: '.profile-prev', nextEl: '.profile-next', }, }); $('select[name=area_id]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=services]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=nationality]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=peso]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=altezza]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=eta]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=etnia]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=city]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('select[name=metro_id]').change(function(){ if($(this).val()) location.href = $(this).val(); else location.href = '/'; }); $('[name=sort-by]').change(function(){ setCookie('sort', $(this).val(), 30); location.reload(); }); $('.open-contact-form').click(function(){ var url = $(this).attr('data-href'); $.ajax({ method: 'POST', url: url, success: function(html){ $('body').addClass('overlay'); $('#modal-window .enter-wrap').html(html); $('#modal-window').show(); } }); }); $(document).on('click', function (e) { if ($(e.target).parents(".contacts-box").length === 0) { $("#modal-window").hide(); } }); $(document).on('click', '#modal-window .close', function (e) { $("#modal-window").hide(); }); if($('.enter').length) { $('.enter').show(); } $('.enter-true').click(function(){ setCookie('enter', 1, 30); $('.enter').remove(); }); $('.dashboard-total_point').click(function(){ $('.dashboard-total_point').removeClass('active'); $(this).addClass('active'); $('.dashboard-list').hide(); $('#tab-'+$(this).attr('data-tab')).show(); }); $('.girls-btn').click(function(){ var url = $(this).attr('data-url'); var page = parseInt($(this).attr('data-page')); var self = $(this); var ids = []; document.querySelectorAll(".girls .girls-item[data-item]").forEach(function(girl){ ids.push(girl.getAttribute("data-item")); }); $.ajax({ type: 'post', url: url, data: {ids: ids.join(',')}, success: function(html){ if(html && html.indexOf('empty-result') == -1) $('.girls-items').append(html); else $('.girls-btn').hide(); self.attr('data-page', (parseInt(page)+1)); }, error: function(){ $('.girls-btn').hide(); } }); }); $('.show-more-services').click(function(){ $(this).closest('.profile-box-services__item').find('li').removeClass('item-hidden'); $(this).hide(); }); $('#form_type_individual').click(function(){ $('#profile').show(); }); $('#form_type_agency').click(function(){ $('#profile').hide(); }); }); function submit_contact_form(form) { $.ajax({ type: 'post', url: $(form).attr('action'), data: $(form).serialize(), success: function(html){ $('#jsContactForm').html(html); }, error: function(){ alert('Error'); } }); } function setCookie(name,value,days) { var expires = ""; if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + (value || "") + expires + "; path=/"; } } /* FILE ARCHIVED ON 23:57:12 Apr 06, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 19:26:56 Apr 20, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.467 exclusion.robots: 0.017 exclusion.robots.policy: 0.008 esindex: 0.008 cdx.remote: 62.483 LoadShardBlock: 235.688 (3) PetaboxLoader3.datanode: 267.336 (4) PetaboxLoader3.resolve: 148.613 (2) load_resource: 241.779 */