aboutsummaryrefslogtreecommitdiff
path: root/static/bs/tutorial/tutorial-init.js
blob: ade15a50519fe9fddef6ba159e9dc07d10e87fff (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 Shitty tutorial');
      return null;
    }
  }