{"id":2409,"date":"2024-05-28T08:45:56","date_gmt":"2024-05-28T08:45:56","guid":{"rendered":"https:\/\/dogamakina.com\/?page_id=2409"},"modified":"2024-05-28T09:02:29","modified_gmt":"2024-05-28T09:02:29","slug":"calcul-du-poids","status":"publish","type":"page","link":"https:\/\/dogamakina.com\/fr\/calcul-du-poids\/","title":{"rendered":"calcul du poids"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2409\" class=\"elementor elementor-2409\">\n\t\t\t\t<div class=\"elementor-element elementor-element-62003185 e-flex e-con-boxed e-con e-parent\" data-id=\"62003185\" 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-32d19eee elementor-widget elementor-widget-text-editor\" data-id=\"32d19eee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><style>\n        .dimension-inputs {\n            display: none;\n        }\n        .result-list {\n            margin-top: 20px;\n        }\n        .result-item {\n            margin-bottom: 10px;\n        }\n    <\/style><\/p>\n<h1>Malzeme a\u011f\u0131rl\u0131k hesaplama<\/h1>\n<form id=\"weightCalcForm\"><label for=\"material\">Malzeme Cinsi:<\/label><select id=\"material\" name=\"material\">\n<option value=\"Pirinc\">Pirin\u00e7<\/option>\n<option value=\"Bonz\">Bonz<\/option>\n<option value=\"Teflon\">Teflon<\/option>\n<option value=\"Delrin\">Delrin<\/option>\n<option value=\"Paslanmaz \u00c7elik\">Paslanmaz \u00c7elik<\/option>\n<option value=\"Titanyum\">Titanyum<\/option>\n<\/select><br \/><br \/><label>Malzeme Tipi:<\/label><br \/><input id=\"cap\" name=\"shape\" type=\"radio\" value=\"Cap\" \/> <label for=\"cap\">\u00c7ap<\/label><br \/><input id=\"altikose\" name=\"shape\" type=\"radio\" value=\"Altikose\" \/> <label for=\"altikose\">Alt\u0131k\u00f6\u015fe<\/label><br \/><input id=\"lama\" name=\"shape\" type=\"radio\" value=\"Lama\" \/> <label for=\"lama\">Lama<\/label><br \/><br \/>\n<div id=\"capDimensions\" class=\"dimension-inputs\"><label for=\"diameter\">\u00c7ap (mm):<\/label> <input id=\"diameter\" name=\"diameter\" type=\"number\" \/><br \/><br \/><\/div>\n<div id=\"altikoseDimensions\" class=\"dimension-inputs\"><label for=\"sideLength\">Alt\u0131k\u00f6\u015fe Kenar Uzunlu\u011fu (mm):<\/label> <input id=\"sideLength\" name=\"sideLength\" type=\"number\" \/><br \/><br \/><\/div>\n<div id=\"lamaDimensions\" class=\"dimension-inputs\"><label for=\"width\">En (mm):<\/label> <input id=\"width\" name=\"width\" type=\"number\" \/><br \/><br \/><label for=\"height\">Y\u00fckseklik (mm):<\/label> <input id=\"height\" name=\"height\" type=\"number\" \/><br \/><br \/><\/div>\n<label for=\"length\">Uzunluk (mm):<\/label> <input id=\"length\" name=\"length\" type=\"number\" \/><br \/><br \/><button type=\"button\">Hesapla<\/button><\/form>\n<div id=\"resultList\" class=\"result-list\">\u00a0<\/div>\n<p><script>\n        function updateDimensions() {\n            const capRadio = document.getElementById('cap').checked;\n            const altikoseRadio = document.getElementById('altikose').checked;\n            const lamaRadio = document.getElementById('lama').checked;\n\n            document.getElementById('capDimensions').style.display = capRadio ? 'block' : 'none';\n            document.getElementById('altikoseDimensions').style.display = altikoseRadio ? 'block' : 'none';\n            document.getElementById('lamaDimensions').style.display = lamaRadio ? 'block' : 'none';\n        }\n\n        function calculateWeight() {\n            const material = document.getElementById('material').value;\n            const capRadio = document.getElementById('cap').checked;\n            const altikoseRadio = document.getElementById('altikose').checked;\n            const lamaRadio = document.getElementById('lama').checked;\n            const diameter = document.getElementById('diameter').value;\n            const sideLength = document.getElementById('sideLength').value;\n            const width = document.getElementById('width').value;\n            const height = document.getElementById('height').value;\n            const length = document.getElementById('length').value;\n            let density;\n\n            \/\/ Define densities for each material (example values)\n            const densities = {\n                'Pirinc': 8.5,\n                'Bonz': 8.9,\n                'Teflon': 2.2,\n                'Delrin': 1.4,\n                'Paslanmaz \u00c7elik': 7.9,\n                'Titanyum': 4.5\n            };\n\n            density = densities[material];\n\n            let volume = 0;\n\n            if (capRadio) {\n                volume = Math.PI * Math.pow(diameter \/ 2, 2) * length;\n            } else if (altikoseRadio) {\n                volume = (3 * Math.sqrt(3) \/ 2) * Math.pow(sideLength, 2) * length;  \/\/ Hexagonal prism volume\n            } else if (lamaRadio) {\n                volume = width * height * length;\n            }\n\n            const weight = density * volume \/ 1000; \/\/ Convert mm^3 to cm^3 for density in g\/cm^3 and divide by 1000 for grams\n            const resultList = document.getElementById('resultList');\n            const resultItem = document.createElement('div');\n            resultItem.className = 'result-item';\n            resultItem.innerText = `Malzeme: ${material}, Tip: ${capRadio ? '\u00c7ap' : altikoseRadio ? 'Alt\u0131k\u00f6\u015fe' : 'Lama'}, ` +\n                                    `\u00d6l\u00e7\u00fcler: ${capRadio ? `\u00c7ap: ${diameter} mm` : altikoseRadio ? `Kenar Uzunlu\u011fu: ${sideLength} mm` : `En: ${width} mm, Y\u00fckseklik: ${height} mm`}, ` +\n                                    `Uzunluk: ${length} mm, A\u011f\u0131rl\u0131k: ${weight.toFixed(2)} gram`;\n            resultList.appendChild(resultItem);\n        }\n    <\/script><\/p>\n\t\t\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>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Malzeme a\u011f\u0131rl\u0131k hesaplama Malzeme Cinsi:Pirin\u00e7BonzTeflonDelrinPaslanmaz \u00c7elikTitanyum Malzeme Tipi: \u00c7ap Alt\u0131k\u00f6\u015fe Lama \u00c7ap (mm): Alt\u0131k\u00f6\u015fe Kenar Uzunlu\u011fu (mm): En [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-2409","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/dogamakina.com\/fr\/author\/gokahn\/"},"uagb_comment_info":0,"uagb_excerpt":"\u00a0 \u00a0 Malzeme a\u011f\u0131rl\u0131k hesaplama Malzeme Cinsi:Pirin\u00e7BonzTeflonDelrinPaslanmaz \u00c7elikTitanyum Malzeme Tipi: \u00c7ap Alt\u0131k\u00f6\u015fe Lama \u00c7ap (mm): Alt\u0131k\u00f6\u015fe Kenar Uzunlu\u011fu (mm): En [&hellip;]","_links":{"self":[{"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/pages\/2409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/comments?post=2409"}],"version-history":[{"count":7,"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/pages\/2409\/revisions"}],"predecessor-version":[{"id":2418,"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/pages\/2409\/revisions\/2418"}],"wp:attachment":[{"href":"https:\/\/dogamakina.com\/fr\/wp-json\/wp\/v2\/media?parent=2409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}