这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed

pull #47

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
293 commits
Select commit Hold shift + click to select a range
d8dc4bc
[imad-console] Updates ui/signup.html
ramit0402 Sep 29, 2016
fa3dc44
[imad-console] Updates ui/index.html
ramit0402 Oct 3, 2016
03c26c7
Add files via upload
ramit0402 Oct 3, 2016
ae24e17
Delete index.php
ramit0402 Oct 3, 2016
4d0bfa2
Delete index.html
ramit0402 Oct 3, 2016
e3df23d
Add files via upload
ramit0402 Oct 3, 2016
8c131cd
Update server.js
ramit0402 Oct 4, 2016
bbe8815
Update and rename index.php to index.html
ramit0402 Oct 5, 2016
6e9dd4f
Update style.css
ramit0402 Oct 5, 2016
0c2779a
Update server.js
ramit0402 Oct 5, 2016
23b044f
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
850eb98
[imad-console] Updates ui/index.html
ramit0402 Oct 5, 2016
7836d2f
[imad-console] Updates ui/index.html
ramit0402 Oct 5, 2016
4df01d0
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
e119036
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
64267c2
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
b423692
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
f1d1887
[imad-console] Updates ui/style.css
ramit0402 Oct 5, 2016
31df54e
[imad-console] Updates ui/style.css
ramit0402 Oct 6, 2016
5551887
[imad-console] Updates ui/style.css
ramit0402 Oct 6, 2016
82d04ff
[imad-console] Updates ui/style.css
ramit0402 Oct 6, 2016
b4f659c
[imad-console] Updates ui/style.css
ramit0402 Oct 6, 2016
bce2986
[imad-console] Updates ui/style.css
ramit0402 Oct 6, 2016
9d9be90
[imad-console] Updates ui/index.html
ramit0402 Oct 6, 2016
481084e
[imad-console] Updates ui/style.css
ramit0402 Oct 22, 2016
3a7bbae
Delete background.png
ramit0402 Oct 29, 2016
065744b
Delete connect.php
ramit0402 Oct 29, 2016
b94d036
Delete contact.html
ramit0402 Oct 29, 2016
47761dd
Delete logo.png
ramit0402 Oct 29, 2016
d7d93e6
Delete register.php
ramit0402 Oct 29, 2016
aed6e7c
Delete register_insert.php
ramit0402 Oct 29, 2016
83b2b67
Delete signup.html
ramit0402 Oct 29, 2016
34f9093
Delete signup.php
ramit0402 Oct 29, 2016
5a1e234
Delete stylec.css
ramit0402 Oct 29, 2016
20a28ea
Delete styles.css
ramit0402 Oct 29, 2016
5ecaec0
Update index.html
ramit0402 Oct 29, 2016
d9d3317
Update index.html
ramit0402 Oct 29, 2016
ea6020c
Add files via upload
ramit0402 Oct 29, 2016
9e3ea71
Add files via upload
ramit0402 Oct 29, 2016
7ca28cb
Add files via upload
ramit0402 Oct 29, 2016
2fdb061
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
2e93a7b
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
35fbda0
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
655de61
Delete bootstrap.js
ramit0402 Oct 29, 2016
fad96b3
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
9f98d11
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
847717c
Delete jquery.js
ramit0402 Oct 29, 2016
89e7c67
Delete npm.js
ramit0402 Oct 29, 2016
2dd823b
Add files via upload
ramit0402 Oct 29, 2016
db20a4f
Add files via upload
ramit0402 Oct 29, 2016
4d799b3
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
e1a6b73
[imad-console] Updates css/bootstrap.css
ramit0402 Oct 29, 2016
ad71aa4
[imad-console] Updates css/style.css
ramit0402 Oct 29, 2016
c42dadd
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
695a6fd
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
d21363c
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
ae24391
[imad-console] Updates css/bootstrap.css
ramit0402 Oct 29, 2016
9406d12
[imad-console] Updates css/bootstrap.css
ramit0402 Oct 29, 2016
6ca0fdb
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
b28a8c2
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
64cd4d9
[imad-console] Updates js/npm.js
ramit0402 Oct 29, 2016
507a49c
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
4708a06
Add files via upload
ramit0402 Oct 29, 2016
ac26fe9
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
f105e91
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
532c52e
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
73be1a4
[imad-console] Updates server.js
ramit0402 Oct 29, 2016
da72058
Delete dropdown.js
ramit0402 Oct 29, 2016
298c0c6
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
dd9cc46
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
fd71d25
[imad-console] Updates css/style.css
ramit0402 Oct 29, 2016
7493b33
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
ac40468
[imad-console] Updates ui/index.html
ramit0402 Oct 29, 2016
0dcac68
[imad-console] Updates css/style.css
ramit0402 Oct 29, 2016
e0445bd
Update style.css
ramit0402 Oct 29, 2016
c98fc87
[imad-console] Updates css/style.css
ramit0402 Oct 30, 2016
ed7c2ef
[imad-console] Updates css/style.css
ramit0402 Oct 30, 2016
2583cf4
[imad-console] Updates css/style.css
ramit0402 Oct 30, 2016
f9d5ef5
[imad-console] Updates css/style.css
ramit0402 Oct 30, 2016
d92b4f1
[imad-console] Updates ui/index.html
ramit0402 Oct 31, 2016
408a981
[imad-console] Updates server.js
ramit0402 Oct 31, 2016
1948191
Add files via upload
ramit0402 Oct 31, 2016
c3da06b
Update style-signup.css
ramit0402 Oct 31, 2016
253f5e1
Update style-login.css
ramit0402 Oct 31, 2016
6a541f8
[imad-console] Updates server.js
ramit0402 Oct 31, 2016
b841260
Add files via upload
ramit0402 Oct 31, 2016
35bfdf5
[imad-console] Updates ui/index.html
ramit0402 Oct 31, 2016
53ebf4b
[imad-console] Updates ui/index.html
ramit0402 Oct 31, 2016
67b6fb2
[imad-console] Updates server.js
ramit0402 Oct 31, 2016
de608f6
Add files via upload
ramit0402 Oct 31, 2016
718abf3
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
c906654
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
665b2b8
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
f6bc358
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
b16ef92
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
fb20b20
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
a0be79e
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
cf6148e
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
fb5293c
Update and rename signup.html to signup.php
ramit0402 Nov 3, 2016
02086de
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
632519c
[imad-console] Updates ui/index.html
ramit0402 Nov 3, 2016
9c97e2a
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
18f2cf2
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
73223ad
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
8277a0e
Delete signup.php
ramit0402 Nov 3, 2016
000cb14
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
2e0d121
[imad-console] Updates ui/index.html
ramit0402 Nov 3, 2016
997e344
Add files via upload
ramit0402 Nov 3, 2016
6ededa4
[imad-console] Updates ui/index.html
ramit0402 Nov 3, 2016
2c698f2
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
7f6ab67
[imad-console] Updates server.js
ramit0402 Nov 3, 2016
ff24634
Update index.html
ramit0402 Nov 11, 2016
b957862
Delete logo.png
ramit0402 Nov 11, 2016
54ae8df
Delete logo1.png
ramit0402 Nov 11, 2016
0d2534b
Delete logo2.png
ramit0402 Nov 11, 2016
32273d7
Delete music.jpg
ramit0402 Nov 11, 2016
cc5f616
Delete music1.jpg
ramit0402 Nov 11, 2016
ab33045
Delete music5.jpg
ramit0402 Nov 11, 2016
acdb5fa
Update style.css
ramit0402 Nov 11, 2016
8693d82
Add files via upload
ramit0402 Nov 11, 2016
7cb044b
[imad-console] Updates server.js
ramit0402 Nov 11, 2016
819d7cf
[imad-console] Updates server.js
ramit0402 Nov 11, 2016
a015a5c
[imad-console] Updates server.js
ramit0402 Nov 11, 2016
1cf2e25
[imad-console] Updates css/style.css
ramit0402 Nov 11, 2016
4b0709a
[imad-console] Updates ui/style.css
ramit0402 Nov 11, 2016
c60cc44
Update index.html
ramit0402 Nov 11, 2016
0abac9a
Update style.css
ramit0402 Nov 11, 2016
8e58d19
[imad-console] Updates ui/index.html
ramit0402 Nov 11, 2016
de6aa8d
Add files via upload
ramit0402 Nov 11, 2016
c60553b
Add files via upload
ramit0402 Nov 11, 2016
ebb864a
[imad-console] Updates server.js
ramit0402 Nov 11, 2016
4e02c79
Add files via upload
ramit0402 Nov 12, 2016
b594452
Update index.html
ramit0402 Nov 12, 2016
fa512e9
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
55dc7db
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
951aebd
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
84d5114
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
6bfdd94
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
0d00bb0
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
51e9139
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
e69aca1
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
0d279ad
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
b7477ad
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
55f126a
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
8afddec
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
1bbf2f0
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
9dd9866
Update and rename style-trending.css to style-article.css
ramit0402 Nov 12, 2016
67b6fde
Delete style-signup.css
ramit0402 Nov 12, 2016
254d62c
Delete style-login.css
ramit0402 Nov 12, 2016
f00c796
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
27b0db7
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
a9292e4
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
2f1df6c
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
2dacd10
Add files via upload
ramit0402 Nov 12, 2016
1583b3c
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
ce62079
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
b709916
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
4d4eb43
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
7a840ef
Delete article1_p2.PNG
ramit0402 Nov 12, 2016
7c13631
Delete article1_p1.png
ramit0402 Nov 12, 2016
a9a0915
Add files via upload
ramit0402 Nov 12, 2016
970c578
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
be2a0c5
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
fbda751
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
68e6711
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
954f340
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
4db9846
Add files via upload
ramit0402 Nov 12, 2016
08b9a08
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
6b0a5a1
Add files via upload
ramit0402 Nov 12, 2016
3474e08
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
651a02c
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
41881f2
Add files via upload
ramit0402 Nov 12, 2016
eea8528
[imad-console] Updates css/style-article.css
ramit0402 Nov 12, 2016
0e5b4d3
[imad-console] Updates css/style-article.css
ramit0402 Nov 12, 2016
7b5aede
[imad-console] Updates css/style-article.css
ramit0402 Nov 12, 2016
ec65678
[imad-console] Updates css/style-article.css
ramit0402 Nov 12, 2016
8256b1c
[imad-console] Updates css/style-article.css
ramit0402 Nov 12, 2016
211b26e
Add files via upload
ramit0402 Nov 12, 2016
4289921
Delete article3_p1.jpg
ramit0402 Nov 12, 2016
c8fea1e
Add files via upload
ramit0402 Nov 12, 2016
d07db35
Add files via upload
ramit0402 Nov 12, 2016
1cc4758
Add files via upload
ramit0402 Nov 12, 2016
fe33f49
Delete article3_p1.jpg
ramit0402 Nov 12, 2016
0678906
Add files via upload
ramit0402 Nov 12, 2016
e3e69b1
Delete article3_p1.jpg
ramit0402 Nov 12, 2016
306af96
Add files via upload
ramit0402 Nov 12, 2016
3ba0241
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
72a79ed
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
c25e891
[imad-console] Updates server.js
ramit0402 Nov 12, 2016
005a45a
Add files via upload
ramit0402 Nov 12, 2016
bb8ab5f
Delete article4_p2.jpg
ramit0402 Nov 12, 2016
2668d2d
Delete article4_p3.jpg
ramit0402 Nov 12, 2016
fc2e927
Add files via upload
ramit0402 Nov 12, 2016
b016b4f
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
027adad
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
fdd9adb
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
8d69f63
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
1c84cfd
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
a263254
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
084e49f
Delete article4_p1.jpg
ramit0402 Nov 12, 2016
a86728e
Delete article4_p2.jpg
ramit0402 Nov 12, 2016
3e9a182
Delete article4_p3.jpg
ramit0402 Nov 12, 2016
cd952e0
Add files via upload
ramit0402 Nov 12, 2016
5295e5f
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
b550f7e
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
303ad0f
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
cd143fa
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
8919c9f
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
83d5b24
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
2280aec
[imad-console] Updates ui/index.html
ramit0402 Nov 12, 2016
eb0f3aa
Update server.js
ramit0402 Nov 15, 2016
82b2329
Update main.js
ramit0402 Nov 15, 2016
f4280c0
Delete trending.html
ramit0402 Nov 15, 2016
dc570dd
Delete signup.php
ramit0402 Nov 15, 2016
0b396dd
Delete login.html
ramit0402 Nov 15, 2016
81bf1f7
Delete style.css
ramit0402 Nov 15, 2016
3ac14b6
Create style.css
ramit0402 Nov 17, 2016
3a86b64
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
891ca1d
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
1eb15ae
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
540030e
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
5366e35
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
fe19c39
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
d394b66
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
9c3fa51
[imad-console] Updates server.js
ramit0402 Nov 17, 2016
f6b27ac
[imad-console] Updates js/main.js
ramit0402 Nov 17, 2016
8dff92e
[imad-console] Updates js/main.js
ramit0402 Nov 17, 2016
482e776
[imad-console] Updates js/main.js
ramit0402 Nov 17, 2016
8895fe1
[imad-console] Updates js/main.js
ramit0402 Nov 18, 2016
586ec30
Create article.js
ramit0402 Nov 18, 2016
ac38a6d
Update server.js
ramit0402 Nov 18, 2016
fa65977
[imad-console] Updates ui/index.html
ramit0402 Nov 19, 2016
36c58b6
[imad-console] Updates css/style.css
ramit0402 Nov 19, 2016
ba200cb
[imad-console] Updates css/style.css
ramit0402 Nov 19, 2016
1df8a7a
[imad-console] Updates js/article.js
ramit0402 Nov 20, 2016
98dfd2c
[imad-console] Updates server.js
ramit0402 Nov 20, 2016
15afe63
[imad-console] Updates server.js
ramit0402 Nov 20, 2016
56e78d3
[imad-console] Updates server.js
ramit0402 Nov 20, 2016
6b903fa
[imad-console] Updates css/style.css
ramit0402 Nov 20, 2016
9b14060
[imad-console] Updates ui/index.html
ramit0402 Nov 20, 2016
83773ef
[imad-console] Updates server.js
ramit0402 Nov 20, 2016
4f652fa
Update index.html
ramit0402 Nov 20, 2016
6a5c884
Update index.html
ramit0402 Nov 20, 2016
42eeb8c
[imad-console] Updates ui/index.html
ramit0402 Nov 20, 2016
3e6a2e4
Update index.html
ramit0402 Nov 20, 2016
9e8dfc1
[imad-console] Updates ui/index.html
ramit0402 Nov 20, 2016
a487664
[imad-console] Updates ui/index.html
ramit0402 Nov 20, 2016
454b5ca
[imad-console] Updates css/style.css
ramit0402 Nov 20, 2016
77b596e
[imad-console] Updates css/style.css
ramit0402 Nov 20, 2016
69bb4c9
[imad-console] Updates css/style.css
ramit0402 Nov 20, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,757 changes: 6,757 additions & 0 deletions css/bootstrap.css

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions css/style-article.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* Navbar */
.navbar {
font-weight: bold;
font-size: 16px;
background: #303030;
padding-top: 5px;
}

