This file contains hidden or 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
/** | |
* μ΄λ¬(E.UID) λΌμ΄λΈλ¬λ¦¬ | |
* λΈλ λλ λ¬λ: yamoo9.github.io/EUID | |
* μμ±μ: yamoo9.naver.com | |
*/ | |
var EUID = { | |
_version: '0.0.1', | |
// querySelector() = IE 9+ | |
// μ°Έκ³ : https://caniuse.com/#feat=queryselector |
This file contains hidden or 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
// GotoTop μ»΄ν¬λνΈ λͺ¨λ | |
(function GotoTopComponent() { | |
'use strict'; | |
// @μμ±μ_ν¨μ(ES6, class μν ) | |
function GotoTop(domNode, options) { | |
// λ¬Έμκ°μ²΄λ₯Ό μ°Έμ‘°νμ¬ μ»΄ν¬λνΈ μμμ μ¬μ©ν©λλ€. | |
this._button = domNode; | |
This file contains hidden or 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
<div class="container"> | |
<h2 class="h2 a11y-hidden">μΌλ° μΊλ¬μ λ°λͺ¨</h2> | |
<div id="caro1" | |
class="carousel" | |
aria-roledescription="μν μΊλ¬μ " | |
aria-label="OOO μν μΌμΌμ΄μ€"> | |
<div class="carousel__controls"> | |
<button type="button" | |
class="button carousel__button carousel__button--prev" | |
aria-controls="carousel-slides">μ΄μ </button> |
This file contains hidden or 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
import gsap from 'gsap' | |
import { mixins, makeArray } from '../utils' | |
/** | |
* Carousel ν΄λμ€ μμ± κ³Όμ μμ μ λ¬λ μΈμμ μ ν¨μ± κ²μ¬ ν¨μ | |
* @private | |
*/ | |
const validateArgs = (selector, options = {}) => { | |
if (typeof selector !== 'string') | |
throw new Error('첫λ²μ§Έ μΈμμΈ μ νμ(selector)λ λ¬Έμ κ°μ μ λ¬ν΄μΌ ν©λλ€.') |
This file contains hidden or 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
(function (global) { | |
'use strict'; | |
function animate(render, duration, easing, callback) { | |
duration = duration || 400; | |
easing = easing ? animate.easings[easing] : animate.easings['linear']; | |
var start = performance.now(); | |
requestAnimationFrame(function _animate(time) { | |
var timeFraction = (time - start) / duration; | |
var progress = easing(timeFraction); |
This file contains hidden or 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
{ | |
"Vue TS Component": { | |
"prefix": "v-component", | |
"description": "Vue TypeScript μ»΄ν¬λνΈ", | |
"body": [ | |
"import Vue from 'vue';", | |
"import { Component${1:, Prop, Emit, Watch} } from 'vue-property-decorator';", | |
"", | |
"@Component({$3})", |
This file contains hidden or 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
/*! jquery.ajax.extends.js @ 2018, yamoo9.net */ | |
;(function(global, $) { | |
'use strict'; | |
if (!$) { throw new Error('jQuery λΌμ΄λΈλ¬λ¦¬λ₯Ό νΈμΆν΄μΌ μ¬μ© κ°λ₯ν©λλ€.'); } | |
if ( !$.put ) { | |
$.put = function(api_with_id, put_data, success, fail) { | |
$.ajax({ | |
method: 'PUT', |
This file contains hidden or 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
var PathAnimate = (function(global){ | |
'use strict'; | |
// ββββββββββββββββββββββββββββββββββββββ | |
// PRIVATE | |
// ββββββββββββββββββββββββββββββββββββββ | |
function getLength(el) { | |
if(el.nodeName) { | |
var tagName = el.nodeName.toLowerCase(), d; | |
if(tagName === 'path') { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ko-KR"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>iPhone Notch(vμν μκΉμ λ»ν¨) λμμΈ λμλ²</title> | |
<!-- μ°Έκ³ : https://goo.gl/oXuCuy --> | |
<!-- λ°©λ² 1. body μμμ λ°°κ²½ μ μ€μ --> | |
<style> |
This file contains hidden or 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
(function (global, document, scrollTo) { | |
'use strict'; | |
var doc = document.documentElement; | |
var links = document.querySelectorAll('.nav a'); | |
links.forEach(function(link){ | |
var el_id = link.getAttribute('href'); | |
var offset_top = document.querySelector(el_id).offsetTop; | |
link.addEventListener('click', function (e) { |