Skip to content

Commit

Permalink
𝙇𝙤𝙡𝙞𝘽𝙤𝙩-𝙈𝘿
Browse files Browse the repository at this point in the history
  • Loading branch information
elrebelde21 authored Aug 22, 2023
1 parent 09d9be4 commit f4e8b55
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
29 changes: 29 additions & 0 deletions views/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<html>
<head>
<title>Web</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

<script src="index.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="container-fluid pt-3">
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top"></nav>
<div class="spinner-border text-primary"></div>
</div>

</body>
</html>
11 changes: 11 additions & 0 deletions views/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
window.onload = () => {
let chat = document.querySelector('div.container-fluid')
function addMsg(obj) {
let html = document.createElement('span')
html.className = 'msg'
html.innerHTML = obj
chat.appendChild(html)
}

window.onclick = () => addMsg(12)
}
3 changes: 3 additions & 0 deletions views/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
span.msg {
}

0 comments on commit f4e8b55

Please sign in to comment.