| 56 | module.exports = (CoursesView = (function () { |
| 57 | CoursesView = class CoursesView extends RootView { |
| 58 | static initClass () { |
| 59 | this.prototype.id = 'courses-view' |
| 60 | this.prototype.template = template |
| 61 | |
| 62 | this.prototype.events = { |
| 63 | 'click #log-in-btn': 'onClickLogInButton', |
| 64 | 'click #start-new-game-btn': 'openSignUpModal', |
| 65 | 'click .current-hero': 'onClickChangeHeroButton', |
| 66 | 'click #join-class-btn': 'onClickJoinClassButton', |
| 67 | 'submit #join-class-form': 'onSubmitJoinClassForm', |
| 68 | 'click .play-btn': 'onClickPlay', |
| 69 | 'click .play-next-level-btn': 'onClickPlayNextLevel', |
| 70 | 'click .view-class-btn': 'onClickViewClass', |
| 71 | 'click .view-levels-btn': 'onClickViewLevels', |
| 72 | 'click .view-project-gallery-link': 'onClickViewProjectGalleryLink', |
| 73 | 'click .view-challenges-link': 'onClickViewChallengesLink', |
| 74 | 'click .view-videos-link': 'onClickViewVideosLink', |
| 75 | 'click .view-announcement-link': 'onClickAnnouncementLink', |
| 76 | 'click .more-tournaments': 'onClickMoreTournaments', |
| 77 | 'click .more-ai-league-tiles': 'onClickMoreAILeagueTiles', |
| 78 | } |
| 79 | |
| 80 | this.prototype.subscriptions = |
| 81 | { 'websocket:user-online': 'handleUserOnline' } |
| 82 | } |
| 83 | |
| 84 | getMeta () { |
| 85 | return { |