Spaces:
Sleeping
Sleeping
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="description" content="TechWave"> | |
<meta name="author" content="SRBThemes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>AI Chat Bot - TechWave</title> | |
<script> | |
if (!localStorage.frenify_skin) { | |
localStorage.frenify_skin = 'dark'; | |
} | |
if (!localStorage.frenify_panel) { | |
localStorage.frenify_panel = ''; | |
} | |
document.documentElement.setAttribute("data-techwave-skin", localStorage.frenify_skin); | |
if(localStorage.frenify_panel !== ''){ | |
document.documentElement.classList.add(localStorage.frenify_panel); | |
} | |
</script> | |
<!-- Google Fonts --> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"> | |
<!-- !Google Fonts --> | |
<!-- Styles --> | |
<link type="text/css" rel="stylesheet" href="desine/css/plugins.css?ver=1.0.0" /> | |
<link type="text/css" rel="stylesheet" href="desine/css/style.css?ver=1.0.0" /> | |
<!--[if lt IE 9]> <script type="text/javascript" src="desine/js/modernizr.custom.js"></script> <![endif]--> | |
<!-- !Styles --> | |
</head> | |
<body> | |
<!-- Moving Submenu --> | |
<div class="techwave_fn_fixedsub"> | |
<ul></ul> | |
</div> | |
<!-- !Moving Submenu --> | |
<!-- Preloader --> | |
<div class="techwave_fn_preloader"> | |
<svg> | |
<circle class="first_circle" cx="50%" cy="50%" r="110"></circle> | |
<circle class="second_circle" cx="50%" cy="50%" r="110"></circle> | |
</svg> | |
</div> | |
<!-- !Preloader --> | |
<div class="techwave_fn_font"> | |
<a class="font__closer_link fn__icon_button" href="#"><img src="desine/svg/close.svg" alt="" class="fn__svg"></a> | |
<div class="font__closer"></div> | |
<div class="font__dialog"> | |
<h3 class="title">Font Options</h3> | |
<label for="font_size">Font Size</label> | |
<select id="font_size"> | |
<option value="10">10 px</option> | |
<option value="12">12 px</option> | |
<option value="14">14 px</option> | |
<option value="16" selected> 16 px</option> | |
<option value="18">18 px</option> | |
<option value="20">20 px</option> | |
<option value="22" >22 px</option> | |
<option value="24">24 px</option> | |
<option value="26">26 px</option> | |
<option value="28">28 px</option> | |
</select> | |
<a href="#" class="apply techwave_fn_button"><span>Apply</span></a> | |
</div> | |
</div> | |
<!-- MAIN WRAPPER --> | |
<div class="techwave_fn_wrapper fn__has_sidebar"> | |
<div class="techwave_fn_wrap"> | |
<!-- Searchbar --> | |
<div class="techwave_fn_searchbar"> | |
<div class="search__bar"> | |
<input class="search__input" type="text" placeholder="Search here..."> | |
<img src="desine/svg/search.svg" alt="" class="fn__svg search__icon"> | |
<a class="search__closer" href="#"><img src="desine/svg/close.svg" alt="" class="fn__svg"></a> | |
</div> | |
<div class="search__results"> | |
<!-- Results will come here (via ajax after the integration you made after purchase as it doesn't work in HTML) --> | |
<div class="results__title">Results</div> | |
<div class="results__list"> | |
<ul> | |
<li><a href="#">Artificial Intelligence</a></li> | |
<li><a href="#">Learn about the impact of AI on the financial industry</a></li> | |
<li><a href="#">Delve into the realm of AI-driven manufacturing</a></li> | |
<li><a href="#">Understand the ethical implications surrounding AI</a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- !Searchbar --> | |
<!-- HEADER --> | |
<header class="techwave_fn_header"> | |
<!-- Header left: token information --> | |
<div class="header__left"> | |
<div class="fn__token_info"> | |
<span class="token_summary"> | |
<span class="count">120</span> | |
<span class="text">Tokens<br>Remain</span> | |
</span> | |
<a href="pricing.html" class="token_upgrade techwave_fn_button"><span>Upgrade</span></a> | |
<div class="token__popup"> | |
Resets in <span>19 hours.</span><br> | |
Daily limit is <span>200 tokens</span> | |
</div> | |
</div> | |
</div> | |
<!-- /Header left: token information --> | |
<!-- Header right: navigation bar --> | |
<div class="header__right"> | |
<div class="fn__nav_bar"> | |
<!-- Search (bar item) --> | |
<div class="bar__item bar__item_search"> | |
<a href="#" class="item_opener"> | |
<img src="desine/svg/search.svg" alt="" class="fn__svg"> | |
</a> | |
<div class="item_popup"> | |
<input type="text" placeholder="Search"> | |
</div> | |
</div> | |
<!-- !Search (bar item) --> | |
<!-- Notification (bar item) --> | |
<div class="bar__item bar__item_notification has_notification"> | |
<a href="#" class="item_opener"> | |
<img src="desine/svg/bell.svg" alt="" class="fn__svg"> | |
</a> | |
<div class="item_popup"> | |
<div class="ntfc_header"> | |
<h2 class="ntfc_title">Notifications</h2> | |
<a href="notifications.html">View All</a> | |
</div> | |
<div class="ntfc_list"> | |
<ul> | |
<li> | |
<p><a href="notification-single.html">Version 1.1.0 has been launched</a></p> | |
<span>34 Min Ago</span> | |
</li> | |
<li> | |
<p><a href="notification-single.html">Video Generation has been released</a></p> | |
<span>12 Apr</span> | |
</li> | |
<li> | |
<p><a href="notification-single.html">Terms has been updated</a></p> | |
<span>12 Apr</span> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- !Notification (bar item) --> | |
<!-- Full Screen (bar item) --> | |
<div class="bar__item bar__item_fullscreen"> | |
<a href="#" class="item_opener"> | |
<img src="desine/svg/fullscreen.svg" alt="" class="fn__svg f_screen"> | |
<img src="desine/svg/smallscreen.svg" alt="" class="fn__svg s_screen"> | |
</a> | |
</div> | |
<!-- !Full Screen (bar item) --> | |
<!-- Language (bar item) --> | |
<div class="bar__item bar__item_language"> | |
<a href="#" class="item_opener"> | |
<img src="desine/svg/language.svg" alt="" class="fn__svg"> | |
</a> | |
<div class="item_popup"> | |
<ul> | |
<li> | |
<span class="active">English</span> | |
</li> | |
<li> | |
<a href="#">Spanish</a> | |
</li> | |
<li> | |
<a href="#">French</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<!-- !Language (bar item) --> | |
<!-- Site Skin (bar item) --> | |
<div class="bar__item bar__item_skin"> | |
<a href="#" class="item_opener"> | |
<img src="desine/svg/sun.svg" alt="" class="fn__svg light_mode"> | |
<img src="desine/svg/moon.svg" alt="" class="fn__svg dark_mode"> | |
</a> | |
</div> | |
<!-- !Site Skin (bar item) --> | |
<!-- User (bar item) --> | |
<div class="bar__item bar__item_user"> | |
<a href="#" class="user_opener"> | |
<img src="https://raw.githubusercontent.com/omarnuwrar/urmkklsoqpgh-45kjfnskhbnqwhn3jgfj2mgjm3/main/{{account_name}}.png" alt=""> | |
</a> | |
<div class="item_popup"> | |
<div class="user_profile"> | |
<div class="user_img"> | |
<img src="https://raw.githubusercontent.com/omarnuwrar/urmkklsoqpgh-45kjfnskhbnqwhn3jgfj2mgjm3/main/{{account_name}}.png" alt=""> | |
</div> | |
<div class="user_info"> | |
<h2 class="user_name">{{ account_name }}<span>Free</span></h2> | |
<p><a href="mailto:cadmail@gmail.com" class="user_email">{{token2}}</a></p> | |
</div> | |
</div> | |
<div class="user_nav"> | |
<ul> | |
<li> | |
<a href="user-profile.html"> | |
<span class="icon"><img src="desine/svg/person.svg" alt="" class="fn__svg"></span> | |
<span class="text">Profile</span> | |
</a> | |
</li> | |
<li> | |
<a href="user-settings.html"> | |
<span class="icon"><img src="desine/svg/setting.svg" alt="" class="fn__svg"></span> | |
<span class="text">Settings</span> | |
</a> | |
</li> | |
<li> | |
<a href="/"> | |
<span class="icon"><img src="desine/svg/billing.svg" alt="" class="fn__svg"></span> | |
<span class="text">Billing</span> | |
</a> | |
</li> | |
<li> | |
<a href="/login"> | |
<span class="icon"><img src="desine/svg/logout.svg" alt="" class="fn__svg"></span> | |
<span class="text">Log out</span> | |
</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<!-- !User (bar item) --> | |
</div> | |
</div> | |
<!-- !Header right: navigation bar --> | |
</header> | |
<!-- !HEADER --> | |
<!-- LEFT PANEL --> | |
<div class="techwave_fn_leftpanel"> | |
<div class="mobile_extra_closer"></div> | |
<!-- logo (left panel) --> | |
<div class="leftpanel_logo"> | |
<a href="index.html" class="fn_logo"> | |
<span class="full_logo"> | |
<img src="desine/img/logo-desktop-full.png" alt="" class="desktop_logo"> | |
<img src="desine/img/logo-retina-full.png" alt="" class="retina_logo"> | |
</span> | |
<span class="short_logo"> | |
<img src="desine/img/logo-desktop-mini.png" alt="" class="desktop_logo"> | |
<img src="desine/img/logo-retina-mini.png" alt="" class="retina_logo"> | |
</span> | |
</a> | |
<a href="#" class="fn__closer fn__icon_button desktop_closer"> | |
<img src="desine/svg/arrow.svg" alt="" class="fn__svg"> | |
</a> | |
<a href="#" class="fn__closer fn__icon_button mobile_closer"> | |
<img src="desine/svg/arrow.svg" alt="" class="fn__svg"> | |
</a> | |
</div> | |
<!-- !logo (left panel) --> | |
<!-- content (left panel) --> | |
<div class="leftpanel_content"> | |
<!-- #1 navigation group --> | |
<div class="nav_group"> | |
<h2 class="group__title">Start Here</h2> | |
<ul class="group__list"> | |
<li> | |
<a href="index.html" class="fn__tooltip menu__item" data-position="right" title="Home"> | |
<span class="icon"><img src="desine/svg/home.svg" alt="" class="fn__svg"></span> | |
<span class="text">Home</span> | |
</a> | |
</li> | |
<li> | |
<a href="community-feed.html" class="fn__tooltip menu__item" data-position="right" title="Community Feed"> | |
<span class="icon"><img src="desine/svg/community.svg" alt="" class="fn__svg"></span> | |
<span class="text">Community Feed</span> | |
</a> | |
</li> | |
<li> | |
<a href="personal-feed.html" class="fn__tooltip menu__item" data-position="right" title="Personal Feed"> | |
<span class="icon"><img src="desine/svg/person.svg" alt="" class="fn__svg"></span> | |
<span class="text">Personal Feed<span class="count">48</span></span> | |
</a> | |
</li> | |
<li> | |
<a href="models.html" class="fn__tooltip menu__item" data-position="right" title="Finetuned Models"> | |
<span class="icon"><img src="desine/svg/cube.svg" alt="" class="fn__svg"></span> | |
<span class="text">Finetuned Models</span> | |
</a> | |
</li> | |
</ul> | |
</div> | |
<!-- !#1 navigation group --> | |
<!-- #2 navigation group --> | |
<div class="nav_group"> | |
<h2 class="group__title">User Tools</h2> | |
<ul class="group__list"> | |
<li> | |
<a href="image-generation.html" class="fn__tooltip menu__item" data-position="right" title="Image Generation"> | |
<span class="icon"><img src="desine/svg/image.svg" alt="" class="fn__svg"></span> | |
<span class="text">Image Generation</span> | |
</a> | |
</li> | |
<li> | |
<a href="ai-chat-bot.html" class="fn__tooltip active menu__item" data-position="right" title="AI Chat Bot"> | |
<span class="icon"><img src="desine/svg/chat.svg" alt="" class="fn__svg"></span> | |
<span class="text">AI Chat Bot</span> | |
</a> | |
</li> | |
</ul> | |
</div> | |
<!-- !#2 navigation group --> | |
<!-- #3 navigation group --> | |
<div class="nav_group"> | |
<h2 class="group__title">Support</h2> | |
<ul class="group__list"> | |
<li> | |
<a href="pricing.html" class="fn__tooltip menu__item" data-position="right" title="Pricing"> | |
<span class="icon"><img src="desine/svg/dollar.svg" alt="" class="fn__svg"></span> | |
<span class="text">Pricing</span> | |
</a> | |
</li> | |
<li class="menu-item-has-children"> | |
<a href="video-generation.html" class="fn__tooltip menu__item" title="FAQ & Help" data-position="right"> | |
<span class="icon"><img src="desine/svg/question.svg" alt="" class="fn__svg"></span> | |
<span class="text">FAQ & Help</span> | |
<span class="trigger"><img src="desine/svg/arrow.svg" alt="" class="fn__svg"></span> | |
</a> | |
<ul class="sub-menu"> | |
<li> | |
<a href="documentation.html"><span class="text">Documentation</span></a> | |
</li> | |
<li> | |
<a href="faq.html"><span class="text">FAQ</span></a> | |
</li> | |
<li> | |
<a href="changelog.html"><span class="text">Changelog<span class="fn__sup">(1.1.0)</span></span></a> | |
</li> | |
<li> | |
<a href="contact.html"><span class="text">Contact Us</span></a> | |
</li> | |
<li> | |
<a href="index-2.html"><span class="text">Home #2</span></a> | |
</li> | |
</ul> | |
</li> | |
<li> | |
<a href="/login" class="fn__tooltip menu__item" data-position="right" title="Log Out"> | |
<span class="icon"><img src="desine/svg/logout.svg" alt="" class="fn__svg"></span> | |
<span class="text">Log Out</span> | |
</a> | |
</li> | |
</ul> | |
</div> | |
<!-- !#3 navigation group --> | |
</div> | |
<!-- !content (left panel) --> | |
</div> | |
<!-- !LEFT PANEL --> | |
<!-- CONTENT --> | |
<div class="techwave_fn_content"> | |
<!-- PAGE (all pages go inside this div) --> | |
<div class="techwave_fn_page"> | |
<!-- AI Chat Bot Page --> | |
<div class="techwave_fn_aichatbot_page fn__chatbot"> | |
<div class="chat__page"> | |
<div class="font__trigger"> | |
<span></span> | |
</div> | |
<div class="fn__title_holder"> | |
<div class="container"> | |
<!-- Active chat title --> | |
<h1 class="title">Chat Bot Definition</h1> | |
<!-- !Active chat title --> | |
</div> | |
</div> | |
<div class="container"> | |
<div class="chat__list"> | |
<div id="chat0" class="chat__item"></div> | |
<div class="chat__item active" id="chat1"> | |
<div class="chat__box bot__chat"> | |
<div class="author"><span>Bot</span></div> | |
<div class="chat"> | |
<div class="fn__animated_text"><p>{{greet}}</p></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="chat__comment"> | |
<div class="container"> | |
<div class="fn__chat_comment"> | |
<textarea rows="1" class="fn__hidden_textarea" tabindex="-1"></textarea> | |
<textarea rows="1" placeholder="Send a message..." id="user_input"></textarea> | |
<button onclick="sendMessage()"><img src="desine/svg/enter.svg" alt="" class="fn__svg"></button> | |
</div> | |
</div> | |
</div> | |
<script> | |
function sendMessage() { | |
var user_input = document.getElementById("user_input").value; | |
if (user_input.trim() !== "") { | |
// Display user's message immediately | |
addChatMessage(user_input, "User"); | |
document.getElementById("user_input").value = ""; | |
var xhr = new XMLHttpRequest(); | |
xhr.open("POST", "/get_response", true); | |
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); | |
xhr.onreadystatechange = function() { | |
if (xhr.readyState === 4 && xhr.status === 200) { | |
var response_text = xhr.responseText; | |
// Display bot's response | |
addChatMessage2(response_text, "Bot"); | |
} | |
}; | |
xhr.send("user_input=" + user_input); | |
} | |
} | |
function addChatMessage(message, author) { | |
var chatItem = document.createElement("div"); | |
chatItem.className = "chat__box your__chat"; | |
var authorElement = document.createElement("div"); | |
authorElement.className = "author"; | |
authorElement.innerHTML = "<span>{{account_name}}</span>"; | |
var chatElement = document.createElement("div"); | |
chatElement.className = "chat"; | |
chatElement.innerHTML = "<p>" + message + "</p>"; | |
chatItem.appendChild(authorElement); | |
chatItem.appendChild(chatElement); | |
document.getElementById("chat1").appendChild(chatItem); | |
} | |
function addChatMessage2(message, author) { | |
var chatItem = document.createElement("div"); | |
chatItem.className = "chat__box bot__chat"; | |
var authorElement = document.createElement("div"); | |
authorElement.className = "author"; | |
authorElement.innerHTML = "<span>" + author + "</span>"; | |
var chatElement = document.createElement("div"); | |
chatElement.className = "chat"; | |
chatItem.appendChild(authorElement); | |
chatItem.appendChild(chatElement); | |
document.getElementById("chat1").appendChild(chatItem); | |
var messageElement = document.createElement("p"); | |
chatElement.appendChild(messageElement); | |
var index = 0; | |
var typingInterval = setInterval(function() { | |
if (index < message.length) { | |
if (message.charAt(index) === "<" && message.charAt(index + 1) === "b" && message.charAt(index + 2) === "r" && message.charAt(index + 3) === ">") { | |
messageElement.innerHTML += "<br>"; | |
index += 3; | |
} else if (message.charAt(index) === "<" && message.charAt(index + 1) === "i" && message.charAt(index + 2) === "m" && message.charAt(index + 3) === "g" && message.charAt(index + 4) === " ") { | |
var srcStart = message.indexOf("src='", index) + 5; | |
var srcEnd = message.indexOf("'", srcStart); | |
var imageUrl = message.substring(srcStart, srcEnd); | |
var imageElement = document.createElement("img"); | |
imageElement.src = imageUrl; | |
imageElement.className = "chat__image"; // Add CSS class for styling | |
messageElement.appendChild(imageElement); | |
index = srcEnd + 1; | |
} else { | |
messageElement.innerHTML += message.charAt(index); | |
} | |
index++; | |
} else { | |
clearInterval(typingInterval); | |
} | |
}, 30); // Adjust the delay (in milliseconds) between each character being added | |
} | |
</script> | |
<style> | |
.chat__image { | |
max-width: 200px; /* Adjust the maximum width as desired */ | |
max-height: 200px; /* Adjust the maximum height as desired */ | |
border-radius: 10px; /* Add rounded corners */ | |
} | |
.chat__download-button { | |
display: block; | |
margin-top: 10px; | |
text-align: center; | |
color: #fff; | |
background-color: #007bff; | |
border: none; | |
border-radius: 5px; | |
padding: 5px 10px; | |
text-decoration: none; | |
cursor: pointer; | |
} | |
.chat__download-button:hover { | |
background-color: #0056b3; | |
} | |
</style> </div> | |
<div class="chat__sidebar"> | |
<div class="sidebar_header"> | |
<a href="#" class="fn__new_chat_link"> | |
<span class="icon"></span> | |
<span class="text">New Chat</span> | |
</a> | |
</div> | |
</div> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- !AI Chat Bot Page --> | |
</div> | |
<!-- !PAGE (all pages go inside this div) --> | |
<!-- FOOTER (inside the content) --> | |
<footer class="techwave_fn_footer"> | |
<div class="techwave_fn_footer_content"> | |
<div class="copyright"> | |
<p><script>document.write(new Date().getFullYear())</script>© SRBThemes</p> | |
</div> | |
<div class="menu_items"> | |
<ul> | |
<li><a href="terms.html">Terms of Service</a></li> | |
<li><a href="privacy.html">Privacy Policy</a></li> | |
</ul> | |
</div> | |
</div> | |
</footer> | |
<!-- !FOOTER (inside the content) --> | |
</div> | |
<!-- !CONTENT --> | |
</div> | |
</div> | |
<!-- !MAIN WRAPPER --> | |
<!-- Scripts --> | |
<script type="text/javascript" src="desine/js/jquery.js?ver=1.0.0"></script> | |
<script type="text/javascript" src="desine/js/plugins.js?ver=1.0.0"></script> | |
<!--[if lt IE 10]> <script type="text/javascript" src="desine/js/ie8.js"></script> <![endif]--> | |
<script type="text/javascript" src="desine/js/init.js?ver=1.0.0"></script> | |
<!-- !Scripts --> | |
</body> | |
</html> |