Crossword

HTML                          
                                                             View Domo


 var fruits = ["i", "c", "e", "n", "e", "r","f", "s", "i", "o", "n", "v", "n", "d", "a", "s", "m", "a", "n", "g","r", "o", "v", "e", "s", "e", "n", "i", "r", "g", "d", "f", "g", "d", "f", "v", "e", "e", "i", "l", "l", "e", "g","a", "l", "r", "t", "e", "i", "d", "e", "c", "o", "l", "o", "g", "y", "n"];
   
$("#btn1").live('click',function(){  
    var arrInputValues = new Array();  
      $("input[name='table']").each(function(){
           arrInputValues.push($(this).val()); 
      });
   
count=0;
for(var i=0;i<58;i++){
if(fruits[i] == arrInputValues[i]){
count++;
if(count == 58){
$('.corr').show();
}
}
else{
$('.incorr').show();
break;
}
}
 });

 


$('.hint').live('click', function() {
var fg=$(this).attr("id");
$('#'+fg).val(fruits[fg]);


});

var hint=1;
$('#hintans').live('click', function() {
if(hint == 1){
hint=2;
$('.tal').addClass("hint");
$('#hintans').css({"opacity":".5"});
}else{
hint=1;
$('.tal').removeClass("hint");
$('#hintans').css({"opacity":"1"});
}
});
var now=45;
$('#reset').live('click', function() {
$('.tal').val(null);

 
});

$(document).ready(function() {
  $('.tal').val(null);
   $(':input').autotab_magic();
});

1 comment:

  1. #bio_stetting_ifr { width: 96% !important; }
    /*This will work for firefox*/
    @-moz-document url-prefix() {
    #bio_stetting_ifr
    {
    width: 99.8% !important;
    }
    }

    ReplyDelete