New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-lock

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-lock - npm Package Compare versions

Comparing version 0.0.42 to 0.0.43

48

assets/lock.js

@@ -6,22 +6,6 @@ require(['gitbook', 'jQuery'], function(gitbook, $) {

// const html =
// '<div class="info" style="position: absolute;left: 50%;top: 70%;bottom: 30px;transform: translate(-50%, -50%);font-size: 15px;text-align: center;background: -webkit-gradient(linear, 0 0%, 0 100%, from(rgba(255, 255, 255, 0)), to(rgb(255, 255, 255)));">\n' +
// ' <div>扫码或搜索:<span style="color: #E9405A; font-weight: bold;">技术抛光</span></div>\n' +
// ' <div>\n' +
// ' <span>发送 </span><span class="token" style="color: #e9415a; font-weight: bold; font-size: 17px; margin-bottom: 45px;">290992</span>\n' +
// ' </div>\n' +
// ' <div>\n' +
// ' 即可<span style="color: #e9415a; font-weight: bold;">立即永久</span>解锁本站全部文章\n' +
// ' </div>\n' +
// ' <div>\n' +
// ' <img class="code-img" style="width: 300px;display:unset" src="http://interview.wzcu.com/static/qrcode.jpg">\n' +
// ' </div>\n' +
// '</div>';
// html = html.concat(['</div>', '</div>']);
var cla = document.getElementsByClassName("markdown-section");
const cla = document.getElementsByClassName("book-search-results");
console.log(cla,"看看cla是啥")
// const $article = $(".page-inner");
if (cla.length > 0) {
// if (cla.length > 0) {
// 文章的实际高度

@@ -36,14 +20,4 @@ const article = cla[0], height = article.scrollHeight;

cla[0].style.overflow = 'hidden'
// cla[0].style.height= '50%';
// cla.addClass('lock');
// cla[0].classList.add("lock");
// }
}
// const newDiv = document.createElement("div");
// newDiv.className = "mark"
//
// const cla2 = document.getElementById("book-search-results");
// cla2.appendChild(newDiv)
const html = '<div id="read-more-wrap" style="position: absolute; bottom: 0; z-index: 9999; width: 100%; margin-top: -100px; font-family: PingFangSC-Regular, sans-serif;">' +

@@ -75,13 +49,13 @@ '<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>' +

cla[0].appendChild(child)
// const buttonClick = document.getElementById('btw-submit-btn');
bc = function () {
alert(22223333 + document.getElementById('btw-modal-input').value)
console.log(document.getElementById('btw-modal-input').value, "看看结果")
// alert(22223333 + document.getElementById('btw-modal-input').value)
// console.log(, "看看结果")
if (document.getElementById('btw-modal-input').value === 1024) {
cla[0].style.height= height + 'px';
cla[0].style.overflow= 'visible';
const rm = document.getElementById("read-more-wrap")
rm.style.display = 'none'
}
}
// const pw = document.getElementsByClassName("page-wrapper");
// pw[0].
// $('.page-inner section.normal:last').after(html.join(''));
}

@@ -88,0 +62,0 @@

{
"name": "gitbook-plugin-lock",
"version": "0.0.42",
"version": "0.0.43",
"description": "Gitbook 页面加锁",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc