gitbook-plugin-lock
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -22,3 +22,3 @@ require(['gitbook', 'jQuery'], function(gitbook, $) { | ||
html = html.concat(['</div>', '</div>']); | ||
var cla = document.getElementsByClassName("page-wrapper"); | ||
var cla = document.getElementsByClassName("markdown-section"); | ||
console.log(cla,"看看cla是啥") | ||
@@ -42,11 +42,11 @@ | ||
const newDiv = document.createElement("div"); | ||
newDiv.className = "mark" | ||
// const newDiv = document.createElement("div"); | ||
// newDiv.className = "mark" | ||
// | ||
// const cla2 = document.getElementById("book-search-results"); | ||
// cla2.appendChild(newDiv) | ||
const cla2 = document.getElementById("book-search-results"); | ||
cla2.appendChild(newDiv) | ||
// const sss = '<div id="read-more-wrap" style="position: absolute; bottom: 0px; z-index: 9999; width: 100%; margin-top: -100px; font-family: PingFangSC-Regular, sans-serif;"><div id="read-more-mask" style="position: relative; height: 200px; background: -webkit-gradient(linear, 0 0%, 0 100%, from(rgba(255, 255, 255, 0)), to(rgb(255, 255, 255)));"></div><a id="read-more-btn" target="_self" style="position: absolute; left: 50%; top: 70%; bottom: 30px; transform: translate(-50%, -50%); width: 160px; height: 36px; line-height: 36px; font-size: 15px; text-align: center; border: 1px solid rgb(222, 104, 109); color: rgb(222, 104, 109); background: rgb(255, 255, 255); cursor: pointer; border-radius: 6px;">阅读全文</a></div>' | ||
const sss = '<div id="read-more-wrap" style="position: absolute; bottom: 0px; z-index: 9999; width: 100%; margin-top: -100px; font-family: PingFangSC-Regular, sans-serif;"><div id="read-more-mask" style="position: relative; height: 200px; background: -webkit-gradient(linear, 0 0%, 0 100%, from(rgba(255, 255, 255, 0)), to(rgb(255, 255, 255)));"></div><a id="read-more-btn" target="_self" style="position: absolute; left: 50%; top: 70%; bottom: 30px; transform: translate(-50%, -50%); width: 160px; height: 36px; line-height: 36px; font-size: 15px; text-align: center; border: 1px solid rgb(222, 104, 109); color: rgb(222, 104, 109); background: rgb(255, 255, 255); cursor: pointer; border-radius: 6px;">阅读全文</a></div>' | ||
const buttonA = document.createElement('a'); // is a node | ||
@@ -53,0 +53,0 @@ buttonA.target = '_self' |
{ | ||
"name": "gitbook-plugin-lock", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Gitbook 页面加锁", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7896
124