This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<header> | |
<link rel="stylesheet" href="tabui.css"> | |
<style> | |
h2 { | |
text-align: center | |
} | |
h2, | |
h4 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$nav-color: #3e3; | |
$my-point: #328; | |
@mixin display-grid() { | |
display: -ms-grid; | |
display: grid; | |
} | |
@mixin transition($target, $time) { | |
-webkit-transition: $target $time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 아래처럼 동작가능한 partial 함수를 만들어보세요 */ | |
//add함수는 n개의 인자를 받아서 합을 계산해주는 함수다. | |
function add() { | |
let arg = Array.from(arguments); | |
//reduce는 Array안에 있는 메서드다. | |
let sum = arg.reduce(function(prev,next) { | |
return prev+next; | |
},0); | |
return sum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = { | |
"debug": "on", | |
"window": { | |
"title": "Sample Konfabulator Widget", | |
"name": "main_window", | |
"width": 500, | |
"height": 500 | |
}, | |
"image": { | |
"src": "Images/Sun.png", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": 1, | |
"name": "Yong", | |
"phone": "010-0000-0000", | |
"type": "sk", | |
"childnode": [{ | |
"id": 11, | |
"name": "echo", | |
"phone": "010-0000-1111", | |
"type": "kt", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DISPATCHER */ | |
class Dispatcher { | |
register(fnlist) { | |
this.fnlist = fnlist; | |
} | |
emit(o) { | |
this.fnlist[o.type].apply(null, o.data); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller { | |
margin: 1rem; | |
} | |
.controller button.start { | |
width: 200px; | |
height: 50px; | |
font-size: 1.1rem; | |
} | |
.blogList { | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller { | |
margin: 1rem; | |
} | |
.controller button.start { | |
width: 200px; | |
height: 50px; | |
font-size: 1.1rem; | |
} | |
.blogList { | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Forked -> https://developers.google.com/web/updates/2015/08/using-requestidlecallback | |
var tasks = [1,2,3,4]; | |
function myNonEssentialWork (deadline) { | |
console.log("myNonEssentialWork called", deadline.timeRemaining()); | |
let result=""; | |
while (deadline.timeRemaining() > 0 && tasks.length > 1) { | |
for(let i=0; i<999999; i++) {result += Math.random()} |