Skip to content

Instantly share code, notes, and snippets.

Atom の設定を sync-settings で共有します。

@maru0014
maru0014 / column.css
Created November 4, 2015 07:21
レスポンシブ対応等幅リストCSS
@charset "utf-8";
/***********************************************************
レスポンシブ対応リストタグ等幅カラムスタイルシート
記述順:
スマートフォン
タブレット@media screen and (min-width: 641px)
PC@media screen and (min-width: 981px)
@maru0014
maru0014 / index.html
Created October 27, 2015 13:11
jQueryのloadメソッドでパーツを読み込み 1
<!DOCTYPE HTML>
<html lang="ja">
<head>
</head>
<body>
<div id="header">
タイトルロゴや画像<br>
グローバルメニューなど
</div>
@maru0014
maru0014 / index.html
Last active October 27, 2015 13:11
jQueryのloadメソッドでパーツを読み込み2
<!DOCTYPE HTML>
<html lang="ja">
<head>
<!-- jquery読み込み Ver.1.8.3 -->
<script src="js/jquery.min.js"></script>
<script>
//共通パーツ読み込み
$(function() {
$("#header").load("header.html");
$("#side").load("side.html");
@maru0014
maru0014 / smoothscroll.js
Created October 19, 2015 13:45
コピペでOK スムーズスクロール
<!-- jQuery本体の読み込み -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!-- #リンクのスムーズスクロール -->
<script>
$(function(){
// #で始まるリンクをクリックしたら実行されます
$('a[href^=#]').click(function() {
// スクロールの速度
var speed = 400; // ミリ秒で記述
li.3col {
width : 33.33333% ; /* 未対応ブラウザ用フォールバック */
width : -webkit-calc(100% / 3) ;
width : calc(100% / 3) ;
}
li.3col {
width : calc(100% / 3) ;
}
li.3col {
width : 33.33333% ;
}
<div class="loadingWrap">
<img src="img/now-loading.gif">
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>