SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Creative Web 2.
Git, like subversion (svn), is a…

free versioning system
A versioning system…

saves changes to files in commits, !
this keeps changes flexible and !
file sizes small.
Github is a…

platform to collaborate using git !
repositories
Setting up git & github
1. get a free github.com account"
2. download & install the github app"
• https://mac.github.com/"
• https://windows.github.com/"
3. Read the tutorial https://mac.github.com/
help.html
A commit consists of…

a commit message and the changes!
to a file
A commit message…

should give you a brief idea of what
changed with this commit
Any file can be committed…

code, image files, text documents, !
presentations, …
An introduction to

JavaScript
Linking external javascript files!
"
<script type="text/javascript" 

src=“./libs/js/script.js"></script>"
"
src is the relative or absolute path to the file."
"
type tells the brows what kind of script it is and"
always needs to be text/javascript."
In a JavaScript file…

you can start writing js without any!
more declarations.
A variable is a container…

that stores a value.
Variables!
"
Variables always need to be declared using the "
var keyword."
"
Otherwise they are defined globally, which could !
lead to performance and security problems.!
JavaScript has 4 types of variables!
"
• string (text)!
• number (integer e.g. 3 or float e.g. 1.2)!
• object (key-value pairs)!
• array (key-value pairs with numbered keys)
String!
"
var variableName = ‘string’;"
"
A string is a simple text which needs to be "
surrounded by single quotation marks."
Number!
"
var variableInt = 2; // integer"
var variableFloat = 1.3; // float"
"
A number is defined without quotation marks."
Objects!
"
var obj = { "
" ‘name’: ’Max’, "
" ‘gender’: ’male’"
};"
"
Objects are key-value pairs separated by :"
The key has to be a string. The value may be a"
string, object or even a function. "
Objects!
"
varObject.name "
=> returns: Max"
varObject[‘gender’] "
=> returns: male"
"
Object values are retrieved using the "
dot-notation objectName.key or the "
array-notation objectName[key].!
Array objects!
"
var arr = [ ‘item’, ’item 2’ ];"
Arrays are special objects. The key is assigned
automatically and is an index (integer) starting "
from 0."
Array objects!
"
arr[0] "
=> returns: item"
"
Array object values are retrieved using the "
array-notation arrayName[key].!
A function…

is a collection of commands.
Function!
"
var testFn = function( arguments ){"
" // function code here"
};"
"
Functions are stored to a variable and accept"
arguments."
Function!
"
console.log( ‘message’ );"
"
To call a function use its name and provide "
arguments if needed."
Function!
"
var helloWorld = function( name ){"
" var say = ‘Hello ’+name+’.’;"
" console.log(say);"
};"
"
helloWorld(‘Peter’);"
=> returns: Hello Peter"
"
You can call functions within functions and define "
variables within functions.
The idea of scope defines…

where something is available.!
"
You can’t access something that is"
out of scope.
Global scope!
"
varName = ‘test’;"
"
Available everywhere. DO NOT USE THIS.
Local scope!
"
var varName = ‘test’; // inside the js document"
"
Available everywhere within the document.
Local scope in function!
"
var fn( ){"
var varName = ‘test’;"
console.log(varName); // returns: test"
};"
"
console.log(varName); // returns: undefined"
"
Available within the function. Arguments are "
always local variables to a function.
Assignments
1. Write an html pages and include an external js file."
•add a local variable"
•add a function which does something with an 

argument"
•add a local variable to the function

2. Add an external css file and try the following"
•use a css3 gradient on an html element"
•use a transition on something using the :hover 

pseudo-class"
•use a box-shadow"
•use border-radius on something
Lukas Oppermann
lukas@vea.re

Weitere ähnliche Inhalte

Was ist angesagt?

Icinga2 api use cases
Icinga2 api use casesIcinga2 api use cases
Icinga2 api use casesroy peter
 
Method and decorator
Method and decoratorMethod and decorator
Method and decoratorCeline George
 
Codegeneration With Xtend
Codegeneration With XtendCodegeneration With Xtend
Codegeneration With XtendSven Efftinge
 
Workshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScriptWorkshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScriptVisual Engineering
 
Introduction to underscore.js
Introduction to underscore.jsIntroduction to underscore.js
Introduction to underscore.jsJitendra Zaa
 
Node Boot Camp
Node Boot CampNode Boot Camp
Node Boot CampTroy Miles
 
Auto-GWT : Better GWT Programming with Xtend
Auto-GWT : Better GWT Programming with XtendAuto-GWT : Better GWT Programming with Xtend
Auto-GWT : Better GWT Programming with XtendSven Efftinge
 
Introduction to Underscore.js
Introduction to Underscore.jsIntroduction to Underscore.js
Introduction to Underscore.jsDavid Jacobs
 
Practical Protocols with Associated Types
Practical Protocols with Associated TypesPractical Protocols with Associated Types
Practical Protocols with Associated TypesNatasha Murashev
 
Mirage For Beginners
Mirage For BeginnersMirage For Beginners
Mirage For BeginnersWilson Su
 
Avoiding callback hell in Node js using promises
Avoiding callback hell in Node js using promisesAvoiding callback hell in Node js using promises
Avoiding callback hell in Node js using promisesAnkit Agarwal
 

Was ist angesagt? (20)

AddressBook.swift
AddressBook.swiftAddressBook.swift
AddressBook.swift
 
Icinga2 api use cases
Icinga2 api use casesIcinga2 api use cases
Icinga2 api use cases
 
Protocol-Oriented MVVM
Protocol-Oriented MVVMProtocol-Oriented MVVM
Protocol-Oriented MVVM
 
Method and decorator
Method and decoratorMethod and decorator
Method and decorator
 
Codegeneration With Xtend
Codegeneration With XtendCodegeneration With Xtend
Codegeneration With Xtend
 
Workshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScriptWorkshop 1: Good practices in JavaScript
Workshop 1: Good practices in JavaScript
 
Introduction to underscore.js
Introduction to underscore.jsIntroduction to underscore.js
Introduction to underscore.js
 
Node Boot Camp
Node Boot CampNode Boot Camp
Node Boot Camp
 
Auto-GWT : Better GWT Programming with Xtend
Auto-GWT : Better GWT Programming with XtendAuto-GWT : Better GWT Programming with Xtend
Auto-GWT : Better GWT Programming with Xtend
 
Typescript barcelona
Typescript barcelonaTypescript barcelona
Typescript barcelona
 
NestJS
NestJSNestJS
NestJS
 
Android L01 - Warm Up
Android L01 - Warm UpAndroid L01 - Warm Up
Android L01 - Warm Up
 
Introduction to Underscore.js
Introduction to Underscore.jsIntroduction to Underscore.js
Introduction to Underscore.js
 
Underscore
UnderscoreUnderscore
Underscore
 
Practical Protocols with Associated Types
Practical Protocols with Associated TypesPractical Protocols with Associated Types
Practical Protocols with Associated Types
 
Mirage For Beginners
Mirage For BeginnersMirage For Beginners
Mirage For Beginners
 
Avoiding callback hell in Node js using promises
Avoiding callback hell in Node js using promisesAvoiding callback hell in Node js using promises
Avoiding callback hell in Node js using promises
 
Gwt and Xtend
Gwt and XtendGwt and Xtend
Gwt and Xtend
 
Underscore.js
Underscore.jsUnderscore.js
Underscore.js
 
Rails3 changesets
Rails3 changesetsRails3 changesets
Rails3 changesets
 

Andere mochten auch

Категория или "креатифф"?
Категория или "креатифф"?Категория или "креатифф"?
Категория или "креатифф"?Andrey Gornov
 
Ewrt 1 c with lit crit spring 2014 2
Ewrt 1 c with lit crit spring 2014 2Ewrt 1 c with lit crit spring 2014 2
Ewrt 1 c with lit crit spring 2014 2jordanlachance
 
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructure
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructureRST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructure
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructureRussianStartupTour
 
How did you attract/address your audience?
How did you attract/address your audience?How did you attract/address your audience?
How did you attract/address your audience?elliereedx
 
Cmp2015 ritsumei takeda
Cmp2015 ritsumei takedaCmp2015 ritsumei takeda
Cmp2015 ritsumei takedaShiro Takeda
 
20130425 red hot hack
20130425 red hot hack20130425 red hot hack
20130425 red hot hackAnn Treacy
 
Kambbank
KambbankKambbank
Kambbankesak88
 
Tap the game app market with these three deas
Tap the game app market with these three deasTap the game app market with these three deas
Tap the game app market with these three deasiPhone Development
 
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...Leena Koskimäki
 
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda def
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda defInleiding Praktijkmiddag dienstverlening 15 april in Gouda def
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda defKING
 
