").append($content);var $downloadObject= $("").append($download);$("#purchase-modal-" + productId).html($contectObject.find(".purchase-modal").html());$contectObject.find(".purchase-modal").remove();$categoryBooks.append('' + $downloadObject.find(".download-modal").html() + '');});},type: 'POST'});console.log(productIds);}});if($categoryBooks.hasClass("baenbundle"))var bundleProductIds= new Array();$(".bundles-day-left").each(function(index, value)bundleProductIds[index]= $(this).closest(".bundle-book").find(".bundle-button-container").data("productid"););if(bundleProductIds.length)$.ajax(url: '/allbooks/category/getBundleData',data: productIds : JSON.stringify(bundleProductIds) ,error: function(data) console.log(data);,dataType: 'json',success: function(data) $.each(data, function()var productId= this.productId;var daysLeft= this.daysLeft;var $daysLeftDiv= $("#bundle-contents-" + productId).closest(".bundle-book").find(".bundles-day-left");if($daysLeftDiv.length)$daysLeftDiv.html(daysLeft););,type: 'POST');}function getIdNum(id, delimiter)var idSplit= id.split(delimiter);return idSplit[(idSplit.length-1)];function resetPage()if(pageTitle!="Baen Author Directory")getCategoryBooks(1);$(".publishers").show();else$(".publishers").show();$(".category-books").hide();function getCategoryBooks(page, categoryId){$(".hide-filters").hide();pageSize= $("#show-per-page :selected").val();if(typeof categoryId=="undefined")categoryId= 0;var qs= getUrlVars();var catId= getCatId();var ajaxUrl= "/allbooks/category/getBooks";if($categoryBooks.hasClass("baenbundle"))ajaxUrl= "/allbooks/category/getBundleBooks";else if($(".filter-button-1999").length)ajaxUrl= "/allbooks/category/getBundleBooks";if(typeof catId==="undefined")catId= categoryId;let hideBundles= 0;let hideEarcs= 0;if($(".hide-bundles").is(":checked"))hideBundles= 1;if($(".hide-earcs").is(":checked"))hideEarcs= 1;updatePageNumbers(page);var $bookCards= $categoryBooks.find(".book-card");var $bundleBooks= $categoryBooks.find(".bundle-book");var categoryHeight= $(".category-books").height();$bookCards.fadeOut(function()$(".category-books").height(categoryHeight);$bookCards.remove(););$bundleBooks.fadeOut(function()$(".category-books").height(categoryHeight);$bundleBooks.remove(););console.log("direction: " + $("#dropdown-filters option:selected").data("dir"));console.log("categoryId: " + catId + " page: " + page + " pageSize: " + pageSize + " filter: " + $("#dropdown-filters").val() + " dir: " + $("#dropdown-filters option:selected").data("dir"));$.ajax({url: ajaxUrl,data: categoryId : catId, page: page, pageSize: pageSize, filter: $("#dropdown-filters").val(), dir: $("#dropdown-filters option:selected").data("dir"), hideBundles: hideBundles, hideEarcs: hideEarcs ,error: function(data) console.log(data);,dataType: 'json',success: function(data) {qs= getUrlVars();//console.log(data);if(typeof data.times!=="undefined")console.log(data.times);if(data.numOfBooks)var qsPage= page;if(typeof qs['page'] !=="undefined")qsPage= qs['page'];if(page==qsPage)console.log("Total Books: " + data.totalBooks);if($categoryBooks.hasClass("baenbundle") else{var totalBooks= $(".total-category-pages").first().text();if(data.totalBooks!=totalBooks)$(".total-category-pages").text(data.totalBooks);resetPager(1);resetPager(1);$categoryBooks.html('No results
The Hero Of Ages Epub Download
2ff7e9595c
Comments