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 | |
$birth = "20040501"; | |
echo grade($birth); | |
//誕生日から現在の学年(小学校)を求める 小学生ではない場合:歳 | |
function grade($birth){ | |
//今日の日付を取得 |
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
enchant(); | |
var SCREEN_WIDTH =320; | |
var SCREEN_HEIGHT =320; | |
window.onload = function() { | |
// ゲームオブジェクトを作成する | |
game = new Game(SCREEN_WIDTH, SCREEN_HEIGHT); |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<!-- ステータスバーを半透明で表示する(iPad/iPhpne用) --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
<title>enchant</title> |
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
enchant(); | |
var SCREEN_WIDTH =320; | |
var SCREEN_HEIGHT =320; | |
window.onload = function() { | |
// ゲームオブジェクトを作成する | |
game = new Game(SCREEN_WIDTH, SCREEN_HEIGHT); |
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 | |
$appId = '205979979526XXX';//アプリID | |
$appSecret = 'c6907f5f234b6ba40e91xxxxxxxxxxx';//アプリの秘匿コード | |
$myUrl = 'http://www.xxxx.jp/FBAccountLogin/sample.php';//サイトURL | |
//ユーザーがログインしているか確認 | |
$code = $_REQUEST["code"]; |
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
//1~52までの乱数を取得 | |
Random rnd = new Random(); | |
int card1 = rnd.nextInt(51)+1; |