-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 1.82 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Baspram's Homepage</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div id="topLogo"><img src="logo/bp.png"></div>
<div id="topNav">
<ul>
<li class="title"><a href="index.html">SIMPLE BLOG</a></li>
<li class="right"><a href="insertpost.html"><button class="button">+ TAMBAH POST</button></a></li>
</ul>
</div>
<div id="POSTS">
<div id="1" class="post">
<div class="title">
<a href="post.html"><h1 id="postJudul">Know Me More</h1></a>
<h5 id="postTanggal">24-10-1994</h5>
</div>
<div class="content"> <p id="postKonten">There are something that you should know about me. . .</p>
<a href="editpost.html"><button class="button">UBAH</button> </a> |
<button onclick="deletePost()" class="button">HAPUS</button>
</div>
</div>
<div id="1" class="post">
<div class="title">
<a href="post.html"><h1 id="postJudul">This is Me</h1></a>
<h5 id="postTanggal">24-10-1994</h5>
</div>
<div class="content"> <p id="postKonten">Well. . . aku siapa sih?</p>
<a href="editpost.html"><button class="button">UBAH</button> </a> |
<button onclick="deletePost()" class="button">HAPUS</button>
</div>
</div>
<div id="1" class="post">
<div class="title">
<a href="post.html"><h1 id="postJudul">This is my blog</h1></a>
<h5 id="postTanggal">24-10-1994</h5>
</div>
<div class="content"> <p id="postKonten">Click the title to see the entire post</p>
<a href="editpost.html"><button class="button">UBAH</button> </a> |
<button onclick="deletePost()" class="button">HAPUS</button>
</div>
</div>
</div>
<script type="text/javascript">
function deletePost(){
if (confirm("Apakah yakin ingin menghapus post ini?") == true) {
location.href = 'index.html';
}
};
</script>
</body>
</html>