-
-
Save Bijesse/8f7d27de14db4ed5363aa318f4f578dc to your computer and use it in GitHub Desktop.
Superman // source http://jsbin.com/jezoniwane
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="https://code.jquery.com/jquery-2.1.4.js"></script> | |
| <meta charset="utf-8"> | |
| <title>Superman</title> | |
| </head> | |
| <body> | |
| <img id="random"> | |
| <script id="jsbin-javascript"> | |
| $(document).ready( | |
| function() { | |
| $.get( | |
| 'https://api.giphy.com/v1/gifs/translate?api_key=dc6zaTOxFJmzC&s=superman', | |
| function(response) { | |
| console.log(response); | |
| $('#random').attr('src', response['data']['images']['fixed_width_downsampled']['url']); | |
| } | |
| ); | |
| } | |
| ); | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">$(document).ready( | |
| function() { | |
| $.get( | |
| 'https://api.giphy.com/v1/gifs/translate?api_key=dc6zaTOxFJmzC&s=superman', | |
| function(response) { | |
| console.log(response); | |
| $('#random').attr('src', response['data']['images']['fixed_width_downsampled']['url']); | |
| } | |
| ); | |
| } | |
| );</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
| $(document).ready( | |
| function() { | |
| $.get( | |
| 'https://api.giphy.com/v1/gifs/translate?api_key=dc6zaTOxFJmzC&s=superman', | |
| function(response) { | |
| console.log(response); | |
| $('#random').attr('src', response['data']['images']['fixed_width_downsampled']['url']); | |
| } | |
| ); | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment