2017-05-08から1日間の記事一覧
とりあえず長方形を描くのはこんなん。htmlは JS //要素の取得 var canvas = document.getElementById( "canvas" ); //canvas要素から描画コンテキスト取得 var ctx = canvas.getContext( "2d" ); //パス初期化 ctx.beginPath(); //rect(x,y,横、高さ) 長方…
index.phpとかだと have_postsみたいなやり方でいけるが、single.phpではクエリをつくる。 ' . PHP_EOL; while (have_posts()) : the_post(); echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>' . PHP_EOL; endwhile; echo '</ul>' . PHP_EOL; e…