blob: ca3ddf867c21f4e1cb3da693edc4d8c8d9c5fb4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
'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()
|