Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

The American Institute of CPAs

'); //$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() );
//****************************************Start - Tab 2 Click****************************************
$('.atab12').click(function() var $customersList =
$('#ctl00_ctl00_SPWebPartManager1_g_23fc9e81_afcb_4b69_b46f_cd3b98d20f5e_ctl00_ctl00_tab2
.divtab2'); var call = 'Insights Blog'; var webcall = ''; if (call == 'JOA') webcall =
'JournalOfAccountancy'; else if (call == 'Quick Poll') webcall = ''; else if (call == 'Conferences')
webcall = 'C2BConferences'; else if (call == 'Insights Blog') webcall = 'AICPAInsights'; else if (call
== 'Top Questions') webcall = ''; 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'; //alert(call); if (webcall != '') $customersList.empty().appendLi('Loading...');
$.getJSON('//contentfeed.aicpa.org/AICPADataFeed/' + webcall + '?callback=?', )
.done(function(customers) $customersList.empty(); $.each(customers, function() ) )
.fail(function(jqxhr, textStatus, error) var err = textStatus + ', ' + error; ) .always(function() return
false; ); );//****************************************End - Tab 2
Click****************************************//****************************************Start - Tab 3
Click****************************************$('.atab13').click(function() var $customersList =
$('#ctl00_ctl00_SPWebPartManager1_g_23fc9e81_afcb_4b69_b46f_cd3b98d20f5e_ctl00_ctl00_tab3
.divtab3'); var call = 'Press Releases'; var webcall = ''; if (call == 'JOA') webcall =
'JournalOfAccountancy'; else if (call == 'Quick Poll') webcall = ''; else if (call == 'Conferences')
webcall = 'C2BConferences'; else if (call == 'Insights Blog') webcall = 'AICPAInsights'; else if (call
== 'Top Questions') webcall = ''; 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() ) )
.fail(function(jqxhr, textStatus, error) var err = textStatus + ', ' + error; ) .always(function() return
false; ););//****************************************End - Tab 3
Click****************************************//****************************************Start - Tab 4
Click****************************************$('.atab14').click(function() var $customersList =
$('#ctl00_ctl00_SPWebPartManager1_g_23fc9e81_afcb_4b69_b46f_cd3b98d20f5e_ctl00_ctl00_tab4
.divtab4'); var call = 'JOA'; var webcall = ''; if (call == 'JOA') webcall = 'JournalOfAccountancy'; else
if (call == 'Quick Poll') webcall = ''; else if (call == 'Conferences') webcall = 'C2BConferences'; else
if (call == 'Insights Blog') webcall = 'AICPAInsights'; else if (call == 'Top Questions') webcall = '';

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/

You might also like