You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//create navigation for front-page slider for premium and normal profiles
//count the number of profiles and add the same number of link in the pagination div
$('.mobile-profiles-slider .slider-pagination').each(function(index, el) {
if(!$(this).html()) {
var profiles = $(this).siblings('.girl').length;
if(profiles > 1) {
for (var i = 1; i <= profiles; i++) {
$(this).append('<a href="#'+i+'">'+i+'</a>');
}
$(this).find('a:first').addClass('active');
}
}
});
//switch images on pagination click
$('.mobile-profiles-slider .slider-pagination a').click(function(event) {
event.preventDefault();
$(this).parent().find('a.active').removeClass('active');
$(this).addClass('active');
$(this).parents('.mobile-profiles-slider').find('.girl').hide();
$(this).parents('.mobile-profiles-slider').find('.girl:eq('+(event.target.text - 1)+')').show();
});
//front-page hide all profiles except the first one in the list
$('.mobile-profiles-slider').each(function(index, el) {
$(this).find('.girl:visible').slice(1).hide();
});
//front-page hide all reviews except the first one
if($('.onereviewtext-homepage')) {
$('.onereviewtext-homepage:visible').slice(1).hide();
}
//swipeleft on frontpage body profiles list
$('.mobile-profiles-slider').on( "swipeleft", function(event) {
if(!$(this).find('.girl:last').is(':visible')){
$(this).find('.girl:visible:first').hide().nextAll('.girl:hidden:first').show();
$(this).find('.slider-pagination .active').removeClass('active').next('a').addClass('active');
} else {
var div = $(this).find('.girl:visible:first');
var divwidth = $(this).find('.girl:visible:first').width();
$(div).find('.thumb').animate({
width: (divwidth - (divwidth*0.2)), //we shrink the div by 20% to show the visitor that he's at the last image
},
100, function() {
$(this).animate({width: '100%'}, 100);
});
}
}); //swipe right to left
//swiperight on frontpage body profiles list
$('.mobile-profiles-slider').on( "swiperight", function(event) {
if(!$(this).find('.girl:first').is(':visible')){
$(this).find('.girl:visible:first').hide().prevAll('.girl:hidden:first').show();
$(this).find('.slider-pagination .active').removeClass('active').prev('a').addClass('active');
} else {
var div = $(this).find('.girl:visible:first');
var divwidth = $(this).find('.girl:visible:first').width();
$(div).find('.thumb').css('float', 'right').animate({
width: (divwidth - (divwidth*0.2)),//we shrink the div by 20% to show the visitor that he's at the first image
},
100, function() {
$(this).animate({width: '100%'}, 100, function(){
$(this).css('float', 'left');
});
});
}
}); //swipe left to right
} else {
$('.mobile-profiles-slider .girl').show();
}
if(!isphone || headerwidth > start_mobile_size) {
if(settings.left_panel_active == 1) {
mobile_sidebar('left','hide');
}
if(settings.right_panel_active == 1) {
mobile_sidebar('right','hide');
}
}
}//function prepare_responsive()
var headerwidth = $(window).width();
prepare_responsive();
$(window).resize(function(){
prepare_responsive();
});
//show the sidebar for mobile when clicking the icon in the top menu
$('.show-left-mobile-sidebar').click(function() {
mobile_sidebar('left','show');
});
$('.show-right-mobile-sidebar').click(function() {
mobile_sidebar('right','show');
});
//hide the sidebars for mobile when clicking outside the sidebar
$('.mobile-sidebar-content-overlay').click(function() {
if(settings.left_panel_active == 1) {
mobile_sidebar('left','hide');
}
if(settings.right_panel_active == 1) {
mobile_sidebar('right','hide');
}
});
//hide child menus in left mobile sidebar
$('.left-mobile-sidebar li a').click(function(click) {
if ( $(this).parent().children('ul').size() > 0 && $(this).parent().children('ul').is(':hidden') ) {
$('.left-mobile-sidebar li ul').slideUp();
$(this).parent().children('ul').slideDown();
click.preventDefault();
}
})
//hide/show country list when clicking the country dropdown
$('.left-mobile-sidebar .countries .selected-location').click(function() {
$('.left-mobile-sidebar .countries .country-list').slideToggle('slow');
});
$(".sidebar-right .dropdownlinks-dropdown h4").click(function(){
$(this).parent().find('ul').stop().slideToggle('fast');
});
function mobile_sidebar(sidebar, state) {
if(sidebar == 'right'){
var sidebarclass = '.right-mobile-sidebar';
} else {
var sidebarclass = '.left-mobile-sidebar';
}
if(state == 'show'){
var sidebarwidth = $(sidebarclass).width();
$('.mobile-menu').slideUp('fast');
if(sidebar == 'right'){
var bodyanimate = { 'right': sidebarwidth };
} else {
var bodyanimate = { 'left': sidebarwidth };
}
$('body').css({"width":($(window).width() - 20),"position":"absolute", "overflow-x":"hidden"}).animate(bodyanimate, 400);
$('.mobile-sidebar-content-overlay').css({ opacity: 0 }).show().fadeTo('slow', 0.7);
$(sidebarclass).show().css(sidebar, "-"+sidebarwidth+"px");
if(sidebar == 'right'){
var sidebaranimate = { 'right': "0" };
$(sidebarclass).find('.dropdownlinks-dropdown ul').first().show('slow');
} else {
var sidebaranimate = { 'left': "0" };
}
$(sidebarclass).css(sidebar, "-"+sidebarwidth+"px").animate(sidebaranimate, 400, function() {
if(sidebar == 'right'){
settings.right_panel_active = 1;
} else{
settings.left_panel_active = 1;
}
});
} else {
if(sidebar == 'right'){
var bodyanimate = { 'right': "0" };
} else {
var bodyanimate = { 'left': "0" };
}
$('body').animate(bodyanimate, 400, function(){
$('body').css({"width":"","position":"inherit", "overflow-x":"", "left":"", "right": ""});
});
$('.mobile-sidebar-content-overlay').hide();
$('.mobile-menu').slideDown('fast');
var sidebarwidth = $(sidebarclass).width();
if(sidebar == 'right'){
var sidebaranimate = { 'right': "-"+sidebarwidth };
} else {
var sidebaranimate = { 'left': "-"+sidebarwidth };
}
$(sidebarclass).animate(sidebaranimate, 400, function() {
$(sidebarclass+' li ul').hide();//hide all opened submenus
$(sidebarclass+' .country-list').hide(); //hide country list dropdown
$(sidebarclass).hide();
});
settings.right_panel_active = '';
settings.left_panel_active = '';
}
}
//right-sidebar js START
//escort js
$(".sidebar-right .buyfeatured").click(function(){
$('.buyfeatured_details').slideDown("fast");
});
$(".buyfeatured_details .closebtn_box").click(function(){
$('.buyfeatured_details').slideUp("fast");
});
$(".sidebar-right .buypremium").click(function(){
$('.buypremium_details').slideDown("fast");
});
$(".buypremium_details .closebtn_box").click(function(){
$('.buypremium_details').slideUp("fast");
});
//admin menu js
$(".manuallyactivatetour").click(function(){
$('.manuallyactivatetour_div').slideDown('fast');
$('.manuallyactivatevip_div').slideUp('fast');
});
$(".manuallyactivatevip").click(function(){
$('.manuallyactivatevip_div').slideDown('fast');
$('.manuallyactivatetour_div').slideUp('fast');
});
//escort menu shown to admin
$('.upgradebutton').click(function(){
$('.upgradebuttons').slideDown();
$('.upgradeescortbox').slideUp();
$(this).parent().siblings('.upgradeescortbox').slideDown('fast');
$(this).parent().slideUp('fast');
});
$('.upgradeescortbox .closebtn_box').click(function(){
if($(this).parent().siblings('.upgradebuttons')) {
$(this).parent().siblings('.upgradebuttons').slideDown('fast');
}
$(this).parent().slideUp('fast');
});
//agency js
$('.addescort').click(function(){
$('.addnewescortform').slideToggle("slow");
$('.addescort span').toggle();
});
$('.agencyeditbuttons a').click(function(){
var className = $(this).attr("class");
if(settings.added_classes == '1'){
mobile_sidebar('right','hide');
$('html, body').animate({ scrollTop: ($('.agency_options_'+className).parent().offset().top - $('.mobile-menu').height() - 5) }, 'fast');
}
$('.agency_options_dropdowns').slideUp();
$('.agency_options_'+className).slideDown();
$('.girlsingle').slideUp();
});
$('.agency_options_dropdowns .closebtn').click(function(){
$(this).parent().slideUp();
$('.girlsingle').slideDown();
});
//right-sidebar js END
//animate loader div
loader=function(l, nohtml){
if(!nohtml) {
$(l).html('<div class="loader rad3"><span class="rad3"></span></div>');
}
if($(l).find('.loader').is(':visible')){
$(l).find('.loader span').css('left', '-100%').animate({ 'left': '100%'}, 2000, function(){
loader(l, "no");
});
}
}
function isElementInViewport(el) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(el).offset().top;
var elemBottom = elemTop + $(el).height();
//return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
return ((elemTop >= docViewTop) && (elemTop <= docViewBottom) || (elemBottom >= docViewTop) && (elemBottom <= docViewBottom));
}
});
function getCookie(c_name) {
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0; i<ARRcookies.length;i++) {
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name) {
return unescape(y);
}
}
}
The text was updated successfully, but these errors were encountered:
Hi, i hope someone can help me with this, thanks in advance.
jQuery(document).ready(function($) {
var start_mobile_size = 960;
});
$('.jcarousel').jcarouselAutoscroll({
autostart: true
});
});
function getCookie(c_name) {
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0; i<ARRcookies.length;i++) {
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name) {
return unescape(y);
}
}
}
The text was updated successfully, but these errors were encountered: