
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
前端路由控制系统
host/[filename]#/target[/args]div.poncon-home.poncon-page使用 <script> 标签引入
<script src="./dist/poncon.min.js"></script>
通过 npm 安装
npm install ponconjs
poncon 对象注意以下代码需要在页面加载完成后执行,如 window.onload。
通过 <script> 引入时
const poncon = new Poncon()
使用 JS + Browserify 时
const ponconjs = require('ponconjs')
const poncon = new ponconjs.default()
使用 TS + Browserify 时
import Poncon from 'ponconjs'
const poncon = new Poncon()
poncon.setPageList(['home', 'about'])
poncon.setPage('home', function (target, dom, args) {
console.log(target, dom, args)
})
poncon.setPage('about', function (target, dom, args) {
console.log(target, dom, args)
})
poncon.start()
加上 style="display: none;" 可以防止页面元素闪烁。
<div class="poncon-home poncon-page" style="display: none;">
<!-- Your code -->
</div>
<div class="poncon-about poncon-page" style="display: none;">
<!-- Your code -->
</div>
npm run build
getTarget:获取当前页面标识名称
FAQs
We found that ponconjs 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.