const table_wrapper = "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "
"+ "

A/C: Kol-Kapasite

"+ "

W1: Kapalı Genişlik / W2: Açık Genişlik

"+ "

H: Yükseklik   D: Derinlik

"+ "

Ölçüler cm

"+ "
"; const w1 = [174,209,244,279] const w2_80 = [214,252,289,327] const w2_120 = [275,313,350,388] const w2_140 = [305,343,380,418] const w2_150 = [320,358,396,434] const w2_160 = [338,376,412,450] const w2_170 = [351,389,427,465] function createTable(Carpet,Code,Height,Width1,Width2,Depth1){ const table = [ {"Ebat":"", "Kod":"EKS "+Code+'1',"A/C":"10/20","W1/W2":Width1[0]+"/"+Width2[0],"H":Height,"D":Depth1}, {"Ebat":Carpet,"Kod":"EKS "+Code+'2',"A/C":"15/30","W1/W2":Width1[1]+"/"+Width2[1],"H":Height,"D":Depth1}, {"Ebat":"", "Kod":"EKS "+Code+'3',"A/C":"20/40","W1/W2":Width1[2]+"/"+Width2[2],"H":Height,"D":Depth1}, {"Ebat":"", "Kod":"EKS "+Code+'4',"A/C":"25/50","W1/W2":Width1[3]+"/"+Width2[3],"H":Height,"D":Depth1}, ]; document.getElementById("table_"+Carpet).innerHTML = jsonToHtmlTable(table); } document.getElementById("table_wrapper").innerHTML = table_wrapper; createTable("80x150" ,8 ,175, w1, w2_80, 101); createTable("120x180",12,205, w1, w2_120, 141); createTable("140x200",14,225, w1, w2_140, 161); createTable("150x230",15,255, w1, w2_150, 171); createTable("160x230",16,255, w1, w2_160, 181); createTable("170x250",17,275, w1, w2_170, 191);