.navbar-inverse {
font-weight: bold;
font-size: 16px;
background: #303030;
}

.navbar-collapse{
padding-top: 12px;
}

.navbar-brand img{
height: 55px;
}

.dropdown-menu{
border-radius: 7px;
}


/* Container */
.container{
margin-top: 91px;
}


.container img {
margin:20px 0px 30px 0px;
}
203 changes: 203 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
/* Navbar */
.navbar {
font-weight: bold;
font-size: 16px;
background: #303030;
padding-top: 5px;
}

.navbar-inverse {
font-weight: bold;
font-size: 16px;
background: #303030;
}

.navbar-collapse{
padding-top: 12px;
}

.navbar-brand img{
height: 55px;
}

.dropdown-menu{
background:#424242;
color:white;
border-radius: 7px;
}

button {
padding: 0;
border: none;
background: none;
width:100%;
}


/* Container */
.container{
padding-top: 91px;
}


/* Side Nav */
.sidenav {
margin-top:71px;
height: 100%;
width: 0;
position: fixed;
z-index: 16;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.2s;
padding-top: 60px;
}

.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 15px;
color: #ffffff;
display: block;
transition: 0.1s
}

.panel-body a{
color: #000;
}

.sidenav a:hover, .offcanvas a:focus{
color: #f1f1f1;
background: #3f3f3f;
}

