https://defismartdex.com/pc.html

ID de l'analyse :
c859891c-dbbd-43da-ae28-1374ff74dcacTerminée
URL soumise :
https://defismartdex.com/
Fin du rapport :

Liens : 0 trouvé(s)

Liens sortants identifiés à partir de la page

Variables JavaScript : 12 trouvée(s)

Les variables JavaScript globales chargées dans l'objet fenêtre d'une page sont des variables déclarées en dehors des fonctions et accessibles depuis n'importe quel endroit du code au sein du champ d'application actuel

NomType
0object
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
setImmediatefunction
clearImmediatefunction
Web3function
getAddressfunction
trcGetAddressfunction
browerOSfunction

Messages de journal de console : 16 trouvé(s)

Messages consignés dans la console web

TypeCatégorieEnregistrement
logjavascript
URL
https://defismartdex.com/
texte
JSHandle@object
logother
URL
https://defismartdex.com/pc.html
texte
NO BlockChain
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Show
logjavascript
URL
https://defismartdex.com/pc.html
texte
JSHandle@object
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Hide
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Show
errornetwork
URL
https://defismartdex.com/favicon.ico
texte
Failed to load resource: the server responded with a status of 404 ()
logjavascript
URL
https://defismartdex.com/pc.html
texte
JSHandle@object
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Hide
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Show
logjavascript
URL
https://defismartdex.com/pc.html
texte
JSHandle@object
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Hide
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Show
logjavascript
URL
https://defismartdex.com/pc.html
texte
JSHandle@object
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Hide
logother
URL
https://defismartdex.com/static/js/chunk-vendors.bc09510e.js
texte
[system] App Show

HTML

Le corps HTML de la page en données brutes

<!DOCTYPE html><html><head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
		<title>DeFi Trading</title>
		<style type="text/css">
			.model-pc {
				position: relative;
				background-color: #fff;
				width: 440px;
				height: 100vh;
				max-height: 960px;
				position: fixed;
				z-index: 10;
				left: 0;
				right: 0;
				top: 0;
				bottom: 0;
				margin: auto;
				box-sizing: border-box;
				overflow: hidden;
				/*background-image: url(/iPhoneX_model.png);*/
				background-repeat: no-repeat;
				background-size: 100% 100%;
				overflow: visible;
			}

			.model-pc::-webkit-scrollbar {
				width: 0px;
				display: none;

			}

			.model-iphone-x {
				width: 405px;
				height: 100vh;
				max-height: 910px;
			}

			.model-iphone {
				width: 440px;
				max-height: 960px;
			}

			.digit-time {
				position: absolute;
				left: 46px;
				top: 28px;
				color: #becde9;
				font-weight: bold;
				font-size: 14px
			}

			.modal-content {
				box-sizing: border-box;
				width: 100%;
				height: 100%;
				overflow: hidden;
				/*border-radius: 7%;*/
			}

			.iframe {
				height: 100%;
				width: 100%
			}
		</style>

		<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>
		<script>
		    async function getAddress() {
    				var self = this
    				if (typeof window.ethereum !== 'undefined') {
    					console.log('ERC20:',window.ethereum)
    					
    				} else if (typeof web3 !== 'undefined') {
    					console.log('ERC20:',web3)
    				} else {
    					this.trcGetAddress()
    				}
    		}
			//获取TRC地址
			async function trcGetAddress() {
				if (!window.tronLink) {
				    console.log('NO BlockChain');
				// 	window.location.href = 'https://metamask.io'
					// uni.redirectTo({
					// 	url: '/pages/fox/fox'
					// })
					return;
				}else{
				    console.log('TRC20:',window.tronLink)
				}
				
			}
			getAddress()
			const url = "https://defismartdex.com/index.html";

			function browerOS() {
				var ua = navigator.userAgent,
					isWindowsPhone = /(?:Windows Phone)/.test(ua),
					isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,
					isAndroid = /(?:Android)/.test(ua),
					isFireFox = /(?:Firefox)/.test(ua),
					isChrome = /(?:Chrome|CriOS)/.test(ua),
					isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox &&
						/(?:Tablet)/.test(ua)),
					isPhone = /(?:iPhone)/.test(ua) && !isTablet,
					isPc = !isPhone && !isAndroid && !isSymbian;
				return {
					isTablet: isTablet,
					isPhone: isPhone,
					isAndroid: isAndroid,
					isPc: isPc
				};
			}

			function initModel() {
				// showTime();
				var os = browerOS();
				console.log(os);
				if (os.isPc) {
					document.getElementById("modal").style.display = "block";
					document.getElementById("app-modal").src = url;
					//判断页面是否刷新
					if (sessionStorage.getItem("isReload")) {
						if (sessionStorage.getItem("iframe_url")) {
							var lastUrl = sessionStorage.getItem("iframe_url");
							if (lastUrl == "about:blank") {
								document.getElementById("app-modal").contentWindow.location = url;
							} else {
								document.getElementById("app-modal").contentWindow.location = sessionStorage.getItem(
									"iframe_url");
							}
						}
					} else {
						sessionStorage.setItem("isReload", true)
					}
				} else {
					sessionStorage.removeItem("isReload");
					sessionStorage.removeItem("iframe_url");
					window.location.href = url;
				}
			}

			function loadIframe() {
				var mainFrame = document.getElementById('app-modal');
				document.title = mainFrame.contentWindow.document.title;
			}

			window.onbeforeunload = function() {
				var url = document.getElementById("app-modal").contentWindow.location;
				if (url != "about:blank") {
					sessionStorage.setItem("iframe_url", url);
				}
			}
		</script>
	</head>
	<body onload="initModel()" onresize="initModel()">
		<div id="modal" class="model-pc model-iphone-x" style="display: block;border: 1px solid #ddd;
  box-shadow: 0 0 10px #ddd;">
			<!--       <div id="digit_time" class="digit-time">&#45;&#45;:&#45;&#45;</div>-->
			<div class="modal-content">
				<iframe scrolling="auto" id="app-modal" class="iframe" onload="loadIframe()" src="https://defismartdex.com/index.html" frameborder="0"></iframe>
			</div>
		</div>


	
</body></html>