xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

在线客服聊天软件 All In One

在线客服聊天软件 All In One

IM 即时通讯

铃音打扰 💩

禁用 js

https://tdxl.eduego.com/wenti/73.html

https://www.125yan.com/

https://www.eduego.com/zywenti/77115.html

关闭声音

IM 客服

智能营销客服系统

AI 客服机器人

https://easyliao.com/

代码写的好烂呀

  1. js 没有压缩混淆, 直接源码
  2. URL 参数获取方式,写的太不优雅了

// 当前路径
// var curPath = location.pathname.split('/').pop().replace('.html', '');

const reg = /^\w[\w]+\.html$/ig ???

// https://regexper.com/#%2F%5E%5Cw%5B%5Cw%5D%2B%5C.html%24%2Fi

// mobile +  about => mobileAbout 驼峰命名转换


https://easyliao.com/script/common/media.js

/*
 * @Description: 
 * @Author: 柏青波(2356891036@qq.com)
 * @Date: 2021-11-25 10:51:57
 * @FilePath: \el-web-website-view\script\common\media.js
 */

// 当前路径
var curPath = location.pathname.split('/').pop().replace('.html', '');
// 当前尺寸
var screenWith = window.screen.width;
// 路径对应的跳转链接
var pathMap = {
    // 注册相关页面
    'register': './mobileRegister.html',
    'registerSuccess': './mobileregisterSuccess.html',
    'agreement': './mobileAgreement.html',
    // 首页
    'index': './mobileIndex.html',
    // IM
    'im': './mobileIm.html',
    // AI
    'ai': './mobileAi.html',
    // 案例中心
    'case-xuehui': './mobileCase-xuehui.html',
    // 关于易聊
    'about': './mobileAbout.html',
    // 联系我们
    'contact': './mobileContact.html',
    // 客户端下载
    'download': './mobileDownload.html',
}

// 判断是移动端还是PC端
var isMobile = !!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
// 当屏幕尺寸小于500时,跳转移动端
// if (screenWith < 500) {
//     location.href = pathMap[curPath]
// }
// 当时移动端时,跳转移动端
if (isMobile) {
    location.href = curPath ? pathMap[curPath] : 'index.html';
}

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-09-13 11:15  xgqfrms  阅读(39)  评论(2编辑  收藏  举报