Skip to content

Instantly share code, notes, and snippets.

View tinolove81's full-sized avatar

tinolove tinolove81

View GitHub Profile
<script>
let isTimerSetup = false;
let timeoutId;
let timeoutInMiliseconds = 600;
let selector = 'popup選擇器';
function startTimer() {
timeoutId = window.setTimeout(() => {
$(selector).fadeIn();
}, timeoutInMiliseconds)
@tinolove81
tinolove81 / jQuery-plugin-authoring.md
Created January 16, 2019 07:00 — forked from quexer/jQuery-plugin-authoring.md
如何编写 jQuery 插件

创建插件


看来 jQuery 你已经用得很爽了,想学习如何自己编写插件。非常好,这篇文档正适合你。用插件和方法来扩展 jQuery 非常强大,把最聪明的功能封装到插件中可以为你及团队节省大量开发时间。

开始

@tinolove81
tinolove81 / obs
Last active October 12, 2018 18:51
::-webkit-scrollbar {
visibility: hidden;
}
#chat_box {
padding: 0;
color: white;
background: transparent;
font-size: 16px;
font-weight: 300;
ReadDatabase2(MAC, function(data) {
data.forEach(function(item, index) {
var str = `${item.ATTR} // ${item.NAME} // ${item.MAC} // ${item.DATE}`;
console.log(index, '->', str);
});
});
function ReadDatabase2(MAC, callback) {
var db = new sqlite.Database('test.db');
var table = 'tableinfo';