MCPcopy Create free account
hub / github.com/codecombat/codecombat / 'hoc'

Method 'hoc'

app/core/Router.js:243–256  ·  view source on GitHub ↗
(queryString)

Source from the content-addressed store, hash-verified

241 'github/*path': 'routeToServer',
242
243 'hoc' (queryString) {
244 if (utils.isCodeCombat) {
245 return this.navigate('/play/hoc-2018', { trigger: true, replace: true })
246 } else {
247 if (queryString == null) { queryString = '' }
248 // Load the tracking image without it disrupting the page layout.
249 const hocImg = new Image()
250 hocImg.src = 'https://code.org/api/hour/begin_codecombat_ozaria.png'
251 if (queryString) {
252 queryString = '&' + queryString
253 }
254 return this.navigate(`/play/chapter-1-sky-mountain?hour_of_code=true${queryString}`, { trigger: true })
255 }
256 },
257
258 'play/hoc-2020' () { return this.navigate('/play/hoc-2018', { trigger: true, replace: true }) }, // Added to handle HoC PDF
259 home (...args) {

Callers

nothing calls this directly

Calls 1

navigateMethod · 0.95

Tested by

no test coverage detected