Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<div class="todolist">
<div class='border'>
	<div class="header">
		<div class="header_content"></div>
		<div class="serclAdd">+</div>
	</div>
	<div class="content">
		<div class="content_itm">
			<div class="content_header">
				<div class="left_content">
					<div class="prioritet">1N</div>
				    <div class="title">Some Content Heh</div>
				    <div class="count"><p class="countOne">0</p>/<p class="countTwo">0</p></div>
				    <div class="datePost">03.11.2020</div>
			 	</div>
			    <div class="right_content">
		 			<div class="right_itm" id="detailItm">D</div>
					<div class="right_itm" id="resizeItm">R</div>
					<div class="right_itm" id="deleteItm">X</div>
				</div>
			</div>
			<div class="content_text">
			    Var 1
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate voluptas 
                culpa nemo quisquam nulla eveniet excepturi pariatur quas, quia et, cumque? 
                Aliquam, debitis esse modi inventore porro, non quod ratione.
			</div>
		</div>
		<div class="content_itm">
			<div class="content_header">
				<div class="left_content">
					<div class="prioritet">1N</div>
				    <div class="title">Some Content Heh</div>
				    <div class="count"><p class="countOne">0</p>/<p class="countTwo">0</p></div>
				    <div class="datePost">03.11.2020</div>
			 	</div>
			    <div class="right_content">
		 			<div class="right_itm" id="detailItm">D</div>
					<div class="right_itm" id="resizeItm">R</div>
					<div class="right_itm" id="deleteItm">X</div>
				</div>
			</div>
			<div class="content_text">
			    Var 2
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate voluptas 
                culpa nemo quisquam nulla eveniet excepturi pariatur quas, quia et, cumque? 
                Aliquam, debitis esse modi inventore porro, non quod ratione.
			</div>
		</div>
			<div class="content_itm">
			<div class="content_header">
				<div class="left_content">
					<div class="prioritet">1N</div>
				    <div class="title">Some Content Heh</div>
				    <div class="count"><p class="countOne">0</p>/<p class="countTwo">0</p></div>
				    <div class="datePost">03.11.2020</div>
			 	</div>
			    <div class="right_content">
		 			<div class="right_itm" id="detailItm">D</div>
					<div class="right_itm" id="resizeItm">R</div>
					<div class="right_itm" id="deleteItm">X</div>
				</div>
			</div>
			<div class="content_text">
			    Var 3
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate voluptas 
                culpa nemo quisquam nulla eveniet excepturi pariatur quas, quia et, cumque? 
                Aliquam, debitis esse modi inventore porro, non quod ratione.
			</div>
		</div>
			<div class="content_itm">
			<div class="content_header">
				<div class="left_content">
					<div class="prioritet">1N</div>
				    <div class="title">Some Content Heh</div>
				    <div class="count"><p class="countOne">0</p>/<p class="countTwo">0</p></div>
				    <div class="datePost">03.11.2020</div>
			 	</div>
			    <div class="right_content">
		 			<div class="right_itm" id="detailItm">D</div>
					<div class="right_itm" id="resizeItm">R</div>
					<div class="right_itm" id="deleteItm">X</div>
				</div>
			</div>
			<div class="content_text">
			    Var 4
                Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate voluptas 
                culpa nemo quisquam nulla eveniet excepturi pariatur quas, quia et, cumque? 
                Aliquam, debitis esse modi inventore porro, non quod ratione.
			</div>
		</div>
	</div>
</div>
<div class="detailView">
    <div class="detailHeader"></div>
<pre class='detailView_pre'>
Heh
</pre>
</div>
</div>
              
            
!

CSS

              
                *{margin:0; padding:0;}

.change1{
	margin:10px;
	background-color:red;
	border:1px solid black;
	width:100px;
	height:30px;
}
.change2{
	margin:10px;
	background-color:red;
	border:1px solid black;
	width:100px;
	height:30px;
}



.todolist{
	display:flex;
}
.border{
	background-color:lightgray;
	border:1px solid gray;
	width:410px;
	height:530px;
	overflow:scroll;
	scrollbar-width: none;
	resize: both;
}
.header{
	background-color:white;
	border:1px solid lightgray;
	width:100%;
	height:50px;
}
.header_content{}
.serclAdd{
	margin-left:auto;
	background-color:darkgray;
	border-radius:100%;
	width:50px;
	height:50px;
	text-align:center;
	font-size:44px;
	color:lightgray;
	cursor:pointer;
}
.content{
	display:flex;
	flex-direction:column;
	grid-gap:10px;
	margin:auto;
	width:90%;
}
.content_itm{
	background-color:rgba(255,255,255,0.5);
	width:100%;
	height:70px;
	overflow:scroll;
	resize: vertical;
	scrollbar-width: none;
	text-align:left;
	
}
.content_header{
	display:flex;
}
.left_content{
	display:flex;
}
.right_content{
	margin-left:auto;
	display:flex;
	grid-gap:2px;
	background-color:rgba(255,255,255,0.4);
	width:60px;
	text-align:right;
}
.right_itm{
	display:grid;
	background-color:rgba(255,255,255,0.7);
	width:100%;
	height:100%;
	cursor:default;
	align-items:center;
	text-align:center;
	font-size:8px;
}
.title{}
.count{
	display:flex;
	margin-left:10px;
}
.countOne{}
.countTwo{}
.datePost{
	margin-left:10px;
	font-size:10px;
}
.prioritet{	
	margin-right:10px;
	margin-left:10px;
	font-size:;
	text-decoration:underline;
}
.detailView{
	border:1px solid gray;
	width:508px;
  height:530px;
	overflow:scroll;
	scrollbar-width: none;
	resize: horizontal;
}
.detailHeader{
	background-color:gray;
	width:100%;
	height:10px;
}

.topinfo2{
	margin:0px 0 0 auto;
	padding:10px;
	border:1px solid gray;
	width:200px;
	overflow:scroll;
	scrollbar-width: none;
	resize: both;
}
.header_topinfo{
	background-color:gray;
	width:100%;
	height:10px;
}
.topinfo{
	margin:0px 0 0 auto;
	border:1px solid gray;
	width:200px;
	overflow:scroll;
	scrollbar-width: none;
	resize: both;
}


              
            
!

JS

              
                

// Add new itm // !!!  AFTER THIS FUNC > ERROR > DETAIL VIEW DOSENT WORK !!!
let content = document.querySelector('.content')
document.querySelector('.serclAdd').onclick = addNewItm
function addNewItm(){
	content.innerHTML += `
			<div class="content_itm">
			<div class="content_header">
				<div class="left_content">
					<div class="prioritet">1N</div>
						<div class="title">Some Content Heh</div>
						<div class="count"><p class="countOne">0</p>/<p class="countTwo">0</p></div>
						<div class="datePost">03.11.2020</div>
				</div>
					<div class="right_content">
					<div class="right_itm" id="detailItm">D</div>
					<div class="right_itm" id="resizeItm">R</div>
					<div class="right_itm" id="deleteItm">X</div>
				</div>
			</div>
			<div class="content_text">
				Var 5
				Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate voluptas 
				culpa nemo quisquam nulla eveniet excepturi pariatur quas, quia et, cumque? 
				Aliquam, debitis esse modi inventore porro, non quod ratione.
			</div>
		</div>
	`
	ClickDetail()
}
//


// detail itm
let = detailButton = document.querySelectorAll('#detailItm')
let = detailTextContent = document.querySelector('.detailView_pre')

detailButton.forEach(ClickDetail)

function ClickDetail(e){
	e.addEventListener('click', function(){
		let closestParent = e.closest('.content_itm') 
		let closestText = closestParent.children      

		detailTextContent.textContent = closestText[1].textContent
	})
}
//
              
            
!
999px

Console