a.closebtn:hover {
background-color: transparent;
}

.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}

@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}

.panel-body{
padding: 0px;
}

.panel-body ul{
background: #c1c1c1;
margin: 0px;
list-style: none;
padding-left: 10px;
}

.panel-default{
border: 0px;
}

.panel-default > .panel-heading {
color: #333;
background-color: #111;
margin: 0px;
padding: 0px;
}

.panel-heading{
padding: 2px;
background: #000;
}

.panel-group{
margin-bottom: 100px;
}

/* Main Content */
.row .col-md-12{
padding-top: 40px;
}

.articles{
padding-top:71px;
}

h1{
font-weight:bold;
font-size:30px;
}

.maincontent img{
width: 230px;
border-radius: 50%;
}

h3{
font-weight: bold;
}

.col-md-5{
margin-top: 230px;
margin-bottom: 230px;
}

.form-horizontal{
padding: 5px ;
color: #000000;
background: transparent;
border-radius: 10px;
border:1px solid #000000;
}

.form-control{
color: #000000;
background: transparent;
}

.btn-default{
color: #ffffff;
background: rgba(0, 0, 0, 0.5);
border:0px;
width: 80px;
}

.btn-default:hover{
background: #fff;
color: #000;
}

.articlelink{
color: white;
}

.articlelink:hover{
color: white;
}


