94 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			94 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html >
 | 
						|
<head>
 | 
						|
    <meta charset="utf-8">
 | 
						|
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
    <meta name="description" content="pyramid web application">
 | 
						|
    <meta name="author" content="Pylons Project">
 | 
						|
 | 
						|
    <title>Free Online Gamblingc</title>
 | 
						|
 | 
						|
    <!-- Bootstrap core CSS -->
 | 
						|
    <link href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
 | 
						|
 | 
						|
    <!-- Custom styles for this scaffold -->
 | 
						|
    <link href="/css/theme.css" rel="stylesheet">
 | 
						|
    <link href="/css/docs.css" rel="stylesheet">
 | 
						|
 | 
						|
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
 | 
						|
    <!--[if lt IE 9]>
 | 
						|
    <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
 | 
						|
    <script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
 | 
						|
    <![endif]-->
 | 
						|
    <script>
 | 
						|
        let socket = new WebSocket("wss://cowiz.struppi.name/ws");
 | 
						|
 | 
						|
        socket.onopen = function(e) {
 | 
						|
            //alert("[open] Connection established");
 | 
						|
            //alert("Sending to server");
 | 
						|
            //socket.send("My name is John");
 | 
						|
        };
 | 
						|
 | 
						|
        socket.onmessage = function(event) {
 | 
						|
            //alert(`[message] Data received from server: ${event.data}`);
 | 
						|
            location.reload(true)
 | 
						|
        };
 | 
						|
 | 
						|
        socket.onclose = function(event) {
 | 
						|
            if (event.wasClean) {
 | 
						|
                //alert(`[close] Connection closed cleanly, code=${event.code} reason=${event.reason}`);
 | 
						|
            } else {
 | 
						|
                // e.g. server process killed or network down
 | 
						|
                // event.code is usually 1006 in this case
 | 
						|
                //alert('[close] Connection died');
 | 
						|
            }
 | 
						|
        };
 | 
						|
 | 
						|
        socket.onerror = function(error) {
 | 
						|
            alert(`[error] ${error.message}`);
 | 
						|
        };
 | 
						|
    </script>
 | 
						|
</head>
 | 
						|
 | 
						|
<body>
 | 
						|
 | 
						|
<div class="starter-template">
 | 
						|
    <div class="container">
 | 
						|
        <div class="row">
 | 
						|
            <div class="col-md-2">
 | 
						|
            </div>
 | 
						|
            <div class="col-md-10">
 | 
						|
                <div>{% block content %}{% endblock %}</div>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
<!--
 | 
						|
        <div class="row">
 | 
						|
            <div class="links">
 | 
						|
                <ul>
 | 
						|
                    <li><i class="glyphicon glyphicon-cog icon-muted"></i><a
 | 
						|
                            href="https://github.com/mikeckennedy/python-jumpstart-course-demos"
 | 
						|
                            target="_blank">Github Project</a></li>
 | 
						|
                    <li><i class="glyphicon glyphicon-globe icon-muted"></i><a href="https://twitter.com/talkpython"
 | 
						|
                                                                               target="_blank">Twitter</a>
 | 
						|
                    </li>
 | 
						|
                </ul>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
        <div class="row">
 | 
						|
            <div class="copyright">
 | 
						|
                Copyright © Talk Python Training
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
-->
 | 
						|
    </div>
 | 
						|
</div>
 | 
						|
 | 
						|
 | 
						|
<!-- Bootstrap core JavaScript
 | 
						|
================================================== -->
 | 
						|
<!-- Placed at the end of the document so the pages load faster -->
 | 
						|
<script src="//oss.maxcdn.com/libs/jquery/1.10.2/jquery.min.js"></script>
 | 
						|
<script src="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
 | 
						|
</body>
 | 
						|
</html> |