-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_design.html
65 lines (57 loc) · 2.56 KB
/
main_design.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
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="stylesheet" href="css/main_design.css">
<script src="https://kit.fontawesome.com/1b94fb06eb.js" crossorigin="anonymous"></script>
<title>Document</title>
</head>
<body onload="getUsername()">
<!-- Kairinis menu -->
<input type="checkbox" id="check">
<label for="check">
<i class="fas fa-bars" id="btn"></i>
<i class="fas fa-times" id="cancel"></i>
</label>
<div class="sidebar">
<header>Social media</header>
<ul>
<li><a id="myBtn" href="#"><i class="fas fa-plus-circle"></i>New entry</a></li>
<li><a href="#" onclick="contact()"><i class="fas fa-envelope"></i>Contact</a></li>
<li><a href="index.html"><i class="fas fa-sign-out-alt logout-left"></i>Logout</a></li>
</ul>
</div>
<!-- Kairinio meniu pabaiga -->
<section id="section">
<nav>
<div id="top-menu">
<input type="text" id="search" name="search" placeholder="Search news"><i class="fas fa-search"></i>
<div class='div-username'><span id="username"></span></div>
<button class="logout" onclick="logout()"><i class="fas fa-sign-out-alt logout-top"></i></button>
</div>
</nav>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<h1 class="entry">News Entry</h1>
<textarea id="news-entry" name="news-entry" rows="6" cols="50" placeholder="Enter your text" maxlength="400"></textarea>
<label id="label-avatar" for="avatar">Choose a profile picture:</label>
<input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg" onchange="imageUploaded()">
<button type="button" id="create-news">Submit</button>
</div>
</div>
<div id="myModal-delete" class="modal">
<div class="delete-modal-content">
<h1>Are you sure you want to delete this item?</h1>
<button type="button" id="delete-news">Yes</button>
<button type="button" class="closed">No</button>
</div>
</div>
</section>
</body>
<script src="js/getUsername.js"></script>
</html>