반응형
반응형

 

1. 지원하는 브라우저의 종류

웹스토리지는 IE8+, 파이어폭스, 오페라, 크롬, 사파리를 지원합니다.

IE7과 그 이전버젼에서는 지원하지 않습니다.

 

 

2. 데이터 저장 객체

클라이언트에 데이터를 저장하기위한 두 종류의 객체가 있습니다.

  • localStorage - 시간이 지나도 저장된 데이터가 지워지지 않습니다.

같은 브라우저내에 다른 윈도우창에서도 데이터가 공유됩니다.


  • sessionStorage - 하나의 세션의 데이터가 저장됩니다.

server session의 개념과 다릅니다. 해당 윈도우내에서만 데이터가 공유됩니다. 같은 브라우저내의 같은 도메인이라도 윈도우창이 다르면 데이터를 공유하지 않습니다.


3. 스토리지 지원 여부 체크

if ( typeof(Storage) !== "undefined" ) {

//웹 스토리지 지원

} else {

//웹 스토리지 미지원

}


4. 사용법

a-1. sessionStorage.setItem("one", "1");

a-2. sessionStorage.getItem("one");


b-1. sessionStorage.one = "first";

b-2. sessionStorage.one


c-1. sessionStorage[0] = "1000";

c-2. sessionStorage[0]


5. 브라우저별 스토리지 용량

웹 스토리지는 용량이 무한하지 않습니다. 또한 브라우저별로 제한 용량이 다를뿐 아니라 같은 브라우저라도 버젼별로 그 값이 상이합니다.

  • iOS - 2.49MB / 2.49MB
  • Android 2.2+, 3.1+ - 2.49MB / Unlimited
  • Android 3.0 - 2.49MB / 2.49MB
  • IE 6, 7 - 지원하지 않음
  • IE 8+ - 4.75MB / 4.75MB
  • Chrome 4.0 - 지원하지 않음
  • Chrome 6+ - 2.49MB / 2.49MB
  • Firefox 3.5+ - 4.98MB / Unlimited / (globalStorage - 4.98MB)
  • Safari 5+ - 2.49MB / Unlimited


6. 사용하는 용량체크하는 법
JSON.stringify(sessionStorage).length

 

 

반응형
반응형
Canvas에 대해. Let’s Call It A Draw(ing Surface)

 

http://diveintohtml5.info/canvas.html#divingin

 

HTML 5 defines the <canvas> element as “a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.” A canvas is a rectangle in your page where you can use JavaScript to draw anything you want.

Basic <canvas> support
IE Firefox Safari Chrome Opera iPhone Android
7.0+* 3.0+ 3.0+ 3.0+ 10.0+ 1.0+ 1.0+
* Internet Explorer 7 and 8 require the third-party explorercanvas library. Internet Explorer 9 supports <canvas> natively.

So what does a canvas look like? Nothing, really. A <canvas> element has no content and no border of its own.

반응형
반응형

40 Best Free HTML5 Tutorials For Web Designing

 

http://inspiretrends.com/best-free-html5-tutorials/

 

http://inspiretrends.com/best-free-html5-tutorials/2/

 

range of mobile devices can be challengingfree-html5-tutorials-43

Growing Thumbnails Portfolio

In this tutorial, Learn making a portfolio with HTML5, jQuery and CSS3 that features an interesting growing effect.

free-html5-tutorials-42

HTML5 Unleashed: Tips, Tricks and Techniques

In this tutorial, you will get basic guidelines, tips about templates

free-html5-tutorials-44

Create a Stylish Contact Form with HTML5 & CSS3

You can learn about create your own stylish contact using HTML5 and CSS3.

free-html5-tutorials-1

Create Vector Masks using the HTML5 Canvas

In this tutorial we will look at how to use the canvas tag and clipping to create images that aren’t so rectangular.

free-html5-tutorials-2

HTML5 File Uploads with jQuery

The tutorial is showing a progress bar, all of which controlled on the client side. Currently, the photos are only stored in a folder on the server, but you could improve it any way you like.

free-html5-tutorials-3

Create a Grid Based Web Design in HTML5 & CSS3

Follow this step by step walkthrough of the making of a sleek website design for an eyewear brand in HTML5 and CSS3.

free-html5-tutorials-6

Designing a Blog with HTML5

In this tutorial, you can learn about designing a blog with HTML5 step by step.

free-html5-tutorials-7

How to Build Cross-Browser HTML5 Forms

In this tutorial, we’re going to take a look at how to serve HTML5 forms to modern browsers, while compensating for older browsers by using a mix of Webforms2, Modernizr, jQuery UI and assorted jQuery Plugins.

free-html5-tutorials-8

Implementing HTML5 Drag and Drop

One of the new features in HTML5 is native drag and drop. Surprisingly, Internet Explorer has had support for this since version 5.5; in fact, the HTML5 implementation is based on IE’s support.

free-html5-tutorials-9

Coding a CSS3 & HTML5 One-Page Website Template

We are making a HTML5 web template, using some of the new features brought by CSS3 and jQuery, with the scroll To plug-in.

free-html5-tutorials-10

HTML5 and CSS3 Without Guilt

free-html5-tutorials-11

How to Make an HTML5 iPhone App

I’ll show you how to create an offline HTML5 iPhone application. More specifically, I’ll walk you through the process of building a Tetris game.

free-html5-tutorials-12

Design & Code a Cool iPhone App Website in HTML5

In this tutorial we’ll get a taste of what’s to come by building a cool iPhone app website using a HTML5 structure, and visual styling with some CSS3 effects.

free-html5-tutorials-13

Have a Field Day with HTML5 Forms

how to style a beautiful HTML5 form using some advanced CSS and latest CSS3 techniques

free-html5-tutorials-14

HTML 5 and CSS 3: The Techniques You’ll Soon Be Using

In this tutorial, we are going to build a blog page using next-generation techniques from HTML 5 and CSS 3.

free-html5-tutorials-15

HTML5 Canvas Element Guide

You get a firm fundamental understanding of canvas in preparation for creating something interesting and powerful with this unique HTML5 element.

free-html5-tutorials-16

Bouncing a Ball Around with HTML5 and JavaScript

This guide will explore the use of HTML5′s <canvas> element through a fun example: bouncing a blue ball around.

free-html5-tutorials-17

Blowing up HTML5 video and mapping it into 3D space

free-html5-tutorials-18

Code a Backwards Compatible, One Page Portfolio with HTML5 and CSS3

This is a run through of the basics of HTML5 and CSS3 while still paying attention to older browsers

free-html5-tutorials-21

 

 

 

Code a Vibrant Professional Web Design with HTML5/CSS3

We will use HTML5 and CSS3, as a proof of concept and as a way for you to learn these upcoming W3C standards through practice. We will also use the 960 Grid System to speed up development time.

free-html5-tutorials-23

Simple Website Layout Tutorial Using HTML 5 and CSS 3

free-html5-tutorials-24

How to Draw with HTML 5 Canvas

Among the set of goodies in the HTML 5 specification is Canvas which is a way to programmatically draw using JavaScript.

free-html5-tutorials-25

The video element

The <video> element is brand new in HTML 5 and allows you to, get this, play a movie in your website! The data of this element is supposed to be video but it might also have audio or images associated with it.

free-html5-tutorials-26

Building a live news blogging system in php

This tutorial help you for learning of building a live news, blogging system and their functions.

free-html5-tutorials-27

Combining Modern CSS3 and HTML5 Techniques

Just because some techniques don’t work in decade old browsers doesn’t mean that you shouldn’t be learning everything you can!

free-html5-tutorials-28

webOS HTML5 Database Storage Tutorial

If you haven’t been able to find any tutorials on HTML5′s storage capability, This tutorial will help you!

free-html5-tutorials-29

The Official Guide to HTML5 Boilerplate

free-html5-tutorials-30

How To Create a Cute Popup Bar With HTML5, CSS3 and jQuery

The popup bar was only tested in Chrome and Safari and may not work in other browsers.

free-html5-tutorials-31

An HTML5 Slideshow with Canvas & jQuery

You’ve probably heard a lot about the new HTML5 canvas element. As the name implies, this is a special element that allows us to create and modify graphics.

free-html5-tutorials-32

Designing Search Boxes with HTML5 and CSS3

Here, with the help of three simple examples, allow me to show how to code search boxes with HTML & CSS and how to spice things up with a bit of Javascript.

free-html5-tutorials-33

Rethinking Forms in HTML5

While there are many changes for the better in the HTML5 specification, there is no better bang for the buck for the data driven website than the transformation of forms.

free-html5-tutorials-34

HTML 5 Tutorial for Web Developers: The Video Element

free-html5-tutorials-35

