{"id":13293,"date":"2025-08-02T07:33:44","date_gmt":"2025-08-02T04:33:44","guid":{"rendered":"https:\/\/nietzscherecords.com\/?page_id=13293"},"modified":"2025-08-18T20:35:20","modified_gmt":"2025-08-18T17:35:20","slug":"cd","status":"publish","type":"page","link":"https:\/\/nietzscherecords.com\/he\/cd\/","title":{"rendered":"\u05d3\u05d9\u05e1\u05e7\u05d9\u05dd"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"13293\" class=\"elementor elementor-13293\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4f8a374 e-flex e-con-boxed e-con e-parent\" data-id=\"4f8a374\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-430bac5 elementor-widget elementor-widget-shortcode\" data-id=\"430bac5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n\t<style>\n\t\t\n\t<\/style>\n\t<div class=\"nr_yellow_select\">\n\t\t<select class=\"sort_select\" id=\"sort_select\">\n\t\t\t<option>\n\t\t\t\t\u05de\u05d9\u05d9\u05df \u05dc\u05e4\u05d9...\t\t\t<\/option>\n\t\t\t<option value=\"aza\">\n\t\t\t\t\u05e1\u05d3\u05e8 \u05d0\u05dc\u05e4\u05d1\u05d9\u05ea\u05d9 \u05e2\u05d5\u05dc\u05d4\t\t\t<\/option>\n\t\t\t<option value=\"azd\">\n\t\t\t\t\u05e1\u05d3\u05e8 \u05d0\u05dc\u05e4\u05d1\u05d9\u05ea\u05d9 \u05d9\u05d5\u05e8\u05d3\t\t\t<\/option>\n\t\t\t<option value=\"pd\">\n\t\t\t\t\u05de\u05d7\u05d9\u05e8 \u05de\u05d9\u05e7\u05e8 \u05dc\u05d6\u05d5\u05dc\t\t\t<\/option>\n\t\t\t<option value=\"pa\">\n\t\t\t\t\u05de\u05d7\u05d9\u05e8 \u05de\u05d6\u05d5\u05dc \u05dc\u05d9\u05e7\u05e8\t\t\t<\/option>\n\t\t<\/select>\n\n\t\t<div class=\"nr_yellow_filter\">\n\t\t\t<select class=\"new_used_select\" id=\"new_used_select\" >\n\t\t\t<option>\n\t\t\t\t\u05e1\u05d9\u05e0\u05d5\u05df \u05dc\u05e4\u05d9 \u05de\u05e6\u05d1\t\t\t<\/option>\n\t\t\t<option value=\"new\" >\n\t\t\t\t\u05d7\u05d3\u05e9\t\t\t<\/option>\n\t\t\t<option value=\"used\" >\n\t\t\t\t\u05de\u05e9\u05d5\u05de\u05e9\t\t\t<\/option>\n\t\t\t<option value=\"all\">\n\t\t\t\t\u05d4\u05e6\u05d2 \u05d4\u05db\u05dc\t\t\t<\/option>\n\t\t<\/select>\n\t\t\t<select class=\"format_select\" id=\"format_select\" style=\"display:none\">\n\t\t\t<option>\n\t\t\t\t\u05e1\u05d9\u05e0\u05d5\u05df \u05dc\u05e4\u05d9 \u05e4\u05d5\u05e8\u05de\u05d8\t\t\t<\/option>\n\t\t\t<option value=\"record\" >\n\t\t\t\t\u05ea\u05e7\u05dc\u05d9\u05d8\t\t\t<\/option>\n\t\t\t<option value=\"disc\" selected>\n\t\t\t\t\u05d3\u05d9\u05e1\u05e7\t\t\t<\/option>\n\t\t\t<option value=\"tape\" >\n\t\t\t\t\u05e7\u05dc\u05d8\u05ea\t\t\t<\/option>\n\t\t\t<option value=\"all\">\n\t\t\t\t\u05d4\u05e6\u05d2 \u05d4\u05db\u05dc\t\t\t<\/option>\n\t\t<\/select>\n\t\t<\/div>\n\n\t\t<input type=\"hidden\" class=\"all_statuses\" value=\"true\"\/>\n\t<\/div>\n\t\n\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fb8ebbe elementor-widget elementor-widget-shortcode\" data-id=\"fb8ebbe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><style>\n#load-more-btn,\n\t#show_all_items_link{\n    \n    margin: 20px auto;\n    padding: 10px 20px;\n    background-color: #FCA91B ;\n    color: white;\n    border: none;\n    cursor: pointer;\n    font-size: 16px;\n\t\n\t\n}\n\t#show_all_items_link{\n\t\tdisplay: block;\n\t}\n\t#load-more-btn{\n\t\tdisplay: none; \/* Hide by default *\/\n\t}\n\t#load-more-btn:hover,\n\t#show_all_items_link:hover{\n\t\tcolor:#000407;\n\t}\n\n@media (max-width: 768px) {\n    #load-more-btn {\n        display: block; \/* Show on mobile *\/\n    }\n}\n\n<\/style>\n\n\t<div id=\"genre-products-wrapper\" data-genre=\"\" data-status=\"\" data-format=\"disc\" data-sale=\"\" data-page=\"1\" data-all=\"\" data-preorder=\"\" data-sorting=\"\">\n    <div class=\"products-container\"><\/div>\n    <div class=\"loading-indicator\"><img decoding=\"async\" src=\"\/wp-content\/plugins\/nietzscherecords\/assets\/loading.gif\"\/><\/div>\n    <!-- Load More button for mobile -->\n    <button id=\"load-more-btn\" style=\"display:none;\">\u05d4\u05e6\u05d2 \u05e2\u05d5\u05d3<\/button>\n\t<button id=\"show_all_items_link\">\u05dc\u05db\u05dc \u05d4\u05e4\u05e8\u05d9\u05d8\u05d9\u05dd<\/button>\n<\/div>\n\n\n\t<script>\n\tjQuery(document).ready(function($) {\n\t\t\n\tjQuery(\"#show_all_items_link\").click(function(){\n\t\tlet start_url='\/he\/all-music-items\/';\n\t\tlet format_filter = jQuery( \"#format_select\" ).val();\n\t\tlet status_filter = jQuery( \"#new_used_select\" ).val();\n\t\tlet filters=[];\n\t\tconst formats=['record','disc','tape'];\n\t\tconst statuses =['new','used'];\n\t\tlet all_statuses=jQuery(\".all_statuses\").val();\n\t\tif(formats.includes(format_filter)){\n\t\t\tfilters.push('format='+format_filter);\n\t\t}\n\t\tif(!all_statuses){\n\t\tif(statuses.includes(status_filter)){\n\t\t\tfilters.push('status='+status_filter);\n\t\t}\n\t\t}\n\t\tif(filters.length>0){\n\t\t\tstart_url=start_url+'?'+filters.join('&');\n\t\t}\n\t\twindow.location.href=start_url;\n\t\t\n\t});\n    let isLoading = false;\n\n    function loadMoreGenreItems() {\n        if (isLoading) return; \/\/ prevent double calls\n        isLoading = true;\n\n        let wrapper = $('#genre-products-wrapper');\n        let genre = wrapper.attr('data-genre');\n\t\tlet status=wrapper.attr('data-status');\n\t\tlet format=wrapper.attr('data-format');\n\t\tlet sale=wrapper.attr('data-sale');\n\t\tlet all=wrapper.attr('data-all');\n\t\tlet preorder=wrapper.attr('data-preorder');\n        let page = parseInt(wrapper.attr('data-page'));\n\t\tlet sorting = wrapper.attr('data-sorting');\n\t\tlet the_action='';\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n        wrapper.find('.loading-indicator').show();\n\t\t\n\t\tthe_action='load_products_inajax';\n\n        $.ajax({\n            url: 'https:\/\/nietzscherecords.com\/wp-admin\/admin-ajax.php',\n            type: 'POST',\n            data: {\n                action: the_action,\n                genre: genre,\n\t\t\t\tstatus:status,\n\t\t\t\tformat:format,\n                page: page,\n\t\t\t\tall:all,\n\t\t\t\tsale:sale,\n\t\t\t\tpreorder:preorder,\n\t\t\t\tsorting:sorting\n            },\n            success: function(response) {\n                if (response.success && response.data.trim() !== '') {\n                    wrapper.find('.products-container').append(response.data);\n                    wrapper.attr('data-page', page + 1);\n                } else {\n                    $(window).off('scroll', onScrollLoadMore);\n                }\n            },\n            complete: function() {\n                wrapper.find('.loading-indicator').hide();\n                isLoading = false;\n\t\t\t\t\/\/filter_loop_items();\n            }\n        });\n    }\n\n    \/\/ For mobile, use the Load More button instead of scroll\n    if ($(window).width() < 768) {\n        $(window).off('scroll', onScrollLoadMore); \/\/ Disable scroll-based loading\n        $('#load-more-btn').show().on('click', function() {\n            loadMoreGenreItems();\n        });\n    } else {\n        \/\/ Desktop scroll behavior\n        $(window).on('scroll', onScrollLoadMore);\n    }\n\n    \/\/ Initial load\n    loadMoreGenreItems();\n\n    \/\/ Adjust for scroll-based loading (desktop)\n    function onScrollLoadMore() {\n        const threshold = 400; \/\/ for desktop, use larger threshold\n        const scrollTop = $(window).scrollTop();\n        const windowHeight = $(window).height();\n        const documentHeight = $(document).height();\n\n        if (scrollTop + windowHeight > documentHeight - threshold) {\n            loadMoreGenreItems();\n        }\n    }\n\t\t\n\tjQuery( \"#sort_select, #new_used_select, #format_select\" ).change( function () {\n\t\t\t\t\/\/change page\n\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-page\",1);\n\t\t\t\t\/\/change sorting\n\t\t\t\tlet soting_array=['aza','azd','pa','pd'];\n\t\t\t\tlet sorting_val=jQuery( \"#sort_select\" ).val();\n\t\t\t\tif(soting_array.includes(sorting_val)){\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-sorting\",sorting_val);\n\t\t\t\t}else{\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-sorting\",\"\");\n\t\t\t\t}\n\t\t\t\t\/\/change format\n\t\t\t\tlet format_array=['record','disc','tape'];\n\t\t\t\tlet format_val=jQuery( \"#format_select\" ).val();\n\t\t\t\tif(format_array.includes(format_val)){\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-format\",format_val);\n\t\t\t\t}else{\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-format\",\"\");\n\t\t\t\t}\n\t\t\t\t\/\/change status\n\t\t\t\tlet status_array=['used','new'];\n\t\t\t\tlet status_val=jQuery( \"#new_used_select\" ).val();\n\t\t\t\tif(status_array.includes(status_val)){\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-status\",status_val);\n\t\t\t\t}else{\n\t\t\t\t\tjQuery(\"#genre-products-wrapper\").attr(\"data-status\",\"\");\n\t\t\t\t}\n\t\t\t\t\/\/clear conatainer\n\t\t\t\tjQuery(\".products-container\").html('');\n\t\t\t\t\/\/start loading\n\t\t\t\tloadMoreGenreItems();\n\t\t\t\t\n\t\t\t});\n});\n<\/script>\n\t<style>\n\t\t.loading-indicator {\n\t\t\ttext-align: center;\n\t\t\tpadding: 20px;\n\t\t\tdisplay: none;\n\t\t}\n\t<\/style>\n\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[246],"class_list":["post-13293","page","type-page","status-publish","hentry","category-music-archive"],"acf":[],"_links":{"self":[{"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/pages\/13293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/comments?post=13293"}],"version-history":[{"count":7,"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/pages\/13293\/revisions"}],"predecessor-version":[{"id":13339,"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/pages\/13293\/revisions\/13339"}],"wp:attachment":[{"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/media?parent=13293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nietzscherecords.com\/he\/wp-json\/wp\/v2\/categories?post=13293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}