Difference between revisions of "Common.js"
(Created page with "→M'adrono Chat Widget for Talmido: mw.loader.using(['mediawiki.util'], function() { $(document).ready(function() { // Only load on certain pages if neede...") |
|||
| Line 14: | Line 14: | ||
script.setAttribute('data-extended-suggestions', '["Grade Resources", "Liturgical Calendar", "Children Engagement", "Talmido Curriculum"]'); | script.setAttribute('data-extended-suggestions', '["Grade Resources", "Liturgical Calendar", "Children Engagement", "Talmido Curriculum"]'); | ||
script.setAttribute('data-primary-color', '#1aafe3'); | script.setAttribute('data-primary-color', '#1aafe3'); | ||
| − | script.setAttribute('data-placeholder-texts', '[" | + | script.setAttribute('data-placeholder-texts', '["PLAN: Help me prepare a [lesson] to achieve [learning outcome] with my [age group] class", "TEACH: What are some effective ways to teach [lesson] to my students?", ASSESS: How can I check whether students are grasping [concept]?"]'); |
document.body.appendChild(script); | document.body.appendChild(script); | ||
Revision as of 20:38, 4 November 2025
/* M'adrono Chat Widget for Talmido */
mw.loader.using(['mediawiki.util'], function() {
$(document).ready(function() {
// Only load on certain pages if needed, or remove this if statement for all pages
// if (mw.config.get('wgPageName') === 'Main_Page') { // Example: only on Main Page
const script = document.createElement('script');
script.src = "https://storage.googleapis.com/creatorsagi-scripts/creatorsagi-widget.min.js";
script.setAttribute('data-domain', 'ai.talmido.org');
script.setAttribute('data-dialog-title', 'Ask M\'adrono... 🙏');
script.setAttribute('data-mobile-button-text', 'Chat with M\'adrono');
script.setAttribute('data-dialog-subtitle', 'Your AI assistant for Malankara Orthodox Sunday School teaching. Supporting teachers in forming young disciples of Christ 💫');
script.setAttribute('data-suggestions', '["Lesson Planning", "Teaching Activities", "Learning Assessment", "Orthodox Doctrine"]');
script.setAttribute('data-extended-suggestions', '["Grade Resources", "Liturgical Calendar", "Children Engagement", "Talmido Curriculum"]');
script.setAttribute('data-primary-color', '#1aafe3');
script.setAttribute('data-placeholder-texts', '["PLAN: Help me prepare a [lesson] to achieve [learning outcome] with my [age group] class", "TEACH: What are some effective ways to teach [lesson] to my students?", ASSESS: How can I check whether students are grasping [concept]?"]');
document.body.appendChild(script);
// Optional: Add console log for debugging
console.log('M\'adrono widget loaded');
// }
});
});