Lista de definicion vertical
Estilo en columna para lista de definición vertical a una columna. De inspiracion de National Geographic. Dependencia: Bootstrap 3 + Google Fonts para 'PT Sans Narrow'
A Pen by Aitor Alejandro on CodePen.
$(window).bind("resize", function () { | |
if ($(window).width() < 768) { | |
// extra small | |
$("#modo").text("Modo activo: Extra Small"); | |
} | |
else if ($(window).width() > 768 && $(window).width() <= 992) { | |
// small | |
$("#modo").text("Modo activo: Small"); | |
} | |
else if ($(window).width() > 992 && $(window).width() <= 1200) { |
$('.js-soloNumeros-coma').keydown(function(event){ | |
//Permite números y una sola coma | |
var bYaHayComa = $(this).val().indexOf(',') < 0 ? false : true; | |
// Permitir: backspace, delete, tab, escape, y enter | |
if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || | |
event.keyCode == 27 || event.keyCode == 13 || (event.keyCode == 188 && !bYaHayComa) ||//coma | |
// Permitir: Ctrl+A, Ctrl+C, Ctrl+V y Ctrl+X | |
(event.keyCode == 65 && event.ctrlKey === true) || | |
(event.keyCode == 67 && event.ctrlKey === true) || | |
(event.keyCode == 86 && event.ctrlKey === true) || |
Lista de definicion vertical
Estilo en columna para lista de definición vertical a una columna. De inspiracion de National Geographic. Dependencia: Bootstrap 3 + Google Fonts para 'PT Sans Narrow'
A Pen by Aitor Alejandro on CodePen.
/* *** iframes *** */ | |
/* Mini-libreria que resuelve las acciones mas comunes con iframes */ | |
/* siempre que los iframes sean del mismo dominio */ | |
function getIframe(iframeElement){ | |
//devuelve el document de un iframe | |
return iframeElement.contentDocument; | |
} | |
//uso | |
var innerdoc = getIframe( document.getElementById('iframe_id') ); |
$('.js-soloNumeros').keydown(function(event){ | |
// Permitir: backspace, delete, tab, escape, y enter | |
if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || | |
event.keyCode == 27 || event.keyCode == 13 || | |
// Permitir: Ctrl+A, Ctrl+C, Ctrl+V y Ctrl+X | |
(event.keyCode == 65 && event.ctrlKey === true) || | |
(event.keyCode == 67 && event.ctrlKey === true) || | |
(event.keyCode == 86 && event.ctrlKey === true) || | |
(event.keyCode == 88 && event.ctrlKey === true) || | |
// Permitir: inicio, fin, left, right |
<!-- begin of favico --> | |
<!-- ?v=xxx es para evitar el cacheo de los navegadores, si cambiamos alguna imagen incluiremos una nueva versión --> | |
<link href="/img/icons/favicon.ico?v=111" rel="icon"/> | |
<link rel="shortcut icon" href="/img/icons/favicon.ico?v=111" /> | |
<!-- apple --> | |
<link rel="apple-touch-icon-precomposed" href="/img/icons/apple-touch-icon-57x57.png?v=111" /> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/img/icons/apple-touch-icon-72x72.png?v=111"/> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/img/icons/apple-touch-icon-114x114.png?v=111" /> | |
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-57x57.png?v=111" /> |
.inner-top-shadow{ | |
-webkit-box-shadow: inset 0 20px 20px -20px #dbdbdb; | |
-moz-box-shadow: inset 0 20px 20px -20px #dbdbdb; | |
box-shadow: inset 0 20px 20px -20px #dbdbdb;} | |
.inner-bottom-shadow{ | |
-webkit-box-shadow: inset 0 -20px 20px -20px #dbdbdb; | |
-moz-box-shadow: inset 0 -20px 20px -20px #dbdbdb; | |
box-shadow: inset 0 -20px 20px -20px #dbdbdb;} |
function cargarScript(sRutaScript,callback){ | |
var elemScript=document.createElement("script"); | |
elemScript.type="text/javascript"; | |
if( elemScript.readyState ){ | |
elemScript.onreadystatechange=function(){ | |
if( elemScript.reareadyState === "loaded" || elemScript.reareadyState === "complete"){ | |
elemScript.onreadystatechange=null; | |
callback(); | |
} | |
} |