1. Technology and Science News - ABC News
this.textStyle=";.
if(nbItemObj.authorimage!= null && & &
nbItemObj.authorimage! =").
this.textStyle =' design=size:208 px;';.
else nbItemObj.author == ").
this.textStyle =' design="padding-bottom:2 px; margin-bottom:5 px;"';.
'+this.notesocial+'.
';.
nbNoteStr += this.nbNoteDiv;.
);.
this.rowTemp += nbNoteStr;.
isHeaderLinkLoaded = untrue;// flag to check if the header link is packed.
isShareLinkLoaded = incorrect;// flag to examine if the share hyperlink is packed.
isDoneLoading = untrue;// flag to inspect if the html is done packing in the jScrollPane.
function newsBulletin(data).
if(information).
isNewDataFlag = isNewData(information);.
if(isNewDataFlag).
// clear contents initially.
newsbulletin.nbDiv.innerHTML=";.
// console.log('refresh');.
updates = data.updates;.
8. ;//
dynamicJS.load('newsBulletin','http://preview.abcnews.go.com/xmldata/newsbulletin?id=13564505');
.
feature showMoreText(id).
// get old item elevation.
var oldItemHeight = $('#nbItem _'+id). height();.
// retrieve the material from the range.
$('#text _'+id). html(contentObject [id].
// store id a list of opened up things.
fullTextList.push(id.toString());.
var newContainerHeight = $("#nbItemContainer"). elevation() + ($('#nbItem _'+id). height()-
oldItemHeight);.
$("#nbItemContainer"). css('height', newContainerHeight);.
// reinitialize scroll.
window.api.reinitialise();.
this.bio=";.
if(nbItemObj.authorbio!= null && & & nbItemObj.authorbio!="). this.bio= "+nbItemObj.author+".
this.authorBlock='.
'+this.bio+'.
'.
return this.rowTemp;.
// content.
this.text=";.
this.textCapped=";.
this.morelink='Much more'.
if(nbItemObj.text!= null).
this.text = nbItemObj.text;.
// if product is not expanded screen capped content if suitable.
9. if(nbItemObj.isExpanded!= real).
if(nbItemObj.text.length > > 63).
this.textCapped = nbItemObj.text.substring(0, 63);.
this.text = this.textCapped + '...';.
if(this.isStatusUpdate).
this.text = this.textCapped + '...' + this.morelink;.
else.
this.social=";.
// display screen products.
newsbulletin.displayItems = feature(nbItemObj).
// check if status update.
this.isStatusUpdate = (nbItemObj.label == 'Standing Update')? true: incorrect;.
// item type lesson.
this.itemTypeClass = (this.isStatusUpdate)?'orange':'blue';.
// bg position.
this.itemBgPos='100 % 55 %';.
if(nbItemObj.bgPos!= null).
this.itemBgPos = nbItemObj.bgPos;.
this.notesocial=";.
this.noteSocialStyle=";.
if(nbNote.noteAuthor.name!= null && & & nbNote.noteAuthor.name!= ").
if(this.notefb!= "else.
this.notesocial=";.
// simply pass the author graphic if it's not presented in any one of the products yet.
if($. inArray(it.author.image, newsbulletin.authorCutouts) == -1).
itemDetails.authorimage = it.author.image;.
10. // clear the author cutouts collection.
newsbulletin.authorCutouts = [];.
// check to see if there is a height set for container, if so clear it.
// avoids cacheing.
var hasHeight = $('#nbItemContainer'). attr('design');.
if (typeof hasHeight!= 'undefined').
$('#nbItemContainer'). removeAttr('style');.
if(it.text!= ").
itemDetails.text = it.text;.
else.
itemDetails.bgPos='bottom right';.
window.api.getContentPane(). html(.
newsbulletin.load().
);.
,.
60000.
);.
setInterval(feature().
// we could call "pane.jScrollPane(setups)" once again yet it is.
// a lot more practical to call via the API as then the initial.
// setups we came on are instantly born in mind.
// Initialization of the container must be done after all the markup has actually been filled.
// given that there is no audience that can be entered reinitialise() for callback.
if (isDoneLoading).
window.api.reinitialise();.
isDoneLoading = incorrect;.