Skip to content

Instantly share code, notes, and snippets.

@ndusan
Created June 20, 2012 20:54
Show Gist options
  • Save ndusan/2962155 to your computer and use it in GitHub Desktop.
Save ndusan/2962155 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".slider").slideshow({
width : 900,
height : 325,
transition : 'square'
});
$('.lightbox').lightbox();
$('body').delegate('form', 'submit', function(){
var allOk = true;
$('.jr').each(function(){
if($(this).val().length <= 0 || $(this).attr('title') == $(this).val() || $(this).attr('title') == $(this).html()){
$(this).addClass('warning');
allOk = false;
}else{
$(this).removeClass('warning');
}
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment