This file contains 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><html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/yeikos/jquery.placeholder/master/jquery.placeholder.js"></script> | |
<script type="text/javascript"> | |
$(function() { |
This file contains 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
$('input[name=email]').placeholder(); // Muestra el placeholder del elemento | |
$('input[name=password]').placeholder('Confirmar contraseña'); // Reasigna el valor del placeholder sobre el elemento | |
$.placeholder(false); // Desactiva todos los atributos placeholder temporalmente (pasarle true para la acción contraria) | |
$.placeholder.config.forced = false; // Desactiva la ejecución forzosa del plugin en caso de que el navegador tenga soporte nativo del atributo placeholder. |
This file contains 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
<noscript> | |
<script> | |
alert('Your browser does not support javascript.'); | |
</script> | |
</noscript> |
This file contains 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><html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/yeikos/nodejs.tuenti/master/jquery.tuenti.js"></script> | |
<script type="text/javascript"> |
This file contains 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
<script type="text/javascript" src="argument-script-tag.js">{ init: true }</script> |
This file contains 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
// http://www.yeikos.com/2012/07/controlando-la-ejecucion-simultanea-de-los-eventos-click-y-focus.html | |
$(function() { | |
var mutex; | |
$('#target').on('click focus', function(event) { | |
if (mutex) { |
This file contains 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
// http://www.yeikos.com/2013/01/revitalizando-instancias-javascript.html | |
var Animal = (function() { | |
var Public = function Animal(parent, child) { | |
// Si no se ha creado la instancia | |
if (!(this instanceof Public)) // Public() |
This file contains 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
Math.random().toString(36).substring(2); // 9xfq8ssn2hjjor |
This file contains 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
$(function() { | |
// Enlazamos todos los botones | |
$('body').on('click.fixEOTarget', 'input[type=submit], button', function() { | |
var $self = $(this), | |
$form = $self.closest('form'), | |
remove = function() { |
This file contains 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
// http://www.yeikos.com/2012/07/controlando-la-ejecucion-simultanea-de-los-eventos-click-y-focus.html | |
$(function() { | |
var mutex; | |
$('#target').on('click focus', function(event) { | |
if (mutex) { |
OlderNewer