{"id":103509,"date":"2024-09-25T16:19:26","date_gmt":"2024-09-25T09:19:26","guid":{"rendered":"https:\/\/jblstore.co.id\/?page_id=103509"},"modified":"2024-11-07T13:44:42","modified_gmt":"2024-11-07T06:44:42","slug":"testing","status":"publish","type":"page","link":"https:\/\/jblstore.co.id\/en\/testing\/","title":{"rendered":"Testing"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"103509\" class=\"elementor elementor-103509\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-94af030 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"94af030\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-426d096\" data-id=\"426d096\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2e6b8c9 elementor-widget elementor-widget-shortcode\" data-id=\"2e6b8c9\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">    <style>\n        #buttonTesting, #buttonDebug, #buttonManualShipping {\n            display: inline-block;\n            background-color: #0073aa; \/* warna biru WP *\/\n            color: #fff;\n            padding: 8px 16px;\n            border-radius: 4px;\n            font-size: 14px;\n            font-weight: 500;\n            cursor: pointer;\n            text-align: center;\n            border: none;\n            transition: background-color 0.3s ease;\n            outline: none;\n        }\n        #buttonTesting:hover, #buttonDebug:hover, #buttonManualShipping:hover {\n            opacity: .80;\n        }\n\n        #buttonTesting:disabled, #buttonDebug:disabled, #buttonManualShipping:disabled {\n            opacity: .50 !important;\n            cursor: not-allowed;\n        }\n\n        #buttonDebug {\n            background-color: cadetblue;\n            margin-top: 20px;\n        }\n\n        #buttonManualShipping {\n            background-color: chartreuse;\n            color: black;\n            margin-top: 20px;\n        }\n    <\/style>\n    <button id=\"buttonTesting\">Testing<\/button>\n    <div style=\"display: none;\">\n        <div>\n            <button id=\"buttonDebug\">Debug (Error 500)<\/button>\n        <\/div>\n        <div>\n            <button id=\"buttonManualShipping\">Manual Shipping<\/button>\n        <\/div>\n    <\/div>\n    <!-- <div><strong>User IP:<\/strong> <\/div>\n    <div><strong>User Country Code:<\/strong> <\/div>\n    <div><strong>Is Whitelist ?:<\/strong> No<\/div>\n    <div><strong>Is Blocked ?:<\/strong> <\/div>\n    <div>\n        <div>IP Ranges GoogleBot (<a href=\"https:\/\/developers.google.com\/static\/search\/apis\/ipranges\/googlebot.json\" target=\"_blank\">https:\/\/developers.google.com\/static\/search\/apis\/ipranges\/googlebot.json<\/a>):<\/div>\n            <\/div> -->\n    <script>\n        function ajaxIsTesting(is_testing){\n            return new Promise((resolve, reject) => {\n                jQuery.ajax({\n                    type: \"POST\",\n                    url: \"https:\/\/jblstore.co.id\/wp-admin\/admin-ajax.php?action=ajax_is_testing\",\n                    data: {\n                        is_testing: is_testing\n                    },\n                    success: function(data){\n                        resolve(data)\n                    },\n                    error: function(err){\n                        reject(err)\n                    }\n                })\n            })\n        }\n\n        function ajaxIsDebug(is_debug){\n            return new Promise((resolve, reject) => {\n                jQuery.ajax({\n                    type: \"POST\",\n                    url: \"https:\/\/jblstore.co.id\/wp-admin\/admin-ajax.php?action=ajax_is_debug\",\n                    data: {\n                        is_debug: is_debug\n                    },\n                    success: function(data){\n                        resolve(data)\n                    },\n                    error: function(err){\n                        reject(err)\n                    }\n                })\n            })\n        }\n\n        function ajaxIsManualShipping(is_manual_shipping){\n            return new Promise((resolve, reject) => {\n                jQuery.ajax({\n                    type: \"POST\",\n                    url: \"https:\/\/jblstore.co.id\/wp-admin\/admin-ajax.php?action=ajax_is_manual_shipping\",\n                    data: {\n                        is_manual_shipping: is_manual_shipping\n                    },\n                    success: function(data){\n                        resolve(data)\n                    },\n                    error: function(err){\n                        reject(err)\n                    }\n                })\n            })\n        }\n        \n        jQuery('#buttonTesting').on('click', function(e){\n            const $btn = jQuery(this);\n            $btn.prop('disabled', true); \/\/ Disable tombol\n\n            const isTesting = localStorage.getItem(\"is_testing\");\n            if(isTesting){\n                localStorage.removeItem(\"is_testing\");\n                ajaxIsTesting(\"0\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery(\".testing-bar\").remove();\n                })\n                .finally(() => $btn.prop('disabled', false)); \/\/ Enable lagi\n            } else {\n                localStorage.setItem(\"is_testing\", true);\n                ajaxIsTesting(\"1\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery('body').append(\"<div class='testing-bar'>Testing Mode<\/div>\");\n                })\n                .finally(() => $btn.prop('disabled', false));\n            }\n        });\n\n        jQuery('#buttonDebug').on('click', function(e){\n            const $btn = jQuery(this);\n            $btn.prop('disabled', true);\n\n            const isDebug = localStorage.getItem(\"is_debug\");\n            if(isDebug){\n                localStorage.removeItem(\"is_debug\");\n                ajaxIsDebug(\"0\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery(\".debug-bar\").remove();\n                })\n                .finally(() => $btn.prop('disabled', false));\n            } else {\n                localStorage.setItem(\"is_debug\", true);\n                ajaxIsDebug(\"1\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery('body').append(\"<div class='debug-bar'>Debug Mode (Error 500)<\/div>\");\n                })\n                .finally(() => $btn.prop('disabled', false));\n            }\n        });\n\n        jQuery('#buttonManualShipping').on('click', function(e){\n            const $btn = jQuery(this);\n            $btn.prop('disabled', true);\n\n            const isManualShipping = localStorage.getItem(\"is_manual_shipping\");\n            if(isManualShipping){\n                localStorage.removeItem(\"is_manual_shipping\");\n                ajaxIsManualShipping(\"0\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery(\".testing-bar\").remove();\n                })\n                .finally(() => $btn.prop('disabled', false));\n            } else {\n                localStorage.setItem(\"is_manual_shipping\", true);\n                ajaxIsManualShipping(\"1\")\n                .then(res => {\n                    if(res.data?.message){\n                        showModalAlert(\"Info\", res.data.message);\n                    }\n                    jQuery('body').append(\"<div class='testing-bar manual-shipping'>Manual Shipping Mode<\/div>\");\n                })\n                .finally(() => $btn.prop('disabled', false));\n            }\n        });\n    <\/script>\n\n    <\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\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":"page-templates\/full-width.php","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-103509","page","type-page","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Testing<\/title>\n<meta name=\"robots\" content=\"noindex, nofollow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jblstore.co.id\/en\/testing\/\" \/>\n<meta property=\"og:site_name\" content=\"JBL Store\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/JBLAudioIndonesia\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-07T06:44:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jblstore.co.id\/en\/testing\/\",\"url\":\"https:\/\/jblstore.co.id\/en\/testing\/\",\"name\":\"Testing - JBL Store\",\"isPartOf\":{\"@id\":\"https:\/\/jblstore.co.id\/en\/#website\"},\"datePublished\":\"2024-09-25T09:19:26+00:00\",\"dateModified\":\"2024-11-07T06:44:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jblstore.co.id\/en\/testing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jblstore.co.id\/en\/testing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jblstore.co.id\/en\/testing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jblstore.co.id\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jblstore.co.id\/en\/#website\",\"url\":\"https:\/\/jblstore.co.id\/en\/\",\"name\":\"JBL Store\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/jblstore.co.id\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jblstore.co.id\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jblstore.co.id\/en\/#organization\",\"name\":\"JBL Store\",\"url\":\"https:\/\/jblstore.co.id\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jblstore.co.id\/en\/#\/schema\/logo\/image\/\",\"url\":\"\/wp-content\/uploads\/2025\/11\/cropped-logo-jbl-1536x1131_cropped.png\",\"contentUrl\":\"\/wp-content\/uploads\/2025\/11\/cropped-logo-jbl-1536x1131_cropped.png\",\"width\":70,\"height\":52,\"caption\":\"JBL Store\"},\"image\":{\"@id\":\"https:\/\/jblstore.co.id\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/JBLAudioIndonesia\/\",\"https:\/\/www.instagram.com\/jblindonesia\/\",\"https:\/\/www.youtube.com\/c\/JBLIndonesia\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Testing","robots":{"index":"noindex","follow":"nofollow"},"og_locale":"en_US","og_type":"article","og_title":"Testing","og_url":"https:\/\/jblstore.co.id\/en\/testing\/","og_site_name":"JBL Store","article_publisher":"https:\/\/www.facebook.com\/JBLAudioIndonesia\/","article_modified_time":"2024-11-07T06:44:42+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jblstore.co.id\/en\/testing\/","url":"https:\/\/jblstore.co.id\/en\/testing\/","name":"Testing - JBL Store","isPartOf":{"@id":"https:\/\/jblstore.co.id\/en\/#website"},"datePublished":"2024-09-25T09:19:26+00:00","dateModified":"2024-11-07T06:44:42+00:00","breadcrumb":{"@id":"https:\/\/jblstore.co.id\/en\/testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jblstore.co.id\/en\/testing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jblstore.co.id\/en\/testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jblstore.co.id\/"},{"@type":"ListItem","position":2,"name":"Testing"}]},{"@type":"WebSite","@id":"https:\/\/jblstore.co.id\/en\/#website","url":"https:\/\/jblstore.co.id\/en\/","name":"JBL Store","description":"","publisher":{"@id":"https:\/\/jblstore.co.id\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jblstore.co.id\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jblstore.co.id\/en\/#organization","name":"JBL Store","url":"https:\/\/jblstore.co.id\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jblstore.co.id\/en\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2025\/11\/cropped-logo-jbl-1536x1131_cropped.png","contentUrl":"\/wp-content\/uploads\/2025\/11\/cropped-logo-jbl-1536x1131_cropped.png","width":70,"height":52,"caption":"JBL Store"},"image":{"@id":"https:\/\/jblstore.co.id\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/JBLAudioIndonesia\/","https:\/\/www.instagram.com\/jblindonesia\/","https:\/\/www.youtube.com\/c\/JBLIndonesia"]}]}},"_links":{"self":[{"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/pages\/103509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/comments?post=103509"}],"version-history":[{"count":25,"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/pages\/103509\/revisions"}],"predecessor-version":[{"id":106373,"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/pages\/103509\/revisions\/106373"}],"wp:attachment":[{"href":"https:\/\/jblstore.co.id\/en\/wp-json\/wp\/v2\/media?parent=103509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}