Super презентация Super Маркетинга ДСУД Ланит
Super презентация Super Маркетинга ДСУД ЛанитSuper презентация Super Маркетинга ДСУД Ланит
Super презентация Super Маркетинга ДСУД ЛанитAlexey Fitiskin
 

Andere mochten auch (17)

Carrefour
CarrefourCarrefour
Carrefour
 
Gabriela DE Trend Scout
Gabriela DE Trend ScoutGabriela DE Trend Scout
Gabriela DE Trend Scout
 
Категория или "креатифф"?
Категория или "креатифф"?Категория или "креатифф"?
Категория или "креатифф"?
 
2014 Caltrans Construction Program Update by Mark Leja
2014 Caltrans Construction Program Update by Mark Leja2014 Caltrans Construction Program Update by Mark Leja
2014 Caltrans Construction Program Update by Mark Leja
 
Ewrt 1 c with lit crit spring 2014 2
Ewrt 1 c with lit crit spring 2014 2Ewrt 1 c with lit crit spring 2014 2
Ewrt 1 c with lit crit spring 2014 2
 
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructure
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructureRST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructure
RST2014_Krasnoyarsk_InnovativeProtectionofRailwayInfrastructure
 
How did you attract/address your audience?
How did you attract/address your audience?How did you attract/address your audience?
How did you attract/address your audience?
 
Cmp2015 ritsumei takeda
Cmp2015 ritsumei takedaCmp2015 ritsumei takeda
Cmp2015 ritsumei takeda
 
20130425 red hot hack
20130425 red hot hack20130425 red hot hack
20130425 red hot hack
 
Kambbank
KambbankKambbank
Kambbank
 
Market update 20140417
Market update 20140417Market update 20140417
Market update 20140417
 
Tap the game app market with these three deas
Tap the game app market with these three deasTap the game app market with these three deas
Tap the game app market with these three deas
 
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...
Hämeen ammattikorkeakoulun AVO2-hankkeen Kinect-pilotit: kokemuksia ja palaut...
 
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda def
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda defInleiding Praktijkmiddag dienstverlening 15 april in Gouda def
Inleiding Praktijkmiddag dienstverlening 15 april in Gouda def
 
Nhom01 baocao1
Nhom01 baocao1Nhom01 baocao1
Nhom01 baocao1
 
Super презентация Super Маркетинга ДСУД Ланит
Super презентация Super Маркетинга ДСУД ЛанитSuper презентация Super Маркетинга ДСУД Ланит
Super презентация Super Маркетинга ДСУД Ланит
 
10 éve magyarul
10 éve magyarul10 éve magyarul
10 éve magyarul
 

Ähnlich wie Creative Web 2 - JavaScript

Scripting as a Second Language
Scripting as a Second LanguageScripting as a Second Language
Scripting as a Second LanguageRob Dunn
 
Art of Javascript
Art of JavascriptArt of Javascript
Art of JavascriptTarek Yehia
 
JavaScript Workshop
JavaScript WorkshopJavaScript Workshop
JavaScript WorkshopPamela Fox
 
The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84Mahmoud Samir Fayed
 
Vb script tutorial for qtp[1]
Vb script tutorial for qtp[1]Vb script tutorial for qtp[1]
Vb script tutorial for qtp[1]srikanthbkm
 
Getting the most out of Java [Nordic Coding-2010]
Getting the most out of Java [Nordic Coding-2010]Getting the most out of Java [Nordic Coding-2010]
Getting the most out of Java [Nordic Coding-2010]Sven Efftinge
 
JavaScript Robotics
JavaScript RoboticsJavaScript Robotics
JavaScript RoboticsAnna Gerber
 
The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210Mahmoud Samir Fayed
 
descriptive programming
descriptive programmingdescriptive programming
descriptive programmingAnand Dhana
 
Developing Useful APIs
Developing Useful APIsDeveloping Useful APIs
Developing Useful APIsDmitry Buzdin
 
Ingo Muschenetz: Titanium Studio Deep Dive
Ingo Muschenetz: Titanium Studio Deep DiveIngo Muschenetz: Titanium Studio Deep Dive
Ingo Muschenetz: Titanium Studio Deep DiveAxway Appcelerator
 
Introduction to Client-Side Javascript
Introduction to Client-Side JavascriptIntroduction to Client-Side Javascript
Introduction to Client-Side JavascriptJulie Iskander
 
