前端用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

相关文章

部署Vue项目到服务器后404错误的原因及解决方案

《部署Vue项目到服务器后404错误的原因及解决方案》文章介绍了Vue项目部署步骤以及404错误的解决方案,部署步骤包括构建项目、上传文件、配置Web服务器、重启Nginx和访问域名,404错误通常是... 目录一、vue项目部署步骤二、404错误原因及解决方案错误场景原因分析解决方案一、Vue项目部署步骤

前端原生js实现拖拽排课效果实例

《前端原生js实现拖拽排课效果实例》:本文主要介绍如何实现一个简单的课程表拖拽功能,通过HTML、CSS和JavaScript的配合,我们实现了课程项的拖拽、放置和显示功能,文中通过实例代码介绍的... 目录1. 效果展示2. 效果分析2.1 关键点2.2 实现方法3. 代码实现3.1 html部分3.2

解决jupyterLab打开后出现Config option `template_path`not recognized by `ExporterCollapsibleHeadings`问题

《解决jupyterLab打开后出现Configoption`template_path`notrecognizedby`ExporterCollapsibleHeadings`问题》在Ju... 目录jupyterLab打开后出现“templandroidate_path”相关问题这是 tensorflo

CSS弹性布局常用设置方式

《CSS弹性布局常用设置方式》文章总结了CSS布局与样式的常用属性和技巧,包括视口单位、弹性盒子布局、浮动元素、背景和边框样式、文本和阴影效果、溢出隐藏、定位以及背景渐变等,通过这些技巧,可以实现复杂... 一、单位元素vm 1vm 为视口的1%vh 视口高的1%vmin 参照长边vmax 参照长边re

CSS3中使用flex和grid实现等高元素布局的示例代码

《CSS3中使用flex和grid实现等高元素布局的示例代码》:本文主要介绍了使用CSS3中的Flexbox和Grid布局实现等高元素布局的方法,通过简单的两列实现、每行放置3列以及全部代码的展示,展示了这两种布局方式的实现细节和效果,详细内容请阅读本文,希望能对你有所帮助... 过往的实现方法是使用浮动加

css渐变色背景|<gradient示例详解

《css渐变色背景|<gradient示例详解》CSS渐变是一种从一种颜色平滑过渡到另一种颜色的效果,可以作为元素的背景,它包括线性渐变、径向渐变和锥形渐变,本文介绍css渐变色背景|<gradien... 使用渐变色作为背景可以直接将渐China编程变色用作元素的背景,可以看做是一种特殊的背景图片。(是作为背

CSS自定义浏览器滚动条样式完整代码

《CSS自定义浏览器滚动条样式完整代码》:本文主要介绍了如何使用CSS自定义浏览器滚动条的样式,包括隐藏滚动条的角落、设置滚动条的基本样式、轨道样式和滑块样式,并提供了完整的CSS代码示例,通过这些技巧,你可以为你的网站添加个性化的滚动条样式,从而提升用户体验,详细内容请阅读本文,希望能对你有所帮助...

css实现图片旋转功能

《css实现图片旋转功能》:本文主要介绍了四种CSS变换效果:图片旋转90度、水平翻转、垂直翻转,并附带了相应的代码示例,详细内容请阅读本文,希望能对你有所帮助... 一 css实现图片旋转90度.icon{ -moz-transform:rotate(-90deg); -webkit-transfo

vue基于ElementUI动态设置表格高度的3种方法

《vue基于ElementUI动态设置表格高度的3种方法》ElementUI+vue动态设置表格高度的几种方法,抛砖引玉,还有其它方法动态设置表格高度,大家可以开动脑筋... 方法一、css + js的形式这个方法需要在表格外层设置一个div,原理是将表格的高度设置成外层div的高度,所以外层的div需要

Vue项目中Element UI组件未注册的问题原因及解决方法

《Vue项目中ElementUI组件未注册的问题原因及解决方法》在Vue项目中使用ElementUI组件库时,开发者可能会遇到一些常见问题,例如组件未正确注册导致的警告或错误,本文将详细探讨这些问题... 目录引言一、问题背景1.1 错误信息分析1.2 问题原因二、解决方法2.1 全局引入 Element