Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Krzysztof Dudzik praca_domowa_2-5 #4

Open
wants to merge 25 commits into
base: winter2016
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0578551
Contact change. Title of subject change.
Feb 10, 2016
553d034
UŁ fix
Feb 15, 2016
04ee897
Modified emails for direct contact.
senssei Feb 16, 2016
78367ae
Merge pull request #1 from senssei/summer2016_ul
leszczynski-it Feb 16, 2016
ec0308a
Additional comments and bibliography for first lesson exercises.
senssei Feb 22, 2016
6c7cce2
Update url s
senssei Feb 22, 2016
488bcde
Merge pull request #2 from senssei/summer2016_ul
leszczynski-it Feb 22, 2016
57d466f
Added missing ubuntu image url
senssei Feb 22, 2016
7373d27
Merge pull request #3 from senssei/summer2016_ul
leszczynski-it Feb 22, 2016
7a0779a
Changes in Lesson 4
leszczynski-it Mar 8, 2016
991fb50
Merge pull request #1 from leszczynski-it/summer2016_ul
senssei Mar 8, 2016
de249cb
Added homework for DOM lesson
senssei Mar 8, 2016
6bec6cf
Merge pull request #7 from senssei/summer2016_ul
leszczynski-it Mar 8, 2016
411638d
Fixed dom loaded error
senssei Mar 9, 2016
abc658f
Merge pull request #10 from senssei/summer2016_ul
leszczynski-it Mar 15, 2016
cf7a6c3
Updated description
senssei Mar 18, 2016
90c74d9
Merge pull request #13 from senssei/summer2016_ul
leszczynski-it Mar 21, 2016
0ee66cd
jshint install instruction for vs code
leszczynski-it Mar 22, 2016
c993cac
Update README.md
senssei Mar 29, 2016
311fc7d
Merge pull request #18 from senssei/patch-1
leszczynski-it Mar 30, 2016
8ceb9e1
Change get to post
leszczynski-it Apr 25, 2016
1b5176c
Merge branch 'summer2016_ul' of https://github.com/leszczynski-it/Kur…
leszczynski-it Apr 25, 2016
80944b5
Plan
leszczynski-it Apr 25, 2016
1f0675f
jspm added
leszczynski-it May 10, 2016
d564a3f
Merge branch 'summer2016_ul' of https://github.com/leszczynski-it/Kur…
leszczynski-it May 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions Lesson 1/code/exercises/exercise1.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
<title>Exercise 1</title>
</head>

<body>

<p>Check Variables: x = ?, y = ?, z = ?</p>
<p>Test: x = ?, y = ?, z = ?</p>
<p>Check Variables: x = ?, y = ?, z = ?</p>
<body>
<!--
1. Open this document side-by-side on browser (with js console opened) and code editor.
2. Analyse JavaScript code below, keep in mind function scope :)
3. Try to guess values variable values in each part of exercise (points 1,2,3)
4. Test it and put values in the comments.
-->
<h1>Guess and click game</h1>
<ol>
<li>Click "Check Variables": x = ?, y = ?, z = ?</li>
<li>Click "Test": x = ?, y = ?, z = ?</li>
<li>Click "Check Variables": x = ?, y = ?, z = ?</li>
</ol>

<button id="testButton">Test</button>
<button id="checkVariablesButton">Check Variables</button>
Expand All @@ -17,10 +25,11 @@
var x = 4;
y = 10;

function checkVariables() {
function checkVariables() {
alert('x: ' + x); //x = ??
alert('y: ' + y); //y = ??
alert('z: ' + z); //z = ??

}

function test() {
Expand All @@ -33,6 +42,7 @@
alert('z: ' + z); //z = ??
}


</script>

<script type="text/javascript">
Expand Down
23 changes: 22 additions & 1 deletion Lesson 1/code/exercises/exercise2.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@
</head>

<body>

<!--
1. Open this document side-by-side on browser (with js console opened) and code editor.
2. Analyse JavaScript code below.
3. Write your own implementation of methods:
a. countBoolean,
b. countNumber,
c. countString,
d. countFalsy
All methods should return right count of Boolean, Number, String or Falsy value.
Don't be decived by empty Objects :)
4. Test it out :)

Bibliography
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
https://developer.mozilla.org/en-US/docs/Glossary/Falsy
-->
<h1>Value counter</h1>
<p>Boolean: <label id="boolLabel"></label></p>
<p>Number: <label id="numberLabel"></label></p>
<p>String: <label id="stringLabel"></label></p>
Expand All @@ -24,18 +41,22 @@
var arr = [];

function countBoolean() {
//!!!!!!!!!
return 0;
}

function countNumber() {
//!!!!!!!!!
return 0;
}

function countString() {
//!!!!!!!!!
return 0;
}

function countFalsy() {
//!!!!!!!!!
return 0;
}

Expand Down
21 changes: 20 additions & 1 deletion Lesson 1/code/exercises/exercise3.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@
</head>

<body>

<!--
1. Open this document side-by-side on browser (with js console opened) and code editor.
2. Analyse JavaScript code below.
3. Write your own implementation of methods:
a. addStandardBook,
b. addVipBook,
c. borrowStandardBook,
d. borrowVipBook
Based on standard Array operations (push, pop, ...)
4. Fill in implementation of methods:
a. printStandards
b. printVip
Based on some advanced methods like filter or your own implementation.
5. Test it out :)

Bibliography
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
-->
<h1>Stellar library</h1>
<p>
Standard Books: <br />
Free: <label id="standardFreeLabel"></label> <br />
Expand Down
73 changes: 42 additions & 31 deletions Lesson 1/presentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">