Barcamp Auckland Rails3 presentation
Barcamp Auckland Rails3 presentationBarcamp Auckland Rails3 presentation
Barcamp Auckland Rails3 presentationSociable
 

Ähnlich wie Creative Web 2 - JavaScript (20)

Scripting as a Second Language
Scripting as a Second LanguageScripting as a Second Language
Scripting as a Second Language
 
Art of Javascript
Art of JavascriptArt of Javascript
Art of Javascript
 
JavaScript Workshop
JavaScript WorkshopJavaScript Workshop
JavaScript Workshop
 
The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84
 
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues
 
Vb script tutorial for qtp[1]
Vb script tutorial for qtp[1]Vb script tutorial for qtp[1]
Vb script tutorial for qtp[1]
 
Angular JS
Angular JSAngular JS
Angular JS
 
Getting the most out of Java [Nordic Coding-2010]
Getting the most out of Java [Nordic Coding-2010]Getting the most out of Java [Nordic Coding-2010]
Getting the most out of Java [Nordic Coding-2010]
 
Play!ng with scala
Play!ng with scalaPlay!ng with scala
Play!ng with scala
 
JavaScript Robotics
JavaScript RoboticsJavaScript Robotics
JavaScript Robotics
 
Javascript Workshop
Javascript WorkshopJavascript Workshop
Javascript Workshop
 
JavaScript Basics
JavaScript BasicsJavaScript Basics
JavaScript Basics
 
The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210
 
jQuery introduction
jQuery introductionjQuery introduction
jQuery introduction
 
Real World MVC
Real World MVCReal World MVC
Real World MVC
 
descriptive programming
descriptive programmingdescriptive programming
descriptive programming
 
Developing Useful APIs
Developing Useful APIsDeveloping Useful APIs
Developing Useful APIs
 
Ingo Muschenetz: Titanium Studio Deep Dive
Ingo Muschenetz: Titanium Studio Deep DiveIngo Muschenetz: Titanium Studio Deep Dive
Ingo Muschenetz: Titanium Studio Deep Dive
 
Introduction to Client-Side Javascript
Introduction to Client-Side JavascriptIntroduction to Client-Side Javascript
Introduction to Client-Side Javascript
 
Barcamp Auckland Rails3 presentation
Barcamp Auckland Rails3 presentationBarcamp Auckland Rails3 presentation
Barcamp Auckland Rails3 presentation
 

Mehr von Lukas Oppermann

BTK Designing for the web 2016 - UX
BTK Designing for the web 2016 - UXBTK Designing for the web 2016 - UX
BTK Designing for the web 2016 - UXLukas Oppermann
 
BTK Designing for the web 2016
BTK Designing for the web 2016BTK Designing for the web 2016
BTK Designing for the web 2016Lukas Oppermann
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsLukas Oppermann
 
Creative Web 01 - Introduction to the web & web development
Creative Web 01 - Introduction to the web & web developmentCreative Web 01 - Introduction to the web & web development
Creative Web 01 - Introduction to the web & web developmentLukas Oppermann
 
Creative Web 2 - Introduction
Creative Web 2 - IntroductionCreative Web 2 - Introduction
Creative Web 2 - IntroductionLukas Oppermann
 
Contemporary webdesign day 2
Contemporary webdesign day 2Contemporary webdesign day 2
Contemporary webdesign day 2Lukas Oppermann
 
Search Engine Optimization Introduction
Search Engine Optimization IntroductionSearch Engine Optimization Introduction
Search Engine Optimization IntroductionLukas Oppermann
 

Mehr von Lukas Oppermann (10)

BTK Designing for the web 2016 - UX
BTK Designing for the web 2016 - UXBTK Designing for the web 2016 - UX
BTK Designing for the web 2016 - UX
 
BTK Designing for the web 2016
BTK Designing for the web 2016BTK Designing for the web 2016
BTK Designing for the web 2016
 
Btk creative-web-03
Btk creative-web-03Btk creative-web-03
Btk creative-web-03
 
Creative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS BasicsCreative Web 02 - HTML & CSS Basics
Creative Web 02 - HTML & CSS Basics
 
Creative Web 01 - Introduction to the web & web development
Creative Web 01 - Introduction to the web & web developmentCreative Web 01 - Introduction to the web & web development
Creative Web 01 - Introduction to the web & web development
 
