Commit 07ff9d7a3532208c7cc8b2e7b5d58e262742c89a

Authored by Paul Wallace
1 parent 41e75dfdcd
Exists in master

No more bubbles

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

views/pages/landing.ejs View file @ 07ff9d7
... ... @@ -199,10 +199,10 @@
199 199 aCallback(anHttpRequest.responseText);
200 200 }
201 201 //gj4g6D3zxKmshys7yyf9KNbuywOxp1ueazFjsn6n2fK4sccIGA
202   - anHttpRequest.open( "GET", aUrl, true );
203   - anHttpRequest.setRequestHeader("X-Mashape-Key", "W4MVkGfi3ZmshbMN0LqORTZunzeTp1rEG5Pjsn9og1t7bRnQxG");
  202 + //anHttpRequest.open( "GET", aUrl, true );
  203 + //anHttpRequest.setRequestHeader("X-Mashape-Key", "W4MVkGfi3ZmshbMN0LqORTZunzeTp1rEG5Pjsn9og1t7bRnQxG");
204 204 //W4MVkGfi3ZmshbMN0LqORTZunzeTp1rEG5Pjsn9og1t7bRnQxG
205   - anHttpRequest.setRequestHeader("Accept", "application/json")
  205 + //anHttpRequest.setRequestHeader("Accept", "application/json")
206 206 anHttpRequest.send( null );
207 207 }
208 208 }
... ... @@ -240,7 +240,7 @@
240 240 lat = bounds.getCenter().lat();
241 241 }
242 242 //Base string concatenated with GET request options
243   - var str = "https://crimescore.p.mashape.com/crimescore?f=json&id=174&lat=".concat(lat).concat("&lon=").concat(long);
  243 + //var str = "https://crimescore.p.mashape.com/crimescore?f=json&id=174&lat=".concat(lat).concat("&lon=").concat(long);
244 244 //Make the HTTP request
245 245 aClient.get(str, function(result) {
246 246 //check what the score is
... ... @@ -277,7 +277,7 @@
277 277 var newLat = event.latLng.lat();
278 278 var newLong = event.latLng.lng();
279 279  
280   - var newStr = "https://crimescore.p.mashape.com/crimescore?f=json&id=174&lat=".concat(newLat).concat("&lon=").concat(newLong)
  280 + //var newStr = "https://crimescore.p.mashape.com/crimescore?f=json&id=174&lat=".concat(newLat).concat("&lon=").concat(newLong)
281 281 aClient.get(newStr, function(result){
282 282 //change the color
283 283 var newObject = JSON.parse(result);