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
/* | |
* == HatenaBookmarkWebhook == | |
* library to handle params for Google Apps Script | |
* | |
* @doc http://developer.hatena.ne.jp/ja/documents/bookmark/apis/webhook | |
*/ | |
/* constructs an HatenaBookmarkWebhook | |
* | |
* @constructor |
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
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script> | |
<script> | |
function download(blob, filename) { | |
var objectUrl = (window.URL || window.webkitURL).createObjectURL(blob), | |
elem = document.createElement('a'), | |
event = document.createEvent('MouseEvent'); | |
elem.download = filename; | |
elem.href = objectUrl; | |
event.initEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); | |
elem.dispatchEvent(event); |
NewerOlder