Skip to content

Instantly share code, notes, and snippets.

@gknasln
Created October 20, 2018 11:55
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/08126b3d7f2f09d68a416ff76f061b37 to your computer and use it in GitHub Desktop.
Save gknasln/08126b3d7f2f09d68a416ff76f061b37 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;
}
.dual-selection-container
span#title You can order the items on right list by click to 'move icon'
.all-elements.element-list
.button-container
button.add
button.remove
.selected-elements.element-list
.page-button-container
button.save Save
button.cancel Cancel
const records = [
{
actionType: 'new-record',
recordName: 'Beymen',
recordTime: '18 Nisan 2018 - 14:53'
},
{
actionType: 'schedule'
}];
function createTimeline(data){
var i, html = '';
data.forEach(currentData => {
if(currentData.actionType == 'new-record'){
html += createNewRecord(currentData);
html +=
}
});
document.querySelector('.container').innerHTML = html;
}
function createNewRecord(data){
return ' ' +
'<div class="new-record action">' +
'<img src=""> ' +
'</div>';
}
function createLine(){
return `
<div class=>(records);
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment