SlideShare a Scribd company logo
1 of 11
Download to read offline
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;.
headerLink = data.widgetLink;. 
shareLink = data.shareLink;. 
if (headerLink!= "& & headerLink!= null && & &! isHeaderLinkLoaded 
). var twitterImg=" " 
$("#newsbulletin >>. midcontainer >>. widget_head"). append("");. 
$("#newsbulletin >>. midcontainer >>. widget_head >>. twitterLink a >>. twitterContent"). 
append("" + twitterImg + "");. 
isHeaderLinkLoaded = real;. 
lastNBObjStr = currNBObjStr;. 
return isNewTemp;. 
// construct a name worth pair list of id/text. 
contentObject [itemDetails.id] = itemDetails.text. 
itemDetails.isExpanded = ($. inArray(itemDetails.id, fullTextList) > > -1)? real: false;. 
// develop markup. 
$("#nbItemContainer"). append(newsbulletin.displayItems(itemDetails));. 
);. 
$("#nbItemContainer"). append -LRB-''-RRB-;. 
// established the elevation of container div. 
$("#nbItemContainer"). css('height',$("#nbItemContainer"). height());. 
if (shareLink!= "& & shareLink!= null && & &! isShareLinkLoaded 
).$("#newsbulletin >. midcontainer >>. nbFooter"). css("height":"35px", "border-top":"1px strong 
#d 5d5d5", "border-bottom":"border-bottom:1 px solid #eaeaea");. 
$("#newsbulletin >>. midcontainer >>. nbFooter"). append("");. 
isShareLinkLoaded = real;. 
if($. browser.msie). 
if ($. browser.version. midcontainer >>. nbFooter"). css("screen":"none");. 
var timeoutId = setTimeout(feature().
$("#newsbulletin >>. midcontainer >>. nbFooter"). css("display":"block");. 
clearTimeout(timeoutId);. 
, 3000);. 
if(nbItemObj.author!= null && & & nbItemObj.author! =") this.twitter!= "). 
this.socialCustomStyle=";. 
this.social = this.fb + this.twitter;. 
this.socialStyle =' design="height:21 px; cushioning: 2px 0px;' + this.socialCustomStyle + '"';. 
this.categoryTag=";. 
this.nbTextOverride=";. 
this.rowTemp="+this.authorBlock+'. 
'+nbItemObj.date+'. 
'+this.title+'. 
'+this.text+'. 
// social. 
this.social=";. 
this.socialStyle=";. 
this.authorBlock=";. 
this.divider=";. 
this.fb=";. 
if(nbItemObj.authorfb!= null && & & nbItemObj.authorfb!="). this.fb= ". 
// include in dismiss listing. 
if(it.author.image!= "& &($. inArray(it.author.image, newsbulletin.authorCutouts) == -1)). 
newsbulletin.authorCutouts.push(it.author.image);. 
if (idx == nbNotes.length-1). 
nbNoteDivider=";. 
, 5000);.
;. 
addOnload(newsbulletin.load());. 
dynamicJS.unload('newsBulletin'+nbjsId, newsbulletin.baseloc+'/ xmldata/newsbulletin? 
id=15691212&&'+nbjsId); 
. isDoneLoading = real;. 
if ($. browser.webkit). 
if(nbjsId. midcontainer >>. nbFooter"). css("display screen":"none");. 
var timeoutId = setTimeout(feature(). 
$("#newsbulletin >>. midcontainer >>. nbFooter"). css("display":"block");. 
clearTimeout(timeoutId);. 
, 3000);. 
http://spwebsolution.com/services/software-development/ 
// title. 
this.title='. 
'+nbItemObj.title+'. 
';. 
if(nbItemObj.link!= null && & & nbItemObj.link!= "). 
this.title=". 
// author picture. 
this.nbItemStyle=";. 
this.nbH4Class='class=nbheader';. 
this.nbH4Style=";. 
this.nbItemStyleAuthor=";. 
if(nbItemObj.authorimage!= null && & & nbItemObj.authorimage! ="). 
this.nbH4Style =' design=size:210 px;';. 
this.nbItemStyle='background: link('+nbItemObj.authorimage+') no-repeat bottom right'//+ 
this.itemBgPos;.
this.nbItemStyleAuthor =' nbItemContentsAuthor'. 
if (it.notes). 
itemDetails.notes = it.notes;. 
lastNBObjStr=";. 
function isNewData(data). 
isNewTemp = untrue;. 
currNBObjStr=";. 
$. each(data.updates, feature(ind). 
currNBObjStr = currNBObjStr + data.updates [ind] objId + data.updates [ind] day;. 
);. 
// console.log('x'+currNBObjStr);. 
// console.log('y'+lastNBObjStr);. 
if(currNBObjStr!= lastNBObjStr). 
isNewTemp = true;. 
else. 
// console.log('no freshen');. 
this.nbNoteDiv='. 
'+nbNote.noteHeadline+'. 
'+this.noteAuthorBlock+'. 
'+nbNote.noteOverview+'. 
'+this.social+'. 
';. 
if (nbItemObj.notes). 
nbNotes = nbItemObj.notes;. 
nbNoteStr=";. 
nbNoteDivider=";.
$. each(nbNotes, function(idx). 
nbNote = nbNotes [idx];. 
this.noteAuthorBlock=";. 
this.notefb=";. 
if(nbNote.noteAuthor.facebook!= null && & & nbNote.noteAuthor.facebook!="). this.notefb= ". 
this.twitter=";. 
if(nbItemObj.authortwitter!=null & & nbItemObj.authortwitter!="& ). this.twitter= ". 
this.notetwitter=" 
;. if(nbNote.noteAuthor.twitter!=null & & nbNote.noteAuthor.twitter&!="). this.notetwitter= ". 
7500). setInterval (. 
feature(). 
this.notebio=";. 
if(nbNote.noteAuthor.bio!= null && & & nbNote.noteAuthor.bio!="). this.notebio= 
"+nbNote.noteAuthor.name+". this.noteAuthorBlock='.'+this.notebio+'. 
'. 
if(it.author.name == "). 
itemDetails.author='ABC Information'. 
itemDetails.authorfb='http://www.facebook.com/abcnews'. 
itemDetails.authortwitter='http://twitter.com/abc'. 
$. each(updates, feature(ind). 
var itemDetails = new Object();. 
it = updates [ind];. 
// populate the itemDetails object. 
itemDetails.id = it.objId;. 
itemDetails.title = it.title;. 
itemDetails.objType = it.objType;.
itemDetails.link = it.link;. 
itemDetails.date = it.date;. 
itemDetails.label = it.label;. 
itemDetails.author = it.author.name;. 
itemDetails.authorbio = it.author.bio;. 
itemDetails.authorfb = it.author.facebook;. 
itemDetails.authortwitter = it.author.twitter;. 
itemDetails.feed = it.feed;. 
itemDetails.category = it.category;. 
// set defaults if product is a condition upgrade. 
if(itemDetails.label == 'Condition Update'). 
if(it.author.image == "). 
it.author.image='http://a.abcnews.com/assets/images/abc_news_logo_84x84.png'. 
". 
newsbulletin.nbFooter="". 
// append widget header. 
$("#newsbulletin >>. midcontainer"). append("");. 
$("#newsbulletin >>. midcontainer"). append(newsbulletin.nbContainer);. 
$("#newsbulletin >>. midcontainer"). append(newsbulletin.nbFooter);. 
newsbulletin.nbDiv = document.getElementById('nbItemContainer');. 
nbjsId = 0;. 
newsbulletin.load = feature(). 
// alert(newsbulletin.baseloc+'/ xmldata/newsbulletin? id=15691212&& twOverride=& 
lpos=&'+newsbulletin.lpos +'& area =&'+nbjsId )// to try and manage caching in webkit web 
browsers. 
dynamicJS.load('newsBulletin'+nbjsId, newsbulletin.baseloc+'/ xmldata/newsbulletin? 
id=15691212&& twOverride=& lpos=&'+newsbulletin.lpos2+'& area=&'+nbjsId)
;// 
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.
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;.
// 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;.
http://www.computertrainingschools.com/software-development-training/

More Related Content

What's hot

Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newspainstakingsled66
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsracialgimmick716
 
Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC Newscoldstudent3879
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newswomanlygatherin92
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsmoaninglunatic320
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newspainstakingsled66
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coveragetalloration5719
 
Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC Newsabandoneddecoy407
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsgapingtrousers365
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsduraninmwsbnwel
 
Business News, Personal Finance and Money News
Business News, Personal Finance and Money NewsBusiness News, Personal Finance and Money News
Business News, Personal Finance and Money Newseminentoomph4388
 
International News | World News
International News | World NewsInternational News | World News
International News | World Newscojocarujanosko
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsnutritiousfixat71
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsblogginatl1963
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsgreencontract5911
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsoceanicrainbow854
 
What Would You Do? With John Quinones
What Would You Do? With John QuinonesWhat Would You Do? With John Quinones
What Would You Do? With John Quinonesmoaninglunatic320
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newslethalsummary6309
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverageawarequalm2586
 

What's hot (20)

Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Business News, Personal Finance and Money News
Business News, Personal Finance and Money NewsBusiness News, Personal Finance and Money News
Business News, Personal Finance and Money News
 
International News | World News
International News | World NewsInternational News | World News
International News | World News
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
What Would You Do? With John Quinones
What Would You Do? With John QuinonesWhat Would You Do? With John Quinones
What Would You Do? With John Quinones
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 

Viewers also liked

Senior_Thesis_Evan_Oman
Senior_Thesis_Evan_OmanSenior_Thesis_Evan_Oman
Senior_Thesis_Evan_OmanEvan Oman
 
Genetika manusia klp 7
Genetika manusia klp 7Genetika manusia klp 7
Genetika manusia klp 7yulasri
 
Oxford Journal Illustrated and the Outbreak of WWI
Oxford Journal Illustrated and the Outbreak of WWIOxford Journal Illustrated and the Outbreak of WWI
Oxford Journal Illustrated and the Outbreak of WWIOxfordshireCC
 
Anna howard cv 2015.11
Anna howard cv 2015.11Anna howard cv 2015.11
Anna howard cv 2015.11Anna Howard
 
Types of paragraph
Types of paragraph Types of paragraph
Types of paragraph Ylopezpi
 
Connecting oxfordshire launch final
Connecting oxfordshire launch   finalConnecting oxfordshire launch   final
Connecting oxfordshire launch finalOxfordshireCC
 
Donation basket abandonment - do you know where your weak spot is?
Donation basket abandonment - do you know where your weak spot is?Donation basket abandonment - do you know where your weak spot is?
Donation basket abandonment - do you know where your weak spot is?Scott Llewellyn
 
CONCRETO RECICLADO
CONCRETO RECICLADOCONCRETO RECICLADO
CONCRETO RECICLADOprismortera
 
Oxfordshire Young Carers
Oxfordshire Young Carers Oxfordshire Young Carers
Oxfordshire Young Carers OxfordshireCC
 
파이썬 라이브러리로 쉽게 시작하는 데이터 분석
파이썬 라이브러리로 쉽게 시작하는 데이터 분석파이썬 라이브러리로 쉽게 시작하는 데이터 분석
파이썬 라이브러리로 쉽게 시작하는 데이터 분석Heekyung Yoon
 

Viewers also liked (16)

Cabal
CabalCabal
Cabal
 
05370705
0537070505370705
05370705
 
Senior_Thesis_Evan_Oman
Senior_Thesis_Evan_OmanSenior_Thesis_Evan_Oman
Senior_Thesis_Evan_Oman
 
창립제 발표
창립제 발표창립제 발표
창립제 발표
 
Gis
GisGis
Gis
 
NEERAJ_SETHI
NEERAJ_SETHINEERAJ_SETHI
NEERAJ_SETHI
 
Genetika manusia klp 7
Genetika manusia klp 7Genetika manusia klp 7
Genetika manusia klp 7
 
Oxford Journal Illustrated and the Outbreak of WWI
Oxford Journal Illustrated and the Outbreak of WWIOxford Journal Illustrated and the Outbreak of WWI
Oxford Journal Illustrated and the Outbreak of WWI
 
Anna howard cv 2015.11
Anna howard cv 2015.11Anna howard cv 2015.11
Anna howard cv 2015.11
 
Types of paragraph
Types of paragraph Types of paragraph
Types of paragraph
 
Talking oxfordshire
Talking oxfordshireTalking oxfordshire
Talking oxfordshire
 
Connecting oxfordshire launch final
Connecting oxfordshire launch   finalConnecting oxfordshire launch   final
Connecting oxfordshire launch final
 
Donation basket abandonment - do you know where your weak spot is?
Donation basket abandonment - do you know where your weak spot is?Donation basket abandonment - do you know where your weak spot is?
Donation basket abandonment - do you know where your weak spot is?
 
CONCRETO RECICLADO
CONCRETO RECICLADOCONCRETO RECICLADO
CONCRETO RECICLADO
 
Oxfordshire Young Carers
Oxfordshire Young Carers Oxfordshire Young Carers
Oxfordshire Young Carers
 
파이썬 라이브러리로 쉽게 시작하는 데이터 분석
파이썬 라이브러리로 쉽게 시작하는 데이터 분석파이썬 라이브러리로 쉽게 시작하는 데이터 분석
파이썬 라이브러리로 쉽게 시작하는 데이터 분석
 

Similar to Technology and Science News - ABC News

Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC Newsdynamicindividu85
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coveragecreepypreview6376
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverageexoticshame065
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coveragealertchair8725
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsignorantlogic4950
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newswaggishwedge3973
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazinedemonicrhythm3717
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsunarmedhorse5807
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coveragecoldfascism4997
 
Health News & Articles | Healthy Living
Health News & Articles | Healthy LivingHealth News & Articles | Healthy Living
Health News & Articles | Healthy Livingabortivecatcall84
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazinealertmishap944
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverageroastedrecluse128
 
What Would You Do? With John Quinones
What Would You Do? With John QuinonesWhat Would You Do? With John Quinones
What Would You Do? With John Quinonesroastedrecluse128
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newstalloration5719
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazinewrathfulmedal3110
 

Similar to Technology and Science News - ABC News (20)

Nightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC NewsNightline: Late Evening News - ABC News
Nightline: Late Evening News - ABC News
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
Health News & Articles | Healthy Living
Health News & Articles | Healthy LivingHealth News & Articles | Healthy Living
Health News & Articles | Healthy Living
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine
 
Politics News and U.S. Elections Coverage
Politics News and U.S. Elections CoveragePolitics News and U.S. Elections Coverage
Politics News and U.S. Elections Coverage
 
What Would You Do? With John Quinones
What Would You Do? With John QuinonesWhat Would You Do? With John Quinones
What Would You Do? With John Quinones
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
U.S. News | National News
U.S. News | National NewsU.S. News | National News
U.S. News | National News
 
20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine20/20 | Investigative Journalism & News Magazine
20/20 | Investigative Journalism & News Magazine
 

Technology and Science News - ABC News

  • 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;.
  • 2. headerLink = data.widgetLink;. shareLink = data.shareLink;. if (headerLink!= "& & headerLink!= null && & &! isHeaderLinkLoaded ). var twitterImg=" " $("#newsbulletin >>. midcontainer >>. widget_head"). append("");. $("#newsbulletin >>. midcontainer >>. widget_head >>. twitterLink a >>. twitterContent"). append("" + twitterImg + "");. isHeaderLinkLoaded = real;. lastNBObjStr = currNBObjStr;. return isNewTemp;. // construct a name worth pair list of id/text. contentObject [itemDetails.id] = itemDetails.text. itemDetails.isExpanded = ($. inArray(itemDetails.id, fullTextList) > > -1)? real: false;. // develop markup. $("#nbItemContainer"). append(newsbulletin.displayItems(itemDetails));. );. $("#nbItemContainer"). append -LRB-''-RRB-;. // established the elevation of container div. $("#nbItemContainer"). css('height',$("#nbItemContainer"). height());. if (shareLink!= "& & shareLink!= null && & &! isShareLinkLoaded ).$("#newsbulletin >. midcontainer >>. nbFooter"). css("height":"35px", "border-top":"1px strong #d 5d5d5", "border-bottom":"border-bottom:1 px solid #eaeaea");. $("#newsbulletin >>. midcontainer >>. nbFooter"). append("");. isShareLinkLoaded = real;. if($. browser.msie). if ($. browser.version. midcontainer >>. nbFooter"). css("screen":"none");. var timeoutId = setTimeout(feature().
  • 3. $("#newsbulletin >>. midcontainer >>. nbFooter"). css("display":"block");. clearTimeout(timeoutId);. , 3000);. if(nbItemObj.author!= null && & & nbItemObj.author! =") this.twitter!= "). this.socialCustomStyle=";. this.social = this.fb + this.twitter;. this.socialStyle =' design="height:21 px; cushioning: 2px 0px;' + this.socialCustomStyle + '"';. this.categoryTag=";. this.nbTextOverride=";. this.rowTemp="+this.authorBlock+'. '+nbItemObj.date+'. '+this.title+'. '+this.text+'. // social. this.social=";. this.socialStyle=";. this.authorBlock=";. this.divider=";. this.fb=";. if(nbItemObj.authorfb!= null && & & nbItemObj.authorfb!="). this.fb= ". // include in dismiss listing. if(it.author.image!= "& &($. inArray(it.author.image, newsbulletin.authorCutouts) == -1)). newsbulletin.authorCutouts.push(it.author.image);. if (idx == nbNotes.length-1). nbNoteDivider=";. , 5000);.
  • 4. ;. addOnload(newsbulletin.load());. dynamicJS.unload('newsBulletin'+nbjsId, newsbulletin.baseloc+'/ xmldata/newsbulletin? id=15691212&&'+nbjsId); . isDoneLoading = real;. if ($. browser.webkit). if(nbjsId. midcontainer >>. nbFooter"). css("display screen":"none");. var timeoutId = setTimeout(feature(). $("#newsbulletin >>. midcontainer >>. nbFooter"). css("display":"block");. clearTimeout(timeoutId);. , 3000);. http://spwebsolution.com/services/software-development/ // title. this.title='. '+nbItemObj.title+'. ';. if(nbItemObj.link!= null && & & nbItemObj.link!= "). this.title=". // author picture. this.nbItemStyle=";. this.nbH4Class='class=nbheader';. this.nbH4Style=";. this.nbItemStyleAuthor=";. if(nbItemObj.authorimage!= null && & & nbItemObj.authorimage! ="). this.nbH4Style =' design=size:210 px;';. this.nbItemStyle='background: link('+nbItemObj.authorimage+') no-repeat bottom right'//+ this.itemBgPos;.
  • 5. this.nbItemStyleAuthor =' nbItemContentsAuthor'. if (it.notes). itemDetails.notes = it.notes;. lastNBObjStr=";. function isNewData(data). isNewTemp = untrue;. currNBObjStr=";. $. each(data.updates, feature(ind). currNBObjStr = currNBObjStr + data.updates [ind] objId + data.updates [ind] day;. );. // console.log('x'+currNBObjStr);. // console.log('y'+lastNBObjStr);. if(currNBObjStr!= lastNBObjStr). isNewTemp = true;. else. // console.log('no freshen');. this.nbNoteDiv='. '+nbNote.noteHeadline+'. '+this.noteAuthorBlock+'. '+nbNote.noteOverview+'. '+this.social+'. ';. if (nbItemObj.notes). nbNotes = nbItemObj.notes;. nbNoteStr=";. nbNoteDivider=";.
  • 6. $. each(nbNotes, function(idx). nbNote = nbNotes [idx];. this.noteAuthorBlock=";. this.notefb=";. if(nbNote.noteAuthor.facebook!= null && & & nbNote.noteAuthor.facebook!="). this.notefb= ". this.twitter=";. if(nbItemObj.authortwitter!=null & & nbItemObj.authortwitter!="& ). this.twitter= ". this.notetwitter=" ;. if(nbNote.noteAuthor.twitter!=null & & nbNote.noteAuthor.twitter&!="). this.notetwitter= ". 7500). setInterval (. feature(). this.notebio=";. if(nbNote.noteAuthor.bio!= null && & & nbNote.noteAuthor.bio!="). this.notebio= "+nbNote.noteAuthor.name+". this.noteAuthorBlock='.'+this.notebio+'. '. if(it.author.name == "). itemDetails.author='ABC Information'. itemDetails.authorfb='http://www.facebook.com/abcnews'. itemDetails.authortwitter='http://twitter.com/abc'. $. each(updates, feature(ind). var itemDetails = new Object();. it = updates [ind];. // populate the itemDetails object. itemDetails.id = it.objId;. itemDetails.title = it.title;. itemDetails.objType = it.objType;.
  • 7. itemDetails.link = it.link;. itemDetails.date = it.date;. itemDetails.label = it.label;. itemDetails.author = it.author.name;. itemDetails.authorbio = it.author.bio;. itemDetails.authorfb = it.author.facebook;. itemDetails.authortwitter = it.author.twitter;. itemDetails.feed = it.feed;. itemDetails.category = it.category;. // set defaults if product is a condition upgrade. if(itemDetails.label == 'Condition Update'). if(it.author.image == "). it.author.image='http://a.abcnews.com/assets/images/abc_news_logo_84x84.png'. ". newsbulletin.nbFooter="". // append widget header. $("#newsbulletin >>. midcontainer"). append("");. $("#newsbulletin >>. midcontainer"). append(newsbulletin.nbContainer);. $("#newsbulletin >>. midcontainer"). append(newsbulletin.nbFooter);. newsbulletin.nbDiv = document.getElementById('nbItemContainer');. nbjsId = 0;. newsbulletin.load = feature(). // alert(newsbulletin.baseloc+'/ xmldata/newsbulletin? id=15691212&& twOverride=& lpos=&'+newsbulletin.lpos +'& area =&'+nbjsId )// to try and manage caching in webkit web browsers. dynamicJS.load('newsBulletin'+nbjsId, newsbulletin.baseloc+'/ xmldata/newsbulletin? id=15691212&& twOverride=& lpos=&'+newsbulletin.lpos2+'& area=&'+nbjsId)
  • 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;.