<title>Web Applications [UAM]- by Damian Sosnowski</title>
<title>Modern Web Applications [UŁ] - by Damian Sosnowski</title>

<meta name="author" content="Damian Sosnowski">

Expand Down Expand Up @@ -42,10 +42,12 @@
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Web Appliations</h1>
<p><b>Damian Sosnowski</b><br />[email protected]</p>
<p><b>Andrzej Matłosz</b><br />[email protected]</p>
<p>Materials: <a href="https://github.com/sosnowski/Kurs_UAM">https://github.com/sosnowski/Kurs_UAM</a></p>
<h1>Modern Web Applications</h1>
<p><b>Piotr Leszczyński</b><br />[email protected]</p>
<p><b>Rafał Warzycha</b><br />[email protected]/p>
<p>Ubuntu vBox image: <a href="http://just4fun.io/nai-lab.ova">http://just4fun.io/nai-lab.ova</a></p>
<p>Materials: <a href="https://github.com/leszczynski-it/Kurs_UL">https://github.com/leszczynski-it/Kurs_UL</a></p>
<p>Based on: <a href="https://github.com/sosnowski/Kurs_UAM">https://github.com/sosnowski/Kurs_UAM</a></p>
</section>

<section>
Expand All @@ -60,32 +62,41 @@ <h2>Content of the course:</h2>
<li>AngularJS - Currently, the most popular MVC framework</li>
</ol>
</section>

<section>
<div class="columns">
<div class="column">
<h2>Tools and Software</h2>

<ul>
<li>Nodejs - <a href="http://nodejs.org">http://nodejs.org/</a></li>
<li>Good Browser - Google Chrome / Firefox / IE 10+</li>
<li>Brackets.io - or any other decent editor</li>
<li>Git and github account</li>
</ul>
</div>

<div class="column">
<h2>Requirements</h2>
<ul>
<li>Participation (max 3 absences)</li>
<li>Weekly tasks</li>
<li>2 practice tasks</li>
<li>Final, group project. 3 phases.</li>
</ul>
</div>
</div>
</section>


<section>
<section>
<div class="columns">
<div class="column">
<h2>Tools and Software</h2>

<ul>
<li>Nodejs - <a href="http://nodejs.org">http://nodejs.org/</a></li>
<li>Good Browser - Google Chrome / Firefox / IE 10+</li>
<li>Brackets.io - or any other decent editor</li>
<li>Git and github account</li>
</ul>
</div>

<div class="column">
<h2>Requirements</h2>
<ul>
<li>Participation (max 3 absences)</li>
<li>Weekly tasks</li>
<li>2 practice tasks</li>
<li>Final, group project. 3 phases.</li>
</ul>
</div>
</div>
</section>
<section>
<h1>Git and Github resources</h1>
<ul>
<li>Atlassian git tutorials <a href="https://www.atlassian.com/git/tutorials/setting-up-a-repository">https://www.atlassian.com/git/tutorials/setting-up-a-repository</a> </li>
<li>Github tutorials <a href="https://help.github.com">https://help.github.com</a></li>
</ul>
</section>
</section>

<section>
<h2>Web applications</h2>
<p class="fragment">What is a web application?</p>
Expand Down
4 changes: 3 additions & 1 deletion Lesson 10 - WebSockets/code/complexChat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app.js"
"start": "node app.js",
"postinstall": "jspm install"
},
"dependencies": {
"body-parser": "^1.12.2",
"express": "3.4.4",
"jspm": "^0.16.34",
"method-override": "^2.3.2",
"morgan": "^1.5.2",
"multer": "^0.1.8",
Expand Down
2 changes: 1 addition & 1 deletion Lesson 2 - Functions/presentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<section>
<h1>Web Appliations</h1>
<h3>JavaScript - Functions</h3>
<p>Materials: <a href="https://github.com/sosnowski/Kurs_UAM">https://github.com/sosnowski/Kurs_UAM (winter2016)</a></p>
<p>Materials: <a href="https://github.com/leszczynski-it/Kurs_UL">https://github.com/leszczynski-it/Kurs_UL</a></p>
</section>

<section>
Expand Down
2 changes: 1 addition & 1 deletion Lesson 3 - Objects/presentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<section>
<h1>Web Appliations</h1>
<h3>JavaScript - Objects</h3>
<p>Materials: <a href="https://github.com/sosnowski/Kurs_UAM">https://github.com/sosnowski/Kurs_UAM (summer2015)</a></p>
<p>Materials: <a href="https://github.com/leszczynski-it/Kurs_UL">https://github.com/leszczynski-it/Kurs_UL</a></p>
</section>

<section>
Expand Down
16 changes: 0 additions & 16 deletions Lesson 4 - DOM/code/app.css

This file was deleted.

44 changes: 0 additions & 44 deletions Lesson 4 - DOM/code/app.js

This file was deleted.

File renamed without changes.
7 changes: 7 additions & 0 deletions Lesson 4 - DOM/code/exercise1/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.valid {
color: green;
}

.invalid {
color: red;
}
4 changes: 4 additions & 0 deletions Lesson 4 - DOM/code/exercise1/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
window.addEventListener('DOMContentLoaded', function () {
//When the page structure is loaded...

});
31 changes: 31 additions & 0 deletions Lesson 4 - DOM/code/exercise1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">

<title>Validation</title>

<meta name="author" content="Damian Sosnowski">

<link rel="stylesheet" href="app.css">
<script type="text/javascript" src="app.js"></script>
</head>
<body>

<div>
<h1>Odd number validation</h1>
<input type="text" name="oddnumber" />
</div>

<div>
<h1>Even number validation</h1>
<input type="text" name="evennumber" />
</div>

<div>
<input type="submit" value="Submit" />
</div>

</body>
</script>
Loading