3. //item type class
this.itemTypeClass = (this.isStatusUpdate)?'orange':'blue';
//bg position
this.itemBgPos = '100% 55%';
if(nbItemObj.bgPos != null)
this.itemBgPos = nbItemObj.bgPos;
function showMoreText(id)
//grab old item height
var oldItemHeight = $('#nbItem_'+id).height();
//retrieve your content from your array
$('#text_'+id).html(contentObject[id])
//store id any list of opened objects
fullTextList.push(id.toString());
var newContainerHeight = $("#nbItemContainer").height() + ($('#nbItem_'+id).height()-
oldItemHeight);
$("#nbItemContainer").css('height', newContainerHeight);
//reinitialize scroll
window.api.reinitialise();
$.each(updates, function(ind)
var itemDetails = new Object();
it = updates[ind];
//populate the actual itemDetails object
itemDetails.id = it.objId;
itemDetails.title = it.title;
itemDetails.objType = it.objType;
itemDetails.link = it.link;
5. 7500)
setInterval(
function()
if(it.author.name == '')
itemDetails.author = 'ABC News'
itemDetails.authorfb = 'http://www.facebook.com/abcnews'
itemDetails.authortwitter = 'http://twitter.com/abc'
//clear the author cutouts array
newsbulletin.authorCutouts = [];
// check to discover if there exists a height set regarding container, in in which case obvious it
// prevents cacheing
var hasHeight = $('#nbItemContainer').attr('style');
if (typeof hasHeight != 'undefined')
$('#nbItemContainer').removeAttr('style');
//author image
this.nbItemStyle = '';
6. this.nbH4Class = 'class=nbheader';
this.nbH4Style = '';
this.nbItemStyleAuthor = '';
if(nbItemObj.authorimage != null && nbItemObj.authorimage != '')
this.nbH4Style = ' style=width:210px;';
this.nbItemStyle = 'background:url('+nbItemObj.authorimage+') no-repeat bottom right'//+
this.itemBgPos;
this.nbItemStyleAuthor = ' nbItemContentsAuthor'
isHeaderLinkLoaded = false; // flag to check when the header link is
http://hcgdietdangersexposed.com/hcg-diet-side-effects/ loaded
isShareLinkLoaded = false; // flag to test in the wedding the share hyperlink is loaded
isDoneLoading = false; // flag to examine on if the html is done loading in the jScrollPane
function newsBulletin(data)
if(data)
isNewDataFlag = isNewData(data);
if(isNewDataFlag)
//clear contents first
newsbulletin.nbDiv.innerHTML = '';
//console.log('refresh');
updates = data.updates;
headerLink = data.widgetLink;
shareLink = data.shareLink;
if (headerLink != '' && headerLink != null && !isHeaderLinkLoaded)
var twitterImg = " "
$("#newsbulletin > .midcontainer > .widget_head").append("");
$("#newsbulletin > .midcontainer > .widget_head > .twitterLink any > .twitterContent").append(""
+ twitterImg + "");
7. isHeaderLinkLoaded = true;
if (it.notes)
itemDetails.notes = it.notes;
window.api.getContentPane().html(
newsbulletin.load()
);
,
60000
);
setInterval(function()
// we might contact "pane.jScrollPane(settings)" once again but it is
// much more convenient to end up being able to contact through the API as then a original
// options we passed within are usually automatically remembered.
// Initialization of the container should be done right after all the markup hcg drops yvonne may be
loaded
// since there is simply no listener that will could potentially be passed directly into reinitialise()
regarding callback
if (isDoneLoading)
window.api.reinitialise();
isDoneLoading = false;
this.notetwitter = '';
if(nbNote.noteAuthor.twitter != null && nbNote.noteAuthor.twitter != '')
this.notetwitter = ''
//text
this.text = '';
this.textCapped = '';
this.morelink = 'More'