前端用F11打开伪装更新页面demo后,老板被欺骗多次!

2023-10-19 15:05

本文主要是介绍前端用F11打开伪装更新页面demo后,老板被欺骗多次!,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

前言

        无意间看见朋友分享的页面看到了一个有趣的页面,通过F11之后给人以假乱真的感觉,这个代码并不难,我们一起来看看!

正文

        通过引入jQuery快速实现

一、js逻辑代码

function changeFullScreen() {const element = document.documentElementconsole.log(1)// 如果是全屏状态if (this.fullscreen) {// 如果浏览器有这个Functionif (document.exitFullscreen) {document.exitFullscreen()} else if (document.webkitCancelFullScreen) {document.webkitCancelFullScreen()} else if (document.mozCancelFullScreen) {document.mozCancelFullScreen()} else if (document.msExitFullscreen) {document.msExitFullscreen()}} else {// 如果浏览器有这个Functionif (element.requestFullscreen) {element.requestFullscreen()} else if (element.webkitRequestFullScreen) {element.webkitRequestFullScreen()} else if (element.mozRequestFullScreen) {element.mozRequestFullScreen()} else if (element.msRequestFullscreen) {element.msRequestFullscreen()}}// 判断全屏状态的变量this.fullscreen = !this.fullscreen
}

二、样式代码

