Skip to content

Instantly share code, notes, and snippets.

@naimurhasan
Created July 1, 2021 18:19
Show Gist options
  • Save naimurhasan/edf392a6bcadab53093124e4c0a89753 to your computer and use it in GitHub Desktop.
Save naimurhasan/edf392a6bcadab53093124e4c0a89753 to your computer and use it in GitHub Desktop.
Tawk Open Chat HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teacher Solution Chat</title>
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/_id';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="page-wrapper">
<section class="intro-section">
<div class="intro-box">
<img class="main-logo" src="./logo.jpg">
<div class="space-2"></div>
<h1 class="heading">Live Chat</h1>
<p class="subtitle">আপনার সমস্যা, অভিযোগ কিংবা অভিমত জানাতে পরেন।</p>
<p>সময়ঃ সকাল ৯ টা হতে রাত ১০ টা পর্যন্ত।</p>
<button id="openChatBtn" onclick="javascript:void(Tawk_API.toggle())">Loading...</button>
<!-- simply add 'class="gist-open-chat"' to any link on your site -->
</div>
</section>
</div>
<script>
Tawk_API.onLoad = function(){
document.getElementById('openChatBtn').textContent = "Open Chat"
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment