2D entertainment development made easy! Fast! Comfortable!
runstant でボタンによる short url のコピー機能を実現するにあたり, 色々調べたら zeroclipboard とかいうライブラリに行き着きました. わりと使いやすいのに日本語で書かれた最新版の使い方がなかったので 備忘録がてらまとめてみました. zeroclipboard とは? ブラウザ上で js を使ってコピーを実現するためのライブラリです. 内部的には flash を使っているみたいです. github サンプル 最小サンプルです. サンプル クリックするとクリップボードにテキストがコピーされているのが 分かるかと思います. コード html html は下記のような感じです. zeroclipboard は cdnjs 経由でサクッと読み込んでいます. ボタンを押した際にコピーしたいテキストをボタンの data-clipboard-text 属性に入れておきます
Free Dhtml scripts, Jquery plugins ,Javascript, CSS, CSS3, Html5 Library It achieves a nice reflection effect, but otherwise it’s not so great. It’s heavy, slow, not that easy to manipulate, and, being Flash, prone to certain conflicts. Long aside on the general subject of peel back ads In terms of aesthetics, I’ve never been a big fan of the peel back ad, and in a way I didn’t mind the aforementi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く