aboutsummaryrefslogtreecommitdiff
path: root/static/bv/tutorial/tutorial-init.js
blob: ba0cc73c17aee69ddd14f54a7e7195585d5496b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
startTutorialMode();

  // Helper function to manually start the tutorial mode
  function startTutorialMode() {
    const container = document.getElementById('bracket-city-container');
    
    if (container) {
      // Clear any existing content
      container.innerHTML = '';
      
      // Initialize the tutorial
      const tutorial = new BracketCityTutorial(container);
      
      // Store the tutorial instance in case we need to access it later
      window.bracketCityTutorial = tutorial;
      
      return tutorial;
    } else {
      console.error('Could not find container element for Bracket Village tutorial');
      return null;
    }
  }