View fix-gravatar-alt.js
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 crunchify_gravatar_alt( $crunchifyGravatar ) { | |
if ( have_comments() ) { | |
$alt = get_comment_author(); | |
} | |
else { | |
$alt = get_the_author_meta( 'display_name' ); | |
} | |
$crunchifyGravatar = str_replace( 'alt=\'\'', 'alt=\'Avatar for ' . $alt . '\' title=\'Gravatar for ' . $alt . '\'', $crunchifyGravatar ); | |
return $crunchifyGravatar; | |
} |
View gist:7b40e2d0fd9ee7a2698220c8d7c31695
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
<script> | |
function loadAPI() { | |
var js = document.createElement('script'); | |
js.src = '//connect.facebook.net/zh_TW/sdk.js#xfbml=1&appId=YOUR_APP_ID&version=v3.2'; | |
document.body.appendChild(js); | |
} | |
window.onscroll = function () { | |
var rect = document.getElementById('comments').getBoundingClientRect(); | |
if (rect.top < window.innerHeight) { |
View gist:41e687628f2f91736ae7180229633298
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
<meta property="fb:admins" content="YOUR_FACEBOOK_USER_ID" /> | |
<meta property="fb:app_id" content="YOUR_APP_ID" /> |
View css filter grayscale.htm
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
<style> | |
html { | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); | |
_filter: none; | |
} | |
</style> |
View css filter grayscale.css
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
html { | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); | |
_filter: none; | |
} |
View gist:ab240898fdbaf846797c905c57a5cb95
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
<script type='text/javascript' src='https://c0.wp.com/c/4.9.8/wp-includes/js/jquery/jquery.js'></script> | |
<script type='text/javascript' src='https://c0.wp.com/c/4.9.8/wp-includes/js/jquery/jquery-migrate.min.js'></script> | |
<link rel='stylesheet' id='jetpack_css-css' href='https://c0.wp.com/p/jetpack/6.6.1/css/jetpack.css' type='text/css' media='all' /> | |
<link rel='stylesheet' id='dashicons-css' href='https://c0.wp.com/c/4.9.8/wp-includes/css/dashicons.min.css' type='text/css' media='all' /> | |
<link rel='stylesheet' id='admin-bar-css' href='https://c0.wp.com/c/4.9.8/wp-includes/css/admin-bar.min.css' type='text/css' media='all' /> | |
<link rel='stylesheet' id='genericons-css' href='https://c0.wp.com/p/jetpack/6.6.1/_inc/genericons/genericons/genericons.css' type='text/css' media='all' /> | |
<link rel='stylesheet' id='twentysixteen-jetpack-css' href='https://c0.wp.com/p/jetpack/6.6.1/modules/theme-tools/compat/twentysixteen.css' type='text/css' media='all' /> |
View facebook-customer-chat-plugin.htm
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
<div class="fb-customerchat" | |
page_id="<PAGE_ID>" | |
ref="<OPTIONAL_WEBHOOK_PARAM>" | |
minimized="<true|false>"> | |
</div> |
View Facebook-SDK.htm
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
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'your-app-id', | |
autoLogAppEvents : true, | |
xfbml : true, | |
version : 'v2.11' | |
}); | |
}; |
View index.js
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
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
View youtube-audio-player.html
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
<div data-video="VIDEO_ID" | |
data-autoplay="0" | |
data-loop="1" | |
id="youtube-audio"> | |
</div> | |
<script src="https://www.youtube.com/iframe_api"></script> | |
<script src="https://cdn.rawgit.com/labnol/files/master/yt.js"></script> |
NewerOlder