This script hides any element who's content doesn't match the words typed in the input field.
A Pen by Agustín Amenabar on CodePen.
<?php | |
/** | |
* Una simple función para obtener los costos de envío de un paquete mediante Chilexpress. | |
* Como única dependencia se necesita de la liberia PHP Simple HTML DOM Parser: http://simplehtmldom.sourceforge.net/ | |
* | |
* Para poder comunicarse con Chilexpress, se debe tener la lista de todas las comunas que ellos utilizan y el código | |
* que le asignan a cada una. En este archivo, al final, podrás encontrar el listado, el cual podrás parsear fácilmente | |
*/ |
// It will add the appropriate class to <html> node | |
// This should only be used in combination with media queries detecting wide screens, because it is not reliable. | |
// Always use with a mobile-first approach | |
var root = document.documentElement; | |
if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { | |
root.className += ' touch'; | |
} else { | |
root.className += ' no-touch'; | |
} |
<head> | |
<title>Título</title> | |
<!--[if lt IE 8 ]><link rel="stylesheet" href="/styles/legacy-ie.css" /><![endif]--> | |
<!--[if gt IE 9]><!--><link rel="stylesheet" href="/styles/styles.css" /><!--<![endif]--> | |
</head> |
var Common = { | |
addEvent : function(ele, evType, fn, useCapture) { | |
if (ele.addEventListener) { | |
ele.addEventListener(evType, fn, useCapture); | |
return true; | |
}else if (ele.attachEvent) { | |
var r = ele.attachEvent('on' + evType, fn); | |
return r; | |
} else { | |
ele['on' + evType] = fn; |
This script hides any element who's content doesn't match the words typed in the input field.
A Pen by Agustín Amenabar on CodePen.
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
var largo = 16.014; | |
var total = 16.014; | |
var ancho = 0.03; | |
var vueltas = 0; | |
for (largo=largo; largo>0; largo-=(ancho*6.28)){ | |
total+=largo; | |
console.log('total: ',total); | |
vueltas++; | |
} | |
console.log('total general: ',total); |
<?php | |
$nombreMarca = 'Client Brand'; | |
$mailAministrador = 'me@client.com'; | |
$mailWebmaster = 'now@iminabar.com'; | |
//the above are usually already on the script. | |
function avisaWebmaster($message=''){ | |
$message.="\r\n\r\nen la fecha:".date('Y-n-d H:i:s'); | |
$message.="\r\n\r\nen el archivo:".$_SERVER['PHP_SELF']."\r\nllamdo en:".$_SERVER['REQUEST_URI']; | |
$message.="\r\n\r\ncon la info:".@print_r( $_SERVER, true ); | |
global $mailWebmaster; |
<h1>Hellô Töòltip</h1> | |
<p>Here we have some unimportant information. <a href="#">Our company</a> provides solutions to the needs and requirements of our clients.</p> | |
<p> | |
<a href="javascript:;" class="tooltip-minimum">?<span>Sure, just hover or tab to this anchor tag and you'll see a tooltip apear.</span></a> | |
Might this require more explanation. | |
<a href="javascript:;" class="tooltip">?<span>Sure, just hover or tab to this anchor tag and you'll see a tooltip apear.</span></a> | |
</p> |
<h1>Hellô Töòltip</h1> | |
<p>Here we have some unimportant information. <a href="#">Our company</a> provides solutions to the needs and requirements of our clients.</p> | |
<p><a href="javascript:;" class="tooltip">?<span>Sure, just hover or tab to this anchor tag and you'll see a tooltip apear.</span></a> This might require more explanation.</p> |