Greener BeeGreen HolidaysHow to go green for the holidays – KRDO

“);
alink.addClass(“disabled”);
if (isNaN(pageNum)) {
return;
}
var url = ajaxUrl + “autoflowId=” + autoflowId + “pageNum=” + pageNum;
if (true) {
var tmpLimit = $(“#filter-mod-infinite-scrolling-media-headline-list-58906527”).find(“option:selected”).attr(“data-limit-number”);
url = url.replace(url.substring(url.indexOf(“tmpLimit”), url.indexOf(“”, url.indexOf(“tmpLimit”))), “tmpLimit=” + tmpLimit);
}
$.ajax({
type : “GET”,
url : url
}).done(function(html) {
pageNum++;;
loadMore.attr(“pageNum”, pageNum);
var contentHTML = $(html).filter(“ul”);
var stories = $(‘#content-mod-infinite-scrolling-media-headline-list-58906527’).children(‘ul’).first();
var isViewList = stories.hasClass(“view-list”);
if (isViewList) {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-list”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-list”);
}
} else {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-grid”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-grid”);
}
}
$(‘#content-mod-infinite-scrolling-media-headline-list-58906527 .loader’).remove();
$(“#content-mod-infinite-scrolling-media-headline-list-58906527”).append(contentHTML);
alink.removeClass(“disabled”);
}).fail(function() {
$(“#content-mod-infinite-scrolling-media-headline-list-58906527”).append(“

Oops. Something went wrong. Please wait a minute and refresh your browser.

“)
});
});
$(“#filter-mod-infinite-scrolling-media-headline-list-58906527”).change(function(){
var loadMore = $(‘#load-more-mod-infinite-scrolling-media-headline-list-58906527’);
loadMore.attr(“pageNum”, 2);
var autoflowId = $(this).children(“option:selected”).val();
loadMore.attr(“autoflowId”, autoflowId);
var ajaxUrl = $(this).attr(“ajaxUrl”);
var tmpLimit = $(this).children(“option:selected”).attr(“data-limit-number”);
var url = ajaxUrl + autoflowId;
url = url.replace(/tmpLimitNum/, tmpLimit);
loadMore.hide();
loadMore.children(‘a’).removeClass(“disabled”);
var content = $(“#content-mod-infinite-scrolling-media-headline-list-58906527”);
content.empty();
content.append(“Loading“);
$.ajax({
type : “GET”,
url : url
}).done(function(html) {
var contentHTML = $(html).filter(“ul”);
var isViewList = content.children(‘ul’).first().hasClass(“view-list”);
content.empty();
if (isViewList) {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-list”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-list”);
}
} else {
if (“grid1” == “grid1”) {
contentHTML.addClass(“list media show-inline-ad small-block-grid-1 medium-block-grid-2 large-block-grid-3 view-grid”);
} else if (“grid1” == “grid2”) {
contentHTML.addClass(“list media bricks view-grid”);
}
}
content.append(contentHTML);
loadMore.show();
}).fail(function() {
content.append(“

Oops. Something went wrong. Please wait a minute and refresh your browser.

“)
});
});
})(jQuery, AUI());

Article source: http://www.krdo.com/news/how-to-go-green-for-the-holidays/215511754


Comments

How to go green for the holidays – KRDO — No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *