Skip to content

Instantly share code, notes, and snippets.

View gkondo's full-sized avatar

GC-kondotaku gkondo

View GitHub Profile
@gkondo
gkondo / header.css
Last active May 29, 2017 01:36
ヘッダー共通パーツ
body.fixed {
position: fixed;
}
/* Toggle(Button) */
.head__hmmenuwrap {
display: none;
position: fixed;
/*to body*/
right: 13px;
@gkondo
gkondo / viewport.php
Created March 10, 2017 05:56
No Description
// スマホとタブレットでviewportを切替え
$(function(){
var ua = navigator.userAgent;
if((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)){
$('head').prepend('<meta name="viewport" content="width=device-width,initial-scale=1">');
} else {
$('head').prepend('<meta name="viewport" content="width=1200">');
}
});
@gkondo
gkondo / new_gist_file.css
Created March 9, 2017 02:16
CSSアニメーション(フワッと横から入ってくる)
.info {
-webkit-animation-fill-mode: both;
-ms-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-duration: .6s;
-ms-animation-duration: .6s;
animation-duration: .6s;
-webkit-animation-name: sliderinfo;
animation-name: sliderinfo;
visibility: visible !important;
@gkondo
gkondo / 0_reuse_code.js
Created March 9, 2017 01:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console