You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568tools/incert/index.html

43 lines
1.5 KiB

<!DOCTYPE html>
<html lang="zh" style="height:100%">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/js/loading.js"></script>
<title>568Tools&nbsp;|&nbsp;插入页面</title>
<link rel="icon" type="image/svg+xml" href="/img/icon.svg">
<link rel="stylesheet" href="/css/tool_type.css">
<script src="/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% - 41px)">
<div id="loading">
<div id="loading_bg">
<div class="loader">正在加载</div>
</div>
</div>
<div class="bg-img"></div>
<include src="/header.html"></include>
<iframe title="incert" id="myIframe" width="100%" style="display:block;height:100%;border:none" src="/incert/defualt.html"></iframe>
</body>
</html>