forked from lspecian/wix-vine-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.js
More file actions
82 lines (70 loc) · 2.66 KB
/
template.js
File metadata and controls
82 lines (70 loc) · 2.66 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
angular.module('vineApp').run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('app/views/fullPage.html',
"<div class=\"full\">\n" +
" <vinevideo meta></vinevideo>\n" +
"</div>"
);
$templateCache.put('app/views/metaVideo.html',
"<div class=\"author\">\n" +
" <img ng-src=\"{{ video.avatarUrl }}\" class=\"avatar\">\n" +
"</div>\n" +
"<div class=\"post-content\">\n" +
" <p class=\"description\">\n" +
" <span class=\"username\">{{ video.username }}</span>\n" +
" {{ video.description }}\n" +
" </p>\n" +
"</div>"
);
$templateCache.put('app/views/popular.html',
"<h1>popular</h1>\n" +
"\n" +
"<div class=\"row content\">\n" +
" <div class=\"video\" ng-repeat=\"video in videos\">\n" +
" <vinevideo></vinevideo>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
"\n" +
"<div class=\"footer\">\n" +
" <p><span class=\"glyphicon glyphicon-heart\"></span> from the Wix SDK team</p>\n" +
"</div>\n"
);
$templateCache.put('app/views/results.html',
"<div class=\"row content\">\n" +
" <h1>{{keyword}}</h1>\n" +
" <div class=\"video\" ng-repeat=\"video in videos\">\n" +
" <vinevideo></vinevideo>\n" +
" </div>\n" +
"</div>\n" +
"\n" +
"<div class=\"footer\">\n" +
" <p><span class=\"glyphicon glyphicon-heart\"></span> from the Wix SDK team</p>\n" +
"</div>\n"
);
$templateCache.put('app/views/search.html',
"<div class=\"jumbotron\">\n" +
" <h2>Vine App</h2>\n" +
" <p class=\"lead\">Search for Vine videos, or see <span ng-click=\"search('popular')\">popular</span> videos.</p>\n" +
"</div>\n" +
"<form class=\"form-inline\" ng-submit=\"search(q || 'wix')\">\n" +
" <div>\n" +
" <input type=\"text\" class=\"form-control\" ng-model=\"q\" placeholder=\"Search vine.co\" tabindex=\"1\" focused=\"focused\">\n" +
" <button type=\"submit\" ng-click=\"search(q || 'wix')\" class=\"btn btn-primary\">Search</button>\n" +
" </div>\n" +
"</form>"
);
$templateCache.put('app/views/video.html',
"<div id=\"video-container\" ng-click=\"fullPage(video)\">\n" +
" <div ng-show=\"showMetaTop\" class=\"meta\">\n" +
" <metavideo></metavideo>\n" +
" </div>\n" +
" <div id=\"container\">\n" +
" <video id=\"video\" autoplay=\"\" muted=\"\" preload=\"auto\" loop poster=\"\" ng-src=\"{{ video.videoUrl }}\"></video>\n" +
" </div>\n" +
" <div ng-hide=\"showMetaTop\" class=\"meta\">\n" +
" <metavideo></metavideo>\n" +
" </div>\n" +
"</div>"
);
}]);