Chromeデベロッパーツールメモ
date: 2015/07/22時点
version: 43.0.2357.134 m
// キャプチャしたCanvasのデータを自分のCanvasアクション関数に渡す | |
html2canvas(document.body, { | |
onrendered: function(canvas) { | |
var url = canvas.toDataURL('image/png'); | |
var w = canvas.width; | |
var h = canvas.height; | |
myCanvasAction(url, w, h); | |
} | |
}); |
<!-- https://github.com/sixrevisions/html5-template --> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
#!/bin/bash | |
# _で始まらないscssファイル | |
for file in `find . -type f ! -name "_*" -and -name "*.scss"` | |
do | |
# echo 'allName:' $file | |
# echo 'dirName: ' ${file%/*} | |
# echo 'fileName: ' ${file##*/} | |
mv $file ${file%/*}/_${file##*/} | |
done |
var cs = document.getElementById('myCanvas'); | |
var ctx = cs.getContext('2d'); | |
var csWidth = cs.width; | |
var csHeight = cs.height; | |
/** | |
* ランダムな整数を返す | |
* Math.round(四捨五入)に変更したので、max,minはそれぞれその値を含む | |
* @param max 最大値 | |
* @param min 最小値 |
/** | |
* 円周上の座標を返す | |
* @param d 角度 | |
* @param r 半径 | |
* @param cx, cy 中心座標 | |
*/ | |
var getCircumPos = { | |
// x座標 | |
x: function(d, r, cx) { | |
return Math.cos(Math.PI / 180 * d) * r + cx; |
.wrapper { | |
overflow: hidden; | |
} | |
.star { | |
position: relative; | |
height: 200px; | |
width: 200px; | |
margin: 200px; | |
background-color: black; | |
animation: anim 3s infinite linear; |
.tabs .is_active { | |
color: red; | |
} | |
.tab-content { | |
display: none; | |
} | |
.tab-content.is_show { | |
display: block; | |
} |
<!-- 省略 --> | |
<script src="https://maps.googleapis.com/maps/api/js"></script> | |
<script src="markerclusterer_compiled.js"></script> | |
<script src="map.js"></script> | |
<!-- 省略 --> | |
<!-- | |
markerclusterer_compiled.js | |
src -> https://github.com/googlemaps/js-marker-clusterer |
<script src="https://maps.googleapis.com/maps/api/js"></script> | |
<div id="map"></div> |
Chromeデベロッパーツールメモ
date: 2015/07/22時点
version: 43.0.2357.134 m