-
-
Save plugn/9a0511f136c45c96f5bb to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/zuhiga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://zeptojs.com/zepto.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var url = 'https://rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson'; | |
var url2 = 'https://cdn.rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson?jsonp=?' | |
var reddit = 'http://reddit.com/r/aww.json?jsonp=?'; | |
$.ajax({ | |
url: reddit, | |
success: function(data, status, xhr) { | |
console.log('ycnex', data); | |
}, | |
error: function error(xhr, errorType, error) { | |
console.log('err', error); | |
}, | |
contentType: 'application/vnd.geo+json', | |
accepts: 'application/vnd.geo+json' | |
}); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> | |
var url = 'https://rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson'; | |
var url2 = 'https://cdn.rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson?jsonp=?' | |
var reddit = 'http://reddit.com/r/aww.json?jsonp=?'; | |
$.ajax({ | |
url: reddit, | |
success: function(data, status, xhr) { | |
console.log('ycnex', data); | |
}, | |
error: function error(xhr, errorType, error) { | |
console.log('err', error); | |
}, | |
contentType: 'application/vnd.geo+json', | |
accepts: 'application/vnd.geo+json' | |
});</script></body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = 'https://rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson'; | |
var url2 = 'https://cdn.rawgit.com/sputnik-maps/subwayshapes/master/geojson/Moscow.geojson?jsonp=?' | |
var reddit = 'http://reddit.com/r/aww.json?jsonp=?'; | |
$.ajax({ | |
url: reddit, | |
success: function(data, status, xhr) { | |
console.log('ycnex', data); | |
}, | |
error: function error(xhr, errorType, error) { | |
console.log('err', error); | |
}, | |
contentType: 'application/vnd.geo+json', | |
accepts: 'application/vnd.geo+json' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment