Skip to content

Instantly share code, notes, and snippets.

View yosukesannohe's full-sized avatar

Yosuke Sannohe yosukesannohe

View GitHub Profile
@yosukesannohe
yosukesannohe / scroll.js
Created September 3, 2014 02:05
scroll
define([
'jquery',
'easing'
],
function($) {
'use strict';
/**
* 「トップに戻る」機能を初期化
$BREAK_POINT: 600px;
@mixin pc($break-point: $BREAK_POINT) {
@media screen and (min-width: $break-point) {
& {
@content;
}
}
}
@yosukesannohe
yosukesannohe / cc.jade
Created April 10, 2014 01:01
jadeでconditional comments
//[if lt IE 9]><script src="./javascripts/html5shiv.js"></script><![endif]
@yosukesannohe
yosukesannohe / README
Created January 2, 2014 05:52
CreateJSで自分探し1
自分探ししてます
.mb10 {
margin-bottom: 10px !important;
}
.mt20 {
margin-top: 20px !important;
}
.ml5 {
margin-left: 5px;
<div id="sample-1">
LESS を使ったサンプルです
</div>
<!-- もちろん通常通り、クラスとして pa20 を使うことも可能 -->
<p id="sample-2" class="pa20">sample</p>
alert('こんにちは'); //( ) 内の要素をポップアップで表示する関数
jQuery('#foo'); //( ) 内の要素を jQuery オブジェクトにして返す関数(正確には別の使い方もある。後述)
$('#foo'); //( ) 内の要素を jQuery オブジェクトにして返す関数
//( ) に関数を渡すと、ページ読み込み後に関数内の処理を実行する
jQuery(function() {
alert('こんにちは');
})
// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;
var greatBono = $('曙');
greatBono.毒霧();
greatBono.凶器攻撃();
$('曙');