Skip to content

Instantly share code, notes, and snippets.

@gknasln
Last active October 14, 2018 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gknasln/b22e884309d379bee49e2ee8893592c5 to your computer and use it in GitHub Desktop.
Save gknasln/b22e884309d379bee49e2ee8893592c5 to your computer and use it in GitHub Desktop.
Untitled
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;
}
<div class="container">
</div>
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);
{"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