Creative Web 2 - CSS
Creative Web 2 - CSS Creative Web 2 - CSS
Creative Web 2 - CSS
 
Creative Web 2 - Introduction
Creative Web 2 - IntroductionCreative Web 2 - Introduction
Creative Web 2 - Introduction
 
Contemporary webdesign day 2
Contemporary webdesign day 2Contemporary webdesign day 2
Contemporary webdesign day 2
 
Contemporary webdesign
Contemporary webdesignContemporary webdesign
Contemporary webdesign
 
Search Engine Optimization Introduction
Search Engine Optimization IntroductionSearch Engine Optimization Introduction
Search Engine Optimization Introduction
 

Kürzlich hochgeladen

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 

Kürzlich hochgeladen (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 

Creative Web 2 - JavaScript

  • 2. Git, like subversion (svn), is a…
 free versioning system
  • 3. A versioning system…
 saves changes to files in commits, ! this keeps changes flexible and ! file sizes small.
  • 4. Github is a…
 platform to collaborate using git ! repositories
  • 5. Setting up git & github
  • 6. 1. get a free github.com account" 2. download & install the github app" • https://mac.github.com/" • https://windows.github.com/" 3. Read the tutorial https://mac.github.com/ help.html
  • 7. A commit consists of…
 a commit message and the changes! to a file
  • 8. A commit message…
 should give you a brief idea of what changed with this commit
  • 9. Any file can be committed…
 code, image files, text documents, ! presentations, …
  • 11. Linking external javascript files! " <script type="text/javascript" 
 src=“./libs/js/script.js"></script>" " src is the relative or absolute path to the file." " type tells the brows what kind of script it is and" always needs to be text/javascript."
  • 12. In a JavaScript file…
 you can start writing js without any! more declarations.
  • 13. A variable is a container…
 that stores a value.
  • 14. Variables! " Variables always need to be declared using the " var keyword." " Otherwise they are defined globally, which could ! lead to performance and security problems.!
  • 15. JavaScript has 4 types of variables! " • string (text)! • number (integer e.g. 3 or float e.g. 1.2)! • object (key-value pairs)! • array (key-value pairs with numbered keys)
  • 16. String! " var variableName = ‘string’;" " A string is a simple text which needs to be " surrounded by single quotation marks."
  • 17. Number! " var variableInt = 2; // integer" var variableFloat = 1.3; // float" " A number is defined without quotation marks."
  • 18. Objects! " var obj = { " " ‘name’: ’Max’, " " ‘gender’: ’male’" };" " Objects are key-value pairs separated by :" The key has to be a string. The value may be a" string, object or even a function. "
  • 19. Objects! " varObject.name " => returns: Max" varObject[‘gender’] " => returns: male" " Object values are retrieved using the " dot-notation objectName.key or the " array-notation objectName[key].!
  • 20. Array objects! " var arr = [ ‘item’, ’item 2’ ];" Arrays are special objects. The key is assigned automatically and is an index (integer) starting " from 0."
  • 21. Array objects! " arr[0] " => returns: item" " Array object values are retrieved using the " array-notation arrayName[key].!
  • 22. A function…
 is a collection of commands.
  • 23. Function! " var testFn = function( arguments ){" " // function code here" };" " Functions are stored to a variable and accept" arguments."
  • 24. Function! " console.log( ‘message’ );" " To call a function use its name and provide " arguments if needed."
  • 25. Function! " var helloWorld = function( name ){" " var say = ‘Hello ’+name+’.’;" " console.log(say);" };" " helloWorld(‘Peter’);" => returns: Hello Peter" " You can call functions within functions and define " variables within functions.
  • 26. The idea of scope defines…
 where something is available.! " You can’t access something that is" out of scope.
  • 27. Global scope! " varName = ‘test’;" " Available everywhere. DO NOT USE THIS.
  • 28. Local scope! " var varName = ‘test’; // inside the js document" " Available everywhere within the document.
  • 29. Local scope in function! " var fn( ){" var varName = ‘test’;" console.log(varName); // returns: test" };" " console.log(varName); // returns: undefined" " Available within the function. Arguments are " always local variables to a function.
  • 30. Assignments 1. Write an html pages and include an external js file." •add a local variable" •add a function which does something with an 
 argument" •add a local variable to the function
 2. Add an external css file and try the following" •use a css3 gradient on an html element" •use a transition on something using the :hover 
 pseudo-class" •use a box-shadow" •use border-radius on something