Skip to content

Instantly share code, notes, and snippets.

View DioVayne's full-sized avatar

Dio Vayne DioVayne

View GitHub Profile
@DioVayne
DioVayne / box-sizing.css
Created November 20, 2013 08:40
box sizing FTW
*, *:before, *:after {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
@DioVayne
DioVayne / facebook like.html
Created November 13, 2013 07:23
Alternatief facebook like
<!-- Facebook Like -->
<div id="fb-root"></div>
<script>(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div style='float:left;'>
@DioVayne
DioVayne / equalHeight.js
Created September 25, 2013 11:16
//kolommen even hoog maken bv. equalHeight($('.content').find('article'));
function equalHeight(group) {
var tallest = 0;
if(group.length){
group.each(function () {
var thisHeight = $(this).height();
if (thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
@DioVayne
DioVayne / fancybox jquery .txt
Created July 4, 2013 09:25
fix for old plugins using $.browser
http://stackoverflow.com/questions/14344289/fancybox-doesnt-work-with-jquery-v1-9-0-f-browser-is-undefined-cannot-read
replace $.browser.msie by navigator.userAgent.match(/msie [6]/i)
OF?
https://raw.github.com/house9/jquery-iframe-auto-height/master/release/jquery.browser.js