New program aims to help immigrant students in Georgia attend college

0&&0==this.innerEl.scrollTop||r 0 && typeof item.childContent[0].content.oembed !== ‘undefined’ && typeof item.childContent[0].content.oembed.url !== ‘undefined’) {$NEWLINE\t\t\t\t\t\t\t\t\t\tvar oembed = item.childContent[0].content.oembed;$NEWLINE\t\t\t\t\t\t\t\t\t\t// ensure that the url attribute exists and contains a jpg url$NEWLINE\t\t\t\t\t\t\t\t\t\t// then append the image to the bodyHtml value (used instead of oembed.title, as .title is truncated)$NEWLINE\t\t\t\t\t\t\t\t\t\tif (oembed.url.indexOf(‘.jpg’) > -1) {$NEWLINE\t\t\t\t\t\t\t\t\t\t\thtml = item.content.bodyHtml + ‘‘;$NEWLINE\t\t\t\t\t\t\t\t\t\t}$NEWLINE\t\t\t\t\t\t\t\t\t}$NEWLINE\t\t\t\t\t\t\t\t\telse if (typeof item.content.feedEntry !== ‘undefined’ && item.content.feedEntry.description !== ‘undefined’ && item.content.feedEntry.description !== ”) {$NEWLINE\t\t\t\t\t\t\t\t\t\thtml = item.content.feedEntry.description;$NEWLINE\t\t\t\t\t\t\t\t\t}$NEWLINE\t\t\t\t\t\t\t\t\telse {$NEWLINE\t\t\t\t\t\t\t\t\t\thtml = item.content.bodyHtml;$NEWLINE\t\t\t\t\t\t\t\t\t}$NEWLINE\t\t\t\t\t\t\t\t\thtml = html.replace(/style=\”.+?\”/g, ”);$NEWLINE\t\t\t\t\t\t\t\t$NEWLINE\t\t\t\t\t\t\t\t\tif ($.inArray(item.content.id, config_obj.content_event_ids) === -1) {$NEWLINE\t\t\t\t\t\t\t\t\t\tconfig_obj.collections_content.push([html, collection_data.headDocument.authors[item.content.authorId], item.content.updatedAt, collection_url, collection_title, item.content.id]);$NEWLINE\t\t\t\t\t\t\t\t\t\tif (config_obj.initial) {$NEWLINE\t\t\t\t\t\t\t\t\t\t\t// initial widget load$NEWLINE\t\t\t\t\t\t\t\t\t\t\tif (config_obj.collection_index + 1 == config_obj.collections_to_display || config_obj.current_item_index + 1 == config_obj.max_items_to_display) {$NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t// re-sort the array to be reverse-chronological$NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t// and then build the display$NEWLINE\t\t\t\t\t\t\t\t\t\t\t\tconfig_obj.collections_content.sort(function(a, b) { $NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t\treturn parseInt(a[2]) – parseInt(b[2]); $NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t});$NEWLINE\t\t\t\t\t\t\t\t\t\t$NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t$.when($(config_obj.collections_content).each(function(i) {$NEWLINE\t\t\t\t\t\t\t\t\t\t\t\t\tif (i = collection_data.headDocument.content.length – 1) {$NEWLINE\t\t\t\t\t\t\t// this collection has no content that can be displayed$NEWLINE\t\t\t\t\t\t\t// so reduce the # of total collections by 1$NEWLINE\t\t\t\t\t\t\tconfig_obj.collections_to_display -= 1;$NEWLINE\t\t\t\t\t\t\treturn false;$NEWLINE\t\t\t\t\t\t}$NEWLINE\t\t\t\t\t});$NEWLINE\t\t\t\t\t$(‘.cmgLcContainer’).show();$NEWLINE\t\t\t\t}$NEWLINE\t\t\t}$NEWLINE\t\t});$NEWLINE\t}$NEWLINE\t$NEWLINE\t// disable scrolling of the overall page, while scrolling the widget$NEWLINE\tfunction DisablePageScroll() {$NEWLINE\t\t$(‘.antiscroll-wrap’).mouseenter(function(e) {$NEWLINE\t\t\t$(‘body’).addClass(‘disable-scroll’);$NEWLINE\t\t}).mouseleave(function(e) {$NEWLINE\t\t\t$(‘body’).removeClass(‘disable-scroll’);$NEWLINE\t\t});$NEWLINE\t\tconfig.page_scroll_disabled = true;$NEWLINE\t}$NEWLINE\t$NEWLINE\t// function for determining \”time ago\” display$NEWLINE\tfunction FormatDate(unix_timestamp) {$NEWLINE\t\tvar difference_in_seconds = (Math.round((new Date()).getTime() / 1000)) – unix_timestamp,$NEWLINE\t\tcurrent_date = new Date(unix_timestamp * 1000), minutes, hours,$NEWLINE\t\tmonths = new Array($NEWLINE\t\t\t’January’,'February’,'March’,'April’,'May’,$NEWLINE\t\t\t’June’,'July’,'August’,'September’,'October’,$NEWLINE\t\t\t’November’,'December’);$NEWLINE\t$NEWLINE\t\tif (difference_in_seconds 60*60*24){$NEWLINE\t\t\tif (current_date.getYear() !== new Date().getYear()) {$NEWLINE\t\t\t\treturn current_date.getDate() + \” \” + months[current_date.getMonth()].substr(0,3) + \” \” + _fourdigits(current_date.getYear());$NEWLINE\t\t\t}$NEWLINE\t\t\treturn current_date.getDate() + \” \” + months[current_date.getMonth()].substr(0,3);$NEWLINE\t\t}$NEWLINE\t$NEWLINE\t\treturn difference_in_seconds;$NEWLINE\t$NEWLINE\t\tfunction _fourdigits(number)\t{$NEWLINE\t\t\treturn (number 0) {$NEWLINE\t\t\t\t\t\t$.when($, $NEWLINE\t\t\t\t\t\t\t$(response.data).each(function() {$NEWLINE\t\t\t\t\t\t\t\tif (config_obj.collection_index -1) ? ‘&’ : ‘?’) + ‘icmp=’ + chatter_site_abbrev + ‘_internallink_latest_chatterwidget_socialhubs’;$NEWLINE\t\t\t$container.removeClass(‘cmgLcPrototype’);$NEWLINE\t\t\t$container.find(‘.cmgLcTopicContent’).remove();$NEWLINE\t\t\t$(‘.cmgLcBody’).prepend($container);$NEWLINE\t\t\t$content = $(‘.cmgLcPrototype .cmgLcTopicContent’).clone();$NEWLINE\t\t\tif (remove_border) {$NEWLINE\t\t\t\t$content.css({$NEWLINE\t\t\t\t\tborder:’none’$NEWLINE\t\t\t\t});$NEWLINE\t\t\t}$NEWLINE\t\t\tif (typeof $author.profileUrl !== ‘undefined’ && $author.profileUrl !== ”) {$NEWLINE\t\t\t\t$content.find(‘.cmgLcAuthorName’).html($(‘‘, {$NEWLINE\t\t\t\t\t// if the author is ‘www.ajc.com’ link to the collection url, $NEWLINE\t\t\t\t\t// otherwise link to the author’s profile url$NEWLINE\t\t\t\t\t’href’: ($author.displayName == ‘www.ajc.com’ ? collection_url : $author.profileUrl),$NEWLINE\t\t\t\t\t’html’: $author.displayName$NEWLINE\t\t\t\t}));$NEWLINE\t\t\t} else {$NEWLINE\t\t\t\t$content.find(‘.cmgLcAuthorName’).text($author.displayName);$NEWLINE\t\t\t}$NEWLINE\t\t\t$content.find(‘.cmgLcTopicTimestamp’).text(FormatDate(timestamp));$NEWLINE\t\t\tif (html != ” && html != ‘

‘) {$NEWLINE\t\t\t\tif (html.indexOf(‘/g);$NEWLINE\t\t\t\t\t$content.find(‘.cmgLcTopicImage’).css({‘margin’: ‘-15px 0 15px’}).html(img[0]);$NEWLINE\t\t\t\t\thtml = html.replace(img[0], ”);$NEWLINE\t\t\t\t}$NEWLINE\t\t\t\t$content.find(‘.cmgLcTopicTitle’).html($(‘‘, {$NEWLINE\t\t\t\t\t’href’: collection_url,$NEWLINE\t\t\t\t\t’html’: collection_title$NEWLINE\t\t\t\t}));$NEWLINE\t\t\t\t// replace with a space, remove all other tags (but and ) completely, and replace multiple spaces with a single$NEWLINE\t\t\t\thtml = html.replace(/

/g, ”).replace(//g, ‘ ‘).replace(//g, ”).replace(//g, ”).replace(/ {2,}/g, ‘ ‘);$NEWLINE\t\t\t\tif ($(‘.cmgLcBody’).html().indexOf(html) > -1) {$NEWLINE\t\t\t\t\t// this content has already been displayed (e.g. as part of another collection)$NEWLINE\t\t\t\t\treturn false;$NEWLINE\t\t\t\t} else {$NEWLINE\t\t\t\t\t$content.find(‘.cmgLcTopicText’).html(html);$NEWLINE\t\t\t\t}$NEWLINE\t\t\t\ttext_words = html.replace(//g, ”).replace(//g, ”).split(‘ ‘);$NEWLINE\t\t\t\tif (text_words.length > config.truncate_word_count) {$NEWLINE\t\t\t\t\t// the content is longer than the word count limit$NEWLINE\t\t\t\t\t// so we will cut it off at the limit)$NEWLINE\t\t\t\t\ttext_words = text_words.slice(config.truncate_word_count);$NEWLINE\t\t\t\t\tvar text_to_replace = text_words.join(‘ ‘);$NEWLINE\t\t\t\t\tif (html.indexOf(text_to_replace) == -1) {$NEWLINE\t\t\t\t\t\t// the exact string to be replaced isn’t matched, likely due to html$NEWLINE\t\t\t\t\t\tvar snippet = html.substr(0, html.indexOf(text_words[0] + ‘ ‘ + text_words[1]));$NEWLINE\t\t\t\t\t\tif (snippet.lastIndexOf(‘>’) -1) {$NEWLINE\t\t\t\t\t// measured in seconds; round up or down & update to minutes$NEWLINE\t\t\t\t\tvar time = timestamp.substr(0, timestamp.indexOf(‘s’)) * 1;$NEWLINE\t\t\t\t\ttime = time >= 30 ? 2 : 1;$NEWLINE\t\t\t\t\t$(this).text(time + ‘m’);$NEWLINE\t\t\t\t} else if (timestamp.indexOf(‘m’) > -1) {$NEWLINE\t\t\t\t\t// measured in minutes; increment$NEWLINE\t\t\t\t\tvar time = timestamp.substr(0, timestamp.indexOf(‘m’)) * 1;$NEWLINE\t\t\t\t\tif (time >= 60) {$NEWLINE\t\t\t\t\t\t$(this).text(’1h’);$NEWLINE\t\t\t\t\t} else {$NEWLINE\t\t\t\t\t\ttime++;$NEWLINE\t\t\t\t\t\t$(this).text(time + ‘m’);$NEWLINE\t\t\t\t\t}$NEWLINE\t\t\t\t}$NEWLINE\t\t\t});$NEWLINE\t\t\t// update timestamps every minute$NEWLINE\t\t\tsetTimeout(‘cmg.latest_chatter.UpdateTimestamps()’, 60000);$NEWLINE\t\t}$NEWLINE\t}$NEWLINE})(jQuery);$NEWLINE$NEWLINEjQuery(document).ready(function() {$NEWLINE\t// initialize chatter & setup of polling$NEWLINE\tcmg.latest_chatter.Init();$NEWLINE\t// update timestamps every minute$NEWLINE\tsetTimeout(‘cmg.latest_chatter.UpdateTimestamps()’, 60000);$NEWLINE});$NEWLINE/*** end chatter js ***/$NEWLINE}$NEWLINE$ENDSCRIPT$NEWLINE

Source Article from http://www.ajc.com/news/news/state-regional-govt-politics/new-program-aims-to-help-immigrant-students-in-geo/ng5WN/
New program aims to help immigrant students in Georgia attend college
http://www.ajc.com/news/news/state-regional-govt-politics/new-program-aims-to-help-immigrant-students-in-geo/ng5WN/
http://news.search.yahoo.com/news/rss?p=immigrant
immigrant – Yahoo News Search Results
immigrant – Yahoo News Search Results

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>