23 lines
824 B
JavaScript
23 lines
824 B
JavaScript
/**
|
|
* Author: Alexander Yakovlev <keloero@oreolek.ru>
|
|
*/
|
|
|
|
/* global window, Candy, jQuery */
|
|
|
|
var CandyShop = (function(self) { return self; }(CandyShop || {}));
|
|
|
|
CandyShop.Webinar = (function(self, Candy, $) {
|
|
self.init = function(){
|
|
template = {
|
|
pane: '<div class="row"><div class="column-left"><iframe width="960" height="720" src="https://www.youtube.com/embed/yG0oBPtyNb0?rel=0&controls=1&showinfo=0" frameborder="0" allowfullscreen></iframe></div><div class="column-right" id="chat-pane">{{> toolbar}}{{> rooms}}</div></div>{{> modal}}'
|
|
};
|
|
for (var attrname in template) {
|
|
Candy.View.Template.Chat[attrname] = template[attrname];
|
|
}
|
|
|
|
//$(Candy).on('candy:view.message.after-show', function(ev, obj) {
|
|
//});
|
|
};
|
|
return self;
|
|
}(CandyShop.Webinar || {}, Candy, jQuery));
|