Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/escort46.de/public_html/en/ |
<script>
//Load more city ad data
var city_num=12;
var city_records_total = $('#city_total_records').val();
var city_records_left = $('#city_total_records').val()-12;
if(city_records_total<=12){
$('#load_more_city').attr('disabled',true);
$('#load_more_city').hide();
}else{
$('#load_more_city').html('Show More ('+city_records_left+')');
}
function loadCityData(){
var arr_data = '<?php echo $myJSON ?>';
$.ajax({
url:'<?= SUB_URL ?>/services_html/load_more_city',
type:'post',
data:{data:arr_data,start:city_num},
success:function (data) {
if(data){
$('#cities').append(data);
var wdt = $('.image-box .box .img_region').width();
$(".image-box .box .img_region").css({"height": wdt });
if(city_records_total == 0){
city_records_total = $('#city_total_records').val();
city_records_left = city_records_total-12;
}else{
city_records_left = city_records_left-12;
}
if(city_records_left > 0){
$('#load_more_city').html('Show More ('+city_records_left+')');
$('#load_more_city').show();
city_num = city_num+12;
}else{
$('#load_more_city').attr('disabled',true);
$('#load_more_city').hide();
}
}else{
$('#cities').append('<h4>No ads found.</h4>');
$('#load_more_city').attr('disabled',true);
$('#load_more_city').hide();
}
}
});
}
$("#load_more_city").click(function(){
loadCityData();
});
//Search Query String
function qString(){
$(".search_btn").trigger("click");
}
$('.searchform').submit(function(e) {
$(this).find(":input").filter(function(){
return !this.value;
}).attr("disabled", "disabled");
$('.postal_code').val($('.postal_code').val().trim());
var str = $('#search').val().trim();
$('#search').val(str.replace(/[ ]+/g, '-'));
});
var string = decodeURIComponent(window.location.search.substr(1));
if(string.indexOf('&')){
var tmpParams = string.split("&");
for (var i = 0; i < tmpParams.length; i++) {
var tmparr = tmpParams[i].split("=");
var tmp = document.getElementsByName(tmparr[0])[0];
if (!!tmp){
document.getElementsByName(tmparr[0])[0].value = tmparr[1].split('+').join(' ');
}
}
}else if(string.indexOf('=')){
var tmpParams = string.split("=");
document.getElementById(tmpParams[0]).value = tmpParams[1].split('+').join(' ');
}else{
var tmpParams = string.split("&");
for (var i = 0; i < tmpParams.length; i++) {
var tmparr = tmpParams[i].split("=");
var tmp = document.getElementsByName(tmparr[0])[0];
if (!!tmp){
document.getElementsByName(tmparr[0])[0].value = tmparr[1].split('+').join(' ');
}
}
}
//Show More
var record_page = $('#record_page').val();
if(record_page == 'search'){
var num=4;
var limit=<?php echo $num_record; ?>;
}else{
var num=4;
var limit=<?php echo $num_record; ?>;
}
var records_total = $('#total_records').val();
var records_left = $('#total_records').val()-limit;
if(records_total<=limit){
$('#show_more').attr('disabled',true);
$('#show_more').hide();
}else{
$('#show_more').html('Show More ('+records_left+')');
}
var requestxhr;
function loadData(){
if (requestxhr && requestxhr.readyState != 4) {
return false;
}
$('#show_more_gif').show();
var arr_data = '<?php echo $myJSON ?>';
var get_search = '<?php echo $get_search ?>';
var listgrid = $('#listgrid').val();
var page = '<?php echo $page ?>';
requestxhr = $.ajax({
url:'<?= SUB_URL ?>/services_html/load_data',
type:'post',
data:{data:arr_data,start:num,listgrid:listgrid,get_search:get_search,page:record_page,page:page},
success:function (data) {
if(data){
$('.allProfiles').append(data);
var wdt = $('.thumbnail img').width();
$(".thumbnail img").css({"height": wdt });
if(records_total == 0){
records_total = $('#total_records').val();
records_left = records_total-limit;
}else{
records_left = records_left-limit;
}
if(records_left > 0){
num = num+limit;
}
go();
}else{
$('.allProfiles').append('<p>No ads found.</p>');
}
$('#show_more_gif').hide();
}
});
}
if($('#show_more').length){
var show_more_click_count = 0;
$("#show_more").click(function(){
show_more_click_count = show_more_click_count + 1;
if(show_more_click_count == 1){
$(this).hide();
loadData();
$(window).scroll(function() {
topOfOthDiv = $(".itdiv:nth-last-child(2)").offset().top;
if($(window).scrollTop() > topOfOthDiv && records_left > 0) {
//if( $(window).scrollTop() + window.innerHeight >= document.body.scrollHeight && records_left > 0) {
//if ($(window).scrollTop() > $('body').height() / 2 && records_left > 0) {
if( typeof requestxhr == "undefined"){
loadData();
}else if (requestxhr && requestxhr.readyState == 4) {
loadData();
}
}
});
}
});
$('#show_more').one('click', function(e){
e.preventDefault();
document.getElementById('checklglast').scrollIntoView();
});
}else{
$(window).scroll(function() {
topOfOthDiv = $(".itdiv:nth-last-child(2)").offset().top;
if($(window).scrollTop() > topOfOthDiv && records_left > 0) {
if( typeof requestxhr == "undefined"){
loadData();
}else if (requestxhr && requestxhr.readyState == 4) {
loadData();
}
}
});
}
//window.addEventListener('resize', go);
$(window).on("resize", function(event){
setTimeout(function(){ go(); }, 10);
});
go();
function go(){
$( document ).ready(function() {
//console.log(isMobileWidth());
//console.log($(window).width());
if(isMobileWidth()){
$('#more_countries').attr('href','#more_countries_collapse-mob');
$('#more_regions').attr('href','#more_regions_collapse-mob');
$('#more_cities').attr('href','#more_cities_collapse-mob');
$('#more_nationalities').attr('href','#more_nationalities_collapse-mob');
$('#more_adservices').attr('href','#more_adservices_collapse-mob');
}else{
$('#more_countries').attr('href','#more_countries_collapse');
$('#more_regions').attr('href','#more_regions_collapse');
$('#more_cities').attr('href','#more_cities_collapse');
$('#more_nationalities').attr('href','#more_nationalities_collapse');
$('#more_adservices').attr('href','#more_adservices_collapse');
}
var wdt = $('#products').width();
$(".menucontain").css({"width": wdt,"padding":0});
if(document.getElementById('listgrid').value == "list"){
$(".shail_list_list").show();
$(".shail_list_grid").hide();;
if($('#myPage').width()<539){
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$('.list_caption_toggle').addClass('list_caption');
var img_wdt = $('.thumbnail img').width();
$(".list_caption").css({"width": img_wdt+0.16 });
}else{
$(".thumbnail").css({"background": "#fff" });
$(".thumbnail img").css({"border-radius": "5px 5px 5px 5px" });
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
}
var img_wdt = $('.thumbnail img').width();
}else{
var img_wdt = $('.thumbnail').width();
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
}
$(".thumbnail img").css({"height": img_wdt });
var wdt = $('.swiper-slide').width()-10;
$(".slidimg").css({"height": wdt });
$(".slidimg").css({"width": wdt });
var width = $('#mobile-indicator').width();
$("section.container-fluid").removeClass('cont_fluid_bg');
$("section.container-fluid").css({"padding-top": "10px"});
$("#top_image_div").css({"position": 'relative'});
});
};
$(document).on("mouseover", 'img.user_multi_image', function(event) {
var self = this,
i = 0,
images = $(this).data('mouseover').split(/\s+/);
(function nextImage() {
var next = images[i++ % images.length].split('#');
$(self).data('timeout', setTimeout(function() {
self.src = next[0];
nextImage();
}, 1000));
})();
}).on('mouseout', 'img.user_multi_image', function() {
clearTimeout($(this).data('timeout'));
this.src = $(this).attr('src');
});
//List-Grid
$(document).on("click", '.lgview', function(event) {
if($("#checklg").hasClass("list-group-item")){
var listwdt = $('.item.list-group-item .list-group-image').width();
/*$(".thumbnail").css({"background": "#fff" });*/
$(".thumbnail img").css({"height": listwdt });
if($('#myPage').width()<539){
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
}else{
$(".thumbnail").css({"background": "#fff" });
$(".thumbnail img").css({"border-radius": "5px 5px 5px 5px" });
}
}else {
var wdt = $('.thumbnail img').width();
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"height": wdt, "border-radius": "5px 5px 0px 0px" });
}
});
$(document).ready(function() {
if(document.getElementById('listgrid').value == "list"){
$(".shail_list_list").show();
$(".shail_list_grid").hide();;
$('#list').hide();
$('#grid').show();
if($('#myPage').width()<539){
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$('.list_caption_toggle').addClass('list_caption');
var img_wdt = $('.thumbnail img').width();
$(".list_caption").css({"width": img_wdt+0.16 });
}else{
$(".thumbnail").css({"background": "#fff" });
$(".thumbnail img").css({"border-radius": "5px 5px 5px 5px" });
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
}
}else{
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$('#list').show();
$('#grid').hide();
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
}
$('#list').click(function(event){
event.preventDefault();
$('#products .item').addClass('list-group-item');
if($('#myPage').width()>538){
$(".thumbnail").css({"background": "#fff" });
$(".thumbnail img").css({"border-radius": "5px 5px 5px 5px" });
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
}else{
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$('.list_caption_toggle').addClass('list_caption');
var img_wdt = $('.thumbnail img').width();
$(".list_caption").css({"width": img_wdt+0.16 });
}
document.getElementById('listgrid').value = "list";
$('#list').hide();
$('#grid').show();
$(".shail_list_list").show();
$(".shail_list_grid").hide();;
});
$('#grid').click(function(event){
event.preventDefault();
$('#products .item').removeClass('list-group-item');
$(".list_caption").css({"width": "auto" });
$('.list_caption_toggle').removeClass('list_caption');
document.getElementById('listgrid').value = "grid";
$(".thumbnail").css({"background": "none" });
$(".thumbnail img").css({"border-radius": "5px 5px 0px 0px" });
$('#list').show();
$('#grid').hide();
$(".shail_list_list").hide();
$(".shail_list_grid").show();;
});
//Lazy Load
$(".lazy").Lazy({
// your configuration goes here
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
onError: function(element) {
console.log('error loading ' + element.data('src'));
}
});
$(document).ajaxStop(function(){
$(".lazy").Lazy({
// your configuration goes here
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
onError: function(element) {
console.log('error loading ' + element.data('src'));
}
})
});
});
$(document).on("mouseover", '.thumbnail', function(event){
if($('#listgrid').val()=='list'){
if($('#myPage').width()>533){
$(this).css({"background": "#efefef" });
}
}else{
$(this).find('.list_caption_toggle').css({"background": "#efefef" });
}
});
$(document).on("mouseout", '.thumbnail', function(event){
if($('#listgrid').val()=='list'){
if($('#myPage').width()>533){
$(this).css({"background": "#fff" });
}
}else{
$(this).find('.list_caption_toggle').css({"background": "#fff" });
}
});
</script>
<script>
$(document).ready(function() {
function isAnchor(str){
return /\<a.*\>.*\<\/a\>/i.test(str);
}
if(isMobileWidth()){
var showChar = 125;
}else{
var showChar = 300;
}
var ellipsestext = "...";
var moretext = "Read More";
var lesstext = "Read Less";
$('#read_more').each(function() {
var content1 = $(this).html();
content1 = content1.replace(/ +(?= )/g,'');
if (isAnchor(content1)) {
var content2 = content1.replace(/<[^>]*>/g,"");
var content3 = content2.substr(showChar-10, 10);
var content4 = content1.substring(0, content1.indexOf(content3));
var showChar_length = content4.length;
showChar = showChar_length+10;
}
var content = $.trim(content1);
/*console.log(content);
console.log(content3);
console.log(showChar);*/
if(content.length > showChar) {
var c = content.substr(0, showChar);
var h = content.substr(showChar, content.length - showChar);
var html = c + '<span class="moreelipses">'+ellipsestext+'</span><span class="morecontent"><span>' + h + '</span> <a href="" class="morelink">'+moretext+'</a></span>';
$(this).html(html);
}
$('.key_description').show();
});
$(".morelink").click(function(){
if($(this).hasClass("less")) {
$(this).removeClass("less");
$(this).html(moretext);
} else {
$(this).addClass("less");
$(this).html(lesstext);
}
$(this).blur();
$(this).parent().prev().toggle();
$(this).prev().toggle();
return false;
});
$('#total_profiles').html($('#total_records').val());
});
</script>