(modal)
| 5102 | // Create tutorial overlay in modal (reusing existing code pattern) |
| 5103 | function createTutorialOverlayInModal(modal) { |
| 5104 | const tutorialHTML = ` |
| 5105 | <!-- Tutorial Overlay --> |
| 5106 | <div class="carrot-tutorial-overlay" id="carrot-tutorial-overlay" style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999999;"> |
| 5107 | <div class="carrot-tutorial-spotlight" id="carrot-tutorial-spotlight"></div> |
| 5108 | <div class="carrot-tutorial-popup" id="carrot-tutorial-popup"> |
| 5109 | <div class="carrot-tutorial-popup-header"> |
| 5110 | <h4 id="carrot-tutorial-popup-title">Tutorial Step</h4> |
| 5111 | <button class="carrot-tutorial-close" onclick="CarrotKernel.closeTutorial()"> |
| 5112 | <i class="fa-solid fa-times"></i> |
| 5113 | </button> |
| 5114 | </div> |
| 5115 | <div class="carrot-tutorial-popup-content" id="carrot-tutorial-popup-content"> |
| 5116 | <!-- Tutorial content --> |
| 5117 | </div> |
| 5118 | <div class="carrot-tutorial-popup-nav"> |
| 5119 | <button class="carrot-tutorial-prev" id="carrot-tutorial-prev" onclick="CarrotKernel.previousTutorialStep()"> |
| 5120 | <i class="fa-solid fa-arrow-left"></i> Previous |
| 5121 | </button> |
| 5122 | <span class="carrot-tutorial-progress" id="carrot-tutorial-progress">1 / 5</span> |
| 5123 | <button class="carrot-tutorial-next" id="carrot-tutorial-next" onclick="CarrotKernel.nextTutorialStep()"> |
| 5124 | Next <i class="fa-solid fa-arrow-right"></i> |
| 5125 | </button> |
| 5126 | </div> |
| 5127 | </div> |
| 5128 | </div> |
| 5129 | `; |
| 5130 | modal.insertAdjacentHTML('beforeend', tutorialHTML); |
| 5131 | CarrotDebug.tutorial('✅ Tutorial overlay created in modal'); |
| 5132 | } |
| 5133 | |
| 5134 | // Create tutorial overlay in document |
| 5135 | function createTutorialOverlayInDocument() { |
| 5136 | const tutorialHTML = ` |
no test coverage detected