-
Notifications
You must be signed in to change notification settings - Fork 12
/
limit-lines.html
65 lines (47 loc) · 3.13 KB
/
limit-lines.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
<!DOCTYPE html>
<html>
<head>
<title>Progress Bar: Limit-Lines Sample (Javascript)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="keywords" content="Progress, Bar, Javascript, UI, Library, Widgets, Plugins, Component, jQuery, Multi, Sparklines">
<meta name="description" content="(Javascript) Multiple progress bar control and tiny chart (sparkline) Features; initial-mode, multi-processing, categorical-processing, limit-lines">
<meta name="author" content="Bugra OZDEN">
<link rel="stylesheet" href="css/lib/control/progressbar.css" />
<script type="text/javascript" src="lib/control/progressbar.min.js"></script>
<script type="text/javascript">
var progressBar;
window.onload = function(){
progressBar = new ProgressBar("my-progressbar", {'width':'200px', 'height':'6px'});
progressBarItem = {};
progressBarItem[ProgressBar.OPTION_NAME.ITEM_ID] = "item1";
progressBarItem[ProgressBar.OPTION_NAME.TYPE] = ProgressBar.OPTION_VALUE.TYPE.BAR;
progressBarItem[ProgressBar.OPTION_NAME.OPACITY] = 1.0;
progressBarItem[ProgressBar.OPTION_NAME.SPACE] = 0;
progressBarItem[ProgressBar.OPTION_NAME.ALIGN] = ProgressBar.OPTION_VALUE.ALIGN.LEFT;
progressBarItem[ProgressBar.OPTION_NAME.POSITION] = ProgressBar.OPTION_VALUE.POSITION.RELATIVE;
progressBarItem[ProgressBar.OPTION_NAME.COLOR_ID] = ProgressBar.OPTION_VALUE.COLOR_ID.YELLOW;
progressBarItem[ProgressBar.OPTION_NAME.PERCENT] = 60;
progressBar.createItem(progressBarItem);
progressBarItem = {};
progressBarItem[ProgressBar.OPTION_NAME.ITEM_ID] = "line1";
progressBarItem[ProgressBar.OPTION_NAME.TYPE] = ProgressBar.OPTION_VALUE.TYPE.LINE;
progressBarItem[ProgressBar.OPTION_NAME.ALIGN] = ProgressBar.OPTION_VALUE.ALIGN.LEFT;
progressBarItem[ProgressBar.OPTION_NAME.COLOR_ID] = ProgressBar.OPTION_VALUE.COLOR_ID.BLUE;
progressBarItem[ProgressBar.OPTION_NAME.PERCENT] = 30;
progressBar.createItem(progressBarItem);
progressBarItem = {};
progressBarItem[ProgressBar.OPTION_NAME.ITEM_ID] = "line2";
progressBarItem[ProgressBar.OPTION_NAME.TYPE] = ProgressBar.OPTION_VALUE.TYPE.LINE;
progressBarItem[ProgressBar.OPTION_NAME.ALIGN] = ProgressBar.OPTION_VALUE.ALIGN.LEFT;
progressBarItem[ProgressBar.OPTION_NAME.COLOR_ID] = ProgressBar.OPTION_VALUE.COLOR_ID.RED;
progressBarItem[ProgressBar.OPTION_NAME.PERCENT] = 80;
progressBar.createItem(progressBarItem);
}
</script>
</head>
<body>
<h2>Progress Bar: Limit-Lines Sample (Javascript)</h2>
<div id="my-progressbar"></div>
</body>
</html>