Skip to content

Instantly share code, notes, and snippets.

View yamoo9's full-sized avatar
πŸŽ“
Blended Learning

야무 yamoo9

πŸŽ“
Blended Learning
  • Mentor of E.UID
  • South korea
  • X @yamoo9
View GitHub Profile
@yamoo9
yamoo9 / EUID.js
Last active February 23, 2020 06:37
μŠ€νƒ€λ²…μŠ€ μ‚¬μ΄νŠΈ μ• λ‹ˆλ©”μ΄μ…˜ κ°œμ„  슀크립트 (이듬 λΈ”λ Œλ””λ“œ λŸ¬λ‹ μ‹€μŠ΅ 자료)
/**
* 이듬(E.UID) 라이브러리
* λΈ”λ Œλ””λ“œ λŸ¬λ‹: yamoo9.github.io/EUID
* μž‘μ„±μž: yamoo9.naver.com
*/
var EUID = {
_version: '0.0.1',
// querySelector() = IE 9+
// μ°Έκ³ : https://caniuse.com/#feat=queryselector
@yamoo9
yamoo9 / GotoTop.js
Last active September 14, 2020 03:54
GotoTop μ»΄ν¬λ„ŒνŠΈ
// GotoTop μ»΄ν¬λ„ŒνŠΈ λͺ¨λ“ˆ
(function GotoTopComponent() {
'use strict';
// @μƒμ„±μž_ν•¨μˆ˜(ES6, class μ—­ν• )
function GotoTop(domNode, options) {
// λ¬Έμ„œκ°μ²΄λ₯Ό μ°Έμ‘°ν•˜μ—¬ μ»΄ν¬λ„ŒνŠΈ μ•ˆμ—μ„œ μ‚¬μš©ν•©λ‹ˆλ‹€.
this._button = domNode;
@yamoo9
yamoo9 / carousel.html
Created November 17, 2019 12:14
Carousel λ§ˆν¬μ—… / μŠ€νƒ€μΌλ§
@yamoo9
yamoo9 / Carousel.js
Last active November 16, 2019 02:52
일반 μΊλŸ¬μ…€(Carousel) μ»΄ν¬λ„ŒνŠΈ - λͺ¨λ“ˆ & OOJS μƒμ„±μž ν•¨μˆ˜μ™€ ν”„λ‘œν† νƒ€μž… λͺ¨λ“ˆ
@yamoo9
yamoo9 / animate.js
Created November 11, 2018 16:09
μ• λ‹ˆλ©”μ΄μ…˜ 라이브러리 animate.js ν™œμš©
(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);
@yamoo9
yamoo9 / typescript.json
Last active August 17, 2018 15:44
Vue + TypeScript μ½”λ“œ μŠ€λ‹ˆνŽ«
{
"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})",
@yamoo9
yamoo9 / jquery.ajax.extends.js
Last active August 3, 2018 03:26
jQuery Ajax 단좕 λ©”μ„œλ“œ - PUT / PATCH / DELETE ν™•μž₯
/*! 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',
@yamoo9
yamoo9 / PathAnimate.js
Created June 8, 2018 07:16
PathAnimate.js - SVG 패슀 μ• λ‹ˆλ©”μ΄μ…˜ 라이브러리
var PathAnimate = (function(global){
'use strict';
// β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
// PRIVATE
// β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
function getLength(el) {
if(el.nodeName) {
var tagName = el.nodeName.toLowerCase(), d;
if(tagName === 'path') {
@yamoo9
yamoo9 / iphone-x-notch.html
Created June 5, 2018 01:26
iPhoneX Notch λ””μžμΈ λŒ€μ‘ 방법 (background-color / viewport-fit / safe-area-inset-*)
<!DOCTYPE html>
<html lang="ko-KR">
<head>
<meta charset="UTF-8">
<title>iPhone Notch(vμžν˜• μƒˆκΉ€μ„ λœ»ν•¨) λ””μžμΈ λŒ€μ‘λ²•</title>
<!-- μ°Έκ³ : https://goo.gl/oXuCuy -->
<!-- 방법 1. body μš”μ†Œμ˜ λ°°κ²½ 색 μ„€μ • -->
<style>
@yamoo9
yamoo9 / main.js
Created May 12, 2018 16:46
슀크둀 μ• λ‹ˆλ©”μ΄μ…˜ μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜ (μž¬κ·€ν•¨μˆ˜ ν™œμš©)
(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) {