-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskus.html
More file actions
51 lines (46 loc) · 1.96 KB
/
Copy pathskus.html
File metadata and controls
51 lines (46 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Every SKU — NOT-A-GARMIN Watches</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav data-nav></nav>
<header class="hero wrap">
<h1 style="font-size:42px">Every SKU</h1>
<p class="lede">The whole hardware lineup, by the numbers — <b id="skuTotal">—</b> in total. One platform in a few sizes and finishes, instead of a separate model per sport.</p>
</header>
<div class="wrap" style="max-width:820px;margin:0 auto;padding-bottom:48px">
<div id="skuList"></div>
<p class="note" id="skuFoot"></p>
</div>
<footer data-footer></footer>
<script src="catalog.js"></script>
<script>
var host = document.getElementById('skuList');
var html = '', total = 0;
CATALOG.order.forEach(function(mid){
var m = CATALOG.models[mid], rows = '', n = 0;
m.sizes.forEach(function(sz){
(m.coloursBySize[sz] || []).forEach(function(cid){
var c = CATALOG.colours[cid]; n++;
rows += '<div class="skurow"><span class="swdot" style="background:' + c.hex + '"></span><span><b>' + sz + '</b> · ' + c.name + '</span></div>';
});
});
total += n;
html += '<div class="adom"><div class="adomhead" onclick="toggleAdom(this)">' +
'<span class="adomname">' + m.name + '</span>' +
'<span class="adomfrom">' + n + ' SKU' + (n>1?'s':'') + '</span>' +
'<span class="adomchev">+</span></div>' +
'<div class="adombody"><div class="skugrid">' + rows + '</div></div></div>';
});
host.innerHTML = html;
document.getElementById('skuTotal').textContent = total + ' SKUs';
document.getElementById('skuFoot').innerHTML = 'A model‑per‑domain lineup (≈12 domains × 3 sizes × ~2 finishes) would run past 70 SKUs. This one is <b>' + total + '</b> — the depth lives in software activations, not in the SKU list.';
</script>
<script src="chrome.js"></script>
<script src="cart.js"></script>
</body>
</html>