Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <div id="cookie">
	    <div id="cookie-text">
		    Tyto stránky používají cookies k analýze návštěvnosti a bezpečnému provozování
				stránek. Používáním tohoto webu vyjadřujete souhlas. <a id="cookie-link" href="">Další informace</a>
	    <a href="#" id="cookie-close" title="Souhlasím">Souhlasím</a>

<button id="reset">Reset</button>


                #cookie {
	transition: all .2s;
	width: 100%;
	background-color: #1e1e1e;
	color: #828282;
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 18px;
	text-align: left;
	display: none;
	position: fixed;
	top: auto;
	left: 0;
	bottom: 0;
	z-index: 200;

#cookie-text {
	padding: 15px 46px 15px 20px;

#cookie-link {
	transition: border .3s ease-in-out;
	text-decoration: none;
	display: inline;
	border-bottom: 1px solid #ccc;
	color: #ccc;

#cookie-link:hover {
	border-botttom-color: transparent;

#cookie-close {
	float: right;
	width: 46px;
	height: 46px;
	display: inline-block;
	overflow: hidden;
	text-indent: -999em;
	top: 0;
	right: 0;
	position: absolute;

#cookie-close::after {
	content: '';
	cursor: pointer;
	width: 14px;
	height: 1px;
	display: block;
	background-color: #9E9E9E;
	position: absolute;
	top: 23px;
	left: 12px;
	transition: background-color .2s;

#cookie-close::before {
	transform: rotate(45deg);

#cookie-close::after {
	transform: rotate(-45deg);

#cookie-close:hover::after {
	background-color: #e4e4e4;

#reset {
	margin: 10em 2em 0;
	width: 10em;
	padding: 12px 2em;
	font-family: Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	text-transform: uppercase;


                var reset = document.getElementById('reset');
var cms = document.querySelectorAll('#RubicusAdmin');
var bar = document.getElementById('cookie');
var barClose = document.getElementById('cookie-close');
var website = document.location.hostname.split('.');
var storageName = '';
for (var i in website) {
    storageName += website[i];
var barView = localStorage.getItem(storageName);

if( !cms[0] || barView == null ) { = 'block';

if( barView == 'hide') { = 'none';

barClose.addEventListener('click', function(e){
	localStorage.setItem(storageName, 'hide'); = 'none';

reset.addEventListener('click', function(e){
	localStorage.removeItem(storageName); = 'block';
	barView = localStorage.getItem(storageName);