Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vigneshp30 committed Dec 7, 2023
1 parent af7601d commit b5c24bf
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ app.get("/Rooms", (req, res) => {
res.sendFile(path.join(__dirname, "public", "rooms.html"));
});

app.get("/chat", (req, res) => {
res.sendFile(path.join(__dirname, "public", "chat.html"));
});

app.listen(app.get("port"), function () {
console.log("Node app is running at localhost:" + app.get("port"));
});
42 changes: 42 additions & 0 deletions public/chat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Azure Bot Services Page</title>
<!-- Include Azure Bot Services SDK here if not already included -->
<!-- Example script tag for Web Chat channel -->
<!-- <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script> -->
</head>
<body>

<!-- Your HTML content here -->

<!-- Add a container for your Azure Bot Services -->
<div id="azureBotContainer" style="height: 400px;">

</div>

<!-- Include the script to check if Azure Bot Services are visible -->
<script>
// Function to check if Azure Bot Services are visible
function isAzureBotVisible() {
var botContainer = document.getElementById('azureBotContainer');
return botContainer && botContainer.offsetHeight > 0;
}

// Function to display alert if Azure Bot Services are not visible
function displayAlert() {
if (!isAzureBotVisible()) {
alert("Azure Bot Services are not visible. $100 project is finished!");
}
}

// Run the displayAlert function when the page is loaded
window.onload = function () {
displayAlert();
};
</script>

</body>
</html>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ <h4>Services</h4>
<li><a href="privacy&policy">Privacy Policy</a></li>
<li><a href="tearms&condition">Terms & Conditions</a></li>
<li><a href="faq">FAQ</a></li>
<li><a href="#">Customer Support</a></li>
<li><a href="/chat">Customer Support</a></li>
</div>
</div>
<div class="footer__col">
Expand Down

0 comments on commit b5c24bf

Please sign in to comment.