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.26 to 0.0.27

52

assets/lock.js

@@ -5,3 +5,3 @@ require(['gitbook', 'jQuery'], function(gitbook, $) {

function insertPageLock() {
var html = [
const html =
'<div class="info">\n' +

@@ -18,7 +18,6 @@ ' <div>扫码或搜索:<span style="color: #E9405A; font-weight: bold;">技术抛光</span></div>\n' +

' </div>\n' +
'</div>'
];
'</div>';
html = html.concat(['</div>', '</div>']);
// html = html.concat(['</div>', '</div>']);
var cla = document.getElementsByClassName("markdown-section");

@@ -53,27 +52,32 @@ console.log(cla,"看看cla是啥")

const buttonA = document.createElement('a'); // is a node
buttonA.target = '_self'
buttonA.style.position = 'absolute'
buttonA.style.left = '50%'
buttonA.style.top = '70%'
buttonA.style.bottom = '30px'
buttonA.style.transform = 'translate(-50%, -50%)'
buttonA.style.width = '160px'
buttonA.style.height = '36px'
buttonA.style.lineHeight = '36px'
buttonA.style.fontSize = '15px'
buttonA.style.textAlign = 'center'
buttonA.style.border = '1px solid rgb(222, 104, 109)'
buttonA.style.color = 'rgb(222, 104, 109)'
buttonA.style.background = 'rgb(255, 255, 255)'
buttonA.style.cursor = 'pointer'
buttonA.style.borderRadius = '6px'
buttonA.innerHTML = "点击查看更多"
// const buttonA = document.createElement('a'); // is a node
// buttonA.target = '_self'
// buttonA.style.position = 'absolute'
// buttonA.style.left = '50%'
// buttonA.style.top = '70%'
// buttonA.style.bottom = '30px'
// buttonA.style.transform = 'translate(-50%, -50%)'
// buttonA.style.width = '160px'
// buttonA.style.height = '36px'
// buttonA.style.lineHeight = '36px'
// buttonA.style.fontSize = '15px'
// buttonA.style.textAlign = 'center'
// buttonA.style.border = '1px solid rgb(222, 104, 109)'
// buttonA.style.color = 'rgb(222, 104, 109)'
// buttonA.style.background = 'rgb(255, 255, 255)'
// buttonA.style.cursor = 'pointer'
// buttonA.style.borderRadius = '6px'
// buttonA.innerHTML = "点击查看更多"
// const content = document.createElement('div')
const rmm = document.createElement('div'); // is a node
rmm.id = 'read-more-mask';
rmm.style.position = 'relative'
rmm.style.height = '200px'
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(buttonA)
// rmm.appendChild(html.join(''))
rmm.innerHTML = html

@@ -80,0 +84,0 @@ const rmw = document.createElement('div'); // is a node

{
"name": "gitbook-plugin-lock",
"version": "0.0.26",
"version": "0.0.27",
"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