Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Web Programming - Lesson 1
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Ryan Chung
March 07, 2020
Programming
970
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Web Programming - Lesson 1
Ryan Chung
March 07, 2020
More Decks by Ryan Chung
See All by Ryan Chung
MovieBot Development
ryan403
0
330
Design Voice-First Games for Alexa
ryan403
0
90
AI Teaching Talk
ryan403
0
150
Cognitive Service
ryan403
0
120
jQuery & API Practices
ryan403
0
160
CSS Practices
ryan403
1
180
JavaScript Practices
ryan403
0
110
Web Programming - Lesson 6
ryan403
1
670
Web Programming - Lesson 7
ryan403
1
670
Other Decks in Programming
See All in Programming
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
450
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
770
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
380
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
210
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
240
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
590
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
180
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
460
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
1
760
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
370
プロポーザルを書いてもらう
pvcresin
0
300
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
540
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
66
57k
Prompt Engineering for Job Search
mfonobong
0
400
From π to Pie charts
rasagy
0
260
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
200
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Crafting Experiences
bethany
1
240
The Curious Case for Waylosing
cassininazir
1
450
Transcript
Web Programming –
[email protected]
行動開發學院 行動開發學院 JavaScript Lab Ryan Chung
1
Web Programming –
[email protected]
行動開發學院 行動開發學院 Lab Index • Hello
JavaScript! – 環境安裝、套件安裝、專案基本構成 • 今天晚上吃什麼 – 亂數選擇器 – HTML/CSS/JS、jQuery、亂數 • 自動排課系統 – 表格、陣列、日期時間、函數、迴圈、字串、樣式 • 心理測驗 – 你的愛情是什麼滋味? – 條件判斷、按鈕、資料取得、陣列、字典 • RPG極簡雛形製作 – Canvas、圖型載入、For..in、事件、Switch • Youtube心情點唱機 – Youtube iFrame API、div、id、物件 • 網頁整合 – Bootstrap、超連結、選單、jQuery選擇器 • 網站上線 – GitHub Pages、Git 2
Web Programming –
[email protected]
行動開發學院 行動開發學院 開發環境 https://code.visualstudio.com/ 3
Web Programming –
[email protected]
行動開發學院 行動開發學院 安裝擴充套件 • 按下左邊 Extensions圖示
或 Ctrl + Shift + X –Chinese (Traditional) Language Pack for Visual Studio –HTML Boilerplate –Live Server 4
Web Programming –
[email protected]
行動開發學院 行動開發學院 第一個 JS專案 • 在電腦中新增一個資料夾:HelloJavaScript
• 打開VS Code, 檔案(F) -> 開啟資料夾… • 選擇剛才建立的資料夾 • 關閉「開始使用」分頁 5
Web Programming –
[email protected]
行動開發學院 行動開發學院 第一個 JS專案 • 在左邊區塊點擊右鍵,新增檔案,命名為index.html
• 在右邊輸入htm,然後選html5-boilerplate 6
Web Programming –
[email protected]
行動開發學院 行動開發學院 第一個 JS專案 • 在左邊點擊右鍵,新增檔案,再增加兩個檔案
– main.js – style.css 7
Web Programming –
[email protected]
行動開發學院 行動開發學院 第一個 JS專案 • 回到index.html,編輯檔案如下
8
Web Programming –
[email protected]
行動開發學院 行動開發學院 第一個 JS專案 • 再到main.js,編輯檔案如下
9
Web Programming –
[email protected]
行動開發學院 行動開發學院 測試執行 • 按下右下方的Go Live
10
Web Programming –
[email protected]
行動開發學院 行動開發學院 JavaScript Lab 今天晚上吃什麼 –
亂數選擇器 11
Web Programming –
[email protected]
行動開發學院 行動開發學院 預期畫面 12
Web Programming –
[email protected]
行動開發學院 行動開發學院 功能 • 點擊按鈕後,從下列選項中任意挑選一個並 顯示
• 按下按鈕後的動作 • 取得清單中的文字 • 任意選擇一個項目 13
Web Programming –
[email protected]
行動開發學院 行動開發學院 畫面的拆解 • 標題 •
置中 • 按鈕 • 置中 • 選項清單 • 靠左 14
Web Programming –
[email protected]
行動開發學院 行動開發學院 基本畫面元素 • 如何產生標題? •
如何決定標題上的文字? • 如何產生按鈕? • 如何決定按鈕上的文字? • 如何產生清單? • 如何撰寫清單上的項目? 15
Web Programming –
[email protected]
行動開發學院 行動開發學院 畫面編排 • 如何讓標題與按鈕置中? •
如何讓選單靠左? 16
Web Programming –
[email protected]
行動開發學院 行動開發學院 功能拆解 • 如何讓按鈕按下之後有所動作? •
如何取得清單中的文字? • 如何任意挑選其中一個項目? • 如何改變標題的文字? 17
Web Programming –
[email protected]
行動開發學院 行動開發學院 建立專案 • 複製上一個例子的資料夾,重新命名:RandomSelector •
打開VS Code, 檔案(F) -> 開啟資料夾 Open Folder... • 選擇RandomSelector資料夾 18
Web Programming –
[email protected]
行動開發學院 行動開發學院 先放置畫面內容 19
Web Programming –
[email protected]
行動開發學院 行動開發學院 修改 main.js 20
Web Programming –
[email protected]
行動開發學院 行動開發學院 結果不正 21
Web Programming –
[email protected]
行動開發學院 行動開發學院 修改 style.css 22
Web Programming –
[email protected]
行動開發學院 行動開發學院 選項跑到中間,但是符號還在旁邊 23
Web Programming –
[email protected]
行動開發學院 行動開發學院 再修正 style.css 24
Web Programming –
[email protected]
行動開發學院 行動開發學院 index.html 匯入 jQuery 25
Web Programming –
[email protected]
行動開發學院 行動開發學院 main.js 按鈕按了有反應 26
Web Programming –
[email protected]
行動開發學院 行動開發學院 main.js 按鈕按了可以改變那個問號 27
Web Programming –
[email protected]
行動開發學院 行動開發學院 main.js 按鈕按了可以拿到任一筆資料 28
Web Programming –
[email protected]
行動開發學院 行動開發學院 main.js • 先計算li元件有幾個 •
產生對應的亂數範圍 • 使用這個亂數 29
Web Programming –
[email protected]
行動開發學院 行動開發學院 Recap • 開發/測試環境 •
HTML / CSS / JavaScript • jQuery • 亂數 30
Web Programming –
[email protected]
行動開發學院 行動開發學院 延伸 Lab • 在下方加上圖片,當選到特定項目時,下方也
能出現對應的圖片 31