MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/views/HomeView.js:49–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 static initClass () {
50 this.prototype.id = 'home-view'
51 this.prototype.className = isCoco() ? 'coco-home' : ''
52 this.prototype.template = isCoco() ? cocoTemplate : ozarTemplate
53
54 this.prototype.events = {
55 'click .continue-playing-btn': 'onClickTrackEvent',
56 'click .student-btn': 'onClickStudentButton',
57 'click .teacher-btn': 'onClickTeacherButton',
58 'click .parent-btn': 'onClickParentButton',
59 'click .my-classes-btn': 'onClickTrackEvent',
60 'click .my-courses-btn': 'onClickTrackEvent',
61 'click .try-ozaria': 'onClickTrackEvent',
62 'click .product-btn a': 'onClickTrackEvent',
63 'click .product-btn button': 'onClickTrackEvent',
64 'click a': 'onClickAnchor',
65 'click .get-started-btn': 'onClickGetStartedButton',
66 'click .create-account-teacher-btn': 'onClickCreateAccountTeacherButton',
67 'click .carousel-dot': 'onCarouselDirectMove',
68 'click .carousel-tab': 'onCarouselDirectMovev2',
69 'click .request-quote': 'onClickRequestQuote',
70 'click .modal-request-quote': 'onClickRequestQuoteModal',
71 'click .logout-btn': 'logoutAccount',
72 'click .setup-class-btn': 'onClickSetupClass',
73 'click .try-chapter-1': 'onClickGenericTryChapter1',
74 'click .contact-us': 'onClickContactModal'
75 }
76 }
77
78 getRenderData (context) {
79 if (context == null) { context = {} }

Callers 1

HomeView.jsFile · 0.45

Calls 1

isCocoFunction · 0.85

Tested by

no test coverage detected