{"id":1854,"date":"2024-05-04T12:09:11","date_gmt":"2024-05-04T15:09:11","guid":{"rendered":"https:\/\/label.info\/?page_id=1854"},"modified":"2025-01-03T14:15:34","modified_gmt":"2025-01-03T17:15:34","slug":"label-calculator","status":"publish","type":"page","link":"https:\/\/label.info\/en\/label-calculator\/","title":{"rendered":"Label Calculator"},"content":{"rendered":"     <style>\r\n\r\n.tab {\r\noverflow: hidden;\r\nborder: 1px solid #fff;\r\nbackground-color: #f1f1f1;\r\n}\r\n\r\n\/* Style the buttons inside the tab *\/\r\n.tab button {\r\nbackground-color: inherit;\r\nfloat: left;\r\nborder: none;\r\noutline: none;\r\ncursor: pointer;\r\npadding: 14px 16px;\r\ntransition: 0.3s;\r\nfont-size: 17px;\r\n}\r\n\r\n\/* Change background color of buttons on hover *\/\r\n.tab button:hover {\r\nbackground-color: #ddd;\r\n}\r\n\r\n\/* Create an active\/current tablink class *\/\r\n.tab button.active {\r\nbackground-color: #ccc;\r\n}\r\n\r\n\/* Style the tab content *\/\r\n.tabcontent {\r\ndisplay: none;\r\npadding: 6px 12px;\r\n\/\/border: 1px solid #ccc;\r\nborder-top: none;\r\n}\r\n\r\n.buttonlist:hover {\r\ntext-decoration: underline;\r\n}\r\n.buttonlist {\r\ntext-decoration: underline;\r\ncursor: pointer;\r\nbackground:none;\r\nborder:none;\r\nmargin:0;\r\npadding:0;\r\ncursor: pointer;\r\ncolor: #7f64e0;\r\nfont-weight : bold ;\r\n}\r\n\r\n.EditarRascunho:hover {\r\ntext-decoration: underline;\r\n}\r\n.EditarRascunho {\r\ntext-decoration: underline;\r\ncursor: pointer;\r\nbackground:none;\r\nborder:none;\r\nmargin:0;\r\npadding:0;\r\ncursor: pointer;\r\ncolor: #7f64e0;\r\nfont-weight : bold ;\r\n}\r\n\r\n.buttonsave {\r\n    float: left;\r\n    list-style: none;\r\n    margin-right: 0px;\r\n    margin-bottom: 0px;\r\n    background-color: #636363;\r\n    border: 0;\r\n    border-radius: 7px;\r\n    box-sizing: border-box;\r\n    color: white;\r\n    font-size: .875rem;\r\n    font-weight: 600;\r\n    line-height: 1.25rem;\r\n    padding: .75rem 1rem;\r\n    text-align: center;\r\n    text-decoration: none #D1D5DB solid;\r\n    text-decoration-thickness: auto;\r\n    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.34), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\r\n    cursor: pointer;\r\n    user-select: none;\r\n    -webkit-user-select: none;\r\n    touch-action: manipulation;\r\n}\r\n.buttonsave:hover {\r\n    background-color: #858585;\r\n}\r\n\r\n.buttonsave:focus {\r\n    outline: 2px solid transparent;\r\n    outline-offset: 2px;\r\n}\r\n.buttonsave:focus-visible {\r\n    box-shadow: none;\r\n}\r\n    \r\n.buttonsmaq2 li {\r\n    float: left;\r\n    list-style: none;\r\n    margin-right: 0px;\r\n    margin-bottom: 0px;\r\n    background-color: #636363;\r\n    border: 0;\r\n    border-radius: 7px;\r\n    box-sizing: border-box;\r\n    color: white;\r\n    font-size: .875rem;\r\n    font-weight: 600;\r\n    line-height: 1.25rem;\r\n    padding: .75rem 1rem;\r\n    text-align: center;\r\n    text-decoration: none #D1D5DB solid;\r\n    text-decoration-thickness: auto;\r\n    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.34), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\r\n    cursor: pointer;\r\n    user-select: none;\r\n    -webkit-user-select: none;\r\n    touch-action: manipulation;\r\n}\r\n\r\n.buttonsmaq2 li:hover {\r\n    background-color: #858585;\r\n}\r\n\r\n.lista1 {\r\n    overflow-x: auto;\r\n}\r\n\r\n.buttonsmaq2 li:focus {\r\n    outline: 2px solid transparent;\r\n    outline-offset: 2px;\r\n}\r\n.buttonsmaq2 li:focus-visible {\r\n    box-shadow: none;\r\n}\r\n\r\n.buttonsmaq2 li a {\r\n    color: white;\r\n    text-decoration: none;\r\n}\r\n\r\n.Painel1 {\r\n    border-radius: 0px;\r\n    float: left;\r\n    min-width: 350px;\r\n    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\r\n    margin-left: 0px;\r\n    margin-bottom: 25px;\r\n    background: #ffffff;\r\n    \/\/max-width: 1000px;\r\n    width: 100%;\r\n}\r\n.Painel2 {\r\n    border-radius: 3px;\r\n    float: left;\r\n    min-width: 350px;\r\n    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\r\n    margin-left: 0px;\r\n    margin-bottom: 25px;\r\n    background: #ffffff;\r\n    \/\/max-width: 1000px;\r\n    width: 100%;\r\n}\r\n\r\n.informacoesferramentas{\r\n    border-radius: 0px;\r\n    float: left;\r\n    margin-left: 0px;\r\n    margin-bottom: 25px;\r\n    padding:15px;\r\n    background: #EFEFF0;\r\n    width: 100%;\r\n}\r\n\r\n.sugestoes{\r\n    border-radius: 0px;\r\n    float: left;\r\n    margin-left: 0px;\r\n    margin-bottom: 25px;\r\n    padding:15px;\r\n    background: #d9ffc9;\r\n    width: 100%;\r\n}\r\n\r\n.ContainerTopBorda {\r\n    border-top-left-radius: 3px;\r\n    border-top-right-radius: 3px;\r\n    padding: 12px;  \r\n    width: 100%;\r\n    margin-top: 0px;\r\n    background: linear-gradient(0.25turn, #863A2A, #E66B25, #EB9C36);\r\n}\r\n.ConteinerConteudo {\r\n    padding: 25px;\r\n    width: 100%;\r\n    margin-top: 0px;\r\n    margin-bottom:0px;\r\n}\r\n.centralizar {\r\n    margin: auto;\r\n    max-width: 1000px;\r\n}\r\n.centralizar1 {\r\n    text-align: center;\r\n    margin: auto;\r\n}\r\n\/* HIDE RADIO *\/\r\n[name=etiquetaMedida] { \r\n    position: absolute;\r\n    opacity: 0;\r\n    width: 0;\r\n    height: 0;\r\n}\r\n\r\n\/* IMAGE STYLES *\/\r\n[name=etiquetaMedida] + img {\r\n    cursor: pointer;\r\n}\r\n\r\n\/* CHECKED STYLES *\/\r\n[name=etiquetaMedida]:checked + img {\r\n    outline: 2px solid #f00;\r\n}\r\n.buttonlist2:hover {\r\n    text-decoration: underline;\r\n\r\n}\r\n.buttonlist2 {\r\n    text-decoration: none;\r\n    cursor: pointer;\r\n    background:none;\r\n    border:none;\r\n    margin:0;\r\n    padding:0;\r\n    cursor: pointer;\r\n    color: #4024a5;\r\n    font-weight : bold ;\r\n}\r\n\r\n.bg_fundo {\r\n    background-color: white; \/* Fundo branco *\/\r\n    border: 1px solid var(--bb-content-border-color);\r\n    border-radius: 10px; \/* Bordas arredondadas *\/\r\n    padding: 15px; \/* Espa\u00e7o interno *\/\r\n    \/\/box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); \/* Sombra leve para destacar *\/\r\n}\r\n\r\n<\/style>\r\n\r\n<div class=\"bg_fundo\">\r\n    <div style=\"  display: grid;  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));   gap: 10px;   width: 100%; margin-bottom:35px;\">\r\n\r\n        <div>\r\n            <label style=\"font-size:16px\">Width:<\/label><br>\r\n            <input name=\"largura\" value='' oninput=\"Calcula()\" type=\"number\" id=\"campolargura\" style=\"font-size: 15px; width:100%; height:34px;\";><br>\r\n        <\/div>\r\n\r\n        <div>\r\n            <label style=\"font-size:16px\">Height:<\/label><br>\r\n            <input name=\"altura\"  value='' oninput=\"Calcula()\" type=\"number\" id=\"campoaltura\" style=\"font-size: 15px; width:100%;height:34px;\";>\r\n        <\/div>\r\n\r\n        <div>\r\n            <label style=\"font-size:16px\">Columns:<\/label>\r\n            <select id=\"colunas\" name=\"Colunas\" style=\"font-size:15px; width:100%;height:34px\" onchange=\"hamburger(this)\">\r\n                <option value=\"1\">1<\/option>\r\n                <option value=\"2\">2<\/option>\r\n                <option value=\"3\">3<\/option>\r\n                <option value=\"4\">4<\/option>\r\n                <option value=\"5\">5<\/option>\r\n                <option value=\"6\">6<\/option>\r\n                <option value=\"7\">7<\/option>\r\n                <option value=\"8\">8<\/option>\r\n                <option value=\"9\">9<\/option>\r\n                <option value=\"10\">10<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n    <\/div>\r\n\r\n    <div style=\"  display: grid;  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));   gap: 10px;   width: 100%; margin-bottom:35px;\">\r\n\r\n        <div>\r\n            <div style=\"margin-bottom:30px;\">\r\n                <input type=\"radio\" id=\"semGAP\" name=\"fav_gap\" value=\"semGAP\" onclick=\"selectGAP()\">\r\n                <label for=\"semGAP\"  style=\"font-size: 16px\">No GAP<\/label><br>\r\n                <input type=\"radio\" id=\"GAPsimples\" name=\"fav_gap\" value=\"GAPsimples\" onclick=\"selectGAP()\" >\r\n                <label for=\"GAPsimples\"  style=\"font-size: 16px\">Simple GAP<\/label><br>\r\n                <input type=\"radio\" id=\"GAPduplo\" name=\"fav_gap\" value=\"GAPduplo\"  onclick=\"selectGAP()\" disabled>\r\n                <label for=\"GAPduplo\"  style=\"font-size: 16px\">Double GAP<\/label><br>\r\n                <input type=\"radio\" id=\"GAPvertical\" name=\"fav_gap\"  onclick=\"selectGAP()\" value=\"GAPvertical\">\r\n                <label for=\"GAPvertical\"  style=\"font-size: 16px\">Vertical GAP<\/label><br>\r\n                <input type=\"radio\" id=\"GAPhorizontal\" name=\"fav_gap\"  onclick=\"selectGAP()\" value=\"GAPhorizontal\" disabled>\r\n                <label for=\"GAPhorizontal\"  style=\"font-size: 16px;\">Horizontal GAP<\/label>\r\n            <\/div>\r\n\r\n            <label style=\"font-size:16px;\" id=\"GAPhorizontalLabel\">Horizontal GAP:<\/label>\r\n            <input id=\"GAPhorizontalTexto\" value=\"3\" name=\"Campo22\" oninput=\"Calcula()\" type=\"number\"  style=\"font-size: 15px; width:100%; height:34px;\">\r\n\r\n            <label style=\"font-size:16px\" id=\"GAPverticalLabel\">Vertical GAP:<\/label>\r\n            <input id=\"GAPverticalTexto\" value=\"3\" name=\"Campo222\" oninput=\"Calcula()\" type=\"number\"  style=\"font-size: 15px; width:100%; height:34px;\">\r\n\r\n            <label style=\"font-size:16px\" id=\"BordasLabel\">Borders:<\/label>\r\n            <input id=\"BordasTexto\" name=\"Campo2222\" value=\"3\" oninput=\"Calcula()\" type=\"number\"  style=\"font-size: 15px; width:100%; height:34px;\">\r\n\r\n        <\/div>\r\n\r\n        <div>\r\n            <p style=\"text-align: center;\"><img decoding=\"async\" alt=\"\" id=\"foto\" src=\"https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-simples-1-coluna.png\" style=\"width: 200px; height: 250px;\" \/><\/p>\r\n        <\/div>\r\n\r\n    <\/div>\r\n    <hr>\r\n\r\n    <div style=\"  display: grid;  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));   gap: 10px;   width: 100%; margin-bottom:35px;\">\r\n\r\n        <div>\r\n            <label style=\"font-size:16px\">Calculation per:<\/label><br>\r\n            <input type=\"radio\" id=\"CalculoEtiquetasRadio\" name=\"TipoCalculo\" value=\"Etiqueta\" onclick=\"show_calcetiquetas()\">\r\n            <label   style=\"font-size: 16px\">Label<\/label><br>\r\n            <input type=\"radio\" id=\"CalculoRolosRadio\" name=\"TipoCalculo\" value=\"Rolos\" onclick=\"show_calcrolos()\">\r\n            <label  style=\"font-size: 16px\">Roll<\/label>\r\n        <\/div>\r\n\r\n        <div>\r\n            <div id=\"calcetiquetas2\">\r\n                <label style=\"font-size:16px\">Linear Meter per Roll:<\/label><br>\r\n            <input name=\"metrosporrolo\" value=\"70\" oninput=\"Calcula()\" type=\"number\" id=\"metrosporrolo\" style=\"font-size: 15px; width:100%;height:34px;\";><br>\r\n                <label style=\"font-size:16px\">Quantity of Labels:<\/label><br>\r\n                <input name=\"Campo2\" type=\"number\" id=\"campoquantidade\" oninput=\"Calcula()\" style=\"font-size: 15px; width:100%; height:34px;\">\r\n            <\/div>\r\n            <div id=\"calcrolos2\">\r\n                <label style=\"font-size:16px\">Labels per Roll:<\/label><br>\r\n                <input name=\"qtd_etiquetas_por_rolo1\" oninput=\"Calcula()\" type=\"number\" id=\"qtdetiquetasporrolo\" style=\"font-size: 15px; width:100%;height:34px;\";><br>\r\n                <label style=\"font-size:16px\">Quantity of Rolls:<\/label><br>\r\n                <input name=\"Campo2\" type=\"number\" id=\"qtd_rolos_calporrolo\" oninput=\"Calcula()\" style=\"font-size: 15px; width:100%;height:34px;\";>\r\n                <\/div>\r\n        <\/div>\r\n\r\n    <\/div>\r\n\r\n    <hr>\r\n\r\n    <div style=\"  display: grid;  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));   gap: 10px;   width: 100%;\">\r\n\r\n        <div>\r\n            <div id = \"calcetiquetas\">\r\n                <label style=\"font-size:16px; color:Green\" id=\"QTDetiquetas\">0<\/label>\r\n                <label style=\"font-size:16px; color:Green\"> labels\/roll<\/label><br><br>\r\n                <label style=\"font-size:16px; color:Green\" id=\"QTDrolos\">0<\/label>\r\n                <label style=\"font-size:16px; color:Green\"> rolls<\/label><br><br>\r\n            <\/div>\r\n\r\n            <div id = \"calcrolos\">\r\n                <label style=\"font-size:16px; color:Green\" id=\"TotalEtiquetasPorRolo\">0<\/label>\r\n                <label style=\"font-size:16px; color:Green\"> total labels<\/label><br><br>\r\n                <label style=\"font-size:16px; color:Green\" id=\"MLinearesRolo\">0<\/label>\r\n                <label style=\"font-size:16px; color:Green\"> linear meters per roll<\/label><br><br>\r\n            <\/div>\r\n\r\n            <label style=\"font-size:16px; color:Green\" id=\"MetrosQuadrados\">0<\/label>\r\n            <label style=\"font-size:16px; color:Green\"> total sqm<\/label><br><br>\r\n            <label style=\"font-size:16px; color:Green\" id=\"MetrosLineares\">250<\/label>\r\n            <label style=\"font-size:16px; color:Green\"> total linear meters<\/label><br><br>\r\n            <label style=\"font-size:16px\">Roll width: <\/label>\r\n            <label style=\"font-size:16px; color:Green\" id=\"LarguraDaBobina\">0<\/label>\r\n            <label style=\"font-size:16px; color:Green\"> mm<\/label>\r\n        <\/div>\r\n\r\n        <div>\r\n\r\n            <label style=\"font-size:16px\">Material Price (sqm):<\/label><br>\r\n            <input type=\"number\" id=\"precoM2\" oninput=\"Calcula()\" style=\"font-size: 15px; width:100%; height:34px; margin-bottom:35px;\"><br>\r\n            <label style=\"font-size:16px\">Custo: <\/label>\r\n            <label style=\"font-size:16px; color:Green\" id=\"CustoMaterial\">0<\/label><label style=\"font-size:15px\"> x <\/label><input type=\"number\" id=\"multiplicacao\" oninput=\"Calcula()\" style=\"font-size: 16px; width:120px; height:34px;\";><label style=\"font-size:16px;\"> = <\/label><label style=\"font-size:16px; color:Green\" id=\"resultadofinalcusto\">0<\/label>\r\n\r\n        <\/div>\r\n\r\n    <\/div>\r\n\r\n<\/div>\r\n\r\n<script>\r\nfunction show_calcrolos(){\r\n    document.getElementById(\"calcetiquetas\").style.display = 'none';\r\n    document.getElementById(\"calcetiquetas2\").style.display = 'none';\r\n    document.getElementById(\"calcrolos\").style.display = '';\r\n    document.getElementById(\"calcrolos2\").style.display = '';\r\n    Calcula();\r\n  }\r\nfunction show_calcetiquetas(){\r\n    document.getElementById(\"calcrolos\").style.display = 'none';\r\n    document.getElementById(\"calcrolos2\").style.display = 'none';\r\n    document.getElementById(\"calcetiquetas\").style.display = '';\r\n    document.getElementById(\"calcetiquetas2\").style.display = '';\r\n    Calcula();\r\n  }\r\n\r\nfunction selectGAP(){\r\nif(document.getElementById('semGAP').checked) {\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = 'none';\r\ndocument.getElementById(\"BordasTexto\").style.display = 'none';\r\ndocument.getElementById(\"BordasLabel\").style.display = 'none';\r\ndocument.getElementById(\"GAPhorizontalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPhorizontalLabel\").style.display = 'none';\r\nif(document.getElementById('colunas').value==='1') { document.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/sem-GAP-1-coluna.png';\r\n}else{\r\ndocument.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/sem-GAP-2-colunas.png';\r\n}\r\n}\r\nif(document.getElementById('GAPsimples').checked) {\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = 'none';\r\ndocument.getElementById(\"BordasTexto\").style.display = '';\r\ndocument.getElementById(\"BordasLabel\").style.display = '';\r\ndocument.getElementById(\"GAPhorizontalTexto\").style.display = '';\r\ndocument.getElementById(\"GAPhorizontalLabel\").style.display = '';\r\n\r\nif(document.getElementById('colunas').value==='1') { document.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-simples-1-coluna.png';\r\n}else{\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = '';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = '';\r\ndocument.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-simples-2-colunas.png';\r\n}\r\n}\r\nif(document.getElementById('GAPvertical').checked) {\r\n\r\ndocument.getElementById(\"GAPhorizontalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPhorizontalLabel\").style.display = 'none';\r\ndocument.getElementById(\"BordasTexto\").style.display = '';\r\ndocument.getElementById(\"BordasLabel\").style.display = '';\r\n\r\nif(document.getElementById('colunas').value==='1') { document.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-simples-sem-GAP-na-horizontal-1-coluna.png';\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = 'none';\r\n}else{\r\ndocument.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-simples-sem-GAP-na-horizontal-2-colunas.png';\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = '';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = '';\r\n}\r\n}\r\nif(document.getElementById('GAPduplo').checked) {\r\ndocument.getElementById(\"GAPhorizontalTexto\").style.display = '';\r\ndocument.getElementById(\"GAPhorizontalLabel\").style.display = '';\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = 'none';\r\ndocument.getElementById(\"BordasTexto\").style.display = '';\r\ndocument.getElementById(\"BordasLabel\").style.display = '';\r\n\r\ndocument.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-duplo-no-meio.png';\r\n\r\n}\r\nif(document.getElementById('GAPhorizontal').checked) {\r\ndocument.getElementById(\"GAPhorizontalTexto\").style.display = '';\r\ndocument.getElementById(\"GAPhorizontalLabel\").style.display = '';\r\ndocument.getElementById(\"BordasTexto\").style.display = '';\r\ndocument.getElementById(\"BordasLabel\").style.display = '';\r\ndocument.getElementById(\"GAPverticalTexto\").style.display = 'none';\r\ndocument.getElementById(\"GAPverticalLabel\").style.display = 'none';\r\ndocument.getElementById(\"foto\").src='https:\/\/www.etiplus.net\/wp-content\/uploads\/2022\/07\/GAP-somente-horizontal-2-colunas.png';\r\n\r\n}\r\nCalcula();\r\n}\r\n\r\nfunction hamburger(sender) { \/\/ sender here has all details of dropdown\r\nif (sender.value === \"1\") {\r\ndocument.getElementById(\"GAPduplo\").disabled = true;\r\ndocument.getElementById(\"GAPhorizontal\").disabled = true;\r\n\r\nif(document.getElementById(\"GAPhorizontal\").checked ===true){\r\ndocument.getElementById(\"GAPsimples\").click();\r\n}\r\nif(document.getElementById(\"GAPduplo\").checked ===true){\r\ndocument.getElementById(\"GAPsimples\").click();\r\n}\r\nif(document.getElementById(\"semGAP\").checked ===true){\r\ndocument.getElementById(\"semGAP\").click();}\r\nif(document.getElementById(\"GAPsimples\").checked ===true){\r\ndocument.getElementById(\"GAPsimples\").click();}\r\nif(document.getElementById(\"GAPvertical\").checked ===true){\r\ndocument.getElementById(\"GAPvertical\").click();}\r\n}else{\r\n    document.getElementById(\"GAPduplo\").disabled = false;\r\n    document.getElementById(\"GAPhorizontal\").disabled = false;\r\n\r\nif(document.getElementById(\"semGAP\").checked ===true){\r\ndocument.getElementById(\"semGAP\").click();}\r\nif(document.getElementById(\"GAPsimples\").checked ===true){\r\ndocument.getElementById(\"GAPsimples\").click();}\r\nif(document.getElementById(\"GAPvertical\").checked ===true){\r\ndocument.getElementById(\"GAPvertical\").click();}\r\n}\r\nselectGAP();\r\n}\r\n\r\nfunction Calcula(){\r\n  \/\/variaveis\r\n  \r\n  var largura =0;\r\n  var altura = 0;\r\n  var colunas = 0;\r\n  var estiloGAP = 0;\r\n  var GAPvertical= 0;\r\n  var GAPhorizontal = 0;\r\n  var Bordas = 0;\r\n  var quantidade = 0;\r\n  var resultm2 = 0;\r\n  var resultmlinear = 0;\r\n  var resultlargurabobina = 0;\r\n  var mporrolo = 0;\r\n  var CALCROLO_quantidadeRolo = 0;\r\n  var CALCROLO_quantidadeEtiquetas = 0;\r\n  \r\n  CALCROLO_quantidadeRolo = document.getElementById(\"qtd_rolos_calporrolo\").value;\r\n  CALCROLO_quantidadeEtiquetas = document.getElementById(\"qtdetiquetasporrolo\").value;\r\n  \r\n  mporrolo = document.getElementById(\"metrosporrolo\").value;\r\n  largura = parseInt(document.getElementById(\"campolargura\").value);\r\n  altura = parseInt(document.getElementById(\"campoaltura\").value);\r\n  colunas = parseInt(document.getElementById(\"colunas\").value);\r\n  estiloGAP = document.querySelector('input[name=\"fav_gap\"]:checked').value;\r\n  GAPvertical = parseFloat(document.getElementById(\"GAPverticalTexto\").value);\r\n  GAPhorizontal = parseFloat(document.getElementById(\"GAPhorizontalTexto\").value);\r\n  Bordas = parseFloat(document.getElementById(\"BordasTexto\").value);\r\n  \r\n  document.getElementById(\"TotalEtiquetasPorRolo\").innerHTML = CALCROLO_quantidadeEtiquetas * CALCROLO_quantidadeRolo;\r\n\r\n    if(document.getElementById('CalculoRolosRadio').checked) {\r\n    quantidade = CALCROLO_quantidadeEtiquetas * CALCROLO_quantidadeRolo;\r\n    }\r\n    if(document.getElementById('CalculoEtiquetasRadio').checked) {\r\n    quantidade = parseInt(document.getElementById(\"campoquantidade\").value);\r\n    }\r\n  \r\n  \/\/come\u00e7a a calcular\r\n  if(colunas==1){\r\n  \/\/quando a coluna \u00e9 1\r\n  \r\n  if(estiloGAP===\"GAPsimples\"){\r\n  resultm2 = (((largura+(Bordas*2))*(altura+GAPhorizontal))\/1000000)*quantidade;\r\n  resultmlinear = (altura+GAPhorizontal)*quantidade\/1000;\r\n  resultlargurabobina = (largura+(Bordas*2));\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = mporrolo*1000\/(altura+GAPhorizontal);\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  }\r\n  if(estiloGAP===\"semGAP\"){\r\n  resultm2 = largura*altura\/1000000*quantidade;\r\n  resultmlinear = altura*quantidade\/1000;\r\n  resultlargurabobina = largura;\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = mporrolo*1000\/altura;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  \r\n  }\r\n  if(estiloGAP===\"GAPvertical\"){\r\n  resultm2 = (((largura+(Bordas*2))*altura)\/1000000)*quantidade;\r\n  resultmlinear = altura*quantidade\/1000;\r\n  resultlargurabobina = (largura+(Bordas*2));\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = (mporrolo*1000\/altura)*colunas;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  \r\n  }}else{\r\n  \r\n  \/\/quando a coluna \u00e9 mais de 1\r\n  if(estiloGAP===\"GAPsimples\"){\r\n  resultm2 = (((largura*colunas+(Bordas*2)+(GAPvertical*(colunas-1)))*(altura+GAPhorizontal))\/1000000)*quantidade\/colunas;\r\n  resultmlinear = (altura+GAPhorizontal)*quantidade\/colunas\/1000;\r\n  resultlargurabobina = (largura*colunas+(Bordas*2))+(GAPvertical*(colunas-1));\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = (mporrolo*1000\/(altura+GAPhorizontal))*colunas;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  \r\n  \r\n  }\r\n  if(estiloGAP===\"semGAP\"){\r\n  resultm2 = (largura*colunas*altura)\/colunas\/1000000*quantidade;\r\n  resultmlinear = altura*(quantidade\/colunas)\/1000;\r\n  resultlargurabobina = largura*colunas;\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = (mporrolo*1000\/altura)*colunas;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  }\r\n  \r\n  if(estiloGAP===\"GAPvertical\"){\r\n  resultm2 = (((largura*colunas+(Bordas*2)+(GAPvertical*(colunas-1)))*altura)\/1000000)*quantidade\/colunas;\r\n  resultmlinear = altura*quantidade\/colunas\/1000;\r\n  resultlargurabobina = (largura*colunas+(Bordas*2))+(GAPvertical*(colunas-1));\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = (mporrolo*1000\/altura)*colunas;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  }\r\n  if(estiloGAP===\"GAPhorizontal\"){\r\n  resultm2 = (((largura*colunas+(Bordas*2))*(altura+GAPhorizontal))\/1000000)*quantidade\/colunas;\r\n  resultmlinear = (altura+GAPhorizontal)*quantidade\/colunas\/1000;\r\n  resultlargurabobina = (largura*colunas+(Bordas*2));\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = (mporrolo*1000\/(altura+GAPhorizontal))*colunas;\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  }\r\n  if(estiloGAP===\"GAPduplo\"){\r\n  resultm2 = (((largura+(Bordas*2))*colunas*(altura+GAPhorizontal))\/1000000)*quantidade\/colunas;\r\n  resultmlinear = (altura+GAPhorizontal)*quantidade\/1000\/colunas;\r\n  resultlargurabobina = (largura+(Bordas*2))*colunas;\r\n  \/\/etiquetas por rolo\r\n  var QTDetiquetasTemp = mporrolo*1000\/(altura+GAPhorizontal);\r\n  QTDetiquetasTemp = QTDetiquetasTemp || 0;\r\n  document.getElementById(\"QTDetiquetas\").innerHTML = Math.floor(QTDetiquetasTemp);\r\n  \r\n  }\r\n  }\r\n  \r\n  \r\n\r\n  \/\/passa resultado\r\n  resultm2 = resultm2 || 0;\r\n  resultmlinear = resultmlinear || 0;\r\n  resultlargurabobina = resultlargurabobina || 0;\r\n\r\n  document.getElementById(\"MetrosQuadrados\").innerHTML = parseFloat(resultm2).toFixed(2);\r\n  document.getElementById(\"MetrosLineares\").innerHTML = parseFloat(resultmlinear).toFixed(2);\r\n\r\n  document.getElementById(\"LarguraDaBobina\").innerHTML = parseFloat(resultlargurabobina).toFixed(1);\r\n\r\n  \r\n\r\n  \/\/Extra - qtdRolos\r\n  \r\n  \r\n  if(estiloGAP===\"GAPduplo\"){\r\n  document.getElementById(\"QTDrolos\").innerHTML = parseFloat(resultmlinear*colunas\/mporrolo).toFixed(1);\r\n  }else{\r\n  document.getElementById(\"QTDrolos\").innerHTML = parseFloat(resultmlinear\/mporrolo).toFixed(1);\r\n  }\r\n\r\n  var qtd_rolos_calporRoloVar = parseInt(document.getElementById(\"qtd_rolos_calporrolo\").value);\r\n  \r\n  var MlinearRoloTemp = resultmlinear\/qtd_rolos_calporRoloVar\r\n  MlinearRoloTemp=MlinearRoloTemp||0;\r\n  document.getElementById(\"MLinearesRolo\").innerHTML = parseFloat(MlinearRoloTemp).toFixed(2);;\r\n\r\n  \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/Pega Pe\u00e7o material\r\n  \/*\r\n  var PrecoM2MaterialVar='0';\r\n  var IdMaterialDropdownbox = document.getElementById('danpluggin_Material_DropdownBox').value;\r\n  var MatFav = ;\r\n  \r\n  for (let i43 = 0; i43 < MatFav.length; i43++) {\r\n    if(MatFav[i43].Id==IdMaterialDropdownbox)\r\n    {\r\n\r\n    if(MatFav[i43].Precificacao==\"M2\"){\r\n      PrecoM2MaterialVar=MatFav[i43].Preco\/100;\r\n    }\r\n    if(MatFav[i43].Precificacao==\"KG\"){\r\n      PrecoM2MaterialVar=(MatFav[i43].Preco\/100)\/(1000\/MatFav[i43].GramaturaFrontal);\r\n    }\r\n\r\n    PrecoM2MaterialVar = parseFloat(PrecoM2MaterialVar).toFixed(2);\r\n    }\r\n  }\r\n  \r\n \/\/ var myJsonString = JSON.stringify(MatFav );\r\n  document.getElementById(\"PrecoM2Material\").innerHTML = PrecoM2MaterialVar;\r\n\r\n  \/\/calcula custo do material\r\n\r\n  document.getElementById(\"CustoDeMaterial\").innerHTML = parseFloat(PrecoM2MaterialVar*resultm2).toFixed(2);\r\n\r\n*\/\r\n\r\nvar customaterial= document.getElementById(\"precoM2\").value;\r\nvar multiplicacao=document.getElementById(\"multiplicacao\").value;\r\n\r\ndocument.getElementById(\"CustoMaterial\").innerHTML = parseFloat(customaterial*resultm2).toFixed(2);\r\n\r\n\r\ndocument.getElementById(\"resultadofinalcusto\").innerHTML = parseFloat(      multiplicacao*(customaterial*resultm2)     ).toFixed(2);\r\n\r\n\r\n  \/\/Fim do calcula()\r\n}\r\ndocument.getElementById(\"GAPsimples\").click();\r\ndocument.getElementById(\"CalculoEtiquetasRadio\").click();\r\n\r\n<\/script>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1854","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Label Calculator - Label Info<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/label.info\/en\/label-calculator\/\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:locale\" content=\"en_US\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:type\" content=\"article\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:title\" content=\"Label Calculator - Label Info\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/label.info\/en\/label-calculator\/\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:site_name\" content=\"Label Info\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-03T17:15:34+00:00\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" class=\"yoast-seo-meta-tag\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" class=\"yoast-seo-meta-tag\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/label.info\/label-calculator\/\",\"url\":\"https:\/\/label.info\/label-calculator\/\",\"name\":\"Label Calculator - Label Info\",\"isPartOf\":{\"@id\":\"https:\/\/label.info\/#website\"},\"datePublished\":\"2024-05-04T15:09:11+00:00\",\"dateModified\":\"2025-01-03T17:15:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/label.info\/label-calculator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/label.info\/label-calculator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/label.info\/label-calculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/label.info\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Label Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/label.info\/#website\",\"url\":\"https:\/\/label.info\/\",\"name\":\"Label Info\",\"description\":\"For Label Makers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/label.info\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Label Calculator - Label Info","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/label.info\/en\/label-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Label Calculator - Label Info","og_url":"https:\/\/label.info\/en\/label-calculator\/","og_site_name":"Label Info","article_modified_time":"2025-01-03T17:15:34+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/label.info\/label-calculator\/","url":"https:\/\/label.info\/label-calculator\/","name":"Label Calculator - Label Info","isPartOf":{"@id":"https:\/\/label.info\/#website"},"datePublished":"2024-05-04T15:09:11+00:00","dateModified":"2025-01-03T17:15:34+00:00","breadcrumb":{"@id":"https:\/\/label.info\/label-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/label.info\/label-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/label.info\/label-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/label.info\/"},{"@type":"ListItem","position":2,"name":"Label Calculator"}]},{"@type":"WebSite","@id":"https:\/\/label.info\/#website","url":"https:\/\/label.info\/","name":"Label Info","description":"For Label Makers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/label.info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/pages\/1854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/comments?post=1854"}],"version-history":[{"count":4,"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/pages\/1854\/revisions"}],"predecessor-version":[{"id":5487,"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/pages\/1854\/revisions\/5487"}],"wp:attachment":[{"href":"https:\/\/label.info\/en\/wp-json\/wp\/v2\/media?parent=1854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}