Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //je sais qu'il y a pas de fonction main mais niktaras
- function main() {
- getLocation(photoIdMain, function(location){
- if(location.nom == "dans ta mere"){
- location.personnes.pute["ta grosse daronne"].poutrer();
- }
- });
- }
- function getLocation(photoId, callback){
- $.ajax({
- url : 'https://api.flickr.com/services/rest', // Ressource ciblée coté serveur
- type : 'GET',
- dataType : 'json', //Le type de données à recevoir, ici, du json.
- data : 'method=flickr.photos.geo.getLocation&format=json&nojsoncallback=1&api_key=92380bd93f69cbdfd19dad7ceb96dcfc&photo_id='+photoId,
- success : function(result){
- if (result.stat !== "fail"){
- location = new Object();
- location.latitude = result.photo.location.latitude;
- location.longitude = result.photo.location.longitude;
- callback(location);
- }
- },
- error : function(resultat, statut, erreur){
- console.log(erreur);
- },
- complete: function(result){
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement