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
//画像の先読み | |
function loadImg(imgArr){ | |
for(var i=0;i<imgArr.length;i++){ | |
var imgObj=new Image(); | |
imgObj.src=imgArr[i]; | |
console.log(i); | |
}} | |
var arr=["paint01.png","paint02.png","paint03.png","paint04.png","paint05.png"]; | |
loadImg(arr); |
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
//文字列から任意の文字の数をカウントする | |
function dataCount(keyStr,word ){ | |
var cnt=word.split(keyStr).length-1; | |
return count; | |
} |
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
//ツイートの件数を取得する | |
$.getJSON("https://api.twitter.com/1/users/lookup.json?callback=?&screen_name=ds_style729&include_entities=true", | |
function(data) { | |
//console.log(data[0].statuses_count); | |
if(data!== undefined) { | |
$(".tweet").html("The present tweet number is " + data[0].statuses_count +"."); | |
} | |
}); | |
} |
NewerOlder