- 今後は個人レベルアプリを作る予定
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
Chromeとかでは | |
localStorage.setItem('setするItem','0'); | |
でできていたんだが、最近ではちょっと使い方が違うみたい | |
window.localStorage.setItem('setするItem','0'); | |
で書かないといけないらしい。 | |
すごくEdgeで怒られますた。 | |
焦って調べてみるとMSさんちゃんと書いてくれてますな。 |
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
そろそろIEも消えたことだしOnClickを使うのをやめようかと思う。 | |
今後はjqueryのClickメソッドを使って書くことにする | |
$('htmlのIDまたはCLASS').click(プログラミング)でプログラムが書ける。 | |
やっと楽になるな。 | |
IEは本当に対応したくない。 |
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
//現在日付の取得 | |
$now_date = getdate(); | |
//年月日を取得する | |
$now_year = $now_date['year']; | |
$now_month = $now_date['mon']; | |
$now_day = $now_date['mday']; | |
//日付を整形 | |
$nowDate = $now_year . "年" . $now_month . "月" . $now_day . '日'; | |
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
//取得関数の初期化 | |
$blogReadList = array(); | |
//リザルトからJSON用変数への投入 | |
if(!empty($result)){ | |
while($row = mysql_fetch_array($result)){ | |
$blogReadList['blogId'] = isset($row['blogId'])? $row['blogId']:""; | |
$blogReadList['blogDate'] = isset($row['blogDate'])? $row['blogDate']:""; | |
$blogReadList['blogTitle'] = isset($row['blogTitle'])? $row['blogTitle']:""; | |
$blogReadList['blogContent'] = isset($row['blogContent'])? $row['blogContent']:""; | |
$blogReadList['id'] = isset($row['id'])? $row['id']:""; |
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でJSONを作る方法 | |
//格納用変数の初期化(例はmini_blogのブログ読み込みから拾ってます)。 | |
$blogReadList = array(); | |
//2次元配列用配列の初期化 | |
$i = 0; | |
//クエリーのリザルトからJSON用配列を作る。 | |
//2次元以上の配列を使う場合は2次元配列用の変数を作成する。 | |
if(!empty($result)){ |
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
Tizenアプリを作っていた時に気がついたことは。 | |
onメソッドでjQueryをバインドしていました。 | |
昔の書き方 | |
$('セレクタ名').bind('アクション',動作プログラミング); | |
今の書き方 | |
$('セレクタ名').on('アクション',動作プログラミング); | |
です。 | |
気をつけたほうがよさげですね。 |
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
//位置情報自動取得でマーカーを表示 | |
navigator.geolocation.getCurrentPosition(function(pos){ | |
//緯度・軽度の取得 | |
lat = pos.coords.latitude; | |
lon = pos.coords.longitude; | |
//マーカーの追加 | |
var markers = new OpenLayers.Layer.Markers("Markers"); | |
map.addLayer(markers); | |
//マーカーの設定 | |
var marker = new OpenLayers.Marker( |
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
//これはOpenLayerで作成しております。 | |
//htmlファイルに以下のタグを入れて設定して下さい。 | |
//<script src='OpenLayers.js'></script> | |
//<script src='mapping_touch.js'></script> | |
//<style type="text/css"> | |
// html { height: 100% } | |
// body { height: 100%; margin: 0; padding: 0 } | |
// #map_canvas { height: 50%;float: left; } | |
//</style> |
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
//GoogleMapsの座標設定 | |
var initPos = new google.maps.LatLng(34.73027800000027,136.5085889999976); | |
//GoogleMapsの表示設定 | |
var myOptions = { | |
noClear : true, | |
center : initPos, | |
zoom : 17, | |
mapTypeId : google.maps.MapTypeId.ROADMAP | |
}; | |
//map_canvasへの書き込み |
NewerOlder