This file contains hidden or 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
<object data="http://www.website.com/responsive/img/logo.svg" type="image/svg+xml" class="logo"> | |
<!--[if lte IE 8 ]--> | |
<img src="http://www.website.com/responsive/img/logo.gif" alt="Image Title"> | |
<!--![endif]--> | |
</object> | |
<!-- Edit .svg file and erase width and height properties so it can automatically scale with viewport --> | |
<!-- | |
CSS: | |
img, object { |
This file contains hidden or 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
jQuery.validator.addMethod("DNI", function(value, element) { | |
var cadenadni="TRWAGMYFPDXBNJZSQVHLCKET"; | |
var let = value.substr(value.length-1,1); | |
if(/^([0-9]{8})*[a-zA-Z]+$/.test(value)){ | |
var numero = value.substr(0,value.length-1) % 23; | |
letra=cadenadni.substring(numero,numero+1); | |
if (letra==let) | |
return true; | |
return false; | |
} else if (/^[XYZ]{1}/.test(value)) { |
This file contains hidden or 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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains hidden or 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
@media only screen and (min-width: 320px) and (max-width: 480px) { | |
* { | |
-webkit-box-sizing: border-box; | |
/* Safari/Chrome, other WebKit */ | |
-moz-box-sizing: border-box; | |
/* Firefox, other Gecko */ | |
box-sizing: border-box; | |
/* Opera/IE 8+ */ } | |
img { |
This file contains hidden or 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
{foreach from=$features item=feature} | |
{if $feature.id_feature = 1} | |
<tr> | |
<td>{$feature.value|escape:'htmlall':'UTF-8'}</td> | |
<td>{$feature.id|escape:'htmlall':'UTF-8'}</td> | |
</tr> | |
{/if} | |
{/foreach} |
This file contains hidden or 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
<!doctype html> | |
<header> </header> | |
<body> | |
<span style="float:left;"> | |
<label for="id1">label1:</label> | |
<input type="text" id="id1"/><br> |
This file contains hidden or 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
.icon-facebook { | |
background-position: -50px 0; | |
width: 20px; | |
height: 19px; | |
position: relative; | |
text-indent: -9999px; | |
display: inline-block; | |
} | |
.icon-facebook:after{ | |
background: url("images/sprites/sprite-icons.png") no-repeat scroll -75px 0 transparent; |
This file contains hidden or 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 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_US/all.js#xfbml=1&appId=224015364350232"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</script> | |
This file contains hidden or 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
@font-face { | |
font-family: 'ModernNo.20Regular'; | |
src: url('../fonts/mod20-webfont.eot'); | |
src: url('../fonts/mod20-webfont.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/mod20-webfont.woff') format('woff'), | |
url('../fonts/mod20-webfont.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; | |
} |