Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
CursedPrograms authored Jan 27, 2024
1 parent dee49d3 commit bb187ba
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<link rel="icon" type="image/png" href="/cursedFavicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat Room</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.0.3/socket.io.js"></script>
<link href="../styles/main-style.css" rel="stylesheet" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.0.3/socket.io.js"></script>
<script>
var socket = io.connect('http://' + document.domain + ':' + location.port);
var socket = io.connect('https://' + document.domain + ':' + location.port);

socket.on('message', function(data) {
var messageDiv = document.createElement('div');
Expand All @@ -32,16 +31,19 @@
<link href="../static/styles/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<h1>ComCE</h1>
<div class="content">
<h1>ComCE</h1>
<div id="messages"> {% for message in messages %}
<p><strong>{{ message.user.nickname }}:</strong> {{ message.content }}</p>
{% endfor %} </div>
<input type="text" id="message" placeholder="Type your message" required>
<button onclick="sendMessage()">Send</button>
<a href="{{ url_for('logout') }}">Logout</a>
</div>
<footer id="dynamicFooter"></footer>
<script src="https://cursedprograms.github.io/cursedentertainment/scripts/footer.js"></script>
</div>
<div class="icons_container">
<iframe src="https://cursedprograms.github.io/cursedentertainment/iframes/social-media-icons/social-media-icons.html"
frameborder="0"></iframe>
</div>
<footer id="dynamicFooter"></footer><script src="https://cursedprograms.github.io/cursedentertainment/scripts/footer.js"></script>
</body>
</html>

0 comments on commit bb187ba

Please sign in to comment.