Skip to content

Instantly share code, notes, and snippets.

View alvarezmauro's full-sized avatar
👾

Mauro Alvarez alvarezmauro

👾
View GitHub Profile
@alvarezmauro
alvarezmauro / js-getRootUrl.js
Last active October 21, 2016 04:10
JS - Get The Current Root URL
// Retrieve root URL
var rootUrl = location.protocol + '//' + location.host;
@alvarezmauro
alvarezmauro / css-font-face.css
Last active October 21, 2016 04:12
CSS - @font-face (Custom fonts)
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff') format('woff'), /* Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}