-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (50 loc) · 2.83 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
56
57
58
<!DOCTYPE html>
<html lang="pl">
<!--https://www.w3schools.com/code/tryit.asp?filename=FNCY77L531NZ-->
<head>
<meta charset="UTF-8">
<title>Facebook News Feed</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="author" content="Bartłomiej Walasik">
<script src="js/angular.min.js"></script>
<script src="js/feed.js"></script>
<link rel="stylesheet" href="css/master.css">
</head>
<body>
<div ng-app="facebookFeed" ng-controller="facebookFeedControler">
<ul>
<li ng-repeat="post in posts">
<div class="post">
<div class="post__header">
<div class="post__header_c">
<img class="avatar" src="https://scontent-waw1-1.xx.fbcdn.net/v/t1.0-1/21618006_1587509091312464_3029770898176119461_n.png?oh=50e8759e0481f0015a427fa3fbf0285d&oe=5AC3813D" alt="avatar">
<div class="post__header--user">
<div><strong>Sizeer.com</strong></div>
<div><span class="post__createtime">Opublikowano:
{{post.created_time.substr(0,10)}} {{post.created_time.substr(11,8)}}
</div>
</div>
</div>
</div>
<div class="post__body">
<div class="post__body--c">
<p class="post__body--content" ng-pattern="regex;regexp" ng-init="con=post.message;res=con.match(regex);link=res.match(regexp)">
{{con.replace(res,"")}} {{res.replace(link,"ff")}}
<span ng-pattern="regexp" ng-init="">
<a href="">
</a>
</span>
</br>
</p>
<a target="_blank" href="http://facebook.com/{{post.id}}">
<img style="max-width: 100%;" src="{{post.full_picture}}" alt=""></a>
</div>
<div class="post__body--like"><img src="https://upload.wikimedia.org/wikipedia/commons/1/13/Facebook_like_thumb.png" alt="" class="like"> Lubi to: {{post.likes.summary.total_count}} osób
</div>
</div>
</div>
</li>
</ul>
</div>
</body>
</html>