Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99




Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Setup Initial HTML Layout

Video Lecture

Setup Initial HTML Layout Setup Initial HTML Layout Setup Initial HTML Layout

./dist/client/index.html

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>TypeScript Socket.IO Course</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
    </head>

    <body>
        <div class="jumbotron text-center" style="margin-bottom:0">
            <h1>Lucky Numbers Mini-Games</h1>
            <p>
                <a href="https://sbcode.net/tssock" target="_blank">
                    https://sbcode.net/tssock
                </a>
            </p>
        </div>

        <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
            <a class="navbar-brand" href="#">Games</a>
            <button
                class="navbar-toggler"
                type="button"
                data-toggle="collapse"
                data-target="#collapsibleNavbar"
            >
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="collapsibleNavbar">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a
                            class="nav-link"
                            href="#"
                            onclick="client.showGame(0)"
                        >
                            🥉Bronze Game
                        </a>
                    </li>
                    <li class="nav-item">
                        <a
                            class="nav-link"
                            href="#"
                            onclick="client.showGame(1)"
                        >
                            🥈Silver Game
                        </a>
                    </li>
                    <li class="nav-item">
                        <a
                            class="nav-link"
                            href="#"
                            onclick="client.showGame(2)"
                        >
                            🥇Gold Game
                        </a>
                    </li>
                </ul>
            </div>
        </nav>

        <div class="container" style="margin-top:30px">
            <div class="row">
                <div class="col-sm-8">
                    <div class="gamePanel" id="gamePanel0">
                        <h2 id="gameTitle">🥉Bronze Game</h2>
                    </div>
                    <div class="gamePanel" id="gamePanel1">
                        <h2 id="gameTitle">🥈Silver Game</h2>
                    </div>
                    <div class="gamePanel" id="gamePanel2">
                        <h2 id="gameTitle">🥇Gold Game</h2>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="chatPanel">
                        <ol id="messages" class="messages"></ol>
                        <div class="chatMessageInputDiv">
                            <div class="input-group">
                                <input
                                    class="form-control width100"
                                    id="messageText"
                                    placeholder="Enter Chat Message"
                                    onkeyup=""
                                />
                                <span class="input-group-btn">
                                    <button class="btn btn-info">Send</button>
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="footer text-center" style="margin-bottom:0">
            This is an example game from the TypeScript SocketIO course at
            <a href="https://sbcode.net/tssock" target="_blank">
                https://sbcode.net/tssock
            </a>
        </div>

        <script src="jquery/jquery.min.js"></script>
        <script src="bootstrap/js/bootstrap.bundle.min.js"></script>
        <script src="socket.io/socket.io.js"></script>
        <script src="client.js"></script>
    </body>
</html>

Bootstrap Documentation

https://getbootstrap.com/