MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / loadRawData

Function loadRawData

static/js/statistics.js:11–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9var spawnTimeMs = msPerMinute * spawnTimeMinutes
10
11function loadRawData () {
12 return $.ajax({
13 url: 'raw_data',
14 type: 'GET',
15 data: {
16 'pokemon': false,
17 'pokestops': false,
18 'gyms': false,
19 'scanned': false,
20 'seen': true,
21 'duration': $('#duration').val()
22 },
23 dataType: 'json',
24 beforeSend: function () {
25 if (rawDataIsLoading) {
26 return false
27 } else {
28 rawDataIsLoading = true
29 }
30 },
31 complete: function () {
32 rawDataIsLoading = false
33 }
34 })
35}
36
37function addElement (pokemonId, name) {
38 jQuery('<div/>', {

Callers 1

updateStatMapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected