├── README.md
└── webmag
├── Credits.txt
├── about.html
├── blank.html
├── blog-post.php
├── category.php
├── connection.php
├── contact.html
├── css
├── bootstrap.min.css
├── font-awesome.min.css
└── style.css
├── fonts
├── FontAwesome.otf
├── fontawesome-webfont.eot
├── fontawesome-webfont.svg
├── fontawesome-webfont.ttf
├── fontawesome-webfont.woff
└── fontawesome-webfont.woff2
├── footer.php
├── head.php
├── img
├── about-1.jpg
├── about-2.jpg
├── ad-1.jpg
├── ad-2.jpg
├── author.png
├── avatar.png
├── logo.png
├── post-1.jpg
├── post-2.jpg
├── post-3.jpg
├── post-4.jpg
├── post-5.jpg
├── post-6.jpg
├── post-page.jpg
├── widget-1.jpg
├── widget-2.jpg
├── widget-3.jpg
└── widget-4.jpg
├── index.php
├── js
├── bootstrap.min.js
├── jquery.min.js
└── main.js
└── mainnav.php
/README.md:
--------------------------------------------------------------------------------
1 | # PHP_Lesson3
2 | All PHP repositories are completed with the support of the Zent Education team.
3 |
4 | Especially mentor Vu Van Thuong (Founder Zent - Education).
5 |
--------------------------------------------------------------------------------
/webmag/Credits.txt:
--------------------------------------------------------------------------------
1 | Credits:
2 | Jquery
3 | Bootstrap
4 | Font-awesome
5 | Images : Unsplash
6 | Goolgle fonts : Nunito & Nunito-Sans
--------------------------------------------------------------------------------
/webmag/about.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | WebMag HTML Template
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
Lorem ipsum dolor sit amet, ea eos tibique expetendis, tollit viderer ne nam. No ponderum accommodare eam, purto nominavi cum ea, sit no dolores tractatos. Scripta principes quaerendum ex has, ea mei omnes eruditi. Nec ex nulla mandamus, quot omnesque mel et. Amet habemus ancillae id eum, justo dignissim mei ea, vix ei tantas aliquid. Cu laudem impetus conclusionemque nec, velit erant persius te mel. Ut eum verterem perpetua scribentur.
158 |
159 |
160 |
161 |
Vix mollis admodum ei, vis legimus voluptatum ut, vis reprimique efficiendi sadipscing ut. Eam ex animal assueverit consectetuer, et nominati maluisset repudiare nec. Rebum aperiam vis ne, ex summo aliquando dissentiunt vim. Quo ut cibo docendi. Suscipit indoctum ne quo, ne solet offendit hendrerit nec. Case malorum evertitur ei vel.
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
Our Mission
171 |
Id usu mutat debet tempor, fugit omnesque posidonium nec ei. An assum labitur ocurreret qui, eam aliquid ornatus tibique ut.
172 |
173 | Vix mollis admodum ei, vis legimus voluptatum ut.
174 | Cu cum alia vide malis. Vel aliquid facilis adolescens.
175 | Laudem rationibus vim id. Te per illum ornatus.
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
189 |
190 |
191 |
192 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
--------------------------------------------------------------------------------
/webmag/blank.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | WebMag HTML Template
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
H1 Typography heading.
157 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
158 |
159 |
H2 Typography heading.
160 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
161 |
162 |
H3 Typography heading.
163 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
164 |
165 |
H4 Typography heading.
166 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
167 |
168 |
169 | Vix mollis admodum ei, vis legimus voluptatum ut.
170 | Cu cum alia vide malis. Vel aliquid facilis adolescens.
171 | Laudem rationibus vim id. Te per illum ornatus.
172 |
173 |
174 |
175 | Vix mollis admodum ei, vis legimus voluptatum ut.
176 | Cu cum alia vide malis. Vel aliquid facilis adolescens.
177 | Laudem rationibus vim id. Te per illum ornatus.
178 |
179 |
180 |
181 |
182 |
183 |
188 |
189 |
190 |
191 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
--------------------------------------------------------------------------------
/webmag/blog-post.php:
--------------------------------------------------------------------------------
1 | query($query_most);
9 | $posts_most = array();
10 | while($row = $result_most->fetch_assoc()) {
11 | $posts_most[] = $row;
12 | }
13 |
14 |
15 | // // Lấy id của url
16 | $id = $_GET['id'];
17 | echo "$id";
18 | $query_id = "SELECT p.*, c.id AS 'cate_id', c.theme AS 'theme', a.fullname AS 'name' FROM posts p LEFT JOIN categories c ON p.category_id = c.id LEFT JOIN author a ON p.author_id = a.id WHERE p.STATUS = 1 and p.id =".$id;
19 | $result_id = $connection->query($query_id);
20 | $post = $result_id->fetch_assoc();
21 |
22 |
23 | ?>
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
=$post['title'];?>
68 |
=$post['description'];?>
69 |
70 |
71 | =$post['title'];?>
72 |
73 |
=$post['content'];?>
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
115 |
116 |
117 |
118 |
119 |
120 |
3 Comments
121 |
122 |
123 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
Leave a reply
179 |
your email address will not be published. required fields are marked *
180 |
181 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
222 |
223 |
224 |
225 |
241 |
242 |
243 |
244 |
270 |
271 |
272 |
273 |
286 |
287 |
288 |
289 |
304 |
305 |
306 |
307 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
--------------------------------------------------------------------------------
/webmag/category.php:
--------------------------------------------------------------------------------
1 | query($query_large);
11 | $posts_large = array();
12 | while($row = $result_large->fetch_assoc()) {
13 | $posts_large[] = $row;
14 | }
15 | //In ra bài viết lớn - end
16 |
17 | //In ra tiếp tục 2 bài sau bài viết lớn
18 | $query_next2 = "SELECT p.*, c.id as 'id', c.theme as 'theme' FROM posts p LEFT JOIN categories c ON p.category_id = c.id WHERE status = 1 and category_id = ".$id." ORDER BY created_at desc limit 1,2;";
19 | $result_next2 = $connection->query($query_next2);
20 | $posts_next2 = array();
21 | while($row = $result_next2->fetch_assoc()) {
22 | $posts_next2[] = $row;
23 | }
24 | //In ra tiếp tục 2 bài sau bài viết lớn - end
25 | ?>
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
78 |
79 |
80 |
81 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
97 |
98 |
99 |
100 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
133 |
134 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
149 |
150 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
165 |
166 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
181 |
182 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 | Load More
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
203 |
204 |
205 |
206 |
239 |
240 |
241 |
242 |
255 |
256 |
257 |
258 |
273 |
274 |
275 |
276 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
--------------------------------------------------------------------------------
/webmag/connection.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/webmag/contact.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | WebMag HTML Template
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
Contact Information
158 |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
159 |
164 |
165 |
166 |
167 |
168 |
Send A Message
169 |
170 |
171 |
172 |
173 | Email
174 |
175 |
176 |
177 |
178 |
179 | Subject
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
Submit
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
--------------------------------------------------------------------------------
/webmag/css/font-awesome.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4 | */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
5 |
--------------------------------------------------------------------------------
/webmag/css/style.css:
--------------------------------------------------------------------------------
1 | /*
2 | Template Name: WebMag Html Template
3 |
4 | Author: yaminncco
5 |
6 | Colors:
7 | Body : #3d455c
8 | Headers : #212631
9 | Primary : #212631 #4BB92F #ff8700 #0078ff #8d00ff
10 | Dark : #212631
11 | Grey : #eceef2 #a7b3c6 #fbfbfd
12 |
13 | Fonts: Nunito & Nunito-Sans
14 |
15 | Table OF Contents
16 | ------------------------------------
17 | GENERAL
18 | NAVIGATION
19 | HEADER
20 | POST
21 | POST PAGE
22 | ASIDE
23 | FOOTER
24 | RESPONSIVE
25 | ------------------------------------*/
26 | /*=========================================================
27 | GENERAL
28 | ===========================================================*/
29 | /*----------------------------*\
30 | typography
31 | \*----------------------------*/
32 | body {
33 | font-family: 'Nunito', sans-serif;
34 | font-size: 16px;
35 | font-weight: 300;
36 | color: #3d455c;
37 | margin: 0;
38 | padding: 0;
39 | overflow-x: hidden;
40 | }
41 | h1, h2, h3, h4, h5, h6 {
42 | font-family: 'Nunito Sans', sans-serif;
43 | font-weight: 700;
44 | color: #212631;
45 | margin: 0px 0px 15px;
46 | }
47 | h1 {
48 | font-size: 34px;
49 | }
50 | h2 {
51 | font-size: 28px;
52 | }
53 | h3 {
54 | font-size: 23px;
55 | }
56 | h4 {
57 | font-size: 16px;
58 | }
59 | a {
60 | font-weight: 600;
61 | color: #212631;
62 | text-decoration: none;
63 | }
64 | a:hover, a:focus{
65 | color: #212631;
66 | text-decoration: underline;
67 | outline: none;
68 | }
69 | p {
70 | margin: 0px 0px 20px;
71 | }
72 | ul,ol{
73 | margin: 0;
74 | padding: 0;
75 | list-style: none
76 | }
77 | ul.list-style, ol.list-style {
78 | padding-left: 15px;
79 | margin-bottom: 10px;
80 | }
81 | ul.list-style {
82 | list-style-type: disc;
83 | }
84 | ol.list-style {
85 | list-style-type: decimal;
86 | }
87 | blockquote.blockquote {
88 | position:relative;
89 | border-left:0;
90 | font-weight:600;
91 | margin-bottom:10px;
92 | padding: 20px;
93 | }
94 | blockquote.blockquote:before {
95 | content: "``";
96 | font-family: 'Nunito Sans', sans-serif;
97 | display: block;
98 | position: absolute;
99 | left: -5px;
100 | top: 5px;
101 | font-size: 240px;
102 | line-height: 200px;
103 | color: #eceef2;
104 | letter-spacing: -30px;
105 | z-index: -2;
106 | }
107 | figure.figure-img {
108 | margin-bottom:20px;
109 | }
110 | figure.figure-img figcaption {
111 | padding-top:5px;
112 | font-size: 13px;
113 | font-weight:600;
114 | }
115 | .input {
116 | height: 40px;
117 | border: 2px solid #eceef2;
118 | width: 100%;
119 | padding: 0px 15px;
120 | -webkit-transition: 0.2s border;
121 | transition: 0.2s border;
122 | }
123 | .input:focus {
124 | border-color: #3d455c;
125 | }
126 | textarea.input {
127 | height: 90px;
128 | padding: 15px;
129 | }
130 | .primary-button {
131 | padding: 9px 45px;
132 | border: none;
133 | background-color: #212631;
134 | font-weight: 600;
135 | text-transform: uppercase;
136 | font-size: 13px;
137 | color: #fff;
138 | -webkit-transition: 0.2s opacity;
139 | transition: 0.2s opacity;
140 | }
141 | .primary-button:hover,.primary-button:focus {
142 | color: #fff;
143 | opacity: 0.9;
144 | }
145 | .section {
146 | padding-top: 40px;
147 | }
148 | .section.section-grey {
149 | background-color: #fbfbfd;
150 | border-bottom: 1px solid #eceef2;
151 | border-top: 1px solid #eceef2;
152 | }
153 | .section .section-title {
154 | margin-bottom: 40px;
155 | }
156 | .section .section-title h2 {
157 | text-transform: capitalize;
158 | font-size: 28px;
159 | }
160 | .section-row {
161 | margin-bottom:40px;
162 | }
163 | /*=========================================================
164 | NAVIGATION
165 | ===========================================================*/
166 | #nav {
167 | height: 70px;
168 | }
169 | #nav:after {
170 | content: "";
171 | position: fixed;
172 | left: 0;
173 | right: 0;
174 | bottom: 0;
175 | top: 0;
176 | background-color: rgba(33, 38, 49, 0.5);
177 | z-index: 90;
178 | opacity: 0;
179 | visibility: hidden;
180 | -webkit-transition: 0.2s all;
181 | transition: 0.2s all;
182 | }
183 | #nav.shadow-active:after {
184 | opacity: 1;
185 | visibility: visible;
186 | }
187 | #nav-fixed {
188 | position: fixed;
189 | left: 0;
190 | right: 0;
191 | top: 0;
192 | z-index: 90;
193 | background-color: #FFF;
194 | -webkit-box-shadow: 0px -1px 0px 0px #eceef2 inset;
195 | box-shadow: 0px -1px 0px 0px #eceef2 inset;
196 | }
197 | #nav-fixed.slide-down {
198 | -webkit-animation: slide-down 0.3s;
199 | animation: slide-down 0.3s;
200 | }
201 | #nav-fixed.slide-up {
202 | -webkit-animation: slide-up 0.3s;
203 | animation: slide-up 0.3s;
204 | -webkit-animation-fill-mode: forwards;
205 | animation-fill-mode: forwards;
206 | }
207 | @-webkit-keyframes slide-down {
208 | from {
209 | -webkit-transform:translateY(-100%);
210 | transform:translateY(-100%);
211 | }
212 | to {
213 | -webkit-transform:translateY(0%);
214 | transform:translateY(0%);
215 | }
216 | }
217 | @keyframes slide-down {
218 | from {
219 | -webkit-transform:translateY(-100%);
220 | transform:translateY(-100%);
221 | }
222 | to {
223 | -webkit-transform:translateY(0%);
224 | transform:translateY(0%);
225 | }
226 | }
227 | @-webkit-keyframes slide-up {
228 | from {
229 | -webkit-transform:translateY(0%);
230 | transform:translateY(0%);
231 | }
232 | to {
233 | -webkit-transform:translateY(-100%);
234 | transform:translateY(-100%);
235 | }
236 | }
237 | @keyframes slide-up {
238 | from {
239 | -webkit-transform:translateY(0%);
240 | transform:translateY(0%);
241 | }
242 | to {
243 | -webkit-transform:translateY(-100%);
244 | transform:translateY(-100%);
245 | }
246 | }
247 | #nav .container {
248 | position: relative;
249 | }
250 | /*----------------------------*\
251 | logo
252 | \*----------------------------*/
253 | .nav-logo {
254 | float:left;
255 | }
256 | .nav-logo .logo {
257 | line-height: 70px;
258 | display:inline-block;
259 | }
260 | .nav-logo .logo > img {
261 | width: 100%;
262 | max-height: 70px;
263 | }
264 | /*----------------------------*\
265 | menu
266 | \*----------------------------*/
267 | .nav-menu {
268 | margin-left: 20px;
269 | }
270 | .nav-menu li a {
271 | position: relative;
272 | padding: 25px 20px;
273 | text-transform: capitalize;
274 | -webkit-box-shadow: -1px 0px 0px 0px #eceef2 inset;
275 | box-shadow: -1px 0px 0px 0px #eceef2 inset;
276 | -webkit-transition: 0.2s color;
277 | transition: 0.2s color;
278 | }
279 | .nav-menu li:first-child a {
280 | border-left: 1px solid #eceef2;
281 | }
282 | .nav-menu li a:after {
283 | content: '';
284 | position: absolute;
285 | left: 0;
286 | right: 0;
287 | bottom: 0px;
288 | width: 100%;
289 | height: 4px;
290 | -webkit-transition: 0.2s width;
291 | transition: 0.2s width;
292 | }
293 | .nav-menu li.cat-1 a:after {
294 | background-color: #4BB92F;
295 | }
296 | .nav-menu li.cat-2 a:after {
297 | background-color: #ff8700;
298 | }
299 | .nav-menu li.cat-3 a:after {
300 | background-color: #0078ff;
301 | }
302 | .nav-menu li.cat-4 a:after {
303 | background-color: #8d00ff;
304 | }
305 | .nav-menu li a:hover, .nav-menu li a:focus {
306 | background-color: transparent;
307 | text-decoration: none;
308 | }
309 | .nav-menu li.cat-1 a:hover, .nav-menu li.cat-1 a:focus {
310 | color: #4BB92F;
311 | }
312 | .nav-menu li.cat-2 a:hover, .nav-menu li.cat-2 a:focus {
313 | color: #ff8700;
314 | }
315 | .nav-menu li.cat-3 a:hover, .nav-menu li.cat-3 a:focus {
316 | color: #0078ff;
317 | }
318 | .nav-menu li.cat-4 a:hover, .nav-menu li.cat-4 a:focus {
319 | color: #8d00ff;
320 | }
321 | /*----------------------------*\
322 | search
323 | \*----------------------------*/
324 | .nav-btns {
325 | float:right;
326 | }
327 | .nav-btns > button {
328 | padding: 25px 25px;
329 | border: none;
330 | line-height: 20px;
331 | background: transparent;
332 | }
333 | .nav-btns .search-form {
334 | position: absolute;
335 | left: 0;
336 | right: 0;
337 | top: 0;
338 | bottom: 0px;
339 | padding: 0px 15px;
340 | opacity: 0;
341 | visibility: hidden;
342 | -webkit-transition: 0.3s all;
343 | transition: 0.3s all;
344 | }
345 | .nav-btns .search-form.active {
346 | opacity: 1;
347 | visibility: visible;
348 | }
349 | .nav-btns .search-form .search-input {
350 | height: 100%;
351 | width: 100%;
352 | border: none;
353 | background: #FFF;
354 | padding: 0px;
355 | font-weight: 600;
356 | }
357 | .nav-btns .search-form .search-close {
358 | position: absolute;
359 | top: 50%;
360 | right: 15px;
361 | -webkit-transform: translateY(-50%);
362 | -ms-transform: translateY(-50%);
363 | transform: translateY(-50%);
364 | border: none;
365 | background: transparent;
366 | line-height: 20px;
367 | color: #212631;
368 | font-size: 22px;
369 | padding: 0;
370 | }
371 | /*----------------------------*\
372 | nav aside
373 | \*----------------------------*/
374 | #nav-aside {
375 | position: fixed;
376 | right: 0;
377 | top: 0;
378 | bottom: 0;
379 | background-color: #fff;
380 | max-width: 360px;
381 | width: 100%;
382 | padding: 80px 20px;
383 | overflow-y: scroll;
384 | z-index: 99;
385 | -webkit-transform: translateX(100%);
386 | -ms-transform: translateX(100%);
387 | transform: translateX(100%);
388 | -webkit-transition: 0.3s all;
389 | transition: 0.3s all;
390 | }
391 | #nav-aside.active {
392 | -webkit-transform: translateX(0%);
393 | -ms-transform: translateX(0%);
394 | transform: translateX(0%);
395 | }
396 | .nav-aside-menu li a {
397 | font-family: 'Nunito Sans', sans-serif;
398 | font-weight:700;
399 | font-size:23px;
400 | }
401 | .nav-aside-social li {
402 | display: inline-block;
403 | }
404 | .nav-aside-social li > a {
405 | display: block;
406 | width: 30px;
407 | height: 30px;
408 | line-height: 30px;
409 | text-align: center;
410 | background-color: #212631;
411 | color: #FFF;
412 | border-radius: 2px;
413 | margin-right: 5px;
414 | -webkit-transition: 0.2s opacity;
415 | transition: 0.2s opacity;
416 | }
417 | .nav-aside-social li > a:hover, .nav-aside-social li > a:focus {
418 | opacity: 0.9;
419 | }
420 | .nav-aside-close {
421 | position: absolute;
422 | top: 0px;
423 | right: 0px;
424 | height: 70px;
425 | width: 70px;
426 | line-height: 70px;
427 | text-align: center;
428 | background-color: transparent;
429 | color: #212631;
430 | border: none;
431 | font-size: 22px;
432 | border-radius: 50%;
433 | padding: 0;
434 | }
435 | /*=========================================================
436 | HEADER
437 | ===========================================================*/
438 | .page-header {
439 | position: relative;
440 | margin: 0;
441 | padding-top: 60px;
442 | padding-bottom: 60px;
443 | background-color: #fbfbfd;
444 | border-bottom: 2px solid #F4f4f9;
445 | }
446 | .page-header .background-img {
447 | position: absolute;
448 | top: 0;
449 | left: 0;
450 | right: 0;
451 | bottom: 0;
452 | background-position: center;
453 | background-size: cover;
454 | }
455 | .page-header .background-img:after {
456 | content: '';
457 | position: absolute;
458 | top: 0;
459 | left: 0;
460 | right: 0;
461 | bottom: 0;
462 | background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(33, 38, 49, 0.3)), to(transparent));
463 | background-image: linear-gradient(to top, rgba(33, 38, 49, 0.3) 0%, transparent 100%);
464 | }
465 | #post-header.page-header {
466 | padding-top: 120px;
467 | }
468 | .page-header h1 {
469 | text-transform: capitalize;
470 | margin-bottom: 0px;
471 | }
472 | #post-header.page-header h1 {
473 | color: #FFF;
474 | }
475 | .page-header .post-meta {
476 | margin: 15px 0px;
477 | }
478 | .page-header .post-meta .post-date {
479 | color: #eceef2;
480 | }
481 | .page-header .page-header-breadcrumb {
482 | margin: 15px 0px;
483 | }
484 | .page-header .page-header-breadcrumb li {
485 | display: inline-block;
486 | }
487 | .page-header .page-header-breadcrumb li, .page-header .page-header-breadcrumb li a {
488 | font-size: 13px;
489 | text-transform: capitalize;
490 | color: #a7b3c6;
491 | }
492 | .page-header .page-header-breadcrumb li a {
493 | -webkit-transition: 0.2s color;
494 | transition: 0.2s color;
495 | }
496 | .page-header .page-header-breadcrumb li a:hover, .page-header .page-header-breadcrumb li a:focus {
497 | color: #0b0f28;
498 | text-decoration: none;
499 | }
500 | .page-header .page-header-breadcrumb li + li:before {
501 | content: '/';
502 | display: inline-block;
503 | margin: 0px 10px;
504 | }
505 | /*=========================================================
506 | POST
507 | ===========================================================*/
508 | /*----------------------------*\
509 | post
510 | \*----------------------------*/
511 | .post {
512 | margin-bottom: 40px;
513 | }
514 | .post .post-img {
515 | display: block;
516 | -webkit-transition: 0.2s opacity;
517 | transition: 0.2s opacity;
518 | }
519 | .post .post-img:hover, .post .post-img:focus {
520 | opacity: 0.9;
521 | }
522 | .post .post-img > img {
523 | width: 100%;
524 | }
525 | .post .post-meta {
526 | margin-top: 15px;
527 | margin-bottom: 15px;
528 | }
529 | .post-meta .post-category {
530 | font-size: 13px;
531 | text-transform: uppercase;
532 | padding: 3px 10px;
533 | font-weight: 600;
534 | border-radius: 2px;
535 | margin-right: 15px;
536 | color: #FFF;
537 | background-color: #212631;
538 | -webkit-transition: 0.2s opacity;
539 | transition: 0.2s opacity;
540 | }
541 | .post-meta .post-category:hover, .post-meta .post-category:focus {
542 | text-decoration: none;
543 | opacity: 0.9;
544 | }
545 | .post-meta .post-category.cat-1 {
546 | background-color: #4BB92F;
547 | }
548 | .post-meta .post-category.cat-2 {
549 | background-color: #ff8700;
550 | }
551 | .post-meta .post-category.cat-3 {
552 | background-color: #8d00ff;
553 | }
554 | .post-meta .post-category.cat-4 {
555 | background-color: #0078ff;
556 | }
557 | .post-meta .post-date {
558 | font-size: 13px;
559 | font-weight: 600;
560 | }
561 | .post .post-title {
562 | font-size: 18px;
563 | margin-bottom: 0px;
564 | height: 20px;
565 | /* display: block;
566 | display: -webkit-box;
567 | -webkit-box-orient: vertical;
568 | -webkit-line-clamp: 2;
569 | overflow: hidden; */
570 | }
571 |
572 | /*
573 | a.title-index {
574 | display: block;
575 | display: -webkit-box;
576 | -webkit-box-orient: vertical;
577 | -webkit-line-clamp: 2;
578 | overflow: hidden;
579 | } */
580 |
581 | .post-tags li {
582 | display:inline-block;
583 | margin-right:3px;
584 | margin-bottom:5px;
585 | }
586 | .post-tags li a {
587 | display:block;
588 | color:#fff;
589 | background-color: #212631;
590 | padding:3px 10px;
591 | font-weight:600;
592 | border-radius:2px;
593 | -webkit-transition:0.2s opacity;
594 | transition:0.2s opacity;
595 | }
596 | /*----------------------------*\
597 | post thumb
598 | \*----------------------------*/
599 | .post.post-thumb {
600 | position: relative;
601 | }
602 | .post.post-thumb .post-img:after {
603 | content: '';
604 | position: absolute;
605 | left: 0;
606 | right: 0;
607 | bottom: 0;
608 | top: 0;
609 | background: -webkit-gradient(linear, left bottom, left top, from(rgba(33, 38, 49, 0.3)), to(transparent));
610 | background: linear-gradient(to top, rgba(33, 38, 49, 0.3) 0%, transparent 100%);
611 | }
612 | .post.post-thumb .post-body {
613 | position: absolute;
614 | bottom: 0px;
615 | padding: 20px 15px;
616 | }
617 | .post.post-thumb .post-meta .post-date {
618 | color: #eceef2;
619 | }
620 | .post.post-thumb .post-title {
621 | font-size: 22px;
622 | }
623 | .post.post-thumb .post-title > a {
624 | color: #FFF;
625 | }
626 | /*----------------------------*\
627 | post widget
628 | \*----------------------------*/
629 | .post.post-widget:after {
630 | content: '';
631 | display: block;
632 | clear: both;
633 | }
634 | .post.post-widget .post-img {
635 | width: 90px;
636 | float: left;
637 | margin-right: 15px;
638 | }
639 | .post.post-widget .post-img img {
640 | width: 100%;
641 | }
642 | .post.post-widget .post-title {
643 | font-size: 18px;
644 | }
645 | /*----------------------------*\
646 | post row
647 | \*----------------------------*/
648 | .post.post-row:after {
649 | content: '';
650 | display: block;
651 | clear: both;
652 | }
653 | .post.post-row .post-img {
654 | width: 40%;
655 | float: left;
656 | }
657 | .post.post-row .post-body {
658 | margin-left: calc(40% + 30px);
659 | }
660 | .post.post-row .post-meta {
661 | margin-top: 0px;
662 | }
663 | .post.post-row .post-title {
664 | margin-bottom: 15px;
665 | }
666 | /*=========================================================
667 | POST PAGE
668 | ===========================================================*/
669 | .sticky-container {
670 | position: relative;
671 | padding-left: 80px;
672 | }
673 | .sticky-container .sticky-shares {
674 | position: absolute;
675 | top: 0;
676 | left: 0;
677 | }
678 | .sticky-shares a {
679 | display: block;
680 | margin-bottom: 10px;
681 | width: 40px;
682 | height: 40px;
683 | line-height: 40px;
684 | text-align: center;
685 | border-radius: 50%;
686 | background-color: #fbfbfd;
687 | color: #a7b3c6;
688 | border: 1px solid #eceef2;
689 | -webkit-transition: 0.2s all;
690 | transition: 0.2s all;
691 | }
692 | .sticky-shares a:hover {
693 | -webkit-transform: scale(1.3);
694 | -ms-transform: scale(1.3);
695 | transform: scale(1.3);
696 | }
697 | .sticky-shares a.share-facebook:hover {
698 | color: #3b5998;
699 | border-color: #3b5998;
700 | }
701 | .sticky-shares a.share-twitter:hover {
702 | color: #55acee;
703 | border-color: #55acee;
704 | }
705 | .sticky-shares a.share-google-plus:hover {
706 | color: #dd4b39;
707 | border-color: #dd4b39;
708 | }
709 | .sticky-shares a.share-pinterest:hover {
710 | color: #ff0000;
711 | border-color: #ff0000;
712 | }
713 | .sticky-shares a.share-linkedin:hover {
714 | color: #007bb5;
715 | border-color: #007bb5;
716 | }
717 | /*----------------------------*\
718 | author
719 | \*----------------------------*/
720 | .post-author .media .media-left {
721 | padding-right: 40px;
722 | }
723 | .post-author .media .media-left .media-object {
724 | width:120px;
725 | border-radius: 50%;
726 | }
727 | .post-author .author-social {
728 | margin-top:15px;
729 | }
730 | .post-author .author-social li {
731 | display: inline-block;
732 | margin-right: 5px;
733 | }
734 | .post-author .author-social li > a {
735 | display: block;
736 | width: 30px;
737 | height: 30px;
738 | line-height: 30px;
739 | text-align: center;
740 | background-color: #a7b3c6;
741 | color: #FFF;
742 | border-radius: 2px;
743 | -webkit-transition: 0.2s opacity;
744 | transition: 0.2s opacity;
745 | }
746 | .post-author .author-social li > a:hover, .post-author .author-social li > a:focus {
747 | color: #FFF;
748 | opacity: 0.9;
749 | }
750 | /*----------------------------*\
751 | comments
752 | \*----------------------------*/
753 | .post-comments .media {
754 | padding-top: 15px;
755 | border-top: 1px solid #eceef2;
756 | }
757 | .post-comments .media:nth-child(1) {
758 | padding-top: 0px;
759 | border-top: none;
760 | }
761 | .post-comments .media .media-left {
762 | padding-right: 15px;
763 | }
764 | .post-comments .media .media-left .media-object {
765 | width:70px;
766 | border-radius: 50%;
767 | }
768 | .post-comments .media .media-body .media-heading h4 {
769 | text-transform: capitalize;
770 | }
771 | .post-comments .media .media-body .media-heading .time {
772 | font-size: 13px;
773 | margin-right: 15px;
774 | color: #a7b3c6;
775 | }
776 | .post-comments .media .media-body .media-heading .reply {
777 | font-size: 13px;
778 | color: #a7b3c6;
779 | -webkit-transition: 0.2s color;
780 | transition: 0.2s color;
781 | }
782 | .post-comments .media .media-body .media-heading .reply:hover, .post-comments .media .media-body .media-heading .reply:focus {
783 | color: #212631;
784 | text-decoration: none;
785 | }
786 | /*=========================================================
787 | Aside
788 | ===========================================================*/
789 | .aside-widget {
790 | margin-bottom: 40px;
791 | }
792 | /*----------------------------*\
793 | category
794 | \*----------------------------*/
795 | .category-widget ul li {
796 | display:block;
797 | padding-bottom: 10px;
798 | border-bottom: 1px solid #eceef2;
799 | }
800 | .category-widget ul li + li {
801 | margin-top:10px;
802 | }
803 | .category-widget ul li > a {
804 | display:block;
805 | -webkit-transition:0.2s color;
806 | transition:0.2s color;
807 | }
808 | .category-widget ul li > a > span {
809 | float:right;
810 | color:#fff;
811 | background-color: #212631;
812 | padding:0px 5px;
813 | font-weight:600;
814 | border-radius:2px;
815 | }
816 | .category-widget ul li > a.cat-1 > span {
817 | background-color: #4BB92F;
818 | }
819 | .category-widget ul li > a.cat-2 > span {
820 | background-color: #ff8700;
821 | }
822 | .category-widget ul li > a.cat-3 > span {
823 | background-color: #8d00ff;
824 | }
825 | .category-widget ul li > a.cat-4 > span {
826 | background-color: #0078ff;
827 | }
828 | .category-widget ul li > a:hover, .category-widget ul li > a:focus {
829 | text-decoration:none;
830 | }
831 | .category-widget ul li > a.cat-1:hover, .category-widget ul li > a.cat-1:focus {
832 | color: #4BB92F;
833 | }
834 | .category-widget ul li > a.cat-2:hover, .category-widget ul li > a.cat-2:focus {
835 | color: #ff8700;
836 | }
837 | .category-widget ul li > a.cat-3:hover, .category-widget ul li > a.cat-3:focus {
838 | color: #0078ff;
839 | }
840 | .category-widget ul li > a.cat-4:hover, .category-widget ul li > a.cat-4:focus {
841 | color: #8d00ff;
842 | }
843 | /*----------------------------*\
844 | tags
845 | \*----------------------------*/
846 | .tags-widget ul li {
847 | display:inline-block;
848 | margin-right:3px;
849 | margin-bottom:5px;
850 | }
851 | .tags-widget ul li a {
852 | display:block;
853 | color:#fff;
854 | background-color: #212631;
855 | padding:3px 10px;
856 | font-weight:600;
857 | border-radius:2px;
858 | -webkit-transition:0.2s opacity;
859 | transition:0.2s opacity;
860 | }
861 | .tags-widget ul li a:hover, .tags-widget ul li a:focus {
862 | opacity:0.9;
863 | color:#fff;
864 | text-decoration:none;
865 | }
866 | /*----------------------------*\
867 | archive
868 | \*----------------------------*/
869 | .archive-widget ul li {
870 | display:block;
871 | padding-bottom: 10px;
872 | border-bottom: 1px solid #eceef2;
873 | }
874 | .archive-widget ul li + li {
875 | margin-top:10px;
876 | }
877 | .archive-widget ul li > a {
878 | display:block;
879 | }
880 | /*=========================================================
881 | FOOTER
882 | ===========================================================*/
883 | #footer {
884 | padding-bottom: 40px;
885 | margin-top: 40px;
886 | }
887 | #footer .container {
888 | padding-top: 80px;
889 | border-top: 1px solid #F4f4f9;
890 | }
891 | .footer-widget {
892 | margin-bottom: 40px;
893 | }
894 | .footer-widget .footer-title {
895 | margin-bottom: 40px;
896 | text-transform: capitalize;
897 | font-size: 18px;
898 | }
899 | .footer-widget a {
900 | color: #a7b3c6;
901 | -webkit-transition: 0.2s color;
902 | transition: 0.2s color;
903 | }
904 | .footer-widget a:hover, .footer-widget a:focus {
905 | text-decoration: none;
906 | color: #212631;
907 | }
908 | .footer-logo {
909 | margin-bottom: 40px;
910 | }
911 | .footer-nav li {
912 | display: inline-block;
913 | margin-right: 15px;
914 | }
915 | .footer-links li + li {
916 | margin-top: 5px;
917 | }
918 | .footer-copyright {
919 | margin-top: 20px;
920 | color: #a7b3c6;
921 | font-size: 13px;
922 | }
923 | .footer-newsletter form {
924 | position: relative;
925 | }
926 | .footer-newsletter form > input.input {
927 | padding-right: 55px;
928 | }
929 | .footer-newsletter form > .newsletter-btn {
930 | position: absolute;
931 | top: 0;
932 | right: 0;
933 | height: 40px;
934 | line-height: 40px;
935 | width: 40px;
936 | text-align: center;
937 | color: #a7b3c6;
938 | background: transparent;
939 | border: none;
940 | border-radius: 0px 2px 2px 0px;
941 | -webkit-transition: 0.2s opacity;
942 | transition: 0.2s opacity;
943 | }
944 | .footer-newsletter form > .newsletter-btn:hover {
945 | opacity: 0.9;
946 | }
947 | .footer-social {
948 | margin-top: 20px;
949 | }
950 | .footer-social li {
951 | display: inline-block;
952 | margin-right: 5px;
953 | }
954 | .footer-social li > a {
955 | display: block;
956 | width: 30px;
957 | height: 30px;
958 | line-height: 30px;
959 | text-align: center;
960 | background-color: #a7b3c6;
961 | color: #FFF;
962 | border-radius: 2px;
963 | -webkit-transition: 0.2s opacity;
964 | transition: 0.2s opacity;
965 | }
966 | .footer-social li > a:hover, .footer-social li > a:focus {
967 | color: #FFF;
968 | opacity: 0.9;
969 | }
970 | /*=========================================================
971 | RESPONSIVE
972 | ===========================================================*/
973 | @media only screen and (max-width: 991px) {
974 | #nav .nav-menu {
975 | display: none;
976 | }
977 | }
978 | @media only screen and (max-width: 767px) {
979 | .page-header h1 {
980 | font-size: 28px;
981 | }
982 | .post.post-row .post-img {
983 | width: 100%;
984 | float: none;
985 | }
986 | .post.post-row .post-body {
987 | margin-left: 0px;
988 | }
989 | .post.post-row .post-meta {
990 | margin-top: 15px;
991 | }
992 | .post.post-row .post-body p {
993 | display:none;
994 | }
995 | }
996 |
--------------------------------------------------------------------------------
/webmag/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/webmag/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/webmag/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/webmag/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/webmag/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/webmag/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
73 |
--------------------------------------------------------------------------------
/webmag/head.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | My Blogs | Dương Bắc Đông
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
27 |
28 |
--------------------------------------------------------------------------------
/webmag/img/about-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/about-1.jpg
--------------------------------------------------------------------------------
/webmag/img/about-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/about-2.jpg
--------------------------------------------------------------------------------
/webmag/img/ad-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/ad-1.jpg
--------------------------------------------------------------------------------
/webmag/img/ad-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/ad-2.jpg
--------------------------------------------------------------------------------
/webmag/img/author.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/author.png
--------------------------------------------------------------------------------
/webmag/img/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/avatar.png
--------------------------------------------------------------------------------
/webmag/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/logo.png
--------------------------------------------------------------------------------
/webmag/img/post-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-1.jpg
--------------------------------------------------------------------------------
/webmag/img/post-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-2.jpg
--------------------------------------------------------------------------------
/webmag/img/post-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-3.jpg
--------------------------------------------------------------------------------
/webmag/img/post-4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-4.jpg
--------------------------------------------------------------------------------
/webmag/img/post-5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-5.jpg
--------------------------------------------------------------------------------
/webmag/img/post-6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-6.jpg
--------------------------------------------------------------------------------
/webmag/img/post-page.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/post-page.jpg
--------------------------------------------------------------------------------
/webmag/img/widget-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/widget-1.jpg
--------------------------------------------------------------------------------
/webmag/img/widget-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/widget-2.jpg
--------------------------------------------------------------------------------
/webmag/img/widget-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/widget-3.jpg
--------------------------------------------------------------------------------
/webmag/img/widget-4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bacdong/PHP_Lesson3/42dda9b9bb9053e00297d6e922bf0d787b022336/webmag/img/widget-4.jpg
--------------------------------------------------------------------------------
/webmag/index.php:
--------------------------------------------------------------------------------
1 | query($query_id);
8 | // $post_id = $result_id->fetch_assoc();
9 | // //Lấy id bài viết - end
10 |
11 | // In ra 6 bài viết Recent Post
12 | $query = "SELECT p.*, p.id as 'id_post', c.id as 'id', c.theme as 'theme' FROM posts p LEFT JOIN categories c ON p.category_id = c.id WHERE status = 1 and category_id = c.id ORDER BY created_at desc limit 6";
13 | //$query = "SELECT * FROM posts ORDER BY created_at desc limit 6;";
14 | //die($query);
15 | $result = $connection->query($query);
16 | $posts = array();
17 | while($row = $result->fetch_assoc()) {
18 | $posts[] = $row;
19 | }
20 | // In ra 6 bài viết Recent Post - end
21 |
22 | //In ra bài viết lớn
23 | $query_2 = "SELECT p.*, p.id as 'id_post', c.id as 'id', c.theme as 'theme' FROM posts p LEFT JOIN categories c ON p.category_id = c.id WHERE status = 1 and category_id = c.id ORDER BY created_at desc limit 6,1;";
24 | $result_2 = $connection->query($query_2);
25 | $posts_2 = array();
26 | while($row = $result_2->fetch_assoc()) {
27 | $posts_2[] = $row;
28 | }
29 | //In ra bài viết lớn - end
30 |
31 | //In ra tiếp tục 6 bài sau bài viết lớn
32 | $query_3 = "SELECT p.*, p.id as 'id_post', c.id as 'id', c.theme as 'theme' FROM posts p LEFT JOIN categories c ON p.category_id = c.id WHERE status = 1 and category_id = c.id ORDER BY created_at desc limit 7,6;";
33 | $result_3 = $connection->query($query_3);
34 | $posts_3 = array();
35 | while($row = $result_3->fetch_assoc()) {
36 | $posts_3[] = $row;
37 | }
38 | //In ra tiếp tục 6 bài sau bài viết lớn - end
39 |
40 | // foreach ($posts as $cate) {
41 | // echo "";
42 | // print_r($cate);
43 | // echo "";
44 | // }
45 | ?>
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
Recent Posts
69 |
70 |
71 |
72 |
75 |
76 |
77 |
78 |
79 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
102 |
103 |
104 |
105 |
112 |
113 |
114 |
115 |
116 |
117 |
120 |
121 |
122 |
123 |
124 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
175 |
176 |
177 |
178 |
204 |
205 |
206 |
207 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
--------------------------------------------------------------------------------
/webmag/js/bootstrap.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v3.3.7 (http://getbootstrap.com)
3 | * Copyright 2011-2016 Twitter, Inc.
4 | * Licensed under the MIT license
5 | */
6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
--------------------------------------------------------------------------------
/webmag/js/main.js:
--------------------------------------------------------------------------------
1 | (function($) {
2 | "use strict"
3 |
4 | // Fixed Nav
5 | var lastScrollTop = 0;
6 | $(window).on('scroll', function() {
7 | var wScroll = $(this).scrollTop();
8 | if ( wScroll > $('#nav').height() ) {
9 | if ( wScroll < lastScrollTop ) {
10 | $('#nav-fixed').removeClass('slide-up').addClass('slide-down');
11 | } else {
12 | $('#nav-fixed').removeClass('slide-down').addClass('slide-up');
13 | }
14 | }
15 | lastScrollTop = wScroll
16 | });
17 |
18 | // Search Nav
19 | $('.search-btn').on('click', function () {
20 | $('.search-form').addClass('active');
21 | });
22 |
23 | $('.search-close').on('click', function () {
24 | $('.search-form').removeClass('active');
25 | });
26 |
27 | // Aside Nav
28 | $(document).click(function(event) {
29 | if (!$(event.target).closest($('#nav-aside')).length) {
30 | if ( $('#nav-aside').hasClass('active') ) {
31 | $('#nav-aside').removeClass('active');
32 | $('#nav').removeClass('shadow-active');
33 | } else {
34 | if ($(event.target).closest('.aside-btn').length) {
35 | $('#nav-aside').addClass('active');
36 | $('#nav').addClass('shadow-active');
37 | }
38 | }
39 | }
40 | });
41 |
42 | $('.nav-aside-close').on('click', function () {
43 | $('#nav-aside').removeClass('active');
44 | $('#nav').removeClass('shadow-active');
45 | });
46 |
47 | // Sticky Shares
48 | var $shares = $('.sticky-container .sticky-shares'),
49 | $sharesHeight = $shares.height(),
50 | $sharesTop,
51 | $sharesCon = $('.sticky-container'),
52 | $sharesConTop,
53 | $sharesConleft,
54 | $sharesConHeight,
55 | $sharesConBottom,
56 | $offsetTop = 80;
57 |
58 | function setStickyPos () {
59 | if ($shares.length > 0) {
60 | $sharesTop = $shares.offset().top
61 | $sharesConTop = $sharesCon.offset().top;
62 | $sharesConleft = $sharesCon.offset().left;
63 | $sharesConHeight = $sharesCon.height();
64 | $sharesConBottom = $sharesConHeight + $sharesConTop;
65 | }
66 | }
67 |
68 | function stickyShares (wScroll) {
69 | if ($shares.length > 0) {
70 | if ( $sharesConBottom - $sharesHeight - $offsetTop < wScroll ) {
71 | $shares.css({ position: 'absolute', top: $sharesConHeight - $sharesHeight , left:0});
72 | } else if ( $sharesTop < wScroll + $offsetTop ) {
73 | $shares.css({ position: 'fixed', top: $offsetTop, left: $sharesConleft });
74 | } else {
75 | $shares.css({position: 'absolute', top: 0, left: 0});
76 | }
77 | }
78 | }
79 |
80 | $(window).on('scroll', function() {
81 | stickyShares($(this).scrollTop());
82 | });
83 |
84 | $(window).resize(function() {
85 | setStickyPos();
86 | stickyShares($(this).scrollTop());
87 | });
88 |
89 | setStickyPos();
90 |
91 | })(jQuery);
92 |
--------------------------------------------------------------------------------
/webmag/mainnav.php:
--------------------------------------------------------------------------------
1 | query($query_categories);
7 | $categories = array();
8 | while($row = $result_categories->fetch_assoc()) {
9 | $categories[] = $row;
10 | }
11 | // Load categories - end
12 |
13 | // // Categories id
14 | // $query_categories_id = "SELECT id FROM categories;";
15 | // $result_categories_id = $connection->query($query_categories_id);
16 | // $categories_id = array();
17 | // while($row = $result_categories_id->fetch_assoc()) {
18 | // $categories_id[] = $row;
19 | // }
20 | // // Categories id - end
21 |
22 | ?>
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
81 |
82 |
83 |
84 |
85 |
86 |
Recent Posts
87 |
88 |
89 |
92 |
93 |
94 |
95 |
96 |
99 |
100 |
101 |
102 |
103 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
Follow us
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
--------------------------------------------------------------------------------
John Doe
132 | March 27, 2018 at 8:00 am 133 | Reply 134 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
136 | 137 | 138 |John Doe
145 | March 27, 2018 at 8:00 am 146 | Reply 147 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
149 |John Doe
164 | March 27, 2018 at 8:00 am 165 | Reply 166 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
168 |