MCPcopy Create free account
hub / github.com/Coneja-Chibi/CarrotKernel / closeTutorial

Function closeTutorial

tutorials.js:444–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442
443// Close tutorial
444export function closeTutorial() {
445 CarrotDebug.ui('Closing tutorial');
446
447 // Remove highlight
448 document.querySelectorAll('.carrot-tutorial-highlight').forEach(el => {
449 el.classList.remove('carrot-tutorial-highlight');
450 });
451
452 // Remove overlay
453 const overlay = document.getElementById('carrot-tutorial-overlay');
454 if (overlay) {
455 overlay.remove();
456 }
457
458 // Remove resize handler
459 if (resizeHandler) {
460 window.removeEventListener('resize', resizeHandler);
461 resizeHandler = null;
462 }
463
464 // Reset state
465 currentTutorial = null;
466 currentStep = 0;
467 tutorialSteps = [];
468}
469
470// Export navigation functions to window for onclick handlers
471if (typeof window !== 'undefined') {

Callers 5

index.jsFile · 0.90
closeBabyBunnyTutorialFunction · 0.90
showTutorialStepFunction · 0.85
nextTutorialStepFunction · 0.85

Calls 1

uiMethod · 0.80

Tested by

no test coverage detected