-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
28 lines (25 loc) · 861 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Word Cast</title>
</head>
<body>
<script src="./dist/main.js"></script>
<p>This is demo for word-cast library</p>
<div id="word-cast" style="height:400px; width:400px;"></div>
<script>
var wc = new WordCast()
.setRootElement(document.getElementById('word-cast'))
.setCloudSpread(365*5)
.setColorPalette(['#ff0000', '#00ff00', '#0000ff'])
.setPadding(1,1)
.setMinimumFontSize(10)
.setMaximumFontSize(15)
.setWordList(['hey', 'uber', 'lyft', 'supratik basu', 'this is a sentence','ohh no!'])
.build();
</script>
</body>
</html>