<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>无涯openAi</title>
    <meta name="description" content="免费体验,在线体验,官网地址,免登录,免注册,与Ai对话,请描述您的需求-支持中文、英语、日本语等,和本网站都是基于open ai实现的">
    <meta name="keywords" content="人工智能">
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css">
</head>
<body>
    <div class="ui-widget">
        <div class="ui-widget-header">
            <h3>无涯openAi</h3>
        </div>
        <div class="ui-widget-content">
            <div class="ui-widget">
                <div class="ui-widget-content">
                    <label for="chat-gpt-input">输入问题:</label>
                    <textarea class="ui-widget-content" id="chat-gpt-input" placeholder="输入问题" rows="3"></textarea>
                </div>
                <div class="ui-widget-content">
                     <button onclick="callCHATGPT()" class="ui-button ui-widget ui-corner-all animate__animated animate__slideInRight">回答</button>
                     <button onclick="clearTextarea()" class="ui-button ui-widget ui-corner-all animate__animated animate__slideInRight">清空</button>
                     <button onclick="copyOutput()" class="ui-button ui-widget ui-corner-all animate__animated animate__slideInRight">复制</button>
                     <button onclick="openSponsorPage()" class="ui-button ui-widget ui-corner-all animate__animated animate__slideInRight">赞助</button>
                </div>
                <div class="ui-widget-content">
                      <label for="chatgpt-response">回答:</label>
                      <textarea class="ui-widget-content" id="chatgpt-response" placeholder="长途访问,请耐心等待回答。Ai生成速度较快,但由于网络问题可能需要等待。如果长时间没有反应,请刷新页面重试。" rows="26" readonly></textarea>
                </div>
            </div>
        </div>
    </div>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
    <script src="js/Cg.js"></script>
    <script>
        function clearTextarea() {
            $("#chatgpt-response").val("");
        }
<pre><code>    function copyOutput() {
        const output = $(&quot;#chatgpt-response&quot;).val();
        navigator.clipboard.writeText(output);
        alert(&quot;代码已复制到剪贴板!&quot;);
    }

    function openSponsorPage() {
        window.open(&quot;zz.html&quot;, &quot;_blank&quot;);
    }
&lt;/script&gt;
</code></pre>
</body>
</html>
引用下面3个库httpscodejquerycomjquery-311minjshttpscodejquerycomui1121jquery-uiminjshttpscodejquerycomui1121themesbasejquery-uimincss用UI的形式重新编写一套完整的代码给我!DOCTYPE htmlhtml lang=zh-CNhead meta charset=UTF-8

原文地址: https://www.cveoy.top/t/topic/8Kz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录