Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
caac929d
Commit
caac929d
authored
Oct 13, 2019
by
I Gusti Agung Nanda Dharma Wangsa
Browse files
Implement display time at footer page
parent
20d36906
Pipeline
#23133
failed with stages
in 7 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
assets/js/components/Footer.jsx
View file @
caac929d
...
...
@@ -2,13 +2,24 @@ import React from 'react';
import
{
Container
}
from
'
semantic-ui-react
'
;
export
default
class
Footer
extends
React
.
Component
{
state
()
{
currentTime
:
null
}
render
()
{
return
(
<
div
className
=
"footer"
>
<
Container
textAlign
=
"center"
>
<
h5
>
All Rights Reserved © 2017
</
h5
>
<
h5
>
Date/Time:
{
this
.
state
.
currentTime
}
<
span
id
=
"datetime"
></
span
></
h5
>
</
Container
>
</
div
>
);
}
componentDidMount
()
{
setInterval
(
()
=>
{
this
.
setState
({
currentTime
:
new
Date
().
toLocaleString
()
})
},
1000
)
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment