| <!DOCTYPE html> |
|
|
| <html lang="ES"> |
| <head> |
| <title> Chatbot </title> |
| <meta name="viewport" content="width=device-width, interactive-widget=resizes-content"> |
| <link rel="shortcut icon" href="static/favicon.png" type="image/png"> |
| <link rel="stylesheet" href="static/css/app.css?v={% version %}"> |
| <link rel="stylesheet" href="static/css/tabs.css?v={% version %}"> |
|
|
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet" /> |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js" integrity="sha512-9khQRAUBYEJDCDVP2yw3LRUQvjJ0Pjx0EShmaQjcHa6AXiOv6qHQu9lCAIR8O+/D8FtaCoJ2c0Tf9Xo7hYH01Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js" integrity="sha512-SkmBfuA2hqjzEVpmnMt/LINrjop3GKWqsuLSSB3e7iBmYK7JuWw4ldmmxwD9mdm2IRTTi0OxSAfEGvgEi0i2Kw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| |
| <script src="static/js/windowHandler.js?v={% version %}"></script> |
| <script src="static/js/chatHandler.js?v={% version %}"></script> |
|
|
| </head> |
| <body> |
|
|
| |
| <div class="wrapper"> |
|
|
| |
| <div class="tabs"> |
| <label class="tab-label-add" for="nuevoChat" > |
| + |
| <input type="button" class="tab-add" id="nuevoChat"> |
| </label> |
| </div> |
| |
|
|
| |
| <div class="chats"> |
|
|
| </div> |
| |
| </div> |
| |
|
|
| |
| <template id="template-label"> |
|
|
| |
| <label class="tab-label"> |
| <div class="tab-name">Tab </div> |
| <input type="radio" name="tabs" class="tab-switch" value=0> |
| </label> |
| |
| </template> |
| <template id="template-tab"> |
| |
| <div class="tab"> |
| <div class="chat"></div> |
| <div class='input-box' id="inputBox"> |
| <textarea class='input-text' placeholder="Escribe aquí" type="text" autofocus=""></textarea> |
| <button class='input-send' ></button> |
| <button class='input-menu' ></button> |
| <button class='input-delete' ></button> |
| </div> |
| </div> |
| |
| </template> |
| |
| <template id="template-message"> |
| <div class="message"> |
| <div> |
| <p></p> |
| </div> |
| </div> |
| </template> |
| |
|
|
| <dialog class="menu" id="menu"> |
| |
| </dialog> |
|
|
| <script> |
| var cHand; |
| $(document).ready(function() { |
| cHand = new ChatGPT("{% token %}"); |
| }); |
| let versionLocal = localStorage.getItem("version") |
| let versionRemota = "{% version %}" |
| |
| |
| |
| </script> |
| </body> |
| </html> |
|
|