HTML5 Apps: Positioning with Geolocation

In this tutorial you will learn the geolocation capabilities of HTML5 and the basic principles needed to take advantage of them in your next HTML5 app!

free-html5-tutorials-36

How to Make All Browsers Render HTML5 Correctly — Even IE6!

In this tutorial, we’ll create a common layout using some of HTML 5′s new semantic elements, then use JavaScript and CSS to make our design backwards-compatible with Internet Explorer.

free-html5-tutorials-37

Coding Up a Web Design Concept into HTML & CSS

The design features a clean grey background, but with splashes of vibrant colour in the header, and throughout the page with links and buttons taking bright colour swatches from the main illustration.

free-html5-tutorials-38

 

HTML5 Visual Cheat Sheet

HTML 5 Visual Cheat Sheet is an useful cheat sheet for web designers and developers designed by me.

free-html5-tutorials-40

HTML5 Canvas Experiment

free-html5-tutorials-41

How to Create a Drop-down Nav Menu

In this tutorial, we’ll take a look and see what we can achieve with HTML5 and CSS3 when it comes to the staple of current web sites: the humble drop-down navigation menu. We’ll also use jQuery to handle the effects and add the finishing touches for us.

free-html5-tutorials-45

 

반응형
반응형

Emergent Web Technologies Spring 2013

Tuesdays, 6:30 PM - 9:20 PM

 

http://iam.colum.edu/Jon.Petto/classes/ewt/

 

 

 

Week 1

Getting Started - HTML5, CSS, & JavaScript

View lesson »

 

Week 2

Git & GitHub

View lesson »

 

 

Week 3

Responsive Design, Part 1

View lesson ›

 

Week 4

Responsive Design, Part 2

View lesson ›

 

Week 5

Media Query Review & Sass

View lesson ›

 

Week 6

More Transitions, CSS Effects & Columns

View lesson ›

 

 

Week 7

Floats, Box Sizing, & Midterm Workshop

View lesson ›

 

Week 8

Midterm Workshop/Presentations

 

 

Week 9

GitHub Forking & AJAX

View lesson ›

 

Week 10

AJAX w/JSON & JavaScript Templates

View lesson ›

 

 

Week 11

CSS 3D Transforms & Animations

View lesson ›

 

Week 12

Google Maps & Geolocation

View lesson ›

 

 

Week 13

Web Sockets

View lesson ›

 

 

반응형
반응형

least.js

Random & Responsive HTML 5, CSS3 Gallery with LazyLoad

 

http://kamilczujowski.github.io/least/

 

Least.js creates random and responsive HTML5 and CSS3 image galleries that include Lazyload. Installation and usage is simple, and the end result is quite beautiful.

Least.js

반응형
반응형

Image Upload with Preview and Delete

 

http://stackoverflow.com/questions/10206648/image-upload-with-preview-and-delete/10206834#10206834

 

모바일에서 브라우저로 파일 업로드 할때 미리보기 기능 구현.

 

html5 에서 모바일브라우저상의 <input type="file" >을 지원 할때 사용 가능하다.

 

아래의 Demo가 실행이 되는 브라우저에서는 적용 가능하겠다.

 

Demo : http://plungjan.name/test/previewjq.html

 

 

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Image preview</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
var blank="http://upload.wikimedia.org/wikipedia/commons/c/c0/Blank.gif";
function readURL(input) {
   
if (input.files && input.files[0]) {
       
var reader = new FileReader();

        reader
.onload = function (e) {
            $
('#img_prev')
           
.attr('src', e.target.result)
           
.height(200);
       
};

        reader
.readAsDataURL(input.files[0]);
   
}
   
else {
     
var img = input.value;
        $
('#img_prev').attr('src',img).height(200);
   
}
    $
("#x").show().css("margin-right","10px");
}
$
(document).ready(function() {
  $
("#x").click(function() {
    $
("#img_prev").attr("src",blank);
    $
("#x").hide(); 
 
});
});
</script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<style>
article
, aside, figure, footer, header, hgroup,
menu
, nav, section { display: block; }
#x { display:none; position:relative; z-index:200; float:right}
#previewPane { display: inline-block; }
</style>
</head>
<body>
<section>
<input type='file' onchange="readURL(this);" /><br/>
<span id="previewPane">
<img id="img_prev" src="#" alt="your image" />
<span id="x">[X]</span>
</span>
</section>
</body>
</html> 

 

반응형

+ Recent posts