-
Notifications
You must be signed in to change notification settings - Fork 3
/
help.js
44 lines (44 loc) · 1.54 KB
/
help.js
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
var Help = {
paras: [],
para: function(h) {
var p = $('<p></p>').html(h)
this.paras.push(p);
return p;
},
display: function() {
if (this.paras.length || $('div#agile_help_container').size()) {
return;
}
var container = $('<div id="agile_help_container"></div>');
this.para('<span class="agile_help_close">(close)</span>');
this.para('<h1>Trello 3000 Help</h1>');
this.para('<h3>Adding estimate units</h3>');
this.para('Estimate units represent how many units resources (hours, days, etc.) will be needed to solve a card. Add this value in the title of the card, between paranthesis.');
this.para('<img src="https://dl.dropbox.com/u/1618599/trello3000/s1.png"/>');
this.para('<h3>Adding spent units</h3>');
this.para('Spent units represent how many resource units were actually spent to solve this card.');
this.para('<img src="https://dl.dropbox.com/u/1618599/trello3000/s2.png"/>');
this.para('<h3>Legend</h3>');
this.para('"S:" = Spent units');
this.para('"E:" = Estimated units');
this.para('"R:" = Remaining units untill all cards are done');
this.para('<img src="https://dl.dropbox.com/u/1618599/trello3000/s4.png"/>');
var body = $('body');
$.each(this.paras, function(idx, obj) {
container.append(obj);
});
container.click(function() {
Help.close();
});
container.hide();
body.append(container);
container.fadeIn('fast');
},
close: function() {
var container = $('div#agile_help_container');
this.paras = [];
container.fadeOut('fast', function() {
container.remove();
});
}
}