-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>LineUp Builder Test</title> | ||
|
||
<link href="./LineUpJS.css" rel="stylesheet"> | ||
<link href="./demo.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<script src="./LineUpJS.js"></script> | ||
<script src="./helper/testRules.js"></script> | ||
|
||
<script> | ||
window.onload = function () { | ||
const arr = []; | ||
const l = new Array(10).fill(0); | ||
const cats = ['c1', 'c2', 'c3']; | ||
for (let i = 0; i < 100; ++i) { | ||
arr.push({ | ||
a: Math.random() * 10, | ||
as: l.map((d) => Math.random() * 10), | ||
bs: l.map((d) => Math.random() * 10), | ||
cs: l.map((d) => Math.random() * 10) | ||
}) | ||
} | ||
const builder = LineUpJS.builder(arr); | ||
builder.deriveColumns(); | ||
// and two rankings | ||
const ranking = LineUpJS.buildRanking() | ||
.supportTypes() | ||
.nested('multi canvas', 'a', 'as', 'bs', 'cs') | ||
|
||
builder | ||
.ranking(ranking); | ||
|
||
|
||
builder.buildTaggle(document.body); | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@import '../vars'; | ||
|
||
.#{$lu_css_prefix}-stack-sub { | ||
position: relative; | ||
height: 100%; | ||
} |