Skip to content

Instantly share code, notes, and snippets.

View carloshs92's full-sized avatar
🎯
Focusing

Carlos carloshs92

🎯
Focusing
View GitHub Profile
@carloshs92
carloshs92 / Orden sublistas
Created June 10, 2014 21:29
Sub listas ordenadas
<style type='text/css'>
/*<![CDATA[*/
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }
/*]]>*/
</style>
@carloshs92
carloshs92 / Custom ParsleyValidator
Last active August 29, 2015 14:01
Custom ParsleyValidator
window.ParsleyValidator.addValidator("document", (value, requirement) ->
tipo = parseInt($(dom.selDocument).val())
switch tipo
#DNI
when 1
error_msg = 'dni'
value.length == 8
#RUC
when 2
error_msg = 'ruc'