Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
popup-supwisdom
Advanced tools
Readme
npm i popup-supwisdom --save
import('popup-supwisdom/popup.css')
var EvaPopup = require('popup-supwisdom/popup.js')
evaluation-center.dev2.supwisdom.com 按照各个学校的实际路径地址调整
<!-- 引入样式 -->
<link rel="stylesheet" href="http://evaluation-center.dev2.supwisdom.com/eva-plugin/popup.css">
<!-- 引入组件库 -->
<script src="http://evaluation-center.dev2.supwisdom.com/eva-plugin/popup.js"></script>
evaluation-center.dev2.supwisdom.com 按照各个学校的实际路径地址调整
new EvaPopup({
objKey: '2323', // 对象key 必传
token: '', // token值 必传
requestUrl: 'https://evaluation-center.dev2.supwisdom.com', // 评价中台服务url 必传
userAgent: 'pc', // 系统自动获取所在端,支持自定义当前所在端 参数app,pc,wx 非必传,不传根据当前页面的userAgent判断
})
evaluation-center.dev2.supwisdom.com 按照各个学校的实际路径地址调整
var pop = new EvaPopup({
objKey: '2323', // 对象key 必传
token: '', // token值 必传
requestUrl: 'https://evaluation-center.dev2.supwisdom.com', // 评价中台服务url 必传
userAgent: 'pc', // 系统自动获取所在端,支持自定义当前所在端 参数app,pc,wx 非必传,不传根据当前页面的userAgent判断
title: '', // 支持自定义传标题 非必传,不传则取document.getElementsByTagName('title')[0].innerText
url: '', // 支持自定义传所在页面的url 非必传,不传则取location.href
answers: function () {
console.log('点击 "小希问答" 按钮时的回调,可不定义')
},
evaluation: function () {
console.log('点击 "服务评价" 按钮时的回调,可不定义')
},
feedback: function () {
console.log('点击 "咨询反馈" 按钮时的回调,可不定义')
}
})
// 监听事件
pop.on('answers', function () {
console.log('点击 "小希问答" 按钮时的监听,可不定义')
})
pop.on('evaluation', function () {
console.log('点击 "服务评价" 按钮时的监听,可不定义')
})
pop.on('feedback', function () {
console.log('点击 "咨询反馈" 按钮时的监听,可不定义')
})
参数 | 说明 | 类型 | 默认值 | 可选值 | 是否必填 |
---|---|---|---|---|---|
objKey | 对象key | String | ' ' | - | 是 |
token | token值 | String | ' ' | - | 是 |
requestUrl | 评价中台服务url | String | ' ' | - | 是 |
userAgent | 系统自动获取所在端,支持自定义当前所在端 参数 非必传 | - | 系统自动获取 | app,pc,wx | 否 |
title | 自定义标题 | String | 当前页面的title | - | 否 |
url | 自定义传所在页面的url | String | 当前页面的url | - | 否 |
事件名 | 说明 | 回调函数 |
---|---|---|
answers | 点击问答时触发 | - |
evaluation | 点击评价时触发 | - |
feedback | 点击咨询反馈时触发 | - |
FAQs
The npm package popup-supwisdom receives a total of 6 weekly downloads. As such, popup-supwisdom popularity was classified as not popular.
We found that popup-supwisdom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.