SlideShare uma empresa Scribd logo
1 de 45
HTML5 Conference 2012
    クイズの裏側

     第35回 HTML5とか勉強会
        Jan. 21, 2013
       @KDDI, TOKYO
大人の事情
テーマ:
  「Web+OS最前線!」
テーマ:
  「Web+OS最前線!」

関係ないです
大人の事情
 おわり
自己紹介
    小野 充輝
    ONO Mitsuki
職業:
 社会人2年目の
 Webエンジニア見習い
Twitter :
 @mitsuki_ni
大人の事情 2
 (10秒CM)
       宣
       伝
       す
       る
       こ
       と
       を
http://www.barcodefootballer.com
大人の事情
 おわり
ここから本編
当日の動画
http://youtu.be/4LBOZTtiEh8
システム構成
解答画面
       WebSocket
         解答受付




         HTTP
         名前登録

         解答受付
出題画面

         受付開始

         受付停止

        速答正解者

        ランキング
解答画面
       WebSocket
         解答受付




         HTTP
         名前登録

         解答受付
出題画面

         受付開始

         受付停止

        速答正解者

        ランキング
html5slides
http://code.google.com/p/html5slides/
jQuery
http://jquery.com/
jQuery Mobile
 http://jquerymobile.com/
WebSocket
WebSocket
         HTTPリクエスト

         HTTPレスポンス


          Upgrade


         WebSocket


クライアント
                     WebSocketサーバ
(ブラウザ)


                     接続確立後はどちらからでも
                     データの送信が可能
application cache
 application cache

    キャッシュを簡単かつ高度に制御
    example.appcache                       index.html
     CACHE MANIFEST                         <!DOCTYPE html>
     # comment                              <html manifest="example.appcache">
                                            <head>
     CACHE:                                 <meta charset="UTF-8">
     index.html                             <title>Offline Application</title>
     style.css                              <link rel="stylesheet" href="style.css">
     js/script.js                           <script src="js/script.js"></script>
     logo.png                               </head>
                                            <body>
     NETWORK:                                   <img src="logo.png">
     login.php                                  <a href="login.php">Login</a>
     /api                                   </body>
                                            </html>
     FALLBACK:
     images/large/ images/offline.png



                      http://www.html5rocks.com/ja/tutorials/appcache/beginner/
 application cache
    ■容量
    5MB まで (iOS 6 からは 25MB まで)

    ■MIMEタイプ
    AddType text/cache-manifest .appcache

    ■キャッシュが更新されるタイミング
    1. ユーザーがブラウザのデータをクリアした時
    2. マニフェストファイルが更新された時
    3. プログラムで更新命令を実行した時 (JavaScript)

    ※マニフェストに書いたキャッシュ対象ファイルを更新しても、再読込みされない
    ※マニフェストファイルの比較はバイト単位で行なわれる (ファイルの更新日時だけではNG)

                                            ・キャッシュすべきファイルか
                                            ・非対応ブラウザへの配慮はあるか
メディア要素
 preload
 メディア要素 preload属性

    バックグラウンドで(動画を)ダウンロード
    sample.html
     <!DOCTYPE html>
     <html>
     <head>
     <meta charset="UTF-8">
     <title>Media Preload</title>
     </head>
     <body>


         <video src="mov.mp4" type="video/mp4" preload="auto">
         </video>
     </body>
     </html>




                              http://www.html5rocks.com/ja/tutorials/video/basics/
Q8の動画
http://youtu.be/4LBOZTtiEh8#t=10m43s
フレキシブル・ボックス
フレキシブル・ボックス
フレキシブル・ボックスとは、その中に含まれるボックスの
サイズ調整や配置を指定できる、柔軟なボックスのこと。

これまでのpositionプロパティや、floatプロパティを使う
ボックスのレイアウトに比べて、より簡単に指定できる。
 sample.css

   .containers {
       display: -webkit-box;
       -webkit-box-orient: vertical;
   }


                 http://www.html5rocks.com/ja/tutorials/flexbox/quick/
slide.html

  <div class="containers">
      <div class="box1"></div>
      <div class="box2"></div>
      <div class="box3"></div>
      <div class="box4"></div>
  </div>


style.css

  .containers {
      display: -webkit-box;
      -webkit-box-orient: vertical;
  }
slide.html

  <div class="containers">
      <div class="horizontal">
          <div class="box1"></div>
          <div class="box2"></div>
      </div>
      <div class="horizontal">
          <div class="box3"></div>
          <div class="box4"></div>
      </div>
  </div>


style.css

  .containers {
      display: -webkit-box;
      -webkit-box-orient: vertical;
  }
  .horizontal {
      display: -webkit-box;
      -webkit-box-orient: horizontal;
  }
CSS Animation
Q6のアニメーション
http://youtu.be/4LBOZTtiEh8#t=7m34s
style.css


  @-webkit-keyframes zoom_out {
      0% {background-size: 500%;}
     80% {background-size: 250%;}
    100% {background-size: 100%;}
  }

  .box {
      background-position: 50% 50%;
      -webkit-animation-name: zoom_out;
      -webkit-animation-iteration-count: 1;
      -webkit-animation-timing-function: linear;
      -webkit-animation-duration: 8s;
      -webkit-animation-fill-mode: forwards;
  }
transition-timing-function


変化のタイミング・進行割合を指定
ease
cubic-bezier(0.25, 0.1, 0.25, 1.0) を指定したのと同じ(開始と完了を滑らかに)(初期値)
linear
cubic-bezier(0.0, 0.0, 1.0, 1.0) を指定したのと同じ   (一定)
ease-in
cubic-bezier(0.42, 0, 1.0, 1.0) を指定したのと同じ    (ゆっくり始まる)
ease-out
cubic-bezier(0, 0, 0.58, 1.0) を指定したのと同じ      (ゆっくり終わる)
ease-in-out
cubic-bezier(0.42, 0, 0.58, 1.0) を指定したのと同じ (ゆっくり始まってゆっくり終わる)
cubic-bezier(p1, p2, p3, p4)
3次ベジェ曲線のP1とP2を (x1, y1, x2, y2) で指定
Q8のアニメーション
http://youtu.be/4LBOZTtiEh8#t=11m21s
cubic-bezier.com
   http://cubic-bezier.com
CSS Filter Effects
画像にフィルターを適用させる。
 sample.css

   img {
       -webkit-filter:   grayscale();     /*グレースケール*/
       -webkit-filter:   sepia();         /*セピア*/
       -webkit-filter:   saturate();      /*彩度*/
       -webkit-filter:   hue-rotate();    /*反転*/
       -webkit-filter:   invert();        /*色相回転*/
       -webkit-filter:   opacity();       /*透明度*/
       -webkit-filter:   brightness();    /*輝度*/
       -webkit-filter:   contrast();      /*コントラスト*/
       -webkit-filter:   blur();          /*ぼかし*/
       -webkit-filter:   drop-shadow();   /*ドロップシャドウ*/
   }

       http://www.html5rocks.com/en/tutorials/filters/understanding-css/
第34回 HTMLとか勉強会
 Q3のアニメーション
 http://youtu.be/YT8s74HOLzk
なんだかんだと
 とりとめなく
お話しましたが
楽しくなければ

 じゃない!
thanks.

Mais conteúdo relacionado

Último

Último (11)

論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
 

Destaque

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Destaque (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

第35回HTML5とか勉強会「HTML5 Conference 2012 クイズの裏側」20130121