21 lines
440 B
CoffeeScript
21 lines
440 B
CoffeeScript
'use strict'
|
|
|
|
require './style.css'
|
|
|
|
window._ = require 'lodash'
|
|
|
|
MapData = require './model/MapData'
|
|
MapContext = require './control/MapContext'
|
|
|
|
|
|
mapContext = null
|
|
|
|
|
|
window.onload = ->
|
|
xhr = new XMLHttpRequest()
|
|
xhr.onload = ->
|
|
mapDef = new MapData(JSON.parse this.responseText)
|
|
mapContext = new MapContext mapDef
|
|
|
|
xhr.open 'GET', 'resources/map/test.json', true
|
|
xhr.send()
|