Skip to content

Instantly share code, notes, and snippets.

View QETHAN's full-sized avatar
🎯
Focusing

QETHAN QETHAN

🎯
Focusing
View GitHub Profile
@QETHAN
QETHAN / Outline-Button.markdown
Created May 5, 2014 03:35
A Pen by Rex Kirby.
@QETHAN
QETHAN / Button-Effect.markdown
Created May 5, 2014 03:34
A Pen by MSA Code and Design.
@QETHAN
QETHAN / Buttons.markdown
Created May 5, 2014 03:32
A Pen by Calvin Wilson.
@QETHAN
QETHAN / This-is-a-button.markdown
Created May 5, 2014 03:30
A Pen by Mario Hernandez.
@QETHAN
QETHAN / [CSS3]-3d-button.markdown
Created May 5, 2014 03:28
A Pen by Karol Falkiewicz.
@QETHAN
QETHAN / button-with-loader-arrow.markdown
Created May 5, 2014 03:26
A Pen by Kye Hohenberger.
@QETHAN
QETHAN / Confirm-button.markdown
Created May 5, 2014 03:25
A Pen by Robert Douglas.

Confirm button

Minimal DOM button with confirm action.

Works with any text length Can apply various CSS changes to confirm button look/feel Uses very little vertical space

A Pen by Robert Douglas on CodePen.

@QETHAN
QETHAN / Pressable-CSS-Buttons.markdown
Created May 5, 2014 03:22
A Pen by Joshua Hibbert.
@QETHAN
QETHAN / browser scroll event
Created March 4, 2014 03:30
browser scroll event control, 控制窗口滚动
// left: 37, up: 38, right: 39, down: 40,
// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36
var keys = [37, 38, 39, 40];
function preventDefault(e) {
e = e || window.event;
if (e.preventDefault)
e.preventDefault();
e.returnValue = false;
}