forked from automenta/netjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netention.client.js
96 lines (88 loc) · 3.01 KB
/
netention.client.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
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
/* Netention Client Configuration */
//all hardcoded stuff here is temporary until icons are specified by ontology
var defaultIcons = {
'default': '/icon/rrze/status/true.png',
'unknown': '/icon/unknown.png',
'Can': '/icon/can.png',
'Need': '/icon/need.png',
'Not': '/icon/not.png',
'Favorite': '/icon/rrze/actions/observe.png',
'Goal': '/icon/rrze/status/error.png',
'Earthquake': '/icon/quake.png',
'NuclearFacility': '/icon/nuclear.png',
'Human': '/icon/rrze/emblems/crown.png',
'User': '/icon/rrze/emblems/ID-clip.png',
'Message': '/icon/rrze/emblems/at.png',
'Decision.Agree': '/icon/loomio/agree.png',
'Decision.Disagree': '/icon/loomio/disagree.png',
'Decision.Block': '/icon/loomio/block.png',
'Decision.Abstain': '/icon/loomio/abstain.png',
'Event': '/icon/rrze/actions/dial-in.png',
'Report': '/icon/rrze/actions/add.png',
'Similar': '/icon/approx_equal.png',
'Emotion.happy': '/icon/emoticon/happy.svg',
'Emotion.sad': '/icon/emoticon/sad.svg',
'Emotion.angry': '/icon/emoticon/angry.svg',
'Emotion.surprised': '/icon/emoticon/surprised.svg',
'Tweet': '/icon/twitter.png',
'GoalCentroid': '/icon/rrze/emblems/workflow-cycle.png',
'Item': '/icon/rrze/emblems/database.png',
'Volunteer': '/icon/sparkrelief/cat-volunteer-28.png',
'Shelter': '/icon/sparkrelief/cat-shelter-28.png',
'Food': '/icon/sparkrelief/cat-food-28.png',
'Tools': '/icon/sparkrelief/cat-goods-28.png',
'Health': '/icon/sparkrelief/cat-medical-28.png',
'Transport': '/icon/sparkrelief/cat-transportation-28.png',
'Service': '/icon/sparkrelief/cat-services-28.png',
'Animal': '/icon/sparkrelief/cat-pets-28.png'
};
/* http://www.perbang.dk/rgbgradient/ 6 steps between: AFE500 and FF3B2E: AFE500 E9EA08 EFBB11 F48E1A F96324 FF3B2E */
var tagColorPresets = {
'Learn': '#AFE500',
'DoLearn': '#E9EA08',
'Do': '#EFBB11',
'DoTeach': '#F48E1A',
'Teach': '#F96324',
'Can': 'fuchsia',
'Need': '#bbf',
'Not': 'gray'
};
var themes = {
//BASIC
"ui-lightness":'Bright',
"ui-darkness":'Dark',
//ORIGINAL
"_matrix-green":'Matrix (green)',
"_matrix-red":'Matrix (red)',
"_matrix-blue":'Matrix (blue)',
"_space": 'Space',
"_cybernetic": 'Cybernetic',
"_notebook": 'Notebook',
"_rainforest": 'Rainforest',
"_metamaps": 'MetaMaps',
"_scroogle": 'Google',
"_n$a": 'N$A',
//from ThemeRoller
"black-tie": 'Black Tie',
"blitzer": 'Blitzer',
"cupertino": 'Cupertino',
"dark-hive": 'Dark Hive',
"dot-luv": 'Dot Luv',
"excite-bike": 'Excite Bike',
"flick": 'Flick',
"hot-sneaks": 'Hot Sneaks',
"humanity": 'Humanity',
"le-frog": 'Le Frog',
"mint-choc": 'Mint Chocolate',
"overcast": 'Overcast',
"pepper-grinder": 'Pepper Grinder',
"redmond": 'Redmond',
"smoothness": 'Smoothness',
"south-street": 'South Street',
"start": 'Start',
"sunny": 'Sunny',
"swanky-purse": 'Swanky Purse',
"trontastic": 'Trontastic',
"vader": 'Vader'
};
var tagAlias = { };