by @lpre_ys
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 strict'; | |
| // please install crc package | |
| const crc = require('crc'); | |
| const fs = require('fs'); | |
| const zlib = require('zlib'); | |
| if (!process.argv[2]) { | |
| throw Error('please input png-path'); |
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 webpack and babel! | |
| import base64_arraybuffer from 'base64-arraybuffer'; | |
| const handleDragOver = (e) => { | |
| e.stopPropagation(); | |
| e.preventDefault(); | |
| e.dataTransfer.dropEffect = 'copy'; | |
| }; |
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 lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Gradation test</title> | |
| <style type="text/css"> | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; |
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 lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>File API Test</title> | |
| <style type="text/css"> | |
| .filedrop { | |
| width: 600px; | |
| height:200px; | |
| border: 1px solid #000; |