Update chat.js
Browse files
chat.js
CHANGED
|
@@ -131,6 +131,8 @@ function calculateTiles() {
|
|
| 131 |
|
| 132 |
state.step = 'complete';
|
| 133 |
|
|
|
|
|
|
|
| 134 |
fetch('/recommend', {
|
| 135 |
method: 'POST',
|
| 136 |
headers: { 'Content-Type': 'application/json' },
|
|
@@ -138,7 +140,7 @@ function calculateTiles() {
|
|
| 138 |
tile_type: tileType,
|
| 139 |
coverage: tileArea,
|
| 140 |
area: area,
|
| 141 |
-
preferred_sizes: [
|
| 142 |
})
|
| 143 |
})
|
| 144 |
.then(res => res.json())
|
|
|
|
| 131 |
|
| 132 |
state.step = 'complete';
|
| 133 |
|
| 134 |
+
const sizeLabel = `${Math.round(tileLength * 304.8)}x${Math.round(tileWidth * 304.8)} MM`;
|
| 135 |
+
|
| 136 |
fetch('/recommend', {
|
| 137 |
method: 'POST',
|
| 138 |
headers: { 'Content-Type': 'application/json' },
|
|
|
|
| 140 |
tile_type: tileType,
|
| 141 |
coverage: tileArea,
|
| 142 |
area: area,
|
| 143 |
+
preferred_sizes: [sizeLabel]
|
| 144 |
})
|
| 145 |
})
|
| 146 |
.then(res => res.json())
|