Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

TestContainer.cshtml 1.9 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  1. @{
  2. ViewBag.Title = "Chat";
  3. }
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="UTF-8" />
  8. <title>Bot Chat</title>
  9. <link href="https://unpkg.com/botframework-webchat@0.6.5/botchat.css" rel="stylesheet" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  11. <style>
  12. #chat-iframe {
  13. border: 2px solid #3A96DD;
  14. float: left;
  15. }
  16. #chat-options {
  17. float: left;
  18. padding: 20px;
  19. }
  20. #chat-options button {
  21. display: block;
  22. padding: 10px 20px;
  23. width: 200px;
  24. margin-bottom: 20px
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <iframe src="/Chat" frameborder="0" width="600" height="800" id="chat-iframe"></iframe>
  30. <div id="chat-options">
  31. <button onclick="showCard('hero', 'json', 'C#')">Hero Card<br /><small>(with JSON and C# Source)</small></button>
  32. <button onclick="showCard('carousel')">Carousel Card</button>
  33. <button onclick="showCard('animation', 'node')">Animation Card<br /><small>(with Node Source)</small></button>
  34. <button onclick="showCard('video', 'json')">Video Card<br /><small>(with JSON)</small></button>
  35. <button onclick="showCard('audio')">Audio Card</button>
  36. <button onclick="showCard('receipt', 'json', 'C#')">Receipt Card<br /><small>(with JSON and C# Source)</small></button>
  37. <button onclick="showCard('signin', 'node')">Signin Card<br /><small>(with Node Source)</small></button>
  38. </div>
  39. <script type="text/javascript">
  40. function showCard() {
  41. var args = Array.prototype.slice.call(arguments);
  42. var sendMessages = document.getElementById('chat-iframe').contentWindow.sendMessages;
  43. if (typeof sendMessages === 'function') {
  44. sendMessages(args)
  45. }
  46. }
  47. </script>
  48. </body>
  49. </html>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...