forked from p-m-project/medium-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
new-story.html
161 lines (146 loc) · 7.28 KB
/
new-story.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>New Story</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keyword" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/navbar.css">
<link rel="stylesheet" type="text/css" href="css/new-story.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body onresize="getDimension()">
<div class="button-add-section" style="top: 0; display: none;left: 0;">
<a href="#add" >
<i class="fa fa-plus" onclick="toggleAddMedia()"></i>
</a>
<div class="add-media-section" style="display:none;">
<a href="#" title="upload picture">
<label for="img-input">
<i class="fa fa-image">
</i>
<input type="file" id="img-input" name="img" accept="image/png, image/jpeg" class="hidden" onchange="loadImage(event)" >
</label>
</a>
<a href="#" title="upload video">
<label for="video-input">
<i class="fa fa-video-camera">
</i>
<input type="file" id="video-input" name="video" accept="video/*" class="hidden" onchange="loadVideo(event)" >
</label>
</a>
<a href="#" title="make Bold">
<i class="fa fa-bold" onclick="makeBold()"></i>
</a>
<a href="#" title="make Italic">
<i class="fa fa-italic" onclick="makeItalic()"></i>
</a>
<a href="#" title="H3 tag">
<i class="fa fa-font" onclick="makeTitle()"></i>
</a>
</div>
</div>
<div>
<!--this navigation bar is different with the other navigations-->
<nav class="nav-signin nav-newpost">
<nav class="nav-container">
<div >
<div class="nav-icon">
<div class="icon-title">
<!-- this tag always links to the home page-->
<a href="/">
<img src="media/MEDIUM-SBU34.png">
</a>
</div>
</div>
</div>
<div class="nav-space"></div>
<div class="nav-links" style="width: fit-content;">
<div class="navbar-profile-container" >
<a onclick="showProfileMenu()">
<img src="media/profile1.jpg" alt="" class="nav-profile">
</a>
<div class="navbar-profile-links" style="display: none;">
<div class="navbar-profile-show">
<div class="nav-profile"><img src="media/profile1.jpg" alt="" class="nav-profile"></div>
<div class="navbar-profile-info">
<p class="navbar-profile-username"><b>name</b></p>
<p class="navbar-profile-mail">gmail@gmail.com</p>
</div>
</div>
<a href="/new-story" >New Story</a>
<a href="/stories-page">Stories</a>
<a href="#setting">Setting</a>
<a href="#saved">Saved Articles</a>
<a href="/signin-page">Sign Out</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
<div>
<form class="nav-btns" action="" >
<button type="button" class="btn btn-primary">
<!--this tag links to stories page:-->
<a href="/stories-page">
Publish
</a>
</button>
<button type="button" class="btn btn-follow save-btn" >Save</button>
</form>
</div>
</div>
</nav>
</nav>
<div class="main">
<div class="new-post-section">
<!--the content of "post viewer page" should be gotten from the start of this div:-->
<div class="new-post-container">
<div class="save-post-text">
<span id="save-post-txt" class="save-post-text-span fa fa-check-circle" style="color: indianred;"> not saved yet</span>
</div>
<div class="select-category">
<form action="" method="GET">
<label class="fa">Post Category:</label>
<select>
<option>health</option>
<option>nature</option>
<option>children</option>
<option>women</option>
<option>technology</option>
<option>tourism</option>
<option>fashion</option>
<option>politics</option>
<option>mind</option>
<option>people</option>
</select>
</form>
</div>
<div class="select-thumbnail">
<p class="fa">Post Thumbnail: </p>
<div class="select-thumbnail-container">
<a href="#" title="upload picture">
<label for="thumbnail-input">
<i class="fa fa-plus">
</i>
<input type="file" id="thumbnail-input" name="img" accept="image/png, image/jpeg" class="hidden" onchange="loadThumbnail(event)" >
</label>
</a>
</div>
</div>
<div class="post-words-div">
<div class="number-div"> time: <span class="post-words" id="post-words"></span></div>
<div><button class="btn btn-follow" onclick="countWords()">Count Now</button></div>
</div>
<h2 class="new-post-title" contenteditable="true" onfocus="nextElem(this)" contenteditable="true"></h2>
<p class="new-post-passage" contenteditable="true" onfocus="nextElem2(this)" contenteditable="true" id="txt"></p>
</div>
</div>
</div>
</div>
<script src="js/nav.js"></script>
<script src="js/new-post.js" ></script>
</body>
</html>