-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
94 lines (80 loc) · 2.75 KB
/
index.php
File metadata and controls
94 lines (80 loc) · 2.75 KB
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
<!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">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
<title>Facebook wall design</title>
<!-- Bootstrap core CSS -->
<link href="style.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="http://getbootstrap.com/examples/jumbotron-narrow/jumbotron-narrow.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
$(document).on('click','#button',function(){
var feed = $('#feedbox').val();
if(!feed)
alert('Enter the feed');
else{
$( '<div id="feed"><div class="row" >\
<div class="col-md-2"><img src="image2.jpg" class="img-circle" width="100%"/></div>\
<div class="col-md-10">\
<div><b>Krishna Teja</b>\
<div class="pull-right text-muted" id="delete">delete</div></div>\
<div> '+feed+'</div>\
<div class="text-muted"> <small>posted 2 minutes ago</small></div>\
</div>\
</div><hr></div>').insertAfter( "#insert" ).hide().slideDown();
$('#feedbox').val('');
}
});
$(document).on('click','#delete',function(){
$(this).closest('#feed').slideUp();
});
</script>
</head>
<style>
#delete{
cursor:pointer;
}
</style>
<body>
<div class="container">
<div class="header">
<h3 class="text-muted">Facebook Wall Design</h3>
</div>
<div>
<div class="row">
<div class="col-md-2"><img src="image.jpg" class="img-circle" width="100%"/></div>
<div class="col-md-10"><textarea class="form-control" id="feedbox" rows="3"></textarea><br>
<button type="button" id="button" class="btn btn-default">post</button>
<button type="button" id="imagem" class="btn btn-default">imago</button>
</div>
</div>
</div>
<hr>
<div id="insert"></div>
<div>
<div class="row" id="feed">
<div class="col-md-2"><img src="image2.jpg" class="img-circle" width="100%"/></div>
<div class="col-md-10">
<div><b>Fabiu</b>
<div class="pull-right text-muted" id="delete">delete</div></div>
<div> Iiiiiiiiiiiiiiiiih</div>
<div class="text-muted"> <small>posted 2 minutes ago</small></div>
</div>
</div>
</div>
<br>
<div class="footer">
<p>© Company 2013</p>
</div>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>