Slide 11
Slide 11 text
JSଆ
13 postScore = (score, difficulty, name,
magnification) ->
14 $.ajax
15 url: "/games",
16 type: 'POST',
17 dataType: 'json',
18 timeout: 1000,
19 data: {
20 score: {
21 name: name,
22 point: score,
23 difficulty: difficulty,
24 magnification: magnification
25 }
26 }
27 success: ->
28 $.notifyBar
29 html: "success!",
30 delay: 2000,
31 animationSpeed: "normal"
135݄15ਫ༵