chgpt / static /main.html
Alfredo Villegas
DEV: prueba 3 de switch button
839ae79
raw
history blame
1.87 kB
<html>
<head>
<title> Chatbot </title>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="static/favicon.png" type="image/png">
<link rel="stylesheet" href="static/css/app.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/chatHandler.js?v={% version %}"></script>
<script src="static/js/windowHandler.js?v={% version %}"></script>
</head>
<body>
<div class="wrapper pag1">
<div class="chat" id="chat"></div>
<div class='input-box'>
<textarea class='input-text' id='input-text' placeholder="Type something" type="text" autofocus=""></textarea>
<button class='input-send' id='input-send' ></button>
<label class="switch">
<input type="checkbox" id="input-activar">
<span class="slider round"></span>
</label>
<button class='input-delete' id='input-delete' ></button>
</div>
</div>
<script>
let windH = null;
let chatH = null;
$(document).ready(function() {
chatH = new ChatGPT("{% token %}");
windH = new WindowHandler();
});
</script>
</body>
</html>