Welcome to Gaia! :: View User's Journal | Gaia Journals

 
 

View User's Journal

Report This Entry Subscribe to this Journal
vaguebreeze2719 Journal vaguebreeze2719 Personal Journal


vaguebreeze2719
Community Member
avatar
0 comments
International News | World News
Maja Hitij/AFP/Getty Images

"newsbulletin.nbFooter = ""//append widget header$("#newsbulletin > .midcontainer" wink .append("" wink ;$("#newsbulletin > .midcontainer" wink .append(newsbulletin.nbContainer);$("#newsbulletin > .midcontainer" wink .append(newsbulletin.nbFooter);newsbulletin.nbDiv = document.getElementById('nbItemContainer');nbjsId = 0;newsbulletin.load = function()//alert(newsbulletin.baseloc+'/xmldata/newsbulletin?id=14640490&twOverride=&lpos='+newsbulletin.lpos+'&section=&'+nbjsId)//to try and handle caching in webkit browsersdynamicJS.load('newsBulletin'+nbjsId, newsbulletin.baseloc+'/xmldata/newsbulletin?id=14640490&twOverride=&lpos='+newsbulletin.lpos2+'&section=&'+nbjsId);//dynamicJS.load('newsBulletin','http://preview.abcnews.go.com/xmldata/newsbulletin?id=13564505');//display itemsnewsbulletin.displayItems = function(nbItemObj)//check if status updatethis.isStatusUpdate = (nbItemObj.label == 'Status Update')?true:false;//item type classthis.itemTypeClass = (this.isStatusUpdate)?'orange':'blue';//bg positionthis.itemBgPos = '100% 55%';if(nbItemObj.bgPos != null)this.itemBgPos = nbItemObj.bgPos;//author imagethis.nbItemStyle = '';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'//titlethis.title = '

'+nbItemObj.title+'

';if(nbItemObj.link != null && nbItemObj.link != '')this.title = ''//textthis.text = '';this.textCapped = '';this.morelink = 'More'if(nbItemObj.text != null)this.text = nbItemObj.text;//if item is not expanded display capped text if applicableif(nbItemObj.isExpanded != true)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;//socialthis.social = '';this.socialStyle = '';this.authorBlock = '';this.divider = '';this.fb = '';if(nbItemObj.authorfb != null && nbItemObj.authorfb != '')this.fb = ''this.twitter = '';if(nbItemObj.authortwitter != null && nbItemObj.authortwitter != '')this.twitter = ''this.bio = '';if(nbItemObj.authorbio != null && nbItemObj.authorbio != '')this.bio = ''+nbItemObj.author+''this.authorBlock = '

'+this.bio+'

'if(nbItemObj.author != null && nbItemObj.author != '')elsethis.social = '';this.textStyle = '';if(nbItemObj.authorimage != null && nbItemObj.authorimage != '')this.textStyle = ' style=width:208px;'; else nbItemObj.author == '')this.textStyle = ' style="padding-bottom:2px; margin-bottom:5px;"';this.categoryTag = '';this.nbTextOverride = '';this.rowTemp = ''+this.title+'

'+nbItemObj.date+'

'+this.authorBlock+'

'+this.text+'

'+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.notetwitter = '';if(nbNote.noteAuthor.twitter != null && nbNote.noteAuthor.twitter != '')this.notetwitter = ''this.notebio = '';if(nbNote.noteAuthor.bio != null && nbNote.noteAuthor.bio != '')this.notebio = ''+nbNote.noteAuthor.name+''this.noteAuthorBlock = '

'+this.notebio+'

'this.notesocial = '';this.noteSocialStyle = '';if(nbNote.noteAuthor.name != null && nbNote.noteAuthor.name != '')if(this.notefb != '' elsethis.notesocial = '';if (idx == nbNotes.length-1) nbNoteDivider = '';this.nbNoteDiv = '

'+nbNote.noteHeadline+'

'+this.noteAuthorBlock+'

'+nbNote.noteOverview+'

'+this.notesocial+'

';nbNoteStr += this.nbNoteDiv wink ;this.rowTemp += nbNoteStr;return this.rowTemp;function showMoreText(id)//grab old item heightvar oldItemHeight = $('#nbItem_'+id).height();//retrieve the content from the array$('#text_'+id).html(contentObject[id])//store id a list of opened objectsfullTextList.push(id.toString());var newContainerHeight = $("#nbItemContainer" wink .height() + ($('#nbItem_'+id).height()-oldItemHeight);$("#nbItemContainer" wink .css('height', newContainerHeight);//reinitialize scrollwindow.api.reinitialise();lastNBObjStr = '';function isNewData(data)isNewTemp = false;currNBObjStr = '';$.each(data.updates, function(ind)currNBObjStr = currNBObjStr + data.updates[ind].objId + data.updates[ind].date wink ;//console.log('x'+currNBObjStr);//console.log('y'+lastNBObjStr);if(currNBObjStr != lastNBObjStr)isNewTemp = true;else//console.log('no refresh');lastNBObjStr = currNBObjStr;return http://www.thesaurus.com/browse/cleaning isNewTemp;isHeaderLinkLoaded = false; // flag to check if the header link is loadedisShareLinkLoaded = false; // flag to check if the share link is loadedisDoneLoading = false; // flag to check if the html is done loading in the jScrollPanefunction newsBulletin(data)if(data)isNewDataFlag = isNewData(data);if(isNewDataFlag)//clear contents firstnewsbulletin.nbDiv.innerHTML = '';//console.log('refresh');updates = data.updates;headerLink = data.widgetLink;shareLink = data.shareLink;if (headerLink != '' && headerLink != null && !isHeaderLinkLoaded)var twitterImg = "User Image - Blocked by "Display Image" Settings. Click to show."$("#newsbulletin > .midcontainer > .widget_head" wink .append("" wink ;$("#newsbulletin > .midcontainer > .widget_head > .twitterLink a > .twitterContent" wink .append("" + twitterImg + "" wink ;isHeaderLinkLoaded = true;//clear the https://www.rebelmouse.com/rapidservicesgroup/ could call "pane.jScrollPane(settings)" again but it is// more convenient to call via the API as then the original// settings we passed in are automatically remembered.// Initialization of the container should be done after all the markup has been loaded// since there is no listener that could be passed into reinitialise() for rapidservicesgroup.com callbackif (isDoneLoading)window.api.reinitialise();isDoneLoading = false;, 5000);;addOnload(newsbulletin.load());




 
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum