Spaces:
Running
Running
🐳 16/02 - 00:39 - j'ai passé de temps à cree un systeme et toi tu viens tu casse tous c'est grave
Browse files
components/cognitive-core-fixed.js
CHANGED
|
@@ -388,13 +388,8 @@ class CognitiveCore extends HTMLElement {
|
|
| 388 |
prevPage: () => this.prevPage(),
|
| 389 |
getPages: () => this.pages,
|
| 390 |
getCurrentPage: () => this.currentPage,
|
| 391 |
-
jumpToPage: (n) =>
|
| 392 |
-
|
| 393 |
-
this.showPage(n - 1);
|
| 394 |
-
return true;
|
| 395 |
-
}
|
| 396 |
-
return false;
|
| 397 |
-
}
|
| 398 |
};
|
| 399 |
|
| 400 |
// HF Model Configuration - Exact IDs from user
|
|
@@ -795,6 +790,14 @@ class CognitiveCore extends HTMLElement {
|
|
| 795 |
this.addMessage('assistant', this.pages[index].content, index + 1);
|
| 796 |
}
|
| 797 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 798 |
nextPage() {
|
| 799 |
if (this.currentPage < this.pages.length - 1) {
|
| 800 |
this.showPage(this.currentPage + 1);
|
|
|
|
| 388 |
prevPage: () => this.prevPage(),
|
| 389 |
getPages: () => this.pages,
|
| 390 |
getCurrentPage: () => this.currentPage,
|
| 391 |
+
jumpToPage: (n) => this.goToPage(n),
|
| 392 |
+
goToPage: (n) => this.goToPage(n)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
};
|
| 394 |
|
| 395 |
// HF Model Configuration - Exact IDs from user
|
|
|
|
| 790 |
this.addMessage('assistant', this.pages[index].content, index + 1);
|
| 791 |
}
|
| 792 |
|
| 793 |
+
goToPage(n) {
|
| 794 |
+
if (n >= 1 && n <= this.pages.length) {
|
| 795 |
+
this.showPage(n - 1);
|
| 796 |
+
return true;
|
| 797 |
+
}
|
| 798 |
+
return false;
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
nextPage() {
|
| 802 |
if (this.currentPage < this.pages.length - 1) {
|
| 803 |
this.showPage(this.currentPage + 1);
|