Results styling

This commit is contained in:
Alfred Melch 2019-08-10 11:51:31 +02:00
parent 5279c31207
commit 368dcfe02b
3 changed files with 29 additions and 10 deletions

View File

@ -41,7 +41,7 @@
justify-content: space-around; justify-content: space-around;
} }
canvas { canvas {
max-width: 750px; max-width: 730px;
} }
</style> </style>
</head> </head>
@ -53,10 +53,27 @@
<main> <main>
<h2>Select Case</h2> <h2>Select Case</h2>
<ul> <ul>
<li><a class="case-anchor" href="#set1">Case1</a></li> <li>
<li><a class="case-anchor" href="#set2">Case2</a></li> <a class="case-anchor" href="#set1"
<li><a class="case-anchor" href="#set3">Case3</a></li> >Case1 - Windows - Simplify.js vs Simplify.wasm</a
<li><a class="case-anchor" href="#set4">Case4</a></li> >
</li>
<li>
<a class="case-anchor" href="#set2"
>Case2 - Windows - Simplify.wasm runtime analysis</a
>
</li>
<li>
<a class="case-anchor" href="#set3"
>Case3 - MacBook Pro - Testing safari</a
>
</li>
<li>
<a class="case-anchor" href="#set4"
>Case4 - Turf.js runtime analysis</a
>
</li>
<li><a class="case-anchor" href="#set5">Case5 - Mobile testing</a></li>
</ul> </ul>
<h2>Dimensions</h2> <h2>Dimensions</h2>
<table> <table>

View File

@ -17,11 +17,11 @@ import win_ffox_simplify_vs_true from './win_ffox_simplify_vs_true.json'
export default { export default {
set1: [ set1: [
win_chro_simplify_vs_false,
win_ffox_simplify_vs_false, win_ffox_simplify_vs_false,
win_edge_simplify_vs_false,
win_chro_simplify_vs_true,
win_ffox_simplify_vs_true, win_ffox_simplify_vs_true,
win_chro_simplify_vs_false,
win_chro_simplify_vs_true,
win_edge_simplify_vs_false,
win_edge_simplify_vs_true win_edge_simplify_vs_true
], ],
set2: [win_edge_simplify_stack_false, win_edge_simplify_stack_true], set2: [win_edge_simplify_stack_false, win_edge_simplify_stack_true],
@ -36,5 +36,6 @@ export default {
ubu_ffox_bavaria_jsstack_false, ubu_ffox_bavaria_jsstack_false,
ubu_ffox_bavaria_vs_true, ubu_ffox_bavaria_vs_true,
ubu_ffox_bavaria_jsstack_true ubu_ffox_bavaria_jsstack_true
] ],
set5: []
} }

View File

@ -22,7 +22,8 @@ const dimensionMap = {
set1: [[0], [0, 1, 2], [0], [0, 1], [0]], set1: [[0], [0, 1, 2], [0], [0, 1], [0]],
set2: [[0], [2], [0], [0, 1], [1]], set2: [[0], [2], [0], [0, 1], [1]],
set3: [[0], [0, 3], [1], [0, 1], [0]], set3: [[0], [0, 3], [1], [0, 1], [0]],
set4: [[0], [0], [1], [0, 1], [0, 2]] set4: [[0], [0], [1], [0, 1], [0, 2]],
set5: [[1], [0, 1, 3], [0], [0, 1], [0]]
} }
function setDimensions(set) { function setDimensions(set) {
let map = dimensionMap[set] let map = dimensionMap[set]