html,body,div {margin: 0;padding: 0;}html,body {width: 100%;height: 100%;}.tips-to{text-align: center;color: #ffffff;font-weight: 400;font-size: 18px;font-style:normal;position: absolute;bottom: 68px;left: 0;right: 0;}.update,.tips-one{width: 375px;text-align: center;color: #ffffff;font-weight: 400;font-size: 18px;font-style:normal;margin: 0;}.text{margin: 0 auto;margin-top: 68px;margin-left: -163px;}.loading i {margin: auto;position: absolute;top: calc(50% - 120px);left: calc(50% - 20px);width: 45px;height: 45px;display: block;}.loading span {position: absolute;width: 100%;height: 100%;opacity: 0;}.loading span:after {content: "";display: block;position: absolute;left: 0px;top: 0px;width: 6px;height: 6px;background: var(--main, #ffffff);border-radius: 50%;}.loading span:nth-child(1) {animation: i1 5.5s 0.2s infinite;}.loading span:nth-child(2) {animation: i2 5.5s 0.4s infinite;}.loading span:nth-child(3) {animation: i3 5.5s 0.6s infinite;}.loading span:nth-child(4) {animation: i4 5.5s 0.8s infinite;}.loading span:nth-child(5) {animation: i5 5.5s 1s infinite;}.loading span:nth-child(6) {animation: i6 5.5s 1.2s infinite;}@keyframes i1 {0% {opacity: 1;transform: rotate(190deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(920deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(930deg);}}@keyframes i2 {0% {opacity: 1;transform: rotate(180deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(910deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(920deg);}}@keyframes i3 {0% {opacity: 1;transform: rotate(170deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(900deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(910deg);}}@keyframes i4 {0% {opacity: 1;transform: rotate(160deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(890deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(900deg);}}@keyframes i5 {0% {opacity: 1;transform: rotate(150deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(880deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(880deg);}}@keyframes i6 {0% {opacity: 1;transform: rotate(140deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(870deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(880deg);}}

三、完整代码

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>F11伪装更新页面</title><!-- <link rel="stylesheet" href="./loding.css"> --><style>html,body,div {margin: 0;padding: 0;}html,body {width: 100%;height: 100%;}.tips-to{text-align: center;color: #ffffff;font-weight: 400;font-size: 18px;font-style:normal;position: absolute;bottom: 68px;left: 0;right: 0;}.update,.tips-one{width: 375px;text-align: center;color: #ffffff;font-weight: 400;font-size: 18px;font-style:normal;margin: 0;}.text{margin: 0 auto;margin-top: 68px;margin-left: -163px;}.loading i {margin: auto;position: absolute;top: calc(50% - 120px);left: calc(50% - 20px);width: 45px;height: 45px;display: block;}.loading span {position: absolute;width: 100%;height: 100%;opacity: 0;}.loading span:after {content: "";display: block;position: absolute;left: 0px;top: 0px;width: 6px;height: 6px;background: var(--main, #ffffff);border-radius: 50%;}.loading span:nth-child(1) {animation: i1 5.5s 0.2s infinite;}.loading span:nth-child(2) {animation: i2 5.5s 0.4s infinite;}.loading span:nth-child(3) {animation: i3 5.5s 0.6s infinite;}.loading span:nth-child(4) {animation: i4 5.5s 0.8s infinite;}.loading span:nth-child(5) {animation: i5 5.5s 1s infinite;}.loading span:nth-child(6) {animation: i6 5.5s 1.2s infinite;}@keyframes i1 {0% {opacity: 1;transform: rotate(190deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(920deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(930deg);}}@keyframes i2 {0% {opacity: 1;transform: rotate(180deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(910deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(920deg);}}@keyframes i3 {0% {opacity: 1;transform: rotate(170deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(900deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(910deg);}}@keyframes i4 {0% {opacity: 1;transform: rotate(160deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(890deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(900deg);}}@keyframes i5 {0% {opacity: 1;transform: rotate(150deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(880deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(880deg);}}@keyframes i6 {0% {opacity: 1;transform: rotate(140deg);animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);}7% {opacity: 1;transform: rotate(300deg);animation-timing-function: linear;}30% {opacity: 1;transform: rotate(450deg);animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);}39% {opacity: 1;transform: rotate(645deg);animation-timing-function: linear;}63% {opacity: 1;transform: rotate(800deg);animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);}68% {opacity: 1;transform: rotate(870deg);animation-timing-function: ease-in;}69% {opacity: 0;transform: rotate(880deg);}}</style><script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body onclick="changeFullScreen()" style="background-color: #3277D1; cursor:none;"><div class="loading"><i><span></span><span></span><span></span><span></span><span></span><span></span><div class="text"><h3 class="update">正在进行更新 &nbsp;  5%</h3><h3 class="tips-one">请不要关闭电脑。完成此操作需要一定时间。</h3></div></i></div><div class="tips-to">你的电脑将重启若干次</div>
</body>
<script>
function changeFullScreen() {const element = document.documentElementconsole.log(1)// 如果是全屏状态if (this.fullscreen) {// 如果浏览器有这个Functionif (document.exitFullscreen) {document.exitFullscreen()} else if (document.webkitCancelFullScreen) {document.webkitCancelFullScreen()} else if (document.mozCancelFullScreen) {document.mozCancelFullScreen()} else if (document.msExitFullscreen) {document.msExitFullscreen()}} else {// 如果浏览器有这个Functionif (element.requestFullscreen) {element.requestFullscreen()} else if (element.webkitRequestFullScreen) {element.webkitRequestFullScreen()} else if (element.mozRequestFullScreen) {element.mozRequestFullScreen()} else if (element.msRequestFullscreen) {element.msRequestFullscreen()}}// 判断全屏状态的变量this.fullscreen = !this.fullscreen
}</script>
</html>

       

这篇关于前端用F11打开伪装更新页面demo后,老板被欺骗多次!的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/240586

相关文章

MySQL追踪数据库表更新操作来源的全面指南

《MySQL追踪数据库表更新操作来源的全面指南》本文将以一个具体问题为例,如何监测哪个IP来源对数据库表statistics_test进行了UPDATE操作,文内探讨了多种方法,并提供了详细的代码... 目录引言1. 为什么需要监控数据库更新操作2. 方法1:启用数据库审计日志(1)mysql/mariad

前端如何通过nginx访问本地端口

《前端如何通过nginx访问本地端口》:本文主要介绍前端如何通过nginx访问本地端口的问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、nginx安装1、下载(1)下载地址(2)系统选择(3)版本选择2、安装部署(1)解压(2)配置文件修改(3)启动(4)

HTML中meta标签的常见使用案例(示例详解)

《HTML中meta标签的常见使用案例(示例详解)》HTMLmeta标签用于提供文档元数据,涵盖字符编码、SEO优化、社交媒体集成、移动设备适配、浏览器控制及安全隐私设置,优化页面显示与搜索引擎索引... 目录html中meta标签的常见使用案例一、基础功能二、搜索引擎优化(seo)三、社交媒体集成四、移动

HTML input 标签示例详解

《HTMLinput标签示例详解》input标签主要用于接收用户的输入,随type属性值的不同,变换其具体功能,本文通过实例图文并茂的形式给大家介绍HTMLinput标签,感兴趣的朋友一... 目录通用属性输入框单行文本输入框 text密码输入框 password数字输入框 number电子邮件输入编程框

HTML img标签和超链接标签详细介绍

《HTMLimg标签和超链接标签详细介绍》:本文主要介绍了HTML中img标签的使用,包括src属性(指定图片路径)、相对/绝对路径区别、alt替代文本、title提示、宽高控制及边框设置等,详细内容请阅读本文,希望能对你有所帮助... 目录img 标签src 属性alt 属性title 属性width/h

CSS3打造的现代交互式登录界面详细实现过程

《CSS3打造的现代交互式登录界面详细实现过程》本文介绍CSS3和jQuery在登录界面设计中的应用,涵盖动画、选择器、自定义字体及盒模型技术,提升界面美观与交互性,同时优化性能和可访问性,感兴趣的朋... 目录1. css3用户登录界面设计概述1.1 用户界面设计的重要性1.2 CSS3的新特性与优势1.

HTML5 中的<button>标签用法和特征

《HTML5中的<button>标签用法和特征》在HTML5中,button标签用于定义一个可点击的按钮,它是创建交互式网页的重要元素之一,本文将深入解析HTML5中的button标签,详细介绍其属... 目录引言<button> 标签的基本用法<button> 标签的属性typevaluedisabled

HTML5实现的移动端购物车自动结算功能示例代码

《HTML5实现的移动端购物车自动结算功能示例代码》本文介绍HTML5实现移动端购物车自动结算,通过WebStorage、事件监听、DOM操作等技术,确保实时更新与数据同步,优化性能及无障碍性,提升用... 目录1. 移动端购物车自动结算概述2. 数据存储与状态保存机制2.1 浏览器端的数据存储方式2.1.

基于 HTML5 Canvas 实现图片旋转与下载功能(完整代码展示)

《基于HTML5Canvas实现图片旋转与下载功能(完整代码展示)》本文将深入剖析一段基于HTML5Canvas的代码,该代码实现了图片的旋转(90度和180度)以及旋转后图片的下载... 目录一、引言二、html 结构分析三、css 样式分析四、JavaScript 功能实现一、引言在 Web 开发中,

MySQL 打开binlog日志的方法及注意事项

《MySQL打开binlog日志的方法及注意事项》本文给大家介绍MySQL打开binlog日志的方法及注意事项,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要... 目录一、默认状态二、如何检查 binlog 状态三、如何开启 binlog3.1 临时开启(重启后失效)