-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvz_functions.js
74 lines (65 loc) · 2.56 KB
/
vz_functions.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
var tabContainer = document.getElementById('tabcontainer');
var tabs = new gadgets.TabSet(gadgetId, 'Messaging', tabContainer);
var vzDemo = vzDemo || {};
var viewer;
var friends;
var friendsIds = new Array();
var log = log4javascript.getLogger("main");
vzDemo.controller = {
init : function() {
vzDemo.controller.initTabs();
$('#content').show();
var appender = new log4javascript.InPageAppender();
appender.setShowCommandLine(false);
log.addAppender(appender);
log.debug('Viewparams');
log.debug(gadgets.views.getParams());
},
initTabs : function() {
tabs.addTab('Views', {
contentContainer: document.getElementById('views'),
callback : vzDemo.views.controller.bindViews
});
tabs.addTab('Messaging', {
contentContainer: document.getElementById('messaging'),
callback : vzDemo.messaging.controller.bindMessaging
});
tabs.addTab('Embedding', {
contentContainer: document.getElementById('embedding'),
callback : vzDemo.embedding.controller.bindEmbedding
});
tabs.addTab('Invite', {
contentContainer: document.getElementById('invite'),
callback : vzDemo.invite.controller.bindInvite
});
tabs.addTab('Advertising', {
contentContainer: document.getElementById('advertising'),
callback : vzDemo.advertising.controller.bindAdvertising
});
tabs.addTab('Iframe', {
contentContainer: document.getElementById('iframe'),
callback : vzDemo.iframe.controller.bindIframe
});
tabs.addTab('Backend', {
contentContainer: document.getElementById('backend'),
callback: vzDemo.backend.controller.bindBackend()
});
tabs.addTab('Various', {
contentContainer: document.getElementById('various'),
callback : vzDemo.various.controller.bindVarious
});
tabs.addTab('Substitutions', {
contentContainer: document.getElementById('substitutions'),
callback : vzDemo.various.controller.bindLocal
});
tabs.addTab('OS Templates', {
contentContainer: document.getElementById('os-template'),
callback: vzDemo.templates.controller.bindTemplates
});
tabs.addTab("Data Viewer",{
contentContainer:document.getElementById("statetab"),
callback: vzDemo.opensocial.controller.bindOpenSocial,
tooltip:"State viewer"
});
}
};