eaglelandsonce commited on
Commit
9a5d47a
·
verified ·
1 Parent(s): 012dd9d

Update pages/1_CoursewithChat.py

Browse files
Files changed (1) hide show
  1. pages/1_CoursewithChat.py +9 -2
pages/1_CoursewithChat.py CHANGED
@@ -63,8 +63,15 @@ with col2:
63
  <!DOCTYPE html>
64
  <html>
65
  <body>
66
- <iframe src="https://copilotstudio.microsoft.com/environments/Default-617fcda2-91ad-4995-99ff-cdc509695753/bots/cr111_pyTorchDocumentation/webchat?__version__=2"
67
- frameborder="0" style="width: 100%; height: 400px; position: fixed; top: 50px; right: 0;"></iframe>
 
 
 
 
 
 
 
68
  </body>
69
  </html>
70
  """
 
63
  <!DOCTYPE html>
64
  <html>
65
  <body>
66
+ <iframe id="chat-frame" src="https://copilotstudio.microsoft.com/environments/Default-617fcda2-91ad-4995-99ff-cdc509695753/bots/cr111_pyTorchDocumentation/webchat?__version__=2"
67
+ frameborder="0" style="width: 100%; height: 400px;"></iframe>
68
+ <script>
69
+ window.onscroll = function() {
70
+ var iframe = document.getElementById('chat-frame');
71
+ var scrollPosition = window.scrollY;
72
+ iframe.style.top = scrollPosition + 50 + 'px';
73
+ };
74
+ </script>
75
  </body>
76
  </html>
77
  """