var ucz=$('#grupa > li');
alert("Na aplikacjach klienckich jest "+ucz.
length+" uczniów!");
//---
$("#grupa > li:odd").
css("background-color","#eff270");
//---
$("#pr").
css("background-color","#eff270")
var i=0;
function zad2(){
if(i>1) i=0;
if(i==1){
$("#pr").
attr("value", "Ukryj projekty uczniowskie");
}
if(i==0){
$("#pr").
attr("value", "Zobacz projekty uczniowskie");
}
i++;
}
//---
$("#grupa > li:contains('Maciej')").
remove();
//---
var z4=0;
function zad4(){
if(z4>1) z4=0;
if(z4==1){
$("#ll1").
attr("value", "Ukryj");
}
if(z4==0){
$("#ll1").
attr("value", "Zobacz");
}
z4++;
}
function zad4a(){
$(".listLinks1").
toggle("fast");
}
//---
$("#grupa > li").
hover(function(){
$(this).
animate({paddingLeft
: '+=20px'},200);
},function(){
$(this).
animate({paddingLeft
: '-=20px'},200);
});
//---
$(".obr").
hover(function(){
$('.obr').
css('cursor', 'pointer');
$(".obr").
css("opacity", '0.5');
$(this).
css("opacity", '1');
},function(){
$(".obr").
animate({opacity
: '1'},200);
});
//---
$("#myForm").validate({
rules:{
login: {
required: true,
minlength:6,
maxlength:8
},
haslo: {
required: true,
minlength:8,
maxlength:10
},
haslo2: {
required: true,
equalTo: "#haslo"
}
},
messages: {
login: {
required: "To pole jest wymagane.",
minlength: "Minimum 6 znaków.",
maxlength: "Maksimum 8 znaków."
},
haslo: {
required: "To pole jest wymagane.",
minlength: "Minimum 8 znaków.",
maxlength: "Maksimum 10 znaków."
},
haslo2: {
required: "To pole jest wymagane.",
equalTo: "Podane hasła nie są takie same."
}
}
})
});
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}