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
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
93
AI Teaching Talk
ryan403
0
150
Cognitive Service
ryan403
0
120
jQuery & API Practices
ryan403
0
170
CSS Practices
ryan403
1
180
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
【DroidKaigi 2026】「アクセシビリティを利用するとき、 アクセシビリティもまたこちらを利用している」 〜マルウェアによる攻撃と防衛について〜
halunoyo
0
360
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
670
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
570
不幸な GC
chencmd
0
880
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
360
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
130
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
660
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
230
新卒PdEのリアル
ryu1013
1
390
이 함수, 실패하면 어떻게 되나요? null부터 Rich Errors까지, Kotlin 에러 처리 15년
haeti2
0
130
初めての模倣学習とVLA
natsutan
0
470
KotlinConf Extended South Korea 2026 Keynote
l2hyunwoo
0
130
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Ethics towards AI in product and experience design
skipperchong
2
360
Making the Leap to Tech Lead
cromwellryan
135
10k
Discover your Explorer Soul
emna__ayadi
2
1.3k
GraphQLとの向き合い方2022年版
quramy
50
15k
Paper Plane
katiecoart
PRO
2
53k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
470
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
230
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
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