Created
May 28, 2014 12:44
-
-
Save sudheesh001/f9628b51810dbf4aebee to your computer and use it in GitHub Desktop.
Vibe - Mozilla India
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Event Portal | Mozilla Vibe</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dateToday = new Date(); | |
var dateString = dateToday.getFullYear() + "-" + (dateToday.getMonth()+1) + "-" + dateToday.getDate() | |
var repsUri = 'https://reps.mozilla.org/api/v1/event/?offset=0&limit=0&start__gte=' + dateString + '&query=india'; | |
var jsonmarkers; | |
$.getJSON(repsUri, function(json){ | |
jsonmarkers = json; | |
console.log(jsonmarkers); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expectedly, the CORS is the culprit.
File a bug to allow *mozillaindia.org among the accepted origins.