{"id":1573,"date":"2024-06-11T00:16:26","date_gmt":"2024-06-11T00:16:26","guid":{"rendered":"http:\/\/server3.testwalking.com\/test\/atic-wp\/?page_id=1573"},"modified":"2024-06-11T00:16:27","modified_gmt":"2024-06-11T00:16:27","slug":"desused-elements","status":"publish","type":"page","link":"http:\/\/server3.testwalking.com\/test\/atic-wp\/desused-elements\/","title":{"rendered":"Desused Elements"},"content":{"rendered":"<style>\n    thead input {\n        width: 100%;\n    }\n\n    tfoot {\n        display: none;\n    }\n<\/style>\n<style class=\"init\">\n    a.buttons-collection {\n        margin-left: 1em;\n    }\n\n    .dataTables_length {\n        float: right !important;\n    }\n\n    .dataTables_info {\n        display: none;\n    }\n\n    .loading {\n        width: 5%;\n        background: transparent;\n        position: absolute;\n        left: 50%;\n        top: 98%;\n        border: none;\n    }\n\n    \/* ATIC-422 *\/\n    \/*td.disuse {\n        background-color: #ddd !important;\n    }*\/\n    .dataTables_filter{\n        display: none;\n    }\n<\/style>\n\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/v\/dt\/dt-1.11.3\/datatables.min.css\" \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/1.11.0\/css\/jquery.dataTables.min.css\" \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/select\/1.3.3\/css\/select.dataTables.min.css\" \/>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/buttons\/2.0.0\/css\/buttons.dataTables.min.css\" \/>\n\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/code.jquery.com\/jquery-3.5.1.js\"><\/script>\n<script src=\"\/\/cdn.jsdelivr.net\/npm\/sweetalert2@11\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/v\/dt\/dt-1.11.3\/datatables.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/buttons\/2.0.0\/js\/dataTables.buttons.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/buttons\/2.0.0\/js\/buttons.html5.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/buttons\/2.0.0\/js\/buttons.print.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jszip\/3.1.3\/jszip.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pdfmake\/0.1.53\/pdfmake.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/pdfmake\/0.1.53\/vfs_fonts.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/select\/1.3.3\/js\/dataTables.select.min.js\"><\/script>\n<script type=\"text\/javascript\" language=\"javascript\" src=\"https:\/\/cdn.datatables.net\/select\/1.3.3\/js\/dataTables.select.min.js\"><\/script>\n\n<div id=\"spinner\"><\/div>\n<div id=\"block_list_axis_19d80941d3acfaa2c2053c31054\" class=\"block_list_axis\">\n    <div class=\"card-div  card-div-back  \">\n        <div class=\"card\">\n            <div class=\"card-body\">\n                <div class=\"row\">\n                    <div class=\"col-md-12 col-sm-12\">\n                        <h5 class=\"card-title\">\n                            <span class=\"title-plate\">Desused Elements                            <\/span>\n                        <\/h5>\n                    <\/div>\n                <\/div>\n                <hr class=\"hr-not-margin-top\">\n                <div class=\"row\">\n                    <div class=\"col-md-12 col-sm-12\">\n                        <table class=\"display\" id=\"block_list_axis_tbl_19d80941d3acfaa2c2053c31054\" width=\"100%\">\n                            <thead>\n                                <tr>\n                                    <th>Code<\/th>\n                                    <th>Element<\/th>\n                                                                            <!--th><\/th -->\n                                                                    <\/tr>\n                            <\/thead>\n                            <tbody><\/tbody>\n                            <tfoot>\n                                <tr>\n                                    <th>Copyright: M Eulalia Juve Udina. Todos los derechos reservados. Visita la p\u00e1gina del Aviso Legal: http:\/\/aticcare.peoplewalking.com\/aviso-legal<\/th>\n                                    <th><\/th>\n                                <\/tr>\n                            <\/tfoot>\n                        <\/table>\n                        <div style=\"display:none;\">\n                            <table id=\"block_list_axis_tbl_export19d80941d3acfaa2c2053c31054\" style=\"width:100%;\">\n                                <thead>\n                                    <tr>\n                                        <th>C\u00f3digo<\/th>\n                                        <th>Elemento<\/th>\n                                        <th>Nivel<\/th>\n                                        <th>Preferencia<\/th>\n                                        <th>Mostrar como<\/th>\n                                        <th>Definici\u00f3n<\/th>\n                                        <th>Fecha ultima revisi\u00f3n<\/th>\n                                        <th>Versi\u00f3n de inclusi\u00f3n<\/th>\n                                    <\/tr>\n                                <\/thead>\n                                <tfoot>\n                                    <tr>\n                                        <th>Copyright: M Eulalia Juve Udina. Todos los derechos reservados. Visita la p\u00e1gina del Aviso Legal: http:\/\/aticcare.peoplewalking.com\/aviso-legal<\/th>\n                                        <th><\/th>\n                                    <\/tr>\n                                <\/tfoot>\n                            <\/table>\n                        <\/div>\n\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<script>\n    \/**\n     * Utility functions for DataTables manipulation.\n     * ATIC-422\n     *\/\n    const DataTableUtils = (function() {\n        \/**\n        * Adds a class to the first cell of each row based on data content.\n        * @param {HTMLTableRowElement} row - The table row being created.\n        * @param {Array} data - The data for the row.\n        * @param {number} dataIndex - The index of the row's data in the DataTable.\n        *\/\n        function createRow(row, data, dataIndex) {\n            \/\/ access the content of the first element in the row (which contains the link)\n            const firstColumnContent = data[0];\n            \/\/ find the class in the content of the first element\n            const matchClass = firstColumnContent.match(\/class=\\\"([^\\\"]+)\\\"\/);\n            \/\/ if a class is found, add it as a class to the first cell of each the row\n            if (matchClass && matchClass[1]) {\n                $(row).children('td').addClass(matchClass[1]);\n            }\n        }\n\n        return {\n            createRow: createRow\n        }\n    })();\n\n    jQuery(document).ready(function($) {\n\n        $('#block_list_axis_tbl_19d80941d3acfaa2c2053c31054 thead tr').clone(true).appendTo('#block_list_axis_tbl_19d80941d3acfaa2c2053c31054 thead');\n        $('#block_list_axis_tbl_19d80941d3acfaa2c2053c31054 thead tr:eq(1) th').each(function(i) {\n            var title = $(this).text();\n            if (title != '')\n                $(this).html('<input type=\"text\" class=\"search_input_' + i + '\" placeholder=\"Search ' + title + '\" \/>');\n\n            $('input', this).on('keyup', function() {\n                if (tableAxis.column(i).search() !== this.value) {\n                    tableAxis\n                        .column(i)\n                        .search(this.value)\n                        .draw();\n                }\n            });\n        });\n\n        var btns = [];\n\n        var btnExportExcel = {\n            text: \"Export Excel\",\n            \/\/messageBottom:'Copyright: M Eulalia Juve Udina \\n Todos los derechos reservados. \\n Visita la p\u00e1gina del Aviso Legal: http:\/\/aticcare.peoplewalking.com\/aviso-legal',\n            extend: 'excel',\n            footer: true,\n            orientation: 'landscape',\n            action: function(e, dt, node, config) {\n                var that = this;\n                e.preventDefault();\n                Swal.fire({\n                    title: 'Este contenido es propiedad de ATIC',\n                    html: \"He le\u00eddo los t\u00e9rminos definidos en la pagina de <a href=\\\"http:\/\/aticcare.peoplewalking.com\/aviso-legal\\\">Aviso Legal<\/a>\",\n                    icon: 'info',\n                    showCancelButton: true,\n                    confirmButtonColor: '#3085d6',\n                    cancelButtonColor: '#d33',\n                    confirmButtonText: 'Acepto'\n                }).then((result) => {\n                    if (result.isConfirmed) {\n                        setTimeout(function() {\n                            $.fn.dataTable.ext.buttons.excelHtml5.action.call(that, e, dt, node, config);\n                        }, 50);\n                    }\n                })\n            }\n        };\n        var btnExportPdf = {\n            text: \"Export PDF\",\n            messageBottom: '\\n Copyright: M Eulalia Juve Udina \\n Todos los derechos reservados. \\n Visita la p\u00e1gina del Aviso Legal: http:\/\/aticcare.peoplewalking.com\/aviso-legal',\n            extend: 'pdf',\n            orientation: 'landscape',\n            action: function(e, dt, node, config) {\n                var that = this;\n                e.preventDefault();\n                Swal.fire({\n                    title: 'Este contenido es propiedad de ATIC',\n                    html: \"He le\u00eddo los t\u00e9rminos definidos en la pagina de <a href=\\\"http:\/\/aticcare.peoplewalking.com\/aviso-legal\\\">Aviso Legal<\/a>\",\n                    icon: 'info',\n                    showCancelButton: true,\n                    confirmButtonColor: '#3085d6',\n                    cancelButtonColor: '#d33',\n                    confirmButtonText: 'Acepto'\n                }).then((result) => {\n                    if (result.isConfirmed) {\n                        setTimeout(function() {\n                            $.fn.dataTable.ext.buttons.pdfHtml5.action.call(that, e, dt, node, config);\n\n\n                        }, 50);\n                    }\n                })\n            }\n        };\n        var btnExportAxis = {\n            text: \"Export Axis\",\n            action: function(e, dt, node, config) {\n                var that = this;\n                e.preventDefault();\n                Swal.fire({\n                    title: 'Este contenido es propiedad de ATIC',\n                    html: \"He le\u00eddo los t\u00e9rminos definidos en la pagina de <a href=\\\"http:\/\/aticcare.peoplewalking.com\/aviso-legal\\\">Aviso Legal<\/a>\",\n                    icon: 'info',\n                    showCancelButton: true,\n                    confirmButtonColor: '#3085d6',\n                    cancelButtonColor: '#d33',\n                    confirmButtonText: 'Acepto'\n                }).then((result) => {\n                    if (result.isConfirmed) {\n                        setTimeout(function() {\n                            \/\/ tableAxisExport.button('0').trigger();\n                            \/\/ $.fn.dataTable.ext.buttons.pdfHtml5.action.call(that, e, dt, node, config);\n                            \/\/ show spinner    \n                            $('#spinner').html('<div class=\"loading\"><img decoding=\"async\" src=\"\/test\/atic-wp\/wp-content\/uploads\/2022\/04\/loading.gif\" alt=\"loading\" \/><\/div>');\n                            jQuery.ajax({\n                                type: \"POST\",\n                                url: \"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-admin\/admin-ajax.php\",\n                                data: {\n                                    action: 'export_csv',\n                                    axis: '',\n                                    lang: '',\n                                },\n                                success: function(res) {\n                                    \/\/ hide spinner\n                                    $('#spinner').fadeIn(1000).html(\"\");\n                                    \/*\n                                     * Make CSV downloadable\n                                     *\/\n                                    var downloadLink = document.createElement(\"a\");\n                                    var fileData = ['\\ufeff' + res];\n\n                                    var blobObject = new Blob(fileData, {\n                                        type: \"text\/csv;charset=utf-8;\"\n                                    });\n\n                                    var url = URL.createObjectURL(blobObject);\n                                    downloadLink.href = url;\n                                    downloadLink.download = \"_FullExport.csv\";\n\n                                    \/*\n                                     * Actually download CSV\n                                     *\/\n                                    document.body.appendChild(downloadLink);\n                                    downloadLink.click();\n                                    document.body.removeChild(downloadLink);\n                                }\n                            });\n\n                        }, 50);\n                    }\n                })\n            }\n        };\n\n        \n                var codeSearch = $('.search_input_0'),\n            elementSearch = $('.search_input_1'),\n            tableAxis = $(\"#block_list_axis_tbl_19d80941d3acfaa2c2053c31054\").DataTable({\n               \/\/ ATIC-422\n               createdRow: DataTableUtils.createRow,\n                order: [\n                    [0, 'asc']\n                ],\n                \"processing\": true,\n                \"serverSide\": true,\n                \"searching\": false,\n                \"scrollX\": true,\n                \"scrollY\": 300,\n                info: true,\n                \/\/bLengthChange: false,\n                pageLength: 25,\n                orderCellsTop: true,\n                fixedHeader: true,\n                pagingType: 'simple_numbers',\n                dom: '<lf<t>ip>',\n                buttons: btns,\n                \"lengthMenu\": [\n                    [10, 25, 50, 100],\n                    [10, 25, 50, 100]\n                ],\n                language: {\n                    url: 'http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-content\/themes\/blaskan_child\/languages\/datatables\/en-gb.json',\n                },\n                \"ajax\": {\n                    \"url\": \"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-admin\/admin-ajax.php\",\n                    \"type\": \"POST\",\n                    \"data\": function(data) {\n                        data.action = 'get_list_unused';\n                        data.axis = '';\n                        data.lang = '';\n                        data.code = codeSearch.val();\n                        data.element = elementSearch.val();\n                    },\n                }\n            });\n    });\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":13,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-customs-blocks.php","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/pages\/1573"}],"collection":[{"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/comments?post=1573"}],"version-history":[{"count":1,"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/pages\/1573\/revisions"}],"predecessor-version":[{"id":1574,"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/pages\/1573\/revisions\/1574"}],"wp:attachment":[{"href":"http:\/\/server3.testwalking.com\/test\/atic-wp\/wp-json\/wp\/v2\/media?parent=1573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}