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
第08回Web講座2018
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
北海道科学大学 電子計算機研究部
August 03, 2018
Education
0
64
第08回Web講座2018
北海道科学大学 電子計算機研究部
August 03, 2018
Tweet
Share
More Decks by 北海道科学大学 電子計算機研究部
See All by 北海道科学大学 電子計算機研究部
第12回Network講座2019
densan
1
63
第11回Network講座2019
densan
0
73
第10回Network講座2019
densan
0
48
第09回Network講座2019
densan
1
160
第08回Network講座2019
densan
0
52
第07回Network講座2019
densan
0
49
第06回Network講座2019
densan
0
74
第05回Network講座2019
densan
0
54
第04回Network講座2019
densan
0
120
Other Decks in Education
See All in Education
Security, Privacy and Trust - Lecture 11 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
NUTMEG紹介スライド
mugiiicha
0
860
TypeScript初心者向け完全ガイド
mickey_kubo
1
110
【洋書和訳:さよならを待つふたりのために】第1章 出会いとメタファー
yaginumatti
0
220
子どもが自立した学習者となるデジタルの活用について
naokikato
PRO
0
180
HTML5 and the Open Web Platform - Lecture 3 - Web Technologies (1019888BNR)
signer
PRO
2
3.2k
Introdución ás redes
irocho
0
530
Web Search and SEO - Lecture 10 - Web Technologies (1019888BNR)
signer
PRO
2
3.1k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
RGBでも蛍光を!? / RayTracingCamp11
kugimasa
2
370
IKIGAI World Fes:program
tsutsumi
1
2.6k
the difficulty into words
ukky86
0
350
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
310
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
130
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
Technical Leadership for Architectural Decision Making
baasie
1
230
First, design no harm
axbom
PRO
2
1.1k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.8k
Utilizing Notion as your number one productivity tool
mfonobong
2
210
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
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
前期の講座はここまで お疲れ様でした