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

相关文章

Vue3 的 shallowRef 和 shallowReactive:优化性能

大家对 Vue3 的 ref 和 reactive 都很熟悉,那么对 shallowRef 和 shallowReactive 是否了解呢? 在编程和数据结构中,“shallow”(浅层)通常指对数据结构的最外层进行操作,而不递归地处理其内部或嵌套的数据。这种处理方式关注的是数据结构的第一层属性或元素,而忽略更深层次的嵌套内容。 1. 浅层与深层的对比 1.1 浅层(Shallow) 定义

这15个Vue指令,让你的项目开发爽到爆

1. V-Hotkey 仓库地址: github.com/Dafrok/v-ho… Demo: 戳这里 https://dafrok.github.io/v-hotkey 安装: npm install --save v-hotkey 这个指令可以给组件绑定一个或多个快捷键。你想要通过按下 Escape 键后隐藏某个组件,按住 Control 和回车键再显示它吗?小菜一碟: <template

【 html+css 绚丽Loading 】000046 三才归元阵

前言:哈喽,大家好,今天给大家分享html+css 绚丽Loading!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕 目录 📚一、效果📚二、信息💡1.简介:💡2.外观描述:💡3.使用方式:💡4.战斗方式:💡5.提升:💡6.传说: 📚三、源代码,上代码,可以直接复制使用🎥效果🗂️目录✍️

【前端学习】AntV G6-08 深入图形与图形分组、自定义节点、节点动画(下)

【课程链接】 AntV G6:深入图形与图形分组、自定义节点、节点动画(下)_哔哩哔哩_bilibili 本章十吾老师讲解了一个复杂的自定义节点中,应该怎样去计算和绘制图形,如何给一个图形制作不间断的动画,以及在鼠标事件之后产生动画。(有点难,需要好好理解) <!DOCTYPE html><html><head><meta charset="UTF-8"><title>06

poj3468(线段树成段更新模板题)

题意:包括两个操作:1、将[a.b]上的数字加上v;2、查询区间[a,b]上的和 下面的介绍是下解题思路: 首先介绍  lazy-tag思想:用一个变量记录每一个线段树节点的变化值,当这部分线段的一致性被破坏我们就将这个变化值传递给子区间,大大增加了线段树的效率。 比如现在需要对[a,b]区间值进行加c操作,那么就从根节点[1,n]开始调用update函数进行操作,如果刚好执行到一个子节点,

hdu1394(线段树点更新的应用)

题意:求一个序列经过一定的操作得到的序列的最小逆序数 这题会用到逆序数的一个性质,在0到n-1这些数字组成的乱序排列,将第一个数字A移到最后一位,得到的逆序数为res-a+(n-a-1) 知道上面的知识点后,可以用暴力来解 代码如下: #include<iostream>#include<algorithm>#include<cstring>#include<stack>#in

hdu1689(线段树成段更新)

两种操作:1、set区间[a,b]上数字为v;2、查询[ 1 , n ]上的sum 代码如下: #include<iostream>#include<algorithm>#include<cstring>#include<stack>#include<queue>#include<set>#include<map>#include<stdio.h>#include<stdl

如何在页面调用utility bar并传递参数至lwc组件

1.在app的utility item中添加lwc组件: 2.调用utility bar api的方式有两种: 方法一,通过lwc调用: import {LightningElement,api ,wire } from 'lwc';import { publish, MessageContext } from 'lightning/messageService';import Ca

hdu 1754 I Hate It(线段树,单点更新,区间最值)

题意是求一个线段中的最大数。 线段树的模板题,试用了一下交大的模板。效率有点略低。 代码: #include <stdio.h>#include <string.h>#define TREE_SIZE (1 << (20))//const int TREE_SIZE = 200000 + 10;int max(int a, int b){return a > b ? a :

AI行业应用(不定期更新)

ChatPDF 可以让你上传一个 PDF 文件,然后针对这个 PDF 进行小结和提问。你可以把各种各样你要研究的分析报告交给它,快速获取到想要知道的信息。https://www.chatpdf.com/