28 lines
901 B
HTML
28 lines
901 B
HTML
---
|
|
title: NextChat
|
|
layout: default_tool
|
|
keywords: [NextChat, ChatGPT-Next-Web, ChatGPT]
|
|
description: ChatGPT 你的AI助手
|
|
---
|
|
|
|
|
|
<div id="content" class="uk-flex">
|
|
<iframe id="iframe" src="https://gpt.feling.net"></iframe></div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
const parent = document.getElementById('content');
|
|
const iframe = document.getElementById('iframe');
|
|
|
|
function setIframeSize() {
|
|
const computedStyle = getComputedStyle(parent);
|
|
const parentWidth = parent.clientWidth - parseFloat(computedStyle.paddingLeft) - parseFloat(computedStyle.paddingRight);
|
|
const parentHeight = parent.clientHeight - parseFloat(computedStyle.paddingTop) - parseFloat(computedStyle.paddingBottom);
|
|
|
|
iframe.style.width = parentWidth + 'px';
|
|
iframe.style.height = parentHeight + 'px';
|
|
}
|
|
window.addEventListener('resize', setIframeSize);
|
|
setIframeSize();
|
|
</script> |