This file contains hidden or 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
#Container, | |
#Container a:hover { | |
cursor: url('../images/pointer.png'), | |
url('images/pointer.cur'), | |
default; | |
} |
This file contains hidden or 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
.bg { | |
background-image: url(""), url(""); | |
background-repeat: no-repeat, repeat; | |
background-position: bottom right, center center; | |
} |
This file contains hidden or 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
//ひとつ | |
$('box').css('height', ''); | |
//すべて | |
$('box').removeAttr('style'); |
This file contains hidden or 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
var loadImage = function(img) { | |
var defer = new $.Deferred(); | |
$(img).on('load', function() { | |
defer.resolve(this); | |
}).each(function() { | |
if ( this.complete ) { | |
defer.resolve(this); | |
} | |
}); | |
return defer.promise(); |
This file contains hidden or 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
$(".button").on("click.sub", function(){}); | |
$(".button").off("click.sub") |
This file contains hidden or 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
<iframe width="560" height="315" src="https://www.youtube.com/watch?v=ehzyQvUUcUo?controls=0&showinfo=0&autoplay=1&rel=0&vq=highres" frameborder="0" allowfullscreen></iframe> | |
autoplay=0・・・自動で再生する(1) | |
loop=0・・・繰り返す(1) | |
showinfo=1・・・タイトルや評価などの情報を非表示(0) | |
controls=0・・・コントロールバー非表示 | |
autohide=2・・・再生時にコントロールを自動的に隠す(1)、隠さない(0)、バーは隠すけど再生ボタンは表示(2) | |
theme=dark・・・プレイヤーの色が白(明るいグレー)になります(light)。 | |
rel=1・・・関連動画を非表示に(0) | |
vq=highres・・・動画を一番高い高い画質 |
This file contains hidden or 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
127.0.0.1 local.jp |
This file contains hidden or 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
/** | |
* getLangage | |
* | |
* ブラウザに設定されている言語コードを返す | |
* 例. ja(日本), en(英語), zh(中国), zh-tw(台湾), ko(韓国) | |
* @returns {string} 言語コードを小文字で | |
*/ | |
_self.getLanguage = function( ){ | |
return (window.navigator.userLanguage || | |
window.navigator.language || |
This file contains hidden or 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 | |
$slackApiKey = 'wowowowowowowowowowowowowoow'; | |
$text = 'API TEST!'; | |
$text = urlencode($text); | |
$url = "https://slack.com/api/chat.postMessage?token=${slackApiKey}&channel=%23api&text=${text}&as_user=true"; | |
file_get_contents($url); |