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. 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


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 class="slider">
	<div class="outer">
		<label for="age">나이 필터링</label>
		<div class="inner">
			<input type="text" id="age" readonly>
			<span class="age-unit">세 이상</span>
	<div id="slider-vertical" style="height:25px;"></div>

<table id="data-table" class="table">


img{height:100px;vertical-align:top;transform:scale(2);transition:all .2s ease-in;}
table th{padding:1rem 0;color:#eee;background-color:teal;}
table th+th{border-left:1px solid #eee;}
table td{letter-spacing:-.1rem;text-align:center;border-bottom:1px solid #eee;overflow:hidden;}
table td:nth-child(1){background-color:yellowgreen;}
table td:nth-child(2){background-color:wheat;}
table td:nth-child(3){background-color:pink;}
table td:nth-child(4){background-color:#000;}
table td+td{border-left:1px solid #eee;}
table td:hover img{transform:scale(1.5);}
.slider .ui-widget.ui-widget-content{margin:0 70px auto 50px;}
.slider .outer label{display:block;text-align:center;font-size:2rem;padding:1rem 0;}
.slider .outer input{width:calc(50%);height:5rem;text-align:right;font-size:3rem;border:0;}
.slider .inner {position:relative;}
.slider .inner .age-unit{position:absolute;right:0;top:50%;transform:translateY(-50%);width:50%;text-align:left;}
.slider .ui-slider .ui-slider-handle{width:4rem;height:4rem;}
.slider .ui-slider-horizontal .ui-slider-handle{top:-.8rem;}
.slider .ui-widget-header{background-color:#007fff;}


	var singer = [];
	var $rows = [];
	var girls = [
    { name:'예리',	age:21,	blood:'O', img:'<img src="">'},
		{name:'아이린',	age:29, blood:'A', img:'<img src="">' },
		{ name:'웬디',	age:26,	blood:'O', img:'<img src="">'},
		{ name:'슬기',	age:26,	blood:'A', img:'<img src="">'},
		{ name:'조이',	age:23, blood:'A', img:'<img src="">'},
		{ name:'사나',	age:23, blood:'B', img:'<img src="">'},
		{ name:'최예나',	age:20, blood:'A', img:'<img src="">'},
		{ name:'채수빈',	age:25, blood:'A', img:'<img src="">'}, 
		{ name:'박보영',	age:30, blood:'O', img:'<img src="">'},
		{ name:'크리스탈',	age:25, blood:'A', img:'<img src="">'}

	//girls를 테이블로 파싱
	function makeTable(){
		var $table = $('#data-table');
		var $tbody = $('<tbody></tbody>');
			var $row = $('<tr></tr>');
			$row.append( $('<td></td>').text( );
			$row.append( $('<td></td>').text(elem.age) );
			$row.append( $('<td></td>').text(elem.blood) );
			$row.append( $('<td></td>').append(elem.img) );
				elem: elem,
				element: $row
			$tbody.append( elem.element );
		$table.append( $tbody );
	//girls data 업데이트
	function updateTable(value){
			if( row.elem.age >= value ){;
	updateTable( $("#age").val() );

	$( "#slider-vertical" ).slider({
		// orientation: "vertical",
		range: "min",
		min: 20,
		max: 30,
		value: 20,
		slide: function(event, ui) {
			$( "#age" ).val( ui.value );
		change: function(eveny, ui){
			updateTable( ui.value );
	$("#age").val( $("#slider-vertical").slider("value") );