-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af7601d
commit b5c24bf
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters