Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Web Programming - Lesson 1
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ryan Chung
March 07, 2020
Programming
980
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
340
Design Voice-First Games for Alexa
ryan403
0
94
AI Teaching Talk
ryan403
0
160
Cognitive Service
ryan403
0
130
jQuery & API Practices
ryan403
0
170
CSS Practices
ryan403
1
190
JavaScript Practices
ryan403
0
120
Web Programming - Lesson 6
ryan403
1
680
Web Programming - Lesson 7
ryan403
1
670
Other Decks in Programming
See All in Programming
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
110
信頼性の目標を誰も求めてない
shubox
0
500
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
510
自分的「カンファレンスの楽しみ方」
syumai
0
200
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
5
1.5k
App Intentsのビルドプロセスを支える技術
kntkymt
0
260
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
470
週末にAI-DLCを本気で回したら$1,600溶けた
hbashimizu
0
130
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
180
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
2.4k
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
440
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Building AI with AI
inesmontani
PRO
1
1.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Visualization
eitanlees
152
17k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The agentic SEO stack - context over prompts
schlessera
0
920
How to build a perfect <img>
jonoalderson
1
6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
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