Skip to content

Instantly share code, notes, and snippets.

View geenkaas's full-sized avatar
:octocat:
Available for work!

Geenkaas geenkaas

:octocat:
Available for work!
View GitHub Profile
@geenkaas
geenkaas / document.title
Created December 20, 2011 16:01
Easy and unobtrusive way to alert in Javascript
document.title = 'Easy alert for you!';
@geenkaas
geenkaas / ipad detection
Created January 4, 2012 09:43
PHP iPad detection
<?php
$isiPad = (strpos($_SERVER['HTTP_USER_AGENT'],'iPad') !== false) ? true : false;
if ($isiPad) { ?>
// You are an iPad
<?php } else { ?>
// You are not an iPad
<?php };
?>
@geenkaas
geenkaas / fsbg-styles
Created October 29, 2012 10:34
Fullscreen background - CSS styles
#background {
height: 100%;
position: fixed;
width: 100%;
z-index: -666;
}
#background img {
height: auto;
width: 100%;
}
<main class="s-site__content">
/* content */
</main>
<aside class="s-site__sidebar">
/* widgets */
</aside>
<main class="s-site__content s-site__content--fullwidth">
/* content */
</main>
<div class="s-row">
<div class="s-row__column s-row__column--6-12">
One half (6/12)
</div>
<div class="s-row__column s-row__column--3-12">
One quarter (3/12)
</div>
<div class="s-row__column s-row__column--2-12">
One sixth (2/12)
</div>
<div class="s-row s-row--responsive">
<div class="s-row__column s-row__column--4-12">
One third (4/12)
</div>
<div class="s-row__column s-row__column--4-12">
One third (4/12)
</div>
<div class="s-row__column s-row__column--4-12">
One third (4/12)
</div>
<header class="s-masthead">
<div class="s-column">
</div>
</header>
<div class="s-body">
<div class="s-column">
<main class="s-content">
</main>