{"id":52,"date":"2022-05-09T01:13:40","date_gmt":"2022-05-09T01:13:40","guid":{"rendered":"https:\/\/pintadamarelostaging.klmwebsolutions.com.dream.website\/?page_id=52"},"modified":"2024-09-10T07:39:19","modified_gmt":"2024-09-10T07:39:19","slug":"points-history","status":"publish","type":"page","link":"https:\/\/lysio2.klmwebsolutions.com\/en\/points-history\/","title":{"rendered":"Points History"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"52\" class=\"elementor elementor-52\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9b49edd banner-main elementor-hidden-desktop elementor-hidden-tablet_extra elementor-hidden-tablet elementor-hidden-mobile elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9b49edd\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\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-43c54eb\" data-id=\"43c54eb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\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<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8c637ac sign-up-main elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8c637ac\" data-element_type=\"section\" data-e-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-99fc457\" data-id=\"99fc457\" data-element_type=\"column\" data-e-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-51aa468 heading-for-all elementor-widget elementor-widget-heading\" data-id=\"51aa468\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-xxl\">Points History<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e72328 my-survew elementor-widget elementor-widget-shortcode\" data-id=\"8e72328\" 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<script>window.location.href= \"\/member-login\/\"; <\/script>\r\n<script>\r\n\n        const FROM_PATTERN = 'YYYY-MM-DDTHH:mm:ss.SSS';\n        const TO_PATTERN   = 'MM\/DD\/YYYY';\n\n        jQuery(document).ready(function() {\n            jQuery('#example').DataTable({\n                'data': ,\n                'autoWidth': false,\n                'pageLength': 100,\n                'bInfo': false,\n                'responsive': true,\n                'aaSorting': [0,1,2,3],\n                'columns': [\n                    {'data': 'Date', 'sTitle' : 'Date', 'render': function(data, type) {\n                return type === 'sort' ? data : moment(data).format('L');}\n                   },\n                    { 'data': 'Operation', 'sTitle': 'Debit\/Credit' },\n                    { 'data': 'Points', 'sTitle': 'Points' },\n                    { 'data': 'Message', 'sTitle': 'Description' },\n                ],\n                'language': {\n                    'paginate': {\n                        'next': 'Next',\n                        'previous': 'Previous'\n                    },\n                    'search': 'Search',\n                    'lengthMenu': 'Show _MENU_ entries',\n                    'emptyTable': 'No data available in table'\n                },\n                'columnDefs': [\n                    {\n                        render: function(data){\n                            return moment(data).format(TO_PATTERN);\n                        },\n                        targets: [0],\n                        'type':'date'\n                    },\n                    {\n                        render: function (data, type, row){\n                            var d = '';\n                            if (data == 'Credit') d = 'Points Earned';\n                            if (data == 'Debit') d = 'Points Redeemed';\n                            if (data == 'Profile completed points') d = 'Profile completed points';\n                            return d;\n                        },\n                        targets: 1\n                    },\n                     {\n                        render: function (data, type, row){\n                            var d = '';\n                           if (data == 'Profile completed points'){d = 'Profile completed points'}else{d = data }\n                            return d;\n                        },\n                        targets: 3\n                    }\n                ],\n                 'order': [[ 0, 'desc' ]],\n                'rowCallback': function(row, data, index){\n                    if (data['Operation'] === 'Debit') {\n                        jQuery(row).remove();\n                    }\n                }\n            });\n        });\n        <\/script>\r\n\t\t<div class=\"elementor-shortcode\"><table width=\"100%\" class=\"display points_tab_en\" style=\"color: black;\" id=\"example\"><\/table><\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Points History<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-52","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/pages\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":10,"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/pages\/52\/revisions"}],"predecessor-version":[{"id":6524,"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/pages\/52\/revisions\/6524"}],"wp:attachment":[{"href":"https:\/\/lysio2.klmwebsolutions.com\/en\/wp-json\/wp\/v2\/media?parent=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}