Skip to content

Commit

Permalink
intial commt
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen439 committed Oct 23, 2023
0 parents commit 37f3934
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Live Agent Sample</title>
</head>
<body>

<!-- Live Agent Button -->
<a id="liveagent_button_online_5735j000000U1R0" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('5735j000000U1R0')">
Online Chat With Agent
</a>
<div id="liveagent_button_offline_5735j000000U1R0" style="display: none;">
Agent Offline
</div>

<!-- Live Agent Script -->
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){
liveagent.showWhenOnline('5735j000000U1R0', document.getElementById('liveagent_button_online_5735j000000U1R0'));
liveagent.showWhenOffline('5735j000000U1R0', document.getElementById('liveagent_button_offline_5735j000000U1R0'));
});
</script>

</body>
</html>

0 comments on commit 37f3934

Please sign in to comment.