-
Notifications
You must be signed in to change notification settings - Fork 8
/
test.html
70 lines (57 loc) · 2.3 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html>
<head>
<script src="./cloud.js"></script>
<script>
function init() {
var w = Math.max(window.innerWidth, document.body.clientWidth), h = Math.max(window.innerHeight, document.body.clientHeight);
var clouder = document.getElementById('clouder');
clouder.style.border = "1px solid black";
clouder.style.width = asPixels(w * 2 / 3);
clouder.style.height = asPixels(h * 2 / 3);
clouder.style.position = "absolute";
clouder.style.left = asPixels(w / 6);
clouder.style.top = asPixels(h / 6);
clouder.style.border = "1px solid black";
window.clouder = new Clouder({
container: clouder,
tags: createTags()
});
} // init
function createTags() {
var elems = [];
elems.push({text: "Az", id: "1", weight: 0.1});
elems.push({text: "Vedi", id: "2", weight: 0.1});
elems.push({text: "Glagol", id: "3", weight: 0.1});
elems.push({text: "Dobro", id: "4", weight: 0.1});
elems.push({text: "Est", id: "5", weight: 0.1});
elems.push({text: "Zelo", id: "6", weight: 0.1});
elems.push({text: "Zemla", id: "7", weight: 0.1});
elems.push({text: "Izhe", id: "8", weight: 0.1});
elems.push({text: "Theta", id: "9", weight: 0.1});
elems.push({text: "I", id: "10", weight: 0.5});
elems.push({text: "Kako", id: "20", weight: 0.5});
elems.push({text: "Ludi", id: "30", weight: 0.5});
elems.push({text: "Myslete", id: "40", weight: 0.5});
elems.push({text: "Nash", id: "50", weight: 0.5});
elems.push({text: "Ksi", id: "60", weight: 0.5});
elems.push({text: "On", id: "70", weight: 0.5});
elems.push({text: "Pokoi", id: "80", weight: 0.5});
elems.push({text: "Cherv", id: "90", weight: 0.5});
elems.push({text: "Rtsy", id: "100", weight: 1.0});
elems.push({text: "Slovo", id: "200", weight: 1.0});
elems.push({text: "Tverdo", id: "300", weight: 1.0});
elems.push({text: "Uk", id: "400", weight: 1.0});
elems.push({text: "Fert", id: "500", weight: 1.0});
elems.push({text: "Kha", id: "600", weight: 1.0});
elems.push({text: "Psi", id: "700", weight: 1.0});
elems.push({text: "Omega", id: "800", weight: 1.0});
elems.push({text: "Tsy", id: "900", weight: 1.0});
return elems;
} // createTags
</script>
</head>
<body onLoad="init();">
<div id="clouder"/>
</body>
</html>