()
| 5134 | // Create tutorial overlay in document |
| 5135 | function createTutorialOverlayInDocument() { |
| 5136 | const tutorialHTML = ` |
| 5137 | <!-- Tutorial Overlay --> |
| 5138 | <div class="carrot-tutorial-overlay" id="carrot-tutorial-overlay" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999999; background: rgba(0,0,0,0.5);"> |
| 5139 | <div class="carrot-tutorial-spotlight" id="carrot-tutorial-spotlight"></div> |
| 5140 | <div class="carrot-tutorial-popup" id="carrot-tutorial-popup"> |
| 5141 | <div class="carrot-tutorial-popup-header"> |
| 5142 | <h4 id="carrot-tutorial-popup-title">Tutorial Step</h4> |
| 5143 | <button class="carrot-tutorial-close" onclick="CarrotKernel.closeTutorial()"> |
| 5144 | <i class="fa-solid fa-times"></i> |
| 5145 | </button> |
| 5146 | </div> |
| 5147 | <div class="carrot-tutorial-popup-content" id="carrot-tutorial-popup-content"> |
| 5148 | <!-- Tutorial content --> |
| 5149 | </div> |
| 5150 | <div class="carrot-tutorial-popup-nav"> |
| 5151 | <button class="carrot-tutorial-prev" id="carrot-tutorial-prev" onclick="CarrotKernel.previousTutorialStep()"> |
| 5152 | <i class="fa-solid fa-arrow-left"></i> Previous |
| 5153 | </button> |
| 5154 | <span class="carrot-tutorial-progress" id="carrot-tutorial-progress">1 / 5</span> |
| 5155 | <button class="carrot-tutorial-next" id="carrot-tutorial-next" onclick="CarrotKernel.nextTutorialStep()"> |
| 5156 | Next <i class="fa-solid fa-arrow-right"></i> |
| 5157 | </button> |
| 5158 | </div> |
| 5159 | </div> |
| 5160 | </div> |
| 5161 | `; |
| 5162 | document.body.insertAdjacentHTML('beforeend', tutorialHTML); |
| 5163 | CarrotDebug.tutorial('✅ Tutorial overlay created in document'); |
| 5164 | } |
| 5165 | |
| 5166 | // Show current tutorial step |
| 5167 | // Show tutorial overlay |
| 5168 | function showTutorialOverlay() { |
no test coverage detected