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

相关文章

Python将博客内容html导出为Markdown格式

《Python将博客内容html导出为Markdown格式》Python将博客内容html导出为Markdown格式,通过博客url地址抓取文章,分析并提取出文章标题和内容,将内容构建成html,再转... 目录一、为什么要搞?二、准备如何搞?三、说搞咱就搞!抓取文章提取内容构建html转存markdown

在React中引入Tailwind CSS的完整指南

《在React中引入TailwindCSS的完整指南》在现代前端开发中,使用UI库可以显著提高开发效率,TailwindCSS是一个功能类优先的CSS框架,本文将详细介绍如何在Reac... 目录前言一、Tailwind css 简介二、创建 React 项目使用 Create React App 创建项目

vue使用docxtemplater导出word

《vue使用docxtemplater导出word》docxtemplater是一种邮件合并工具,以编程方式使用并处理条件、循环,并且可以扩展以插入任何内容,下面我们来看看如何使用docxtempl... 目录docxtemplatervue使用docxtemplater导出word安装常用语法 封装导出方

Springboot处理跨域的实现方式(附Demo)

《Springboot处理跨域的实现方式(附Demo)》:本文主要介绍Springboot处理跨域的实现方式(附Demo),具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不... 目录Springboot处理跨域的方式1. 基本知识2. @CrossOrigin3. 全局跨域设置4.

MySQL新增字段后Java实体未更新的潜在问题与解决方案

《MySQL新增字段后Java实体未更新的潜在问题与解决方案》在Java+MySQL的开发中,我们通常使用ORM框架来映射数据库表与Java对象,但有时候,数据库表结构变更(如新增字段)后,开发人员可... 目录引言1. 问题背景:数据库与 Java 实体不同步1.1 常见场景1.2 示例代码2. 不同操作

Vue中组件之间传值的六种方式(完整版)

《Vue中组件之间传值的六种方式(完整版)》组件是vue.js最强大的功能之一,而组件实例的作用域是相互独立的,这就意味着不同组件之间的数据无法相互引用,针对不同的使用场景,如何选择行之有效的通信方式... 目录前言方法一、props/$emit1.父组件向子组件传值2.子组件向父组件传值(通过事件形式)方

css中的 vertical-align与line-height作用详解

《css中的vertical-align与line-height作用详解》:本文主要介绍了CSS中的`vertical-align`和`line-height`属性,包括它们的作用、适用元素、属性值、常见使用场景、常见问题及解决方案,详细内容请阅读本文,希望能对你有所帮助... 目录vertical-ali

浅析CSS 中z - index属性的作用及在什么情况下会失效

《浅析CSS中z-index属性的作用及在什么情况下会失效》z-index属性用于控制元素的堆叠顺序,值越大,元素越显示在上层,它需要元素具有定位属性(如relative、absolute、fi... 目录1. z-index 属性的作用2. z-index 失效的情况2.1 元素没有定位属性2.2 元素处

Python实现html转png的完美方案介绍

《Python实现html转png的完美方案介绍》这篇文章主要为大家详细介绍了如何使用Python实现html转png功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 1.增强稳定性与错误处理建议使用三层异常捕获结构:try: with sync_playwright(

一文详解SQL Server如何跟踪自动统计信息更新

《一文详解SQLServer如何跟踪自动统计信息更新》SQLServer数据库中,我们都清楚统计信息对于优化器来说非常重要,所以本文就来和大家简单聊一聊SQLServer如何跟踪自动统计信息更新吧... SQL Server数据库中,我们都清楚统计信息对于优化器来说非常重要。一般情况下,我们会开启"自动更新