-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (30 loc) · 1.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cheshire Cat AI - Alpine chat widget</title>
<!-- Add these js and css to your website -->
<script defer type="module" src="cheshire-cat-chat-widget.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<link rel="stylesheet" href="cheshire-cat-chat-widget.css">
</head>
<body>
<!-- Add this div to your website -->
<div id="cheshire-cat-chat-widget" x-data="$store.store">
<div id="ccat-history" x-ref="history">
<a id="ccat-credits" target="_blank" href="https://cheshirecat.ai">
<img src="poweredby.png">
</a>
<template x-for="msg in messages">
<div class="ccat-message" x-html="marked.parse(msg)"></div>
</template>
</div>
<div id="ccat-toolbar">
<textarea id="ccat-query" autofocus x-model="query" @keyup.enter="send()"></textarea>
<button id="ccat-send-button" @click="send()">Send</button>
</div>
</div>
</body>
</html>