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
<?xml version="1.0" encoding="iso-8859-2"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl-PL" lang="pl-PL"> | |
<head> | |
<title>Pierwszy program w jQuery, zapraszam!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> | |
</head> | |
<body> | |
<div id="main"> | |
<p> |
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
<head> | |
<title>Pierwszy program w jQuery, zapraszam!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> | |
<script type="text/javascript" charset="utf-8" src='jquery.js'></script> | |
<script type="text/javascript" charset="utf-8" src='application.js'></script> | |
</head> |
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
jQuery(function() { | |
var a = "Witam! oto mój pierwszy krok w świat jQuery."; // do zmiennej a przypisujemy tekst, który chcemy wyświetlić | |
alert(a); // wypisujemy wartość zmiennej na ekran przez okno modalne | |
}); |
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
$('#main p').click( function(){ | |
$("p").addClass('rose'); | |
}); |
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
#main { font-family:'Helvetica Neue', helvetica, Arial, sans-serif; } | |
#main p { cursor: pointer; } | |
.rose{ color: #FF2B6B; } |
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
?xml version="1.0" encoding="iso-8859-2"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl-PL" lang="pl-PL"> | |
<head> | |
<title>Pierwszy program w jQuery, zapraszam!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> | |
<script type="text/javascript" charset="utf-8" src='jquery.js'></script> | |
<script type="text/javascript" charset="utf-8" src='application.js'></script> | |
<link href="style.css" media="screen" rel="stylesheet" type="text/css"/> | |
</head> |
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
<head> | |
<title>Pierwszy program w jQuery, zapraszam!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> | |
<script type="text/javascript" charset="utf-8" src='jquery.js'></script> | |
<script type="text/javascript" charset="utf-8" src='application.js'></script> | |
<link href="style.css" media="screen" rel="stylesheet" type="text/css"/> | |
</head> |
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
<?xml version="1.0" encoding="iso-8859-2"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl-PL" lang="pl-PL"> | |
<head> | |
<title>Pierwszy program w jQuery, zapraszam!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> | |
<script type="text/javascript" charset="utf-8" src='jquery.js'></script> | |
<script type="text/javascript" charset="utf-8" src='application.js'></script> | |
<link href="style.css" media="screen" rel="stylesheet" type="text/css"/> | |
</head> |
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
$('#main a').click( function(){ | |
$("#main p").fadeOut('slow'); | |
}); |
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
$('#main p').click( function(){ | |
// tutaj będzie zestaw instrukcji | |
} |
OlderNewer