aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorDevine Lu Linvega <aliceffekt@gmail.com>2018-09-15 07:18:06 +1200
committerDevine Lu Linvega <aliceffekt@gmail.com>2018-09-15 07:18:06 +1200
commit234eb198d3f7a0e9901f16689a7d038594119a67 (patch)
tree2749c60c9fc12825765acaaeff1365f51a718e98 /benchmark
parenta13ae06bf27f94d2ab4f4527d957a354dbb9b33c (diff)
Further improvements
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/index.html16
-rw-r--r--benchmark/links/main.css5
-rw-r--r--benchmark/links/theme.css2
3 files changed, 15 insertions, 8 deletions
diff --git a/benchmark/index.html b/benchmark/index.html
index c82e6b3..b3af953 100644
--- a/benchmark/index.html
+++ b/benchmark/index.html
@@ -9,10 +9,10 @@
<body>
<div class='wrapper'>
<table>
- <tr><td class='f_high'>hello</td><td class='b_low f_high'>hello</td><td class='b_med f_high'>hello</td><td class='b_high f_high'>hello</td></tr>
- <tr><td class='f_med'>hello</td> <td class='b_low f_med'>hello</td> <td class='b_med f_med'>hello</td> <td class='b_high f_med'>hello</td></tr>
- <tr><td class='f_low'>hello</td> <td class='b_low f_low'>hello</td> <td class='b_med f_low'>hello</td> <td class='b_high f_low'>hello</td></tr>
- <tr><td class='f_inv'>hello</td> <td class='b_low f_inv'>hello</td> <td class='b_med f_inv'>hello</td> <td class='b_high f_inv'>hello</td></tr>
+ <tr><td class='bg f_high'>bg f_high</td><td class='b_low f_high'>b_low f_high</td><td class='b_med f_high'>b_med f_high</td><td class='b_high f_high'>b_high f_high</td></tr>
+ <tr><td class='bg f_med'>bg f_med</td> <td class='b_low f_med'>b_low f_med</td> <td class='b_med f_med'>b_med f_med</td> <td class='b_high f_med'>b_high f_med</td></tr>
+ <tr><td class='bg f_low'>bg f_low</td> <td class='b_low f_low'>b_low f_low</td> <td class='b_med f_low'>b_med f_low</td> <td class='b_high f_low'>b_high f_low</td></tr>
+ <tr><td class='b_inv f_inv'>b_inv f_inv</td></tr>
</table>
</div>
<pre id='print'></pre>
@@ -27,16 +27,20 @@
let html = ""
let count = 0
for(let fid in theme.active){
- if(fid.substr(0,1) != "f"){ continue; }
+ if(fid.substr(0,1) != "f" || fid.indexOf("_inv") > -1){ continue; }
let fc = theme.active[fid]
for(let bid in theme.active){
- if(bid.substr(0,1) != "b"){ continue; }
+ if(bid.substr(0,1) != "b" || bid.indexOf("_inv") > -1){ continue; }
let bc = theme.active[bid]
if(fc != bc){ continue; }
html += `<b>${fid}</b> ${bid} <i>${bc}</i>\n`
count += 1
}
}
+ if(theme.active.f_inv == theme.active.b_inv){
+ html += `<b>f_inv</b> b_inv <i>${theme.active.f_inv}</i>\n`
+ count += 1
+ }
el.innerHTML = html+`\n<i>${count} conflicts</i>`;
}
</script>
diff --git a/benchmark/links/main.css b/benchmark/links/main.css
index f55bb79..e5fb109 100644
--- a/benchmark/links/main.css
+++ b/benchmark/links/main.css
@@ -1,6 +1,7 @@
-body { font-size:14px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:30px;}
+body { font-size:14px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:30px; transition: background-color 500ms;}
table { margin-bottom:30px; }
-table tr td { padding:5px; }
+table tr th { padding:5px; text-align: left; font-weight: bold; }
+table tr td { padding:5px; transition: background-color 250ms, color 250ms; }
#print { font-family: courier; font-size:12px; }
#print b { font-weight: bold } \ No newline at end of file
diff --git a/benchmark/links/theme.css b/benchmark/links/theme.css
index 20bcc28..5cd3594 100644
--- a/benchmark/links/theme.css
+++ b/benchmark/links/theme.css
@@ -1,4 +1,5 @@
body { background:var(--background) !important }
+.bg { background:var(--background) !important }
.f_high { color:var(--f_high) !important; stroke:var(--f_high) !important }
.f_med { color:var(--f_med) !important ; stroke:var(--f_med) !important }
.f_low { color:var(--f_low) !important ; stroke:var(--f_low) !important }
@@ -8,6 +9,7 @@ body { background:var(--background) !important }
.b_low { background:var(--b_low) !important ; fill:var(--b_low) !important }
.b_inv { background:var(--b_inv) !important ; fill:var(--b_inv) !important }
+table tr th { color:var(--f_high) !important; }
pre { color:var(--f_high) !important; }
pre b { color:var(--f_med) !important; }
pre i { color:var(--f_low) !important; } \ No newline at end of file