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

 
 

View User's Journal

coldelection3787 Journal
coldelection3787 Personal Journal
U.S. News | National News
"

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 browsers

dynamicJS.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 items

newsbulletin.displayItems = function(nbItemObj)

//check if status update

this.isStatusUpdate = (nbItemObj.label == 'Status Update')?true:false;

//item type class

this.itemTypeClass = (this.isStatusUpdate)?'orange':'blue';

//bg position

this.itemBgPos = '100% 55%';

if(nbItemObj.bgPos != null)

this.itemBgPos = nbItemObj.bgPos;

//author image

this.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 http://automie.com/story.php?title=medical-malpractice-attorney-traverse-city#discuss html is done loading in the jScrollPane

function newsBulletin(data)

if(data)

isNewDataFlag = isNewData(data);

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 = "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 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;

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 http://ow.ly/CafYn





 
 
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