Sign up your free travel blog today!
Email: Password:
My Blog My Photos My Diary My Movies My Map Message Board
Buy DVD

Buy Gift Voucher

Informative Beliefs
No Photos 11th Dec 2015
What Would You Do? With John Quinones

"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 = function()//alert(newsbulletin.baseloc+'/xmldata/newsbulletin?id=15290627&twOverride=&lpos='+newsbulletin.lpos+'&section=&'+nbjsId) //to try to handle caching within webkit browsers dynamicJS.load('newsBulletin'+nbjsId, newsbulletin.baseloc+'/xmldata/newsbulletin?id=15290627&twOverride=&lpos='+newsbulletin.lpos2+'&section=&'+nbjsId);//dynamicJS.load('newsBulletin','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 sort 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'//title this.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 product just isn't 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 + '... // Initialization in the container should be timesofindia.indiatimes.com/topic/Facebook - timesofindia.indiatimes.com/topic/Facebook - completed after all involving the markup continues in order to be loaded // since there's zero listener which could be passed in to reinitialise() pertaining to callback if (isDoneLoading) window.api.reinitialise(); isDoneLoading = false; , 5000);;addOnload(newsbulletin.load());'+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 != '') this.notetwitter != '') this.notesocial = this.notefb + this.notetwitter; this.noteSocialStyle = ' style="height:21px; padding: 2px 0px;"'; otherwise this.notesocial = ''; if (idx == nbNotes.length-1) nbNoteDivider = ''; this.nbNoteDiv = ''+nbNote.noteHeadline+''+this.noteAuthorBlock+''+nbNote.noteOverview+'. ' + 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;'; different nbItemObj.author == '') this.textStyle = ' style="padding-bottom:2px; margin-bottom:5px;"'; this.categoryTag = ''; this.nbTextOverride = ''; this.rowTemp = ''+this.authorBlock+''+nbItemObj.date+''+this.title+''+this.text+''+this.notesocial+''; nbNoteStr += this.nbNoteDiv; ); this.rowTemp += nbNoteStr; return this.rowTemp; operate showMoreText(id)//grab outdated item heightvar oldItemHeight = $('#nbItem_'+id).height();//retrieve your content from your array$('#text_'+id).html(contentObject[id])//store id the list of opened objectsfullTextList.push(id.toString());var newContainerHeight = $("#nbItemContainer").height() + ($('#nbItem_'+id).height()-oldItemHeight);$("#nbItemContainer").css('height', newContainerHeight);//reinitialize scrollwindow.api.reinitialise(); lastNBObjStr = ''; operate isNewData(data) isNewTemp = false; currNBObjStr = ''; $.each(data.updates, function(ind) currNBObjStr = currNBObjStr + data.updates[ind].objId + data.updates[ind].date; ); //console.log('x'+currNBObjStr); //console.log('y'+lastNBObjStr); if(currNBObjStr != lastNBObjStr) isNewTemp = true; otherwise //console.log('no refresh'); lastNBObjStr = currNBObjStr; return isNewTemp; isHeaderLinkLoaded = false; // flag to test in the big event the header hyperlink can be loaded isShareLinkLoaded = false; // flag to verify on when the talk about hyperlink can be loaded isDoneLoading = false; // flag to test if the html is done loading in the jScrollPanefunction newsBulletin(data)if(data) isNewDataFlag = isNewData(data); if(isNewDataFlag) //clear contents 1st 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 = true; //clear mcdougal cutouts array newsbulletin.authorCutouts = []; // check to ascertain if there's a height set www.alexa.com/siteinfo/facebook.com - www.alexa.com/siteinfo/facebook.com - for container, if this can be the case clear it // prevents cacheing var hasHeight = $('#nbItemContainer').attr('style'); if (typeof hasHeight != 'undefined') $('#nbItemContainer').removeAttr('style'); $.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; 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 merchandise is truly a status update if(itemDetails.label == 'Status Update') if(it.author.image == '') it.author.image = 'a.abcnews.com/assets/images/abc_news_logo_84x84.png' if(it.author.name == '') itemDetails.author = 'ABC News' itemDetails.authorfb = 'www.facebook.com/abcnews' itemDetails.authortwitter = 'twitter.com/abc' //only pass the writer image if it isn't displayed inside - pirater un compte facebook gratuit - any one of those items yet if($.inArray(it.author.image, newsbulletin.authorCutouts) == -1) itemDetails.authorimage = it.author.image; //add for you to ignore list if(it.author.image != '' &&($.inArray(it.author.image, newsbulletin.authorCutouts) == -1)) newsbulletin.authorCutouts.push(it.author.image); if(it.text != '') itemDetails.text = it.text; in addition itemDetails.bgPos = 'bottom right'; if (it.notes) itemDetails.notes = it.notes; //build an identity worth pair set of id/text contentObject[itemDetails.id] = itemDetails.text itemDetails.isExpanded = ($.inArray(itemDetails.id, fullTextList) > -1) ? true : false; //build markup $("#nbItemContainer").append(newsbulletin.displayItems(itemDetails)); ); $("#nbItemContainer").append(''); //set the height involving container div $("#nbItemContainer").css('height',$("#nbItemContainer").height()); if (shareLink != '' && shareLink != null && !isShareLinkLoaded) $("#newsbulletin > .midcontainer > .nbFooter").css("height":"35px", "border-top":"1px sound #d5d5d5", "border-bottom":"border-bottom:1px solid #eaeaea"); $("#newsbulletin > .midcontainer > .nbFooter").append(""); isShareLinkLoaded = true; if($.browser.msie) if ($.browser.version .midcontainer > .nbFooter").css("display":"none"); var timeoutId = setTimeout(function() $("#newsbulletin > .midcontainer > .nbFooter").css("display":"block"); clearTimeout(timeoutId); , 3000); dynamicJS.unload('newsBulletin'+nbjsId, newsbulletin.baseloc+'/xmldata/newsbulletin?id=15290627&'+nbjsId); isDoneLoading = true; if ($.browser.webkit) if(nbjsId .midcontainer > .nbFooter").css("display":"none"); var timeoutId = setTimeout(function() $("#newsbulletin > .midcontainer > .nbFooter").css("display":"block"); clearTimeout(timeoutId); , 3000); 7500)setInterval(function()window.api.getContentPane().html(newsbulletin.load());,60000); setInterval(function() // we might contact "pane.jScrollPane(settings)" again but it is // a lot more convenient to become able to contact through your API as then a original // options we passed inside are usually automatically remembered

Next: Sony Nabs One of Gaming Industry’s Biggest Developers
Previous: How video games are saving symphony orchestras and filling concert halls



1316 Words | This page has been read 9069 timesView Printable Version