Skip to content

Instantly share code, notes, and snippets.

View applicake's full-sized avatar

Applicake applicake

View GitHub Profile
@applicake
applicake / app_spec.rb
Created March 10, 2012 15:24
le spec aliases
require 'spec_helper'
require 'rack/test'
describe App do
include Rack::Test::Methods
le_me { Object.new }
le(:app) { App }
@applicake
applicake / sciezka.css
Created August 13, 2011 13:36
Przykładowa ścieżka CSS
background-image: url('../images/image.png');
@applicake
applicake / onclick.js
Created July 30, 2011 20:02
jQuery onclick
$('#main p').click( function(){
// tutaj będzie zestaw instrukcji
}
@applicake
applicake / jQuery_fadeout.js
Created July 29, 2011 21:15
jQuery - fadeOout
$('#main a').click( function(){
$("#main p").fadeOut('slow');
});
@applicake
applicake / zniknij_tekst.html
Created July 29, 2011 21:14
link 'zniknij tekst'
<?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>
@applicake
applicake / header_z_css.html
Created July 29, 2011 21:02
Header ze ścieżka do css
<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>
@applicake
applicake / index_rose.html
Created July 29, 2011 21:00
Szablon html z klasa 'rose'
?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>
@applicake
applicake / jQuery_add_class.js
Created July 29, 2011 20:50
jQuery - dodanie klasy
$('#main p').click( function(){
$("p").addClass('rose');
});
@applicake
applicake / style.css
Created July 29, 2011 20:48
Style.css podstawy
#main { font-family:'Helvetica Neue', helvetica, Arial, sans-serif; }
#main p { cursor: pointer; }
.rose{ color: #FF2B6B; }
@applicake
applicake / alert.js
Created July 28, 2011 21:52
jQuery - alert
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
});