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
| function getBase64Image(img) { | |
| // Create an empty canvas element | |
| var canvas = document.createElement("canvas"); | |
| var canvasImg = new Image(); | |
| $(canvasImg).attr('src',img.src); | |
| console.log(img); | |
| console.log(canvasImg); | |
| // Copy the image contents to the canvas | |
| var ctx = canvas.getContext("2d"); |
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
| { | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": false, | |
| "trim_trailing_white_space_on_save": true, | |
| } |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
OlderNewer