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
;(function(e,t){function n(e){var t=/^webkit|^moz|^ms|^O/g,n=e,r=n.replace(t,"");return r.toLowerCase()}function r(e){var t=e.arr,r=e.prop,i=e.value,s;for(var o=0;o<t.length;o++){s=t[o];if(!document.querySelector(s)){return}var u=n(r);document.querySelector(s).style[r]=i;document.querySelector(s).style[u]=i}}function i(t){var n={duration:1e3,smp:false,selector:[]},i=/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in e?"O":"";for(var s in t){if(!n.hasOwnProperty(s)){continue}n[s]=t[s]}if(!n.smp&&/iPhone|iPad|iPod|Android/.test(navigator.userAgent)){return}document.body.style.visibility="hidden";document.body.style.opacity=0;r({arr:n.selector,prop:"opacity",value:"0"});e.addEventListener("load",function(){setTimeout(function(){document.body.style[i+"Transition"]="all "+n.duration*.5*.001+"s ease-in";document.body.style["transition"]="all "+n.duration*.5*.001+"s ease-in";r({arr:n.selector,prop:i+"Transition",value:"all "+n. |
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
;(function(window,config){ | |
function deleteVendor(vendor){ | |
var re = /^webkit|^moz|^ms|^O/g, | |
str = vendor, | |
noVendor = str.replace(re, ""); | |
return noVendor.toLowerCase(); | |
} |
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
function deleteVendor(vendor){ | |
var re = /^webkit|^moz|^ms|^O/g, | |
str = vendor, | |
newstr = str.replace(re, ""); | |
return newstr.toLowerCase(); | |
} |
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
lightbox = (function(){ | |
var lightboxList = document.querySelectorAll('.js-gallery img'), | |
lightboxLength = lightboxList.length; | |
for (var i = 0; i < lightboxLength; i++) { | |
lightboxList[i].setAttribute('deta-lb-number',i); | |
lightboxList[i].addEventListener('click', lightboxShow, false); | |
} |
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
for (var i = 0, item; item = 配列[i++];) { | |
// item について何かする | |
} |
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
Math.ease = function (t, b, c, d) { | |
t /= d/2; | |
if (t < 1) return c/2*t*t*t + b; | |
t -= 2; | |
return c/2*(t*t*t + 2) + b; | |
}; | |
function smoothScroll(hash){ | |
var date = new Date(), |
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
var date = new Date(); | |
//t=now-date | |
//b=最初の値 | |
//c=最後の値 | |
//d=何秒 | |
Math.ease = function(t, b, c, d, s) { | |
if(s == undefined) s = 1.70158; | |
return c*(t/=d)*t*((s+1)*t - s) + b; |
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
var vender = (/webkit/i).test(navigator.appVersion) ? 'webkit' : | |
(/firefox/i).test(navigator.userAgent) ? 'moz' : | |
(/trident/i).test(navigator.userAgent) ? 'ms' : | |
'opera' in window ? 'O' : ''; |
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
'use strict'; | |
var gulp = require('gulp'), | |
$ = require('gulp-load-plugins')(), | |
jade = require('gulp-jade'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, | |
runSequence = require('run-sequence'); | |
gulp.task('jade', function() { |
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
// 特定のURL、固定ページのみ「theme」を切り替える | |
// http://ja.forums.wordpress.org/topic/13483 | |
function my_theme_switcher($theme){ | |
// yes, it's hardcoded! | |
if ( $_SERVER['REQUEST_URI'] == 'HOMEからのパス' ) { // /lp/2014/ | |
$overrideTheme = wp_get_theme('テーマ名'); | |
if ( $overrideTheme->exists() ) { | |
return $overrideTheme['テーマ名']; | |
} else { |