Website: „Milyen gép kell?" becomes a main menu item; no „tight from" below 8 GB
gates / gates (push) Successful in 6m42s
gates / gates (push) Successful in 6m42s
The estimator leaves the Apps group and sits right after it, with the sprite's chip icon, on every page of both languages. The legend's tight-from item and the thin marker hide when that size is below the smallest named box (it read 2,1 GB on an empty selection); test pinned, red-proved. sizing.js?v=5.
This commit is contained in:
1 parent
81e64c6fe8
commit
cb2d3a54ae
27 files changed
+58
-33
No files matched your search
@@ -226,8 +226,12 @@
|
||||
tli.appendChild(el('span', 'sizer-dot sizer-seg-tightmark'));
|
||||
tli.appendChild(el('span', '', T.seg_tight + ' '));
|
||||
tli.appendChild(el('span', 'sizer-num', dec(r.tight_gb) + ' GB'));
|
||||
legend.appendChild(tli);
|
||||
document.getElementById('sizer-tight').style.left = (Math.min(r.tight_gb / max, 1) * 100) + '%';
|
||||
// the "tight from" size is shown only when it is a box someone can buy (not below the smallest named size)
|
||||
var showTight = r.tight_gb >= data.boxes_gb[0];
|
||||
if (showTight) { legend.appendChild(tli); }
|
||||
var tightMark = document.getElementById('sizer-tight');
|
||||
tightMark.hidden = !showTight;
|
||||
tightMark.style.left = (Math.min(r.tight_gb / max, 1) * 100) + '%';
|
||||
var over = r.well_gb > max;
|
||||
var needText = over ? T.over_max.replace('{gb}', max) : dec(r.well_gb) + ' GB';
|
||||
meter.setAttribute('aria-valuenow', String(Math.min(r.well_gb, max).toFixed(1)));
|
||||
|
||||
Reference in new issue
Block a user