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="example"> | |
<div class="outer"> | |
<div id="centeredContent" class="inner"> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. | |
</div> | |
</div> | |
</div> |
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
/*sinceHow | |
@Author Simone Luise | |
@Mail me@simoneluise.com | |
A simple function to calcunate how much time has elapsed since a date. | |
The funcion have only one attribute: "time". | |
Time must be a valid string for generate a new Data() object. Like: |
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
// @include font-face($style-name, $file, $family, $category); | |
// $style-name being the name of the font e.g. Helvetica | |
// $file meaning the file name, without the file extensions | |
// $family being the folder inside the fonts folder where the font files are | |
// $category is serif or sans-serif or monospace etc. as a fall back in CSS | |
// Here with real values: | |
// | |
// @include font-face('Ashbury', 'AshburyLig-webfont', 'Ashbury', 'serif'); | |
// use with iconmoon: https://icomoon.io/app/#/select/font |
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
$('.tab a').on('click', function(){ | |
if ($(this).html() == 'FACEBOOK' && typeof xx == 'undefined') { | |
// DUMMY VARIABLE TO CALL THE FUNCTION ONLY THE FIRST TIME THE USER CLICKS THE TAB: | |
xx = 1; | |
(function(d, s, id) { | |
var js; | |
var fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; |
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
[class*="strip-header"] { | |
width: 100%; | |
overflow: hidden; | |
} | |
* { | |
font-family:'Century Gothic'; | |
padding:0; | |
margin:0; | |
color:#E0B880 | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |