Function
tip
(message, timeout = null)
Source from the content-addressed store, hash-verified
| 718 | } |
| 719 | |
| 720 | function tip(message, timeout = null) { |
| 721 | var $tipElement = $('<div>') |
| 722 | .addClass('h2m-tip') |
| 723 | .html(message) |
| 724 | .appendTo('body') |
| 725 | .hide() |
| 726 | .fadeIn(200) |
| 727 | if (timeout === null) { |
| 728 | return |
| 729 | } |
| 730 | setTimeout(function () { |
| 731 | $tipElement.fadeOut(200, function () { |
| 732 | $tipElement.remove() |
| 733 | }) |
| 734 | }, timeout) |
| 735 | } |
| 736 | |
| 737 | // Turndown 配置 |
| 738 | var turndownPluginGfm = TurndownPluginGfmService |
Tested by
no test coverage detected