-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontrollers.js
More file actions
255 lines (237 loc) · 8.17 KB
/
controllers.js
File metadata and controls
255 lines (237 loc) · 8.17 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
$JSView.controller = {
viewMenuA: function(e){
$JSView.dataView({
'title': 'Welcome'
},e)
},
viewMenuB: function(e){
$JSView.dataView({
'title': 'Templates'
},e)
},
viewMenuC: function(e){
$JSView.dataView({
'title': 'Examples initLoadMore'
},e)
},
viewMenuD: function(e){
$JSView.dataView({
'title': 'Examples initReload'
},e)
},
viewGeneral: function(e){
$JSView.dataView({
'title': 'General elements'
},e)
},
viewForms: function(e){
$JSView.dataView({
'title': 'Forms elements'
},e)
},
viewFormsPlaceholder: function(e){
$JSView.dataView({
'title': 'Forms elements placeholder'
},e)
$JSView.initFormPlaceholder(e, 'formExample');
},
viewGrids: function(e){
$JSView.dataView({
'title': 'Grids'
},e)
},
viewSlide: function(e){
$JSView.dataView({
'title': 'Slide',
'text1': '<h1>Slide 1</h1>',
'content1': '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>',
'text2': '<h1>Slide 2</h1>',
'content2': '<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.</p>',
'text3': '<h1>Slide 3</h1>',
'content3': '<p>But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth.</p>'
},e)
$JSView.initSlide('#slide', {
responsive: true,
indicators: true
});
},
viewSlideHammer:function(e){
$JSView.dataView({
'title': 'Slide',
'text1': '<h1>Slide 1</h1>',
'content1': '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>',
'text2': '<h1>Slide 2</h1>',
'content2': '<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit.</p>',
'text3': '<h1>Slide 3</h1>',
'content3': '<p>But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth.</p>'
},e)
$JSView.slideHammer('#slideHammer',e);
},
viewSlideAdvertising: function(e){
$JSView.dataView({
'title': 'Slide Advertising',
'titleA': 'Title Advertising A',
'descriptionA': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
'photoA': '../img/productA.png',
'titleB': 'Slide 2',
'descriptionB': 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem.',
'photoB': '../img/productB.png',
'titleC': 'Slide 3',
'descriptionC': 'But I must explain to you how all this mistaken idea.',
'photoC': '../img/productC.png'
},e)
$JSView.initSlideAdvertising('#slide', {
width: innerWidth,
height: 300
});
},
viewRoomChat: function(e){
$JSView.dataView({
'title': 'Room chat'
},e)
},
viewTabs: function(e){
$JSView.dataView({
'title': 'Tabs'
},e)
$JSView.initTabs(e);
},
viewList: function(e){
$JSView.dataView({
'title': 'List'
},e)
},
viewListPhotos: function(e){
$JSView.dataView({
'title': 'List Photos'
},e)
},
viewListVideos: function(e){
$JSView.dataView({
'title': 'List Videos'
},e)
},
viewTweets: function(e){
$JSView.dataView({
'title': 'Tweets'
},e)
},
viewCards: function(e){
$JSView.dataView({
'title': 'Cards'
},e)
},
viewOptions: function(e){
$JSView.dataView({
'title': 'Menu Options'
},e)
},
viewNotification: function(e){
$JSView.dataView({
'title': 'Notification'
},e)
},
viewCircle: function(e){
$JSView.dataView({
'title': 'Menu Circle'
},e)
$JSView.initMenuCircle(e)
},
viewImagePopup: function(e){
$JSView.dataView({
'title': 'Image Popup'
},e)
},
viewInterstitial: function(e){
$JSView.dataView({
'title': 'Interstitial'
},e),
$JSView.interstitial({
'duration':'20',
'source':'../img/photoCatA.jpg'
},'#content',e);
},
viewListPhotosLoadMoreLocal: function(e){
$JSView.dataView({
'title': 'Photos initLoadMore Local'
},e),
$JSView.initScroll([
{
'name': 'User 1',
'text': 'Lorem ipsum dolor sit amet.'
},
{
'name': 'User 2',
'text': 'Eaque ipsa quae ab illo inventore.'
},
{
'name': 'User 3',
'text': 'But I must explain to you how.'
},
{
'name': 'User 4',
'text': 'Lorem ipsum dolor sit amet.'
},
{
'name': 'User 5',
'text': 'Eaque ipsa quae ab illo inventore.'
},
{
'name': 'User 6',
'text': 'But I must explain to you how.'
},
{
'name': 'User 7',
'text': 'Lorem ipsum dolor sit amet.'
},
{
'name': 'User 8',
'text': 'Eaque ipsa quae ab illo inventore.'
},
{
'name': 'User 9',
'text': 'But I must explain to you how.'
},
{
'name': 'User 10',
'text': 'Lorem ipsum dolor sit amet.'
},
{
'name': 'User 11',
'text': 'Eaque ipsa quae ab illo inventore.'
},
{
'name': 'User 12',
'text': 'But I must explain to you how. End'
}
],e);
},
viewListPhotosLoadMoreRemote: function(e){
$JSView.dataView({
'title': 'Photos initLoadMore Remote'
},e);
$JSView.initScroll({
type: 'GET',
url:'http://api.javascriptview.com/loadmore',
loadmore: true
},e);
},
viewListVideosLoadMoreRemote: function(e){
$JSView.dataView({
'title': 'Videos initLoadMore Remote'
},e);
$JSView.initScroll({
type: 'GET',
url:'http://api.javascriptview.com/videos',
loadmore: true
},e);
},
modal: function(e){
$JSView.dataView({
'title': 'Modal'
},e)
},
menu: function(e){
$JSView.dataView({},e)
}
}