-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (79 loc) · 4.7 KB
/
index.html
File metadata and controls
96 lines (79 loc) · 4.7 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE HTML>
<html>
<head>
<title>Budget allocation interface</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/3.3.0/build/cssfonts/fonts-min.css">
<link rel="stylesheet" href="css/jquery-ui/jquery.ui.autocomplete.custom.css" />
<link rel="stylesheet" href="css/budget_allocation_ui.css"/>
<link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<a href="http://github.com/buger/budget_allocation_ui"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
<div id="content">
<div class="description">
<h1>Different approaches for building budget allocation interface</h1>
<p>You can add your version if you want, just fork it on <a href="http://github.com/buger/budget_allocation_ui">github</a></p>
</div>
<h2>Standard</h2>
<div id="totals_container"></div>
<a href="javascript:;" id="add_skill_totals">Add skill</a>
<h2 style="margin-top: 100px;">Relative</h2>
<div id="relative_container"></div>
<a href="javascript:;" id="add_skill_relative">Add skill</a>
<h2 style="margin-top: 100px;">Relative (V2)</h2>
<div id="relative2_container"></div>
<a href="javascript:;" id="add_skill_relative2">Add skill</a>
<h2 style="margin-top: 100px;">Relative (V3)</h2>
<div id="relative3_container"></div>
<a href="javascript:;" id="add_skill_relative3">Add skill</a>
<h2 style="margin-top: 100px;">Relative (V4)</h2>
<div id="relative4_container"></div>
<a href="javascript:;" id="add_skill_relative4">Add skill</a>
<div>
<iframe src="https://spreadsheets.google.com/embeddedform?formkey=dHFnZ0xYWXBOS3N5N1QzU2xCWFc0NkE6MQ" width="500" height="550" frameborder="0" marginheight="0" marginwidth="0" style="margin-top: 100px;">Loading...</iframe>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="js/jquery-ui/jquery-ui.core-and-interactions.min.js"></script>
<script src="js/jquery-ui/jquery-ui.autocomplete.min.js"></script>
<script src="js/jquery.placeholder.min.js"></script>
<script src="js/budget_allocation_ui.js"></script>
<script src="js/skills.js"></script>
<script src="js/application.js?2"></script>
<script>
var widgets = ["relative", "relative2", "relative3", "relative4", "totals"];
for(var i=0; i<widgets.length; i++) {
(function(){
var widget = new BudgetAllocationUI(widgets[i]+"_container", widgets[i]);
for (var j=0; j<Math.floor(Math.random()*4)+2; j++) {
widget.addBar(skills[Math.floor(Math.random()*skills.length)], Math.floor(Math.random()*20+10));
}
$('#add_skill_' + widgets[i]).bind('click', function(){
widget.addBar("", 10);
var label = widget.container.find('.label:last');
setTimeout(function(){
BudgetAllocationUI.editLabel(label);
label.click();
});
});
})()
}
</script>
<!-- Yandex.Metrika counter -->
<div style="display:none;"><script type="text/javascript">
(function(w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter5546764 = new Ya.Metrika(5546764);
yaCounter5546764.clickmap(true);
yaCounter5546764.trackLinks(true);
} catch(e) { }
});
})(window, 'yandex_metrika_callbacks');
</script></div>
<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
<noscript><div><img src="//mc.yandex.ru/watch/5546764" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>