Professional Documents
Culture Documents
The American Institute of CPAs
The American Institute of CPAs
else if (call == 'Web Events') webcall = 'C2BWebEvents'; else if (call == 'Press Releases') webcall =
'AICPAPressReleases'; else if (call == 'Popular Searches') webcall = ''; else if (call == 'CPE') webcall
= 'C2BCPEStudy'; else if (call == 'Publications') webcall = 'C2BPublications'; if (webcall != '')
$customersList.empty().appendLi('Loading...'); $.getJSON('//contentfeed.aicpa.org/AICPADataFeed/'
+ webcall + '?callback=?', ) .done(function(customers) $customersList.empty(); $.each(customers,
function() (call == 'Press Releases')) $customersList.appendLi('
' + getmonth(this.PostDate) + '
' + getday(this.PostDate) + '
'); //$customersList.appendLi(''+ this.Title + ' - ' + getdate(this.PostDate) + ''); else if (call == 'CPE')
$customersList.appendLi(''); //$customersList.appendLi(''+ this.Title + ' - ' + getdate(this.PostDate)
+ ''); else if (call == 'Publications') $customersList.appendLi(''); //$customersList.appendLi(''+
this.Title + ' - ' + getdate(this.PostDate) + ''); else if (call == 'Web Events')
$customersList.appendLi(''); //$customersList.appendLi(''+ this.Title + ' - ' + getdate(this.PostDate)
+ ''); else if (call == 'Conferences') $customersList.appendLi('
' + getmonth(this.PostDate) + '
' + getday(this.PostDate) + '
'); //$customersList.appendLi(''+ this.Title + ' - ' + getdate(this.PostDate) + '');
)
)
.fail(function(jqxhr, textStatus, error)
var err = textStatus + ', ' + error;
)
.always(function()
return false; );
);
//****************************************End - Tab 4
Click****************************************
;
(function($)
$.fn.appendLi = function(text)
return $(this).each(function()
$(this).append(text);
);
;
)(jQuery);
function getLoginUrl(url, call)
function getday(date)
//alert(date);
var newdate = new Date(date)
var monthname = new
Array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC");
var
day = newdate.getDate();
//alert(newdate.getDay());
if (day 65)
trunstr =
trunstr.replace(/^(.65[^s]*).*/, "$1");
return trunstr;
// var maxLength = 50; // whatever the
max string can be
// var strLength = str.length;
// var shortenedStr = str.substr(0, maxLength);
//
var shortenedStrLength = shortenedStr.length;
// var lastSpace = str.lastIndexOf(" ");
// if
(shortenedStrLength != strLength)
// // only need to do manipulation if we have a shortened
name
// var strDiff = strLength - shortenedStrLength;
// var lastSpaceDiff = shortenedStrLength lastSpace;
// if (strDiff > lastSpaceDiff) // non-whole word after space
//
// shortenedStr =
str.substr(0, lastSpace);
//
//
// return shortenedStr;
function GetCMTag(text)
//alert(text);
if (text == "JOA")
return "'HP:MID:NEWS:JOA'".toLowerCase();
else if (text == "Quick Poll")
return "'HP:MID:TREND:POLL'".toLowerCase();
else if (text == "Conferences")
return
"'HP:MID:LEARN_EVENTS:CONF'".toLowerCase();
else if (text == "Insights Blog")
return
"'HP:MID:NEWS:BLOG'".toLowerCase();
else if (text == "Top Wayne Lippman Questions")
return "'HP:MID:TREND:QUESTIONS'".toLowerCase();
else if (text == "Web Events")
return
"'HP:MID:LEARN_EVENTS:EVENTS'".toLowerCase();
else if (text == "Press Releases")
return
"'HP:MID:NEWS:PRESS'".toLowerCase();
else if (text == "Popular Searches")
return
"'HP:MID:TREND:SEARCHES'".toLowerCase();
else if (text == "CPE")
return
"'HP:MID:LEARN_EVENTS:CPE'".toLowerCase();
else if (text == "Publications")
return
"'HP:MID:LEARN_EVENTS:PUB'".toLowerCase();
else
return "";
function
GetCMLinkTag(text, link)
//alert(text + '
http://www.aicpa.org/