4. Here puppies are used for love messengers! The puppy she sees's she goes crazy..! and do watch for what happened in the end!!<\/div>
');
}
function getFbPostHolder(url)
{
return $('
');
}
//load next stories based on user scroll
$(window).scroll(function() {
var lastUrl = "";
var lastTitle = "";
//update urls
var lastMagzCode = "";
var lastMagzName = "";
var lastMagzlogo = "";
var lastMagzStatus = 0;
//update bottom share-bar
if(page_urls.length > 0)
{
lastUrl = page_urls[0];
lastTitle = page_titles[0];
lastMagzCode = pub_magz_codes[0];
lastMagzName = pub_magz_titles[0];
lastMagzlogo = pub_magz_logos[0];
lastMagzStatus = pub_magz_status[0];
}
if(page_urls.length > 0)
{
lastUrl = page_urls[0];
lastTitle = page_titles[0];
lastMagzCode = pub_magz_codes[0];
lastMagzName = pub_magz_titles[0];
lastMagzlogo = pub_magz_logos[0];
lastMagzStatus = pub_magz_status[0];
}
for (i = 0; i < page_urls.length; i++) {
if($(window).scrollTop() >= positions[i].top)
{
lastUrl = page_urls[i];
lastTitle = page_titles[i];
lastMagzCode = pub_magz_codes[i];
lastMagzName = pub_magz_titles[i];
lastMagzlogo = pub_magz_logos[i];
lastMagzStatus = pub_magz_status[i];
}
}
if(updateUrl != lastUrl)
{
updateUrl = lastUrl;
history.replaceState(null, null, lastUrl);
document.title = lastTitle.split(/[^a-zA-Z0-9]/).join("+");
apTractionLikeView("view", lastUrl.split("/")[1],"NA");
$('.share-bar').find('.magz-link').html(lastMagzName);//attr("href", "http://www.google.com/")
$('.share-bar').find('.magz-link').attr("href", "/"+lastMagzCode);
$('.share-bar').find('.magz-logo').attr("src", lastMagzlogo);
$('.share-bar').find('.approved-share-bar').hide();
$('.share-bar').find('.not-approved-share-bar').hide();
if(lastMagzStatus == 2)
$('.share-bar').find('.approved-share-bar').show();
else
$('.share-bar').find('.not-approved-share-bar').show();
//update sharebar
$(".post-social").empty();
if((navigator.userAgent.match(/(iPhone)/g) || navigator.userAgent.match(/(Android)/g))){
var html = '
WhatsApp';
$(".post-social").append($(html));
}
var html = '
Facebook';
$(".post-social").append($(html));
var html = '
Twitter';
$(".post-social").append($(html));
var html = '
Google Plus';
$(".post-social").append($(html));
var html = '
Report Spam';
$(".post-social").append($(html));
//also ping view page
ga('set', 'page', lastUrl);
ga('send', 'pageview');
ga('send', 'event', 'view', lastTitle, 'NA');
}
if(Math.abs($(window).scrollTop() + $(window).height() - $(document).height()) < 200 ) {
$("#stories-list").find(".stry-data-container").each(function(i, item){
if(i==next)
{
prprheaderhtml(JSON.parse($(item).find(".stry-header-data").val()));
prprShareBar(JSON.parse($(item).find(".stry-header-data").val()));
prprhtml(JSON.parse($(item).find(".stry-data").val()), JSON.parse($(item).find(".stry-header-data").val()));
}
});
next++;
}
});
function prepr_opp(hData)
{
if(!hData.hasOwnProperty('opportunties'))
return "";
//console.log(opp);
// ref_array = ref.split(',');
opp = hData.opportunties;
var html='';
for(i = 0;i
26)
{
title = title.slice(0,23)+"...";
}
html += ''+title+'';
}
return ''+
'
Opportunities
'+
'
'+
'
'+
''+
'
';
}
function prepr_team(hData)
{
if(!hData.hasOwnProperty('team'))
return "";
var team = hData.team;
var html ="";
for(i = 0;i26)
{
title = title.slice(0,23)+"...";
}
html += ''+title+'';
}
return ''+
'
Team Members
'+
'
'+
'
'+
''+
'
';
}
function prprhtml(data, hData){
// start of story content preparing
if(hData.type == "1")
{
var stryHtml = ''+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
Keywords:'+
'
'+
'
'+
'
'+
''+
'
'+
'
'+
'
'+
'
'+
'
'+
'
';
$stryContent = $(stryHtml);
for(var item=0; item'+tags[item]+'');
}
$stryContent.find('.comments-container').append(prepareComments(hData));
$stryContent.find(".cmntBtn" ).trigger( "click" );
$("#stories-list").append($stryContent);
stry_id++;
}
//-------------- End of story_content preparing---------------------
//------------ start of project_content preparing--------------------
else if(hData.type=="5")
{
var ProjectHtml = ''+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
Technologies Used
'+
'
'+
'
'+
'
'+
'
Status
'+
'
'+(hData.proj_status == 0? 'Yet to start': ((hData.proj_status == 1 )? 'Ongoing':'Completed'))+'
'+
'
'+
'
'+
'
Time Period
'+
'
'+hData.jobtime+'
'+
'
'+
prepr_opp(hData)+
prepr_team(hData)+
'
'+
'
'+
'
'+
'
Project Description:
'+
'
'+
'
'+
'
'+
'
'+
'
'+
''+
'
'+
'
'+
'
'+
''+
'
'+
''+
'';
$ProjectContent = $(ProjectHtml);
for(var item=0; item