aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.html b/index.html
index 41cf02a..aae37f6 100644
--- a/index.html
+++ b/index.html
@@ -24,7 +24,11 @@ summary: Listing all web pages under 1MB in total size
</thead>
<tbody id="container">
{% for item in websites %}
- <tr>
+ {% assign pct = item.size | times: 100.0 | divided_by: 1024.0 %}
+ {% if item.size < 410 %}{% assign c = "lightgreen" %}
+ {% elsif item.size < 717 %}{% assign c = "orange" %}
+ {% else %}{% assign c = "crimson" %}{% endif %}
+ <tr style="--fill:{{ item.size | times: 100.0 | divided_by: 1024.0 }}%;--c:{{ c }}">
<td>
{% if item.http == true %}
<a href="http://{{ item.domain }}">