parent
4694e3594d
commit
3bab06b894
@ -1 +1 @@
|
||||
Subproject commit 90f2fb0afb0006692bebf48b9ce290cedda56dd9
|
||||
Subproject commit 88485cff1a1ab11fc366be77c4bdd89438338be2
|
@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html style="height:100%">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>568Tools | 插入页面</title>
|
||||
<link rel="icon" type="image/svg+xml" href="https://tools.pj568.eu.org/img/icon.svg">
|
||||
<link rel="stylesheet" href="https://tools.pj568.eu.org/css/tool_type.css">
|
||||
<script src="https://tools.pj568.eu.org/js/include.js"></script>
|
||||
<script>
|
||||
// 获取 URL 参数
|
||||
function getUrlParameter(name) {
|
||||
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
|
||||
var results = regex.exec(location.search);
|
||||
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||
}
|
||||
|
||||
// 替换 iframe 中的网页
|
||||
function replaceIframeSource() {
|
||||
var link = getUrlParameter('link');
|
||||
if (link) {
|
||||
var iframe = document.getElementById('myIframe');
|
||||
iframe.src = link;
|
||||
}
|
||||
}
|
||||
|
||||
// 页面加载完成时调用替换函数
|
||||
window.onload = replaceIframeSource;
|
||||
</script>
|
||||
</head>
|
||||
<body style="display:block;height:calc(100% - 42px)">
|
||||
<div class="bg-img"></div>
|
||||
<iframe id="myIframe" width="100%" style="display:block;height:100%;border:none" src="https://tools.pj568.eu.org/about/"></iframe>
|
||||
<include src="https://tools.pj568.eu.org/header.html"></include>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue