Kara is a digital assistent aimed to help in any daily situation. => Moved to /LunaDev/luna-development
https://luna-development.net/kara/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
3.1 KiB
68 lines
3.1 KiB
|
6 years ago
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>
|
||
|
|
Kara AI
|
||
|
|
</title>
|
||
|
|
<link href="https://bootswatch.com/4/materia/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<link href="app.css" rel="stylesheet" type="text/css"/>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="container" id="kara">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-12">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-header">
|
||
|
|
<h5 class="text-center">
|
||
|
|
Kara
|
||
|
|
</h5>
|
||
|
|
</div>
|
||
|
|
<div class="card-body">
|
||
|
|
<div id="chat-box">
|
||
|
|
<template v-for="message in messages">
|
||
|
|
<div class="message ai-message float-left" v-if="message.ai">
|
||
|
|
{{ message.body }}
|
||
|
|
<br/>
|
||
|
|
</div>
|
||
|
|
<div class="message user-message float-right" v-else="">
|
||
|
|
{{ message.body }}
|
||
|
|
<br/>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
<div class="message ai-message typing float-left" v-if="isTyping">
|
||
|
|
<div class="spinner-grow text-secondary" role="status">
|
||
|
|
<span class="sr-only">
|
||
|
|
Loading...
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
<div class="spinner-grow text-secondary" role="status">
|
||
|
|
<span class="sr-only">
|
||
|
|
Loading...
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
<div class="spinner-grow text-secondary" role="status">
|
||
|
|
<span class="sr-only">
|
||
|
|
Loading...
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="card-footer">
|
||
|
|
<input autofocus="true" class="form-control" id="chatinput" type="text" v-model="chatbox" v-on:keyup.enter="sendMessage()" v-if="!isTyping" autofocus>
|
||
|
|
<input autofocus="true" class="form-control" id="chatinput" type="text" v-else disabled>
|
||
|
|
</input>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script src="https://code.jquery.com/jquery-3.5.1.js">
|
||
|
|
</script>
|
||
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js">
|
||
|
|
</script>
|
||
|
|
<script src="app.js">
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|