Copyright Asial Corporation All Rights Reserved 1 Copyright
- Slides: 171
で学ぶ はじめてのプログラミング Copyright © Asial Corporation. All Rights Reserved.
第 1章 アプリ開発入門 Copyright © Asial Corporation. All Rights Reserved. 2
第 1章 アプリ開発入門 Monacaのアカウント登録 Copyright © Asial Corporation. All Rights Reserved. 3
Monaca のアカウント登録 第 1章 1) 教育版公式サイト URL にアクセス https: //edu. monaca. io/ Copyright © Asial Corporation. All Rights Reserved. 4
第 1章 アプリ開発入門 Monaca ダッシュボードとプロジェクト Copyright © Asial Corporation. All Rights Reserved. 7
第 1章 アプリ開発入門 プログラムを記述する Copyright © Asial Corporation. All Rights Reserved. 11
プログラムを記述する 第 1章 Monaca IDE n IDE(Integrated Development Environment)は統合開発環境の意味 メニューバー プロジェクトパネル エディター デバッグパネル Copyright © Asial Corporation. All Rights Reserved. 12 プレビュー
プログラムを記述する 第 1章 Java. Script で簡単な命令を実行させる n HTML内にJva. Scriptを記述する方法 └ <script> で囲まれた部分に記述 <script> alert("こんにちは"); </script> Copyright © Asial Corporation. All Rights Reserved. 18
第 1章 アプリ開発入門 Monaca デバッガーの利用 Copyright © Asial Corporation. All Rights Reserved. 20
第 2章 HTML入門 Copyright © Asial Corporation. All Rights Reserved. 23
第 2章 HTML入門 HTMLとは Copyright © Asial Corporation. All Rights Reserved. 24
HTMLとは 第 2章 HTML(Hyper Text Markup Language)とは n マークアップ言語の1つ n 文書をタグで囲んで記述 Copyright © Asial Corporation. All Rights Reserved. 25
第 2章 HTML入門 <body>タグ内に記述するタグの種類 Copyright © Asial Corporation. All Rights Reserved. 31
第 2章 HTML入門 リンク Copyright © Asial Corporation. All Rights Reserved. 35
第 2章 HTML入門 実習 Copyright © Asial Corporation. All Rights Reserved. 38
第 2章 【実習】リンク リンクの配置 <body> <a href="https: //edu. monaca. io/">Monacaへ</a> </body> Copyright © Asial Corporation. All Rights Reserved. 39
第 2章 【実習】相対パスによるリンク 実行結果 Copyright © Asial Corporation. All Rights Reserved. 42
第 2章 HTML入門 画像の表示 Copyright © Asial Corporation. All Rights Reserved. 43
第 2章 HTML入門 実習 Copyright © Asial Corporation. All Rights Reserved. 45
第 2章 【実習】画像 準備 n 画像ファイル「monaca. jpg」を確認 実習 n imgタグを追記 <img src="monaca. jpg"> Copyright © Asial Corporation. All Rights Reserved. 46
第 2章 【実習】画像 実行結果 Copyright © Asial Corporation. All Rights Reserved. 47
第 3章 CSS入門 Copyright © Asial Corporation. All Rights Reserved. 48
第 3章 CSS入門 CSSとは Copyright © Asial Corporation. All Rights Reserved. 49
CSSとは 第 3章 CSS(Cascading Style Sheets)とは n HTML文章を装飾するための技術 n 色やサイズなどを変更できる n カスケーディングという特徴がある Copyright © Asial Corporation. All Rights Reserved. 50
CSSとは 第 3章 CSSをHTMLファイルに読み込む方法(外部ファイル) n linkタグを記述 n href属性でパスを指定する 文法 CSSファイルの読み込み <link rel="stylesheet" href="CSSファイルのパス"> n 例 <link rel="stylesheet" href="css/style. css"> Copyright © Asial Corporation. All Rights Reserved. 52
第 3章 CSS入門 セレクタの種類 Copyright © Asial Corporation. All Rights Reserved. 55
第 3章 CSS入門 実習 Copyright © Asial Corporation. All Rights Reserved. 57
第 3章 【実習】タグセレクタ 実習 n 2章のプロジェクトを開く n cssフォルダ内のstyle. cssを編集 a { font-size: 30 px; } Copyright © Asial Corporation. All Rights Reserved. 58
第 3章 【実習】タグセレクタ 実行結果 Copyright © Asial Corporation. All Rights Reserved. 59
【実習】IDセレクタ 第 3章 実習 n index. htmlのaタグにID属性を付与 <a href="https: //edu. monaca. io/" id="target">Monacaへ</a> n style. cssにIDセレクタを利用したスタイルを記述 #target { color: red; } Copyright © Asial Corporation. All Rights Reserved. 60
【実習】IDセレクタ 第 3章 実行結果 Copyright © Asial Corporation. All Rights Reserved. 61
第 3章 【実習】クラスセレクタ 実習 n index. htmlのaタグにクラス属性を付与 <a href="new. Page. html" class="bright">次の画面へ</a> n style. cssにクラスセレクタを利用したスタイルを追記 . bright { background-color: yellow; } Copyright © Asial Corporation. All Rights Reserved. 62
第 3章 【実習】クラスセレクタ 実行結果 Copyright © Asial Corporation. All Rights Reserved. 63
第 3章 CSS入門 プロパティの種類 Copyright © Asial Corporation. All Rights Reserved. 64
プロパティの種類 第 3章 marginとpadding n どちらも余白の幅を指定するプロパティ n marginはborder(枠線)の外側の余白 n paddingはborderの内側の余白 要素 margin padding 内容内容内容内容内容内容 Copyright © Asial Corporation. All Rights Reserved. 68
第 3章 CSS入門 実習 Copyright © Asial Corporation. All Rights Reserved. 69
第 3章 【実習】サイズや位置を指定するプロパティ 実習 n style. cssを編集 img { width: 30%; border: solid 3 px #0000 ff; margin: 10 px; padding: 20 px; } Copyright © Asial Corporation. All Rights Reserved. 70
第 3章 【実習】サイズや位置を指定するプロパティ 実行結果 Copyright © Asial Corporation. All Rights Reserved. 71
第 4章 Java. Script入門 Copyright © Asial Corporation. All Rights Reserved. 72
第 4章 Java. Script入門 Java. Scriptの書き方 Copyright © Asial Corporation. All Rights Reserved. 73
Java. Scriptの書き方 第 4章 scriptタグの中に記述する <script> alert("こんにちは"); </script> 外部ファイルに記述する <script src="Java. Script ファイルのパス"></script> Copyright © Asial Corporation. All Rights Reserved. 74
第 4章 Java. Script入門 データの扱い方 Copyright © Asial Corporation. All Rights Reserved. 79
第 4章 Java. Script入門 実習 Copyright © Asial Corporation. All Rights Reserved. 83
第 4章 【実習】今日は何日? 実習 n index. htmlのbodyタグ内を編集 n index. htmlのscriptタグ内を編集 Copyright © Asial Corporation. All Rights Reserved. 84
第 4章 【実習】今日は何日? 結果 Copyright © Asial Corporation. All Rights Reserved. 85
第 4章 【実習】今日は何日? 実習 n index. htmlのscriptタグ内を編集 <script> // 日付に関する命令を使えるようにする var date = new Date(); // 年、月、日の取得 var year = date. get. Full. Year(); var month = date. get. Month() + 1; var day = date. get. Date(); // 日本の表記にする var today = year + " 年" + month + " 月" + day + " 日"; document. writeln(today); </script> Copyright © Asial Corporation. All Rights Reserved. 87
第 5章 条件分岐 Copyright © Asial Corporation. All Rights Reserved. 88
第 5章 条件分岐 if文 Copyright © Asial Corporation. All Rights Reserved. 89
第 5章 条件分岐 実習 Copyright © Asial Corporation. All Rights Reserved. 93
第 5章 【実習】今日は日曜日? 実行結果 Copyright © Asial Corporation. All Rights Reserved. 95
第 5章 条件分岐 多方向分岐 Copyright © Asial Corporation. All Rights Reserved. 96
第 5章 条件分岐 実習 Copyright © Asial Corporation. All Rights Reserved. 99
第 6章 関数 Copyright © Asial Corporation. All Rights Reserved. 101
第 6章 関数 関数 Copyright © Asial Corporation. All Rights Reserved. 102
第 6章 関数 実習 Copyright © Asial Corporation. All Rights Reserved. 105
第 6章 【実習】関数の練習 実行結果 Copyright © Asial Corporation. All Rights Reserved. 107
第 6章 関数 引数がある関数 Copyright © Asial Corporation. All Rights Reserved. 108
第 6章 関数 実習 Copyright © Asial Corporation. All Rights Reserved. 110
第 6章 【実習】引数を受け取る関数の練習 実行結果 Copyright © Asial Corporation. All Rights Reserved. 112
第 6章 関数 戻り値がある関数 Copyright © Asial Corporation. All Rights Reserved. 113
第 6章 関数 実習 Copyright © Asial Corporation. All Rights Reserved. 115
第 6章 【実習】戻り値を返す関数の練習 実行結果 Copyright © Asial Corporation. All Rights Reserved. 117
【実習】西暦を和暦に変換する関数の定義と利用 実行結果 Copyright © Asial Corporation. All Rights Reserved. 119 第 6章
第 7章 イベント Copyright © Asial Corporation. All Rights Reserved. 120
第 7章 イベント Copyright © Asial Corporation. All Rights Reserved. 121
第 7章 イベント 実習 Copyright © Asial Corporation. All Rights Reserved. 124
第 8章 DOM Copyright © Asial Corporation. All Rights Reserved. 127
第 8章 DOM Copyright © Asial Corporation. All Rights Reserved. 128
第 8章 DOMとは n DOM(Document Object Model) n Java. ScriptでHTMLの各要素にアクセスする仕組み DOM が利用可能になるタイミング n ブラウザがHTMLを読み込んだ後 n Java. Scriptの書き方に 夫が必要 n loadイベントなどを活用する Copyright © Asial Corporation. All Rights Reserved. 129
第 8章 DOM HTML要素へのアクセス n document. get. Element. By. Id()命令を利用 文法 要素へのアクセス document. get. Element. By. Id("ID 値") Copyright © Asial Corporation. All Rights Reserved. 130
第 8章 DOM 要素の内容変更 n inner. HTMLにより内容を変更できる 文法 内容の変更 document. get. Element. By. Id("ID 値"). inner. HTML = "書き換える内容"; Copyright © Asial Corporation. All Rights Reserved. 131
第 8章 DOM 実習 Copyright © Asial Corporation. All Rights Reserved. 132
第 8章 DOM 要素の属性変更 Copyright © Asial Corporation. All Rights Reserved. 134
要素の属性変更 第 8章 要素の属性変更 n inner. HTMLのかわりに属性名を指定 文法 属性の変更 document. get. Element. By. Id("ID 値"). 属性名 = "属性値"; 例 画像を「flower. jpg」に切り替える document. get. Element. By. Id("target"). src = "flower. jpg"; Copyright © Asial Corporation. All Rights Reserved. 135
要素の属性変更 第 8章 スタイル属性変更 n style属性のプロパティを指定 文法 スタイルの変更 document. get. Element. By. Id("ID 値"). style. CSS プロパティ名 = "値"; Copyright © Asial Corporation. All Rights Reserved. 136
要素の属性変更 第 8章 スタイル属性変更 n style属性のプロパティを指定 例 要素の外側余白を 20 px に設定 document. get. Element. By. Id("target"). style. margin = "20 px"; 例 要素の背景色を青に設定する document. get. Element. By. Id("target"). style. background. Color = "blue"; Copyright © Asial Corporation. All Rights Reserved. 137
第 8章 DOM 実習 Copyright © Asial Corporation. All Rights Reserved. 138
第 9章 フォーム Copyright © Asial Corporation. All Rights Reserved. 140
第 9章 フォーム Copyright © Asial Corporation. All Rights Reserved. 141
フォーム 第 9章 文法 テキストボックス <input type="text"> 例 テキストボックスの記述 <input type="text" value="テスト"> Copyright © Asial Corporation. All Rights Reserved. 143 テスト
フォーム 第 9章 文法 チェックボックス <input type="checkbox"> 例 チェックボックスの記述 <input type="checkbox" checked> Copyright © Asial Corporation. All Rights Reserved. 144
フォーム 第 9章 文法 ドロップダウンメニュー <select> <option value="選択肢の値">表示する選択肢</option> … </select> 例 ドロップダウンメニューの記述 <select> <option value="1">AAA</option> <option value="2">BBB</option> <option value="3">CCC</option> <option value="4">DDD</option> </select> Copyright © Asial Corporation. All Rights Reserved. 145
第 9章 フォーム 実習 Copyright © Asial Corporation. All Rights Reserved. 146
第 10章 いろいろな演算子 Copyright © Asial Corporation. All Rights Reserved. 148
第 10章 いろいろな演算子 Copyright © Asial Corporation. All Rights Reserved. 149
第 10章 いろいろな演算子 実習 Copyright © Asial Corporation. All Rights Reserved. 155
第 11章 配列 Copyright © Asial Corporation. All Rights Reserved. 157
第 11章 配列 配列 Copyright © Asial Corporation. All Rights Reserved. 158
第 11章 配列 実習 Copyright © Asial Corporation. All Rights Reserved. 163
第 12章 繰り返し Copyright © Asial Corporation. All Rights Reserved. 165
第 12章 繰り返し Copyright © Asial Corporation. All Rights Reserved. 166
第 12章 繰り返し 実習 Copyright © Asial Corporation. All Rights Reserved. 169
- Microsoft corporation. all rights reserved.
- Microsoft corporation. all rights reserved.
- Microsoft corporation. all rights reserved
- Microsoft corporation. all rights reserved
- Asial corporation
- Copyright 2015 all rights reserved
- Copyright 2015 all rights reserved
- Dell all rights reserved copyright 2009
- Copyright © 2018 all rights reserved
- All rights reserved example
- All rights reserved sentence
- Freesound content licence
- Confidential all rights reserved
- Sentinel repetition
- 2012 pearson education inc
- Pearson education inc. all rights reserved
- Warning all rights reserved
- C all rights reserved
- All rights reserved formula
- Warning all rights reserved
- Confidential all rights reserved
- Pearson education inc. all rights reserved
- 2017 all rights reserved
- Pearson education inc all rights reserved
- 2010 pearson education inc
- Confidential all rights reserved
- Airbus deutschland gmbh
- R rights reserved
- Rights reserved
- Positive rights and negative rights
- Riparian rights vs littoral rights
- Characteristics of rights
- Legal rights and moral rights
- Negative rights
- Negative right
- Negative right
- Negative right
- Name all the lines
- What are delegated reserved and concurrent powers
- Expressed powers definition
- Reserved powers
- Mpls label format
- Social facilitation example psychology
- Sailors table
- Reserved addresses
- Inherent powers
- Example of concurrent powers
- The resources need to be reserved during the setup phase in
- Space reserved
- Find the colors of boats reserved by lubber
- Reserved mark
- Infusion in pharmaceutics
- Space reserved
- Reserved power
- Reserved
- Reserved material
- Reserved mark
- Reserved mark
- Reserved mark
- Pizza mark
- Reserved mark
- Reserved mark
- Reserved mark
- Reserved mark
- Love all serve all
- Interventi sociali rivolti all'infanzia e all'adolescenza
- Crucified laid behind the stone
- I work all night i work all day
- Basic communication operations in parallel computing
- Sistem all in all out
- Fossa tabatiere
- Silent night holy night all is calm all is bright
- Jesus lamb of god worthy is your name
- All of you is more than enough for all of me
- John donne born
- My comforter my all in all
- Above all powers
- Wanxiang group corporation
- Zavitrex corporation
- Tianjin steel pipe factories
- Statement of cash flows partial
- Hkmc
- Coca cola export corporation
- S corporation definition
- Susser holdings corp
- Maq corporation case study
- Intel corporation - extension
- Disadvantages of mncs
- Bagaveev corporation
- Specialty monomers
- Pyxis corporation
- Relex software continental europe gmbh
- Rsrtc smart card online apply
- Multidomestic corporation
- The phoenix controls
- Tripod pcb
- Nanya technology corporation usa
- Namsun machinery corporation
- Transnational vs multinational
- Integrated security corporation
- Itn food corporation
- Vauxhall estates v liverpool corporation
- Rational business developer
- Maximo business process management
- Toyo engineering corporation
- Hythro power corporation ltd
- Golden nutritious foods corporation
- Grumman aircraft engineering corporation
- What is a corporation
- Lieberman software corporation
- Coir business profit
- Closely held corporation def
- Ultra vires acts of corporation
- In a corporation, you milady
- Introduction of forms of business organisation
- S corporation definition
- S corporation definition
- Multibusiness corporation
- Interactive social system
- Wilson company prepared the following preliminary budget
- Ultra vires acts of corporation
- Boyd corporation fairburn ga
- Botas petroleum pipeline corporation
- Apex trolley wheels
- Apple inc introduction
- Appex corporation
- S corporation definition
- Acme corporation strategic plan
- Acclaro management corporation
- The characteristics of corporation
- Controlled foreign corporation
- Characteristics of corporation
- Commence-corporation
- Western states power corporation
- Is valve a private company
- Thornton family tree
- Gigp 30
- Nichimen corporation
- Freshwater fish marketing
- Oanda corporation richard olsen
- Purposive rule advantages and disadvantages
- Starbucks corporation: building a sustainable supply chain
- Insurance company in bhutan
- Chronological root word
- Rational software corporation
- Associated rack corporation
- Productivity engineering europe corporation
- Power chemical corporation
- Nec corporation noida
- First transnational corporation
- Mobile world investment corporation
- Marriott corporate headquarters
- Sepragen corporation
- Kyoritsu electric (malaysia) sdn bhd
- Korea housing finance corporation
- Serpentis refuge
- International currency technologies corp
- Unit 1 companies
- Innodisk usa corporation
- Ibero american development corporation
- Vacuum research corporation
- Sole proprietorship and partnership venn diagram
- Babu engineering corporation
- Strategy 7 corporation
- Manager or supervisor higher
- Enpac corporation
- Reservoir geophysical corporation
- What is meant by multinational company
- Netwrix
- Environmental scanning and industry analysis
- Reconstruction finance corporation apush def
- Marriott corporation the cost of capital solution