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
第08回Web講座2018
Search
北海道科学大学 電子計算機研究部
August 03, 2018
Education
68
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第08回Web講座2018
北海道科学大学 電子計算機研究部
August 03, 2018
More Decks by 北海道科学大学 電子計算機研究部
See All by 北海道科学大学 電子計算機研究部
第12回Network講座2019
densan
1
69
第11回Network講座2019
densan
0
86
第10回Network講座2019
densan
0
63
第09回Network講座2019
densan
1
180
第08回Network講座2019
densan
0
59
第07回Network講座2019
densan
0
61
第06回Network講座2019
densan
0
83
第05回Network講座2019
densan
0
61
第04回Network講座2019
densan
0
130
Other Decks in Education
See All in Education
Réunion des directrices et directeurs des écoles de la circonscription de Jonzac - 31 août 2026
fmarot
0
150
エビデンスベースト英語教育入門:エビデンスは科学的知見(だけ)ではない,制度だ!
terasawat
0
220
未踏峰連山 Frontiers: Creating and Conquering Untrodden Peaks
ishii_mit
1
160
INTRODUCTION TO THE CELL
pawan_pharm
0
320
1002
cbtlibrary
0
130
Book-keeping
bvr7352
0
120
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
3.5k
Sanapilvet opetuksessa
matleenalaakso
1
36k
Introduction to Accounting
bvr7352
0
240
「答えを出す」より「わかる」をつくる
kzkmaeda
1
310
Plano urbano de Madrid desde el Ensanche al s. XXI (2ª parte).
juanmartin2026
1
100k
Science Tokyo University for International Research Excellence scheme_April 2026
sciencetokyo
PRO
0
390
Featured
See All Featured
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
A designer walks into a library…
pauljervisheath
211
25k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Abbi's Birthday
coloredviolet
4
10k
The Invisible Side of Design
smashingmag
301
52k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
930
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Transcript
ネットワークチーム 第8回 北海道科学大学 電子計算機研究部
お知らせ 部会でも言いましたが ネットチームでは毎年 夏休みの自由研究をやっています 夏休みに作りたいものを 考えてみてください 講座の最後に聞きます 2
実践編 PW強度測定サービス
実践編 本日の目的 これまでの知識を生かして パスワードの強度を測定するサービスを 作ってみよう! 4
使うもの ⚫ zxcvbn Dropboxが提供している パスワードの強度を測定するための JavaScript ライブラリ ⚫ HTML・CSS・JS の知識
5
構成 6 タイトル フォーム 結果表示 ~~~~ ~~~~ Webページ index.html index.css
zxcvbn.js script.js
構成 7 要件定義 ⚫ 文字を入力する度に リアルタイムで結果を表示する ⚫ 結果は動的に生成する ⚫ ある程度の見栄えを確保する
制作
準備 zxcvbnの入手 1. https://github.com/dropbox/zxcvbn#manual- installation へ飛び、zxcvbn.jsを保存 9
準備 ファイルの作成 2. 以下のような階層でファイルを作成 pw -- index.html css -- index.css
js -- zxcvbn.js -- script.js 10
HTML HTMLを以下のように記述 11
HTMLの解説 22行目 onKeyUp=“check(this)” キーが上がったら つまり 文字が入力される度に 関数check()を呼び出す。 12
https://github.com/dropbox/zxcvbn#usage を読んでみる 13 zxcvbn(password, user_inputs=[]) zxcvbn() takes one required argument,
a password, and returns a result object with several properties:
コンソールでテスト HTMLをブラウザで開いて デベロッパーツールを起動 コンソールに以下を入力 14 let pw = zxcvbn("123456"); console.log(pw);
コンソールでテスト 方針 ⚫ zxcvbn() の引数にパスワードを入れる - フォームへの入力を取得する必要がある ⚫ 上記で得られたオブジェクトを格納する ⚫
オブジェクトのパラメーターを結果として表示する 15
スクリプトを作ろう script.js を以下のように記述 16
スクリプトを作ろう index.html をブラウザで開く 17
スタイルを作ろう index.cssを以下のように記述 18
スタイルを作ろう 完成 19
参考 ⚫ GitHub - dropbox/zxcvbn: Low-Budget Password Strength Estimation https://github.com/dropbox/zxcvbn
20
前期の講座はここまで お疲れ様でした