Created
September 5, 2017 09:50
-
-
Save Getaji/de5e7fb4b325faf68495dc647c29dd0c to your computer and use it in GitHub Desktop.
TweetDeckで下書き保存するJavaScript(まだガワを実装中)
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
| // TODO | |
| // - 下書き一覧を開くボタンのアイコンをオリジナルにする | |
| // - 下書き一覧の外観を実装する | |
| // - 下書き一覧を開く機能を実装する | |
| // - 下書き一覧機能を実装する | |
| // - 下書き保存機能を実装する | |
| // - その他もろもろ | |
| (function() { | |
| // テキストエリアやボタンなどがあるコンテナ | |
| const composeInner = $('.compose .antiscroll-inner'); | |
| // 下書き一覧を開くボタン | |
| const buttonOpenDrafts = $('<div/>', { | |
| class: 'js-open-drafts-button needsclick btn btn-on-blue full-width txt-left margin-b--12 padding-v--9', click: () => { | |
| } | |
| }).appendTo(composeInner); | |
| // ここは統合していい | |
| buttonOpenDrafts.append('<i class="icon icon-camera"></i>'); | |
| buttonOpenDrafts.append('<span class="js-open-drafts-button-label label padding-ls">Open saved drafts</span>'); | |
| // 下書き一覧(デフォルトで非表示) | |
| const draftsContainer = $('<div class="saved-drafts is-hidden"/>').appendTo(composeInner); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment