• 検索結果がありません。

JavaScript API

N/A
N/A
Protected

Academic year: 2021

シェア "JavaScript API"

Copied!
50
0
0

読み込み中.... (全文を見る)

全文

(1)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

) Z 9

(0 LSKA PI

M N TH a I

00 S

121 ) 5

U

(2)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

2

NTT

1,2

1

VR

(3)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

3

HTML5

1

&

1

Ver2.0

(4)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

4

JavaScript API

API

API Video, Canvas

API Web Storage

(5)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

5

(6)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

6

JavaScript API JavaScript

API

API

API

(7)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

7

JavaScript API

(8)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

8

Web

Web

ECMAScript JavaS

cript

ES5 ES6 ES2018 ECMAScript +

JavaScript

(9)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

9

JavaScript

(10)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

10

script

JavaScript 1

/

(11)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

11

script src

JavaScript 2

- / < . - /! . = . - / .- .". - /! . ". - /

(12)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

12

Application Programming Interface

API

(13)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

13

Web JavaScript

Web

API W eb

JavaScript API

(14)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

14

CodePen

Web HTML/CSS/JavaScript

[Create]→[Pen]

(15)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

15

Video

video

(16)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

16

video

JavaScript API

( )

video

(17)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

17

https://codepen.io/suzukima/pen/qmzRby

[ ] [ ]

(18)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

18

HTML

% 1 / 1 0 - - => %" 1 /

% 1 - - /

% < / - < %"

% < / - / %"

%" 1

(19)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

19

"var "

let const var

L . B ,; . ;. = . ., E

. ,; . ;. = . ., .

= ( . ) . . , , " /; ,

B L . S

. =

(20)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

20

API

"document.querySelector( )"

. E L . S

. ,; . ;. = . ., .

= ( . ) . . , , " /; , B L . E

. =

(21)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

21

API

.addEventListener()”

) B L E B .

) ) , (. , , . / " . . , )

;

(22)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

22

click

mouseenter mouseleave focus

keydown keyup

change input

DOMContentLoaded HTML load

(23)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

23

video API

video

B

) ) , (. , , . / " . )

. , )

;

E B

) , ) , (. , , . / " . ) , E

. , ) ,

;

(24)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

24

| MDN

HTMLMediaElement | MDN

video

(25)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

25

Web Storage

(26)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

26

API

" " " "

Web Storage API

(27)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

27

https://codepen.io/suzukima/pen/QvXvZw

(28)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

28

HTML

" "

(29)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

29

"document.getElementsByTagName( )"

1 [0]

. 0 =

; . 0 ( 0 / ( ' ) . 0

(30)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

30

2

localStorage

sessionStorage (

)

/

(31)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

31

" .setItem( , )"

bgcolor

; ( ) .

' / ( ) . , '.

(32)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

32

" .value"

P I E C E L

. , ,//( ; . , = .

P I

/ ( ; ,. = /' ; , =

P I .

; , ; ) . ; , =

(33)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

33

"if( ) { }"

'. ./

) ./ ( ( ( '. ./

'. ./ I

(34)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

34

" .getItem( )"

( ). ./ ;

'/ ). ./ ./' ( ). ./

(35)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

35

" .style. "

; / -

-. - / - -

(36)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

36

" .value"

; / . = =

(37)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

37

Web Storage API | MDN

Web Storage

(38)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

38

Canvas

(39)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

39

canvas JavaScript

Canvas

(40)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

40

https://codepen.io/suzukima/pen/owxNMg

(41)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

41

HTML

" "

(42)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

42

" canvas .getContext('2d')"

2 ;CE

2 .2 "/. ) . .2 2

B= ;CE

2 "/. ( 2 .

(43)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

43

" .beginPath()"

/ . ()

(44)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

44

.moveTo( )”

(0,0)

" .lineTo( )"

; 13 .02 )0 (

13 ,/ )0 (

(45)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

45

" .closePath()"

" .stroke()"

./ .(

./ . )

(46)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

46

canvas | MDN

Canvas

(47)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

47

(48)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

48

level1

CodePen

Mozilla Developer Network

(49)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

49

7

7

(50)

The HTML5 Logo is licensed under Creative Commons Attribution 3.0. Unported by the W3C; http://creativecommons.org/licenses/by/3.0/

© LPI-Japan / EDUCO all rights reserved.

50

Open the Future with HTML5.

@

. -

参照

関連したドキュメント

THIS PRODUCT IS LICENSED UNDER THE VC-1 PATENT PORTFOLIO LICENSE FOR THE PERSONAL AND NON-COMMERCIAL USE OF A CONSUMER TO (ⅰ) ENCODE VIDEO IN COMPLIANCE WITH THE VC-1

In this paper we develop a general decomposition theory (Section 5) for submonoids and subgroups of rings under ◦, in terms of semidirect, reverse semidirect and general

The volumes of the surfaces of 3-dimensional Euclidean Space which are traced by a fixed point as a trajectory surface during 3-parametric motions are given by H..

Figures 10 and 11 show the mean and the coefficient of variation of the waiting time as a function of g2 for the NPNV model, where we assume that Pl P2 P3- P4 0.1, that the batch

On the other hand, when M is complete and π with totally geodesic fibres, we can also obtain from the fact that (M,N,π) is a fibre bundle with the Lie group of isometries of the fibre

In this section, we establish some uniform-in-time energy estimates of the solu- tion under the condition α − F 3 c 0 &gt; 0, based on which the exponential decay rate of the

Kilbas; Conditions of the existence of a classical solution of a Cauchy type problem for the diffusion equation with the Riemann-Liouville partial derivative, Differential Equations,

This paper develops a recursion formula for the conditional moments of the area under the absolute value of Brownian bridge given the local time at 0.. The method of power series