Last active
October 14, 2018 21:07
-
-
Save gknasln/b22e884309d379bee49e2ee8893592c5 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
background: rgb(220, 200, 200); | |
} | |
.container{ | |
width: 100%; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} | |
.action{ | |
position: relative; | |
width: 40%; | |
height: 130px; | |
display: flex; | |
justify-content: center; | |
margin-top: 50px; | |
background: white; | |
border: 1px solid gray; | |
} | |
.action #icon{ | |
width: 40px; | |
height: 40px; | |
margin-top: -50px; | |
border-radius: 50%; | |
background: lightblue; | |
} | |
.timeline{ | |
width: 1px; | |
height: 100px; | |
background: black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const records = [ | |
{ | |
actionType: 'new-record', | |
recordName: 'Beymen', | |
recordTime: '18 Nisan 2018 - 14:53' | |
}, | |
{ | |
actionType: 'schedule' | |
} | |
function createTimeline(data){ | |
var i; | |
data.forEach(currentData => { | |
if(currentData.actionType == 'new-record'){ | |
createNewRecord(currentData); | |
} | |
}); | |
} | |
function createNewRecord(data){ | |
return ' ' + | |
'<div class="new-record action">' + | |
'<img src=""> ' + | |
'</div>'; | |
} | |
createTimeLine(records); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment