gitbook-plugin-lock
Advanced tools
Comparing version 0.0.40 to 0.0.41
@@ -70,23 +70,2 @@ require(['gitbook', 'jQuery'], function(gitbook, $) { | ||
// const rmm = document.createElement('div'); // is a node | ||
// rmm.id = 'read-more-mask'; | ||
// rmm.style.position = 'relative' | ||
// rmm.style.height = '500px' | ||
// rmm.style.background = '-webkit-gradient(linear, 0 0%, 0 100%, from(rgba(255, 255, 255, 0)),to(rgb(255, 255, 255)))' | ||
// // rmm.appendChild(html.join('')) | ||
// rmm.innerHTML = html | ||
// const rmw = document.createElement('div'); // is a node | ||
// rmw.id = "read-more-wrap" | ||
// rmw.style.position = 'absolute' | ||
// rmw.style.bottom = '0px' | ||
// rmw.style.zIndex = '9999' | ||
// rmw.style.width = '100%' | ||
// rmw.style.marginTop = '-100px' | ||
// rmw.style.fontFamily = 'PingFangSC-Regular, sans-serif' | ||
// rmw.appendChild(rmm) | ||
// | ||
const child = document.createElement('div') | ||
@@ -97,2 +76,3 @@ child.innerHTML = html | ||
buttonClick.onclick(function () { | ||
alert(22223333+document.getElementById('btw-modal-input').value) | ||
console.log(document.getElementById('btw-modal-input').value,"看看结果") | ||
@@ -108,11 +88,11 @@ }) | ||
gitbook.events.bind('start', function(e, config) { | ||
// wechatURL = config.donate.wechat || ''; | ||
// wechatText = config.donate.wechatText || '微信捐赠'; | ||
// alipayURL = config.donate.alipay || ''; | ||
// alipayText = config.donate.alipayText || '支付宝捐赠'; | ||
// titleText = config.donate.title || ''; | ||
// buttonText = config.donate.button || '赏'; | ||
insertPageLock(); | ||
}); | ||
// gitbook.events.bind('start', function(e, config) { | ||
// // wechatURL = config.donate.wechat || ''; | ||
// // wechatText = config.donate.wechatText || '微信捐赠'; | ||
// // alipayURL = config.donate.alipay || ''; | ||
// // alipayText = config.donate.alipayText || '支付宝捐赠'; | ||
// // titleText = config.donate.title || ''; | ||
// // buttonText = config.donate.button || '赏'; | ||
// insertPageLock(); | ||
// }); | ||
@@ -119,0 +99,0 @@ gitbook.events.bind('page.change', function() { |
{ | ||
"name": "gitbook-plugin-lock", | ||
"version": "0.0.40", | ||
"version": "0.0.41", | ||
"description": "Gitbook 页面加锁", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8755
118