This document is a news bulletin from ABC News that provides technology and science news updates. It includes the headline, date, text and social sharing options for each news item. When notes are included, it also displays the note headline, author details and overview. Images and links are included for authors and social media profiles. The bulletin can be dynamically updated with new items and includes options to expand the text of each item.
This document is a news bulletin from ABC News that provides technology and science news updates. It includes the headline, date, text and social sharing options for each news item. When notes are included, it also displays the note headline, author details and overview. Images and links are included for authors and social media profiles. The bulletin can be dynamically updated with new items and includes options to expand the text of each item.
This document is an article from the ABC News technology and science section. It discusses updates to their news bulletin widget, including updating the content and links displayed in the widget periodically. It also describes the code for displaying items, notes, and social media information for authors within the widget. The widget code handles checking for new data, loading and displaying items, and setting timeouts to prevent caching issues.
This document is a news bulletin from ABC News that provides technology and science news updates. It includes the headline, text snippet, author and date for each news item. It also includes options to share or see more of each item. The bulletin dynamically loads and displays the latest news updates using JavaScript.
Home and Garden | Home Improvement and Decorating Tipsshortguidebook822
This document provides home improvement and decorating tips. It discusses Joseph Kellard's tips for home and garden projects as well as links to share content on social media. The document loads news bulletin items with titles, text, author information and notes and displays them in a scrolling container that can be reinitialized when new data is received.
Manoj G Harinkhede is seeking a position in IT that allows him to utilize his skills and experience. He has a Master's degree in Computer Applications and certificates in hardware, networking, Linux, Windows Server, and Cisco. He has over 2 years of experience as a technical support engineer where he installed and configured operating systems, applications, networks, and troubleshot issues. He is proficient in hardware, networking, Windows, Linux and is willing to relocate for the right opportunity.
This document is an article from the ABC News technology and science section. It discusses updates to their news bulletin widget, including updating the content and links displayed in the widget periodically. It also describes the code for displaying items, notes, and social media information for authors within the widget. The widget code handles checking for new data, loading and displaying items, and setting timeouts to prevent caching issues.
This document is a news bulletin from ABC News that provides technology and science news updates. It includes the headline, text snippet, author and date for each news item. It also includes options to share or see more of each item. The bulletin dynamically loads and displays the latest news updates using JavaScript.
Home and Garden | Home Improvement and Decorating Tipsshortguidebook822
This document provides home improvement and decorating tips. It discusses Joseph Kellard's tips for home and garden projects as well as links to share content on social media. The document loads news bulletin items with titles, text, author information and notes and displays them in a scrolling container that can be reinitialized when new data is received.
Manoj G Harinkhede is seeking a position in IT that allows him to utilize his skills and experience. He has a Master's degree in Computer Applications and certificates in hardware, networking, Linux, Windows Server, and Cisco. He has over 2 years of experience as a technical support engineer where he installed and configured operating systems, applications, networks, and troubleshot issues. He is proficient in hardware, networking, Windows, Linux and is willing to relocate for the right opportunity.
This short document promotes creating presentations using Haiku Deck, a tool for making slideshows. It encourages the reader to get started making their own Haiku Deck presentation and sharing it on SlideShare. In just one sentence, it pitches the idea of using Haiku Deck to easily design slideshows.
Lisa Bartolota is a customer service professional and salesperson with over 25 years of experience in food service, retail, grocery stores, and nursing homes. She has a background in hospitality management, restaurant operations, and patient services. Bartolota is currently pursuing an MBA in hospitality management and certificates in events management and marketing. She is proficient in various software programs and seeks new opportunities in customer service, sales, or marketing.
The document summarizes key topics and people from Robert D. Kaplan's book "Balkan Ghosts: A Journey Through History". It discusses the nature of travel in the Balkans prior to the 1990s and how it involved confronting issues of the century. It also profiles authoritarian leaders from the Balkans during World War 2 like Ante Pavelić and Ion Antonescu who were responsible for large death tolls. Finally, it examines Nicolae and Elena Ceaușescu, the communist leaders of Romania from 1967 to 1989, who imposed brutal policies and were guilty of genocide.
Lisa Bartolotta is a customer service and sales professional with experience in retail, restaurants, grocery stores, and administrative roles. She has strong skills in customer service, sales, event planning, office management, and administrative support. Her background includes roles in marketing, merchandising, bookstore management, and recreational assistance for senior living facilities.
Haiku Deck is a presentation platform that allows users to create Haiku-style slideshows. The document encourages the reader to get started creating their own Haiku Deck presentation on SlideShare by providing a link to do so. It aims to inspire the reader to try out Haiku Deck's unique presentation style.
Lisa Bartolota has over 15 years of experience in customer service, events coordination, and recreation activities. She has a background in theatre arts and has worked in assisted living facilities, rehabilitation centers, and non-profits. Bartolota has experience managing bookstores and recreation programs. She is currently a Sales and Marketing Events Specialist, and has held various roles such as Merchandiser, Dietary Aide, and Substitute Teacher. Bartolota has an MBA in Hospitality Management and certificates in Marketing and Events Management.
This document discusses politics news and U.S. elections coverage from ABC News. It contains code for dynamically loading news bulletin items, displaying item details, and handling interactions like expanding text. The code also handles sharing links and checking for updated data.
This document contains code for displaying news bulletins and updates on a website. It includes functions for loading new data from an API, displaying items in the bulletin with author information and social links, showing more text when an item is expanded, and reinitializing the content area when new data is received. Interval timers are also used to periodically refresh the content and check for updates.
5. this.noteAuthorBlock = '
'+this.notebio+'
'
this.notesocial = '';
this.noteSocialStyle = '';
if(nbNote.noteAuthor.name != null nbNote.noteAuthor.name != '')else
this.notesocial = '';
if (idx == nbNotes.length-1)
nbNoteDivider = '';
this.nbNoteDiv = '
'+nbNote.noteHeadline+'
'+this.noteAuthorBlock+'
'+nbNote.noteOverview+'
'+this.notesocial+'
';
nbNoteStr += this.nbNoteDiv;
);
this.rowTemp += nbNoteStr;
return this.rowTemp;
function showMoreText(id)
//grab old item height
var oldItemHeight = $('#nbItem_'+id).height();
//retrieve the content from the array
$('#text_'+id).html(contentObject[id])
//store id a list of opened objects
fullTextList.push(id.toString());
6. var newContainerHeight = $("#nbItemContainer").height() + ($('#nbItem_'+id).height()-
oldItemHeight);
$("#nbItemContainer").css('height', newContainerHeight);
//reinitialize scroll
window.api.reinitialise();
lastNBObjStr = '';
function 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;
else
//console.log('no refresh');
lastNBObjStr = currNBObjStr;
return isNewTemp;
isHeaderLinkLoaded = false; // flag to check if the header link is loaded
isShareLinkLoaded = false; // flag to check if the share link is loaded
isDoneLoading = false; // flag to check if the html is done loading in the jScrollPane
function newsBulletin(data)
if(data)
isNewDataFlag = isNewData(data);
7. 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 a .twitterContent").append("" +
twitterImg + "");
isHeaderLinkLoaded = true;
//clear the author cutouts array
newsbulletin.authorCutouts = [];
// check to see if there is a height set for container, if so 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 itemDetails object
itemDetails.id = it.objId;
itemDetails.title = it.title;
8. 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 item is a status update
if(itemDetails.label == 'Status Update')
if(it.author.image == '')
it.author.image = 'http://a.abcnews.com/assets/images/abc_news_logo_84x84.png'
if(it.author.name == '')
itemDetails.author = 'ABC News'
itemDetails.authorfb = 'http://www.facebook.com/abcnews'
itemDetails.authortwitter = 'http://twitter.com/abc'
//only pass the author image if it's not displayed in any of the items yet
if($.inArray(it.author.image, newsbulletin.authorCutouts) == -1)
itemDetails.authorimage = it.author.image;
//add to ignore list
if(it.author.image != '' ($.inArray(it.author.image, newsbulletin.authorCutouts) == -1))
newsbulletin.authorCutouts.push(it.author.image);
if(it.text != '')
9. itemDetails.text = it.text;
else
itemDetails.bgPos = 'bottom right';
if (it.notes)
itemDetails.notes = it.notes;
//build a name value pair list 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 of container div
$("#nbItemContainer").css('height',$("#nbItemContainer").height());
if (shareLink != '' shareLink != null !isShareLinkLoaded)
$("#newsbulletin .midcontainer .nbFooter").css("height":"35px", "border-top":"1px solid #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=14182094'+nbjsId);
10. 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 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 callback
if (isDoneLoading)
window.api.reinitialise();
isDoneLoading = false;
, 5000);