Spaces:
Running
Running
Update pages/1_CoursewithChat.py
Browse files
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
"""
|