Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
foldcontent-zhihu
Advanced tools
用 jquery 实现知乎收起答案功能
具体实现可以看一下这篇文章 ٩(ˊᗜˋ*)و
demo/ 目录下是🌰
$ npm install foldcontent-zhihu --save
<div class="foldcontent-panel">
<div class="part-content"><!--此处是部分内容--></div>
<div class="all-content"><!--此处是全部内容--></div>
<div class="unfold"></div><!--这是折叠按钮-->
</div>
<!-- ... -->
<script src="foldcontent.min.js"></script>
$('.unfold').foldContentPlugin({
});
this.defaults = {
'btnBg': '#eff6fa', // 按钮背景颜色
'btnColor': '#0c5897', // 按钮字体颜色
'fixBtnBg': '#81baeb', // 固定定位按钮背景颜色
'fixBtnColor': '#fff', // 固定定位按钮字体颜色
'fontSize': '12px', // 按钮字体大小
'padding': '5px', // 按钮尺寸
'initialText': '展开', // 按钮初始文本内容
'fixText': '收起', // 固定定位按钮文本内容
'bottom': '10px',
'right': '20px', // 绝对定位
'lineHeight': '1' // 按钮行高
};
foldContent.config()
// 样式foldContent.fontContentFunction();
// 具体折叠方法的实现$ npm install
$ npm start
MIT
FAQs
用原生 js 实现知乎收起答案功能
The npm package foldcontent-zhihu receives a total of 3 weekly downloads. As such, foldcontent-zhihu popularity was classified as not popular.
We found that foldcontent-zhihu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.