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
jQuery(function($){ | |
//Get targetBox top | |
var targetBox = $('#targetBox').css('top').replace('px',''); | |
//Format num | |
var targetBox = parseInt(targetBox,10); | |
}); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<select name="select" id="select"> | |
<option value="1">Value1</option> | |
<option value="2">Value2</option> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
jQuery(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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
var date = new Date(); | |
var year = date.getFullYear(); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Canvas</title> | |
</head> | |
<body> | |
<script> | |
onload = function(){ | |
var canvas = document.getElementById('canvas'); |
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
<ul> | |
<?php | |
//画像をループするよ(´・ω・`) | |
//ディレクトリ取得 | |
$img_fld = 'image/product/'.$_REQUEST['name']. '/'; | |
//ディレクトリ内の一覧を取得する | |
$img_list = scandir($img_fld); | |
//フォルダ内の画像の数を取得する | |
$count = count($img_fld); | |
//画像を表示させるよ! |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div class="flex-box"> | |
<section>short text</section> | |
<section>long text long text</section> |
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
<?php | |
/* | |
//今月の日曜日をすべて表示 | |
$year = date('Y'); | |
$month = date('m'); | |
echo '<h1>'.$year.'年'.$month.'月の日曜日</h1>'; | |
for($i=1; $i <= 31; $i++){ | |
if(checkdate($month,$i,$year)){ | |
$week = date('w',mktime(0,0,0,$i,$month,$year)); | |
if($week == 0){ |
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
<?php | |
define('TEST','PHP逆引きレシピ'); | |
//定義済みの関数があるかを調べる | |
print_r(get_defined_constants(true)); | |
//定義済みかどうかを調べる |
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
<!DOCTYPE> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<?php | |
/* | |
nullとは | |
ある変数が値をもたないことを表す |
OlderNewer