window.onload=function(){
let paths = document.querySelectorAll('[id=p]');
paths.forEach(function(path) {
const length = path.getTotalLength();
path.style.strokeDasharray = length;
path.style.strokeDashoffset = length;
});
}
$('input[name="material"]:checked').val();