| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2b.hellogtx.com/public/js/ |
Upload File : |
$(document).on('click' , '.moreless_anchor', function(){
if($(this).hasClass('expand')) {
$(this).css({'right':'20px','bottom':'0' ,'position':'absolute' }).addClass('collapse-act').removeClass('expand').html('+More');
$(this).parent().css({'height':'110px','overflow':'hidden' });
}else {
$(this).css({'right':'auto','bottom':'auto' ,'position':'relative' }).addClass('expand').addClass('collapse-act').html('-Less');
$(this).parent().css({'height':'auto','overflow':'auto' });
}
});
$(document).on('click' , '.iamplusminus', function(){
if($(this).hasClass('expand')) {
$(this).html('<i class="fa fa-plus"></i>').addClass('collepse').removeClass('expand').attr('title','More...');
$(this).parent().css({'height':'180px'});
} else {
$(this).html('<i class="fa fa-minus"></i>').addClass('expand').removeClass('collepse').attr('title','Less...');;
$(this).parent().css({'height':'auto'});
}
});
$(document).on('click' , '.close-pop-timeout', function(){
// alert('1');
$.ajax({
url : SITEURL + 'index/write-session-popup' ,
type : 'POST',
async : false ,
data : {} ,
dataType : 'json',
success : function(result) {
if(result.status == 'success') {
return (result.price);
}
},
error : function(result) {
}
});
});
if( !Call_Back ) {
setTimeout(function () {
// $("#myModa1Enquiry").modal('show');
}, 30000);
}
function trimcontent( showChar )
{
var moretext = "+More";
var lesstext = "-Less";
$('.more').each(function() {
var content = $(this).html();
if(content.length > showChar) {
var c = content.substr(0, showChar);
var h = content.substr(showChar, content.length - showChar);
var html = '<span class="defaultcontent" >' + c + '</span><span class="morecontent">' + h + '</span>\n\
<a style="color:#ea272d" href="javascript:void();" class="morelink">' + moretext + '</a>';
$(this).html(html);
}
});
$(".morelink").click(function(){
if($(this).hasClass("less")) {
$(this).removeClass("less").html(moretext);
} else {
$(this).addClass("less").html(lesstext);
}
$(this).prev().toggle();
return false;
});
$('span.morecontent').hide();
$('.defaultcontent , .morecontent').css({'font-size':'12px' ,'text-transform':'none' ,'font-weight':'normal' });
}
function trimcontentNew( showChar )
{
var moretext = "+More";
var lesstext = "-Less";
$('.more_html---').each(function() {
var content = $(this).html();
if(content.length > showChar) {
var c = content.substr(0, showChar);
var h = content.substr(showChar, content.length - showChar);
var html = '<span class="defaultcontent" >' + c + '</span><span class="morecontent">' + h + '</span>\n\
<a style="color:#ea272d" href="javascript:void();" class="morelink">' + moretext + '</a>';
$(this).html(html);
}
});
$(".morelink").click(function(){
if($(this).hasClass("less")) {
$(this).removeClass("less").html(moretext);
} else {
$(this).addClass("less").html(lesstext);
}
$(this).prev().toggle();
return false;
});
$('span.morecontent').hide();
$('.defaultcontent , .morecontent').css({'font-size':'12px' ,'text-transform':'none' ,'font-weight':'normal' });
}
function moreless(type, e)
{
if (type == null) {
$(e).parent().find('a.limore').toggleClass("hidee");
}
else if (type == 'li') {
$(e).parent().parent().find('li.limore').toggleClass("hidee")
}
$(e).html(($(e).text() == '-') ? '+' : '-');
}
function modify_enquiry(that)
{
$(that).hide();
$('.class-continue').hide();
$('.package_enquiry #displaySendEnquiryThanks, .package_enquiry #tableCost, .class-modify-enquiry').hide();
$('.extraMarkUpInput').val('');
$('.package_enquiry .smsg').html('').hide();
$(that).prev().html('Calculate Cost & Send Enquiry').attr('disabled', false).show();
}