BK Press Release -Virtual Open Houses

‘+adsdata[id].advertisementInstance.description+’

‘+redeem+’

‘;
jQuery(‘#details292’).html(details);
jQuery(‘#details292’).show();

}
function hideDiv()
{
jQuery(‘#details292’).html();
jQuery(‘#details292’).hide();
jQuery(‘#listdata292’).show();
jQuery(‘#message292′).hide();

}
function openAdsURl(id)
{

}
function saveURL(id)
{
gotologin();

}
function redeemURL(id)
{
gotologin();

}
function redeemURLData(id)
{
gotologin();

}
function deleteURL(id)
{
gotologin();

}
function gotologin()
{
window.location.href = “https://realtytimes.com/myprofile?rtmpage=null”;
}
function shareURL(id)
{

for (let [key, value] of Object.entries(adsdata[id].advertisementInstance.assets)) {
if(value.displayType==”full_landscape_standard”)
{
var assetId=value.assetId;
var imgurl=value.assetUrl;

}
}
var ads_id=adsdata[id].impressionId;
jQuery.ajax({
url:’index.php’,
type: “POST”,
dataType: ‘json’,
data: {
‘id’: ads_id,
‘asset_id’:assetId,
‘status’:adsdata[id].impressionStatus,
‘option’:’com_adspersistance’,
‘task’:’shareImpression’,
‘baab7b6ffb4a5301ae70616b8f756b0a’:1
}
}).done(function(data) {
var url=data.url;
var html=’

‘+adsdata[id].advertisementInstance.name+’

‘;
jQuery(‘#details292’).html(html);
jQuery(‘#message292’).hide();
jQuery(‘#messagecontent292′).text(data.msg);

});
}
function posimpressevent(ads_id,assetId,impressionStatus)
{
jQuery.ajax({
url:’index.php’,
type: “POST”,
dataType: ‘json’,
data: {
‘id’: ads_id,
‘asset_id’:assetId,
‘status’:impressionStatus,
‘option’:’com_adspersistance’,
‘task’:’postImpressEvent’,
‘baab7b6ffb4a5301ae70616b8f756b0a’:1
}
}).done(function(data) {
});
}
function clickimpressevent(id,ads_id,assetId,impressionStatus)
{
jQuery.ajax({
url:’index.php’,
type: “POST”,
dataType: ‘json’,
data: {
‘id’: ads_id,
‘asset_id’:assetId,
‘status’:impressionStatus,
‘option’:’com_adspersistance’,
‘task’:’clickImpressEvent’,
‘baab7b6ffb4a5301ae70616b8f756b0a’:1
}
}).done(function(data) {

});
window.open(adsdata[id].advertisementInstance.purchaseUrl,’_blank’);
}
function mailUrl()
{
var emailPat = /^([a-zA-Z0-9_.-])+(@)(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
var email= jQuery(‘#email’).val();
var url= jQuery(‘#shareUrl’).val();
var name= jQuery(‘#name’).val();
var emailaddress=jQuery(‘#emailaddress’).val();
var imageurl=jQuery(‘#imageurl’).val();
var note=jQuery(‘#note’).val();
if(name==””)
{
alert(“Please Enter Full Name!”);
jQuery(‘#name’).focus();
return false;
}
if(email==””)
{
alert(“Please Enter Email!”);
jQuery(‘#email’).focus();
return false;

}
else
{
var matchArray = email.match(emailPat);
if (matchArray == null) {
alert(“Please enter valid email!”);
jQuery(‘#email’).focus();
return false;
}
}
if(emailaddress==””)
{
alert(“Please Enter Email!”);
jQuery(‘#emailaddress’).focus();
return false;

}
else
{
var matchArray = emailaddress.match(emailPat);
if (matchArray == null) {
alert(“Please enter valid email!”);
jQuery(‘#emailaddress’).focus();
return false;
}
}

jQuery.ajax({
url:’index.php’,
type: “POST”,
dataType: ‘json’,
data: {
‘url’: url,
’email’: email,
’emailaddress’: emailaddress,
‘note’: note,
‘name’:name,
‘imageurl’:imageurl,
‘option’:’com_adspersistance’,
‘task’:’mailUrl’,
‘baab7b6ffb4a5301ae70616b8f756b0a’:1
}
}).done(function(data) {
jQuery(‘#message292’).show();
jQuery(‘#messagecontent292’).text(data.msg);
});

}
function showMainTab()
{
jQuery(‘#tab-1’).addClass(‘active’);
jQuery(‘#tab-2’).removeClass(‘active’);
jQuery(‘#myoffersTabs-pane-1’).show();
jQuery(‘#myoffersTabs-pane-2’).hide();
jQuery(‘#myoffersTabs-pane-2′).css(“visibility”, “hidden”);
var htmldata=””;
var s=0;
for (let [key, value] of Object.entries(adsdata)) {
if(adsdata[s].impressionStatus!=”saved”)
{
for (let [mkey, mvalue] of Object.entries(adsdata[s].advertisementInstance.assets)) {
if(mvalue.displayType==”tile”)
{
var assetId=mvalue.assetId;
var imgurl=mvalue.assetUrl;
posimpressevent(adsdata[s].impressionId,assetId,adsdata[s].impressionStatus);
}
}
htmldata=htmldata+’

‘+adsdata[s].advertisementInstance.name+’

‘+adsdata[s].advertisementInstance.description+’

‘;
}
s++;
}
if(htmldata==””)
{
htmldata=”;

}
jQuery(‘#listdata292’).html(htmldata);

}

function showsavedetail(id)
{
showMainTab();
showDiv(id)
}
function showSaveTab()
{
jQuery(‘#tab-2’).addClass(‘active’);
jQuery(‘#tab-1’).removeClass(‘active’);
jQuery(‘#myoffersTabs-pane-1’).hide();
jQuery(‘#myoffersTabs-pane-2’).show();
jQuery(‘#listdatasave292’).show();
jQuery(‘#myoffersTabs-pane-2’).css(“visibility”, “visible”);
jQuery(‘#listdatasave292′).css(“visibility”, “visible”);
var htmldata=””;
var s=0;
for (let [key, value] of Object.entries(adsdata)) {
if(adsdata[s].impressionStatus==”saved”)
{
for (let [mkey, mvalue] of Object.entries(adsdata[s].advertisementInstance.assets)) {
if(mvalue.displayType==”tile”)
{
var assetId=mvalue.assetId;
var imgurl=mvalue.assetUrl;
posimpressevent(adsdata[s].impressionId,assetId,adsdata[s].impressionStatus);
}
}
htmldata=htmldata+’

‘+adsdata[s].advertisementInstance.name+’

‘+adsdata[s].advertisementInstance.description+’

1 2

Share