-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathskill_results.html
More file actions
80 lines (69 loc) · 3.5 KB
/
skill_results.html
File metadata and controls
80 lines (69 loc) · 3.5 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
<!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>
<div id="content">
<div class="description">
<h1>Skill results</h1>
<p>Latest changes</p>
</div>
<div id="results">Loading...</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>
function updateResults(user_id) {
$.getJSON("http://foobar-utils.appspot.com/json/get?callback=?",
{ namespace: "budget_allocation_ui", limit: 500},
function(results) {
var container = $('#results').html('');
var html = "";
for(var i=results.length-1; i>=0; i--) {
console.log(results[i]);
html += "<li>";
html += "<span class='user'><label>User:</label>"+results[i].user_id+"</span>";
skills = [];
for(var j=0; j<results[i].skills.length; j++){
skill = results[i].skills[j];
skills.push(skill.name + ": "+Math.floor(skill.value));
}
html += "</br><span class='skills'><label>Skills:</label>"+skills.join(", ")+"</span>";
if (results[i].comment) {
html += "</br><span class='skills'><label>Comment:</label>"+results[i].comment+"</span>";
}
html += "</li>"
}
container.html("<ul>"+html+"</ul>");
});
}
updateResults();
</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>