Skip to content

Instantly share code, notes, and snippets.

@internoma
internoma / svg-supoort.css
Created January 6, 2013 11:06
Soporte para img SVG
.svg_support {
content: url(../img/imagenSvg.svg);
}
@internoma
internoma / style-desaturate.css
Created January 6, 2013 11:07
Desaturate & saturate css3
.desaturate {
filter: grayscale(100%); /* Current draft standard */
-webkit-filter: grayscale(100%); /* New WebKit */
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%); /* Not yet supported in Gecko, Opera or IE */
filter: url(resources.svg#desaturate); /* Gecko */
filter: gray; /* IE */
-webkit-filter: grayscale(1); /* Old WebKit */
}
@internoma
internoma / README.mdown
Created January 6, 2013 12:34
Reading JSON file and append list options into element select

Lee un archivo json y añade la lista de opciones a un elemento select

Reading json file and append list options into element select

@internoma
internoma / htaccess.conf
Created January 6, 2013 21:56
HTACCESS: zincarquitectos.com
# HTACCESS: Alfredo González P.
# Configuración avanzada
# Advanced settings
# Añadir soporte para imágenes svg
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# Cache de archivos
<IfModule mod_headers.c>
@internoma
internoma / index.html
Created March 8, 2013 23:36
Bootstrap - Inicialización
<!DOCTYPE html>
<html lang="es-ES">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Bootstrap 2.3 INI</title>
<!-- Bootstrap css -->
@internoma
internoma / script.js
Created May 20, 2013 18:53
Jquery on document ready
$(document).on('ready', function() {
// Mejor añadir clase que css en línea como css()
// addClass() añade clase
// removeClass() borra una clase
// toggleClass() conmuta una clase
});
@internoma
internoma / script.js
Created May 20, 2013 18:53
Jquery Responsive @mediaqueries
$(document).ready(function($) {
/* getting viewport width */
var responsive_viewport = $(window).width();
/* if is below 481px */
if (responsive_viewport < 481) {
} /* end smallest screen */
@internoma
internoma / timeout.js
Created May 20, 2013 18:53
Jquery función con timeout
timeout = setTimeout(function(){myFunction(param)},time);
@internoma
internoma / jqueries.js
Created May 20, 2013 18:53
Jquery responsive scripts
$(document).ready(function($) {
/* getting viewport width */
var responsive_viewport = $(window).width();
/* if is below 481px */
if (responsive_viewport < 481) {
} /* end smallest screen */
@internoma
internoma / script.js
Created May 20, 2013 18:53
$('a').click(function (event) {
// Añade efecto a los enlaces - fade
$('a').click(function (event) {
$(this).hide(0,function () {
$(this).fadeTo('slow',1);
});
});