/* Caruosel */
.carousel-inner .item img{
width: 1080px;
height: 360px;
}

.carousel-caption{
font-size:150%;
right: 0%;
left: 0%;
padding: 1% 10%;
text-align: left;
background: #00358c; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(left, #00358c , transparent); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(right, #00358c, transparent; /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(right, #00358c, transparent); /* For Firefox 3.6 to 15 */
background: linear-gradient(to right, #00358c , transparent); /* Standard syntax */
}
Binary file added fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
Binary file added images/article1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article1_p1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article1_p2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article1_p3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article1_p4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article2_p1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article3_p3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article4_p1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article4_p2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/article4_p3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/carousel-art1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/carousel-art2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/carousel-art3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/carousel-art4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/carousel-art5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/login.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo_blog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/signup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$(document).ready(function() {
setBindings();
});

function setBindings() {
$("nav a").click(function(e){
e.preventDefault();
var sectionID = e.currentTarget.id+"Section"
$("html body").animate({
scrollTop: $("#"+sectionID).offset().top
},1000)
})
}
99 changes: 99 additions & 0 deletions js/article.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
var currentArticleTitle = window.location.pathname.split('/')[2];

function loadCommentForm () {
var commentFormHtml = `
<h5>Submit a comment</h5>
<textarea id="comment_text" rows="5" cols="100" placeholder="Enter your comment here..."></textarea>
<br/>
<input type="submit" id="submit" value="Submit" />
<br/>
`;
document.getElementById('comment_form').innerHTML = commentFormHtml;

// Submit username/password to login
var submit = document.getElementById('submit');
submit.onclick = function () {
// Create a request object
var request = new XMLHttpRequest();

// Capture the response and store it in a variable
request.onreadystatechange = function () {
if (request.readyState === XMLHttpRequest.DONE) {
// Take some action
if (request.status === 200) {
// clear the form & reload all the comments
document.getElementById('comment_text').value = '';
loadComments();
} else {
alert('Error!! Could not submit comment');
}
submit.value = 'Submit';
}
};

// Make the request
var comment = document.getElementById('comment_text').value;
request.open('POST', '/submit-comment/' + currentArticleTitle, true);
request.setRequestHeader('Content-Type', 'application/json');
request.send(JSON.stringify({comment: comment}));
submit.value = 'Submitting...';

};
}

function loadLogin () {
// Check if the user is already logged in
var request = new XMLHttpRequest();
request.onreadystatechange = function () {
if (request.readyState === XMLHttpRequest.DONE) {
if (request.status === 200) {
loadCommentForm(this.responseText);
}
}
};

request.open('GET', '/check-login', true);
request.send(null);
}

function escapeHTML (text)
{
var $text = document.createTextNode(text);
var $div = document.createElement('div');
$div.appendChild($text);
return $div.innerHTML;
}

function loadComments () {
// Check if the user is already logged in
var request = new XMLHttpRequest();
request.onreadystatechange = function () {
if (request.readyState === XMLHttpRequest.DONE) {
var comments = document.getElementById('comments');
if (request.status === 200) {
var content = '';
var commentsData = JSON.parse(this.responseText);
for (var i=0; i< commentsData.length; i++) {
var time = new Date(commentsData[i].timestamp);
content += `<div class="comment">
<p>${escapeHTML(commentsData[i].comment)}</p>
<div class="commenter">
${commentsData[i].username} - ${time.toLocaleTimeString()} on ${time.toLocaleDateString()}
</div>
</div>`;
}
comments.innerHTML = content;
} else {
comments.innerHTML('Oops! Could not load comments!');
}
}
};

request.open('GET', '/get-comments/' + currentArticleTitle, true);
request.send(null);
}


// The first thing to do is to check if the user is logged in!
loadLogin();
loadComments();
Loading