Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed French grammar issues in i18n support. Added localStorage worki…
…ng examples (localStorage polyfill was included in v3.0 but not visible). Fixed language link in French Session timeout working example.
- Loading branch information
Paul Jackson
authored and
Paul Jackson
committed
Oct 11, 2012
1 parent
2787d72
commit 5e19726
Showing
6 changed files
with
434 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
<!DOCTYPE html> | ||
<!--[if IE 7]><html lang="en" class="no-js ie7"><![endif]--> | ||
<!--[if IE 8]><html lang="en" class="no-js ie8"><![endif]--> | ||
<!--[if gt IE 8]><!--> | ||
<html lang="en" class="no-js"> | ||
<!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW) | ||
wet-boew.github.com/wet-boew/License-eng.txt / wet-boew.github.com/wet-boew/Licence-fra.txt --> | ||
<title>Persistent storage (localStorage polyfill) - Web Storage (HTML5) - Working examples - Web Experience Toolkit (WET)</title> | ||
|
||
<link rel="shortcut icon" href="../../build/theme-gcwu-fegc/images/favicon.ico" /> | ||
<meta name="description" content="English description / Description en anglais" /> | ||
<meta name="dcterms.creator" content="English name of the content author / Nom en anglais de l'auteur du contenu" /> | ||
<meta name="dcterms.title" content="English title / Titre en anglais" /> | ||
<meta name="dcterms.issued" title="W3CDTF" content="Date published (YYYY-MM-DD) / Date de publication (AAAA-MM-JJ)" /> | ||
<meta name="dcterms.modified" title="W3CDTF" content="Date modified (YYYY-MM-DD) / Date de modification (AAAA-MM-JJ)" /> | ||
<meta name="dcterms.subject" title="scheme" content="English subject terms / Termes de sujet en anglais" /> | ||
<meta name="dcterms.language" title="ISO639-2" content="eng" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<script src="../../build/js/jquery.min.js"></script> | ||
<!--[if lte IE 8]> | ||
<script src="../../build/js/polyfills/html5shiv-min.js"></script> | ||
<link rel="stylesheet" href="../../build/grids/css/util-ie-min.css" /> | ||
<link rel="stylesheet" href="../../build/js/css/pe-ap-ie-min.css" /> | ||
<link rel="stylesheet" href="../../build/theme-gcwu-fegc/css/theme-ie-min.css" /> | ||
<![endif]--> | ||
<!--[if gt IE 8]><!--> | ||
<link rel="stylesheet" href="../../build/grids/css/util-min.css" /> | ||
<link rel="stylesheet" href="../../build/js/css/pe-ap-min.css" /> | ||
<link rel="stylesheet" href="../../build/theme-gcwu-fegc/css/theme-min.css" /> | ||
<!--<![endif]--> | ||
<noscript><link rel="stylesheet" href="../../build/theme-gcwu-fegc/css/theme-ns-min.css" /></noscript> | ||
|
||
<!-- CustomScriptsCSSStart --> | ||
<!-- CustomScriptsCSSEnd --> | ||
</head> | ||
|
||
<body><div id="wb-body"> | ||
<div id="wb-skip"> | ||
<ul id="wb-tphp"> | ||
<li id="wb-skip1"><a href="#wb-cont">Skip to main content</a></li> | ||
<li id="wb-skip2"><a href="#wb-nav">Skip to footer</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div id="wb-head"><div id="wb-head-in"><header> | ||
<!-- HeaderStart --> | ||
<nav role="navigation"><div id="gcwu-gcnb"><h2>Government of Canada navigation bar</h2><div id="gcwu-gcnb-in"><div id="gcwu-gcnb-fip"> | ||
<div id="gcwu-sig"><div id="gcwu-sig-in"><div id="gcwu-sig-eng" title="Government of Canada"><img src="../../build/theme-gcwu-fegc/images/sig-eng.gif" width="214" height="20" alt="Government of Canada" /></div></div></div> | ||
<ul> | ||
<li id="gcwu-gcnb1"><a rel="external" href="http://www.canada.gc.ca/menu-eng.html">Canada.gc.ca</a></li> | ||
<li id="gcwu-gcnb2"><a rel="external" href="http://www.servicecanada.gc.ca/eng/home.shtml">Services</a></li> | ||
<li id="gcwu-gcnb3"><a rel="external" href="http://www.canada.gc.ca/aboutgov-ausujetgouv/depts/menu-eng.html">Departments</a></li> | ||
<li id="gcwu-gcnb-lang"><a href="localstorage-fra.html" lang="fr">Français</a></li> | ||
</ul> | ||
</div></div></div></nav> | ||
|
||
<div id="gcwu-bnr" role="banner"><div id="gcwu-bnr-in"> | ||
<div id="gcwu-wmms"><div id="gcwu-wmms-in"><div id="gcwu-wmms-fip" title="Symbol of the Government of Canada"><img src="../../build/theme-gcwu-fegc/images/wmms.gif" width="126" height="30" alt="Symbol of the Government of Canada" /></div></div></div> | ||
<div id="gcwu-title"><p id="gcwu-title-in"><a href="../../index-eng.html">Web Experience Toolkit (WET)</a></p></div> | ||
|
||
<section role="search"><div id="gcwu-srchbx"><h2>Search</h2> | ||
<form action="#" method="post"><div id="gcwu-srchbx-in"> | ||
<label for="gcwu-srch">Search website</label><input id="gcwu-srch" name="gcwu-srch" type="search" value="" size="27" maxlength="150" /> | ||
<input id="gcwu-srch-submit" name="gcwu-srch-submit" type="submit" value="Search" data-icon="search" /> | ||
</div></form> | ||
</div></section> | ||
</div></div> | ||
|
||
<nav role="navigation"> | ||
<div id="gcwu-psnb"><h2><span>Site </span>menu</h2><div id="gcwu-psnb-in"><div class="wet-boew-menubar mb-mega"><div> | ||
<ul class="mb-menu" data-ajax-replace="../includes/menu-eng.txt"> | ||
<li><div><a href="http://wet-boew.github.com/wet-boew/index-eng.html">WET project</a></div></li> | ||
<li><div><a href="section2/index-eng.html">Section 2</a></div></li> | ||
<li><div><a href="#">Section 3</a></div></li> | ||
<li><div><a href="#">Section 4</a></div></li> | ||
<li><div><a href="#">Section 5</a></div></li> | ||
<li><div><a href="#">Section 6</a></div></li> | ||
<li><div><a href="#">Section 7</a></div></li> | ||
</ul> | ||
</div></div></div></div> | ||
|
||
<div id="gcwu-bc"><h2>Breadcrumb trail</h2><div id="gcwu-bc-in"> | ||
<ol> | ||
<li><a href="../../index-eng.html">Home</a></li> | ||
<li><a href="../index-eng.html">Working examples</a></li> | ||
<li>Persistent storage (localStorage polyfill) - Web Storage (HTML5)</li> | ||
</ol> | ||
</div></div> | ||
</nav> | ||
<!-- HeaderEnd --> | ||
</header></div></div> | ||
|
||
<div id="wb-core"><div id="wb-core-in" class="equalize"> | ||
<div id="wb-main" role="main"><div id="wb-main-in"> | ||
<!-- MainContentStart --> | ||
<h1 id="wb-cont">Persistent storage (localStorage polyfill) - Web Storage (HTML5)</h1> | ||
|
||
<div id="process-status"></div> | ||
|
||
<h2>Overview</h2> | ||
<p>The HTML5 localStorage object is used to store data persistently (no expiration date). This component adds support for this object in browsers that do not already have native support.</p> | ||
<p>This working example demonstrates how HTML5 localStorage works. It remembers the activated/deactivated state even after the browser has been closed.</p> | ||
|
||
<dl id="gcwu-date-mod" role="contentinfo"> | ||
<dt>Date modified:</dt><dd><span><time>2012-10-09</time></span></dd> | ||
</dl> | ||
<div class="clear"></div> | ||
<!-- MainContentEnd --> | ||
</div></div> | ||
</div></div> | ||
|
||
<div id="wb-foot"><div id="wb-foot-in"><footer><h2 id="wb-nav">Footer</h2> | ||
<!-- FooterStart --> | ||
<nav role="navigation"><div id="gcwu-sft"><h3>Site footer</h3><div id="gcwu-sft-in"> | ||
<div id="gcwu-tctr"> | ||
<ul> | ||
<li class="gcwu-tc"><a href="#" rel="license">Terms and conditions</a></li> | ||
<li class="gcwu-tr"><a href="#">Transparency</a></li> | ||
</ul> | ||
</div> | ||
<div class="clear"></div> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">About us</a></h4> | ||
<ul> | ||
<li><a href="#">Our Mandate</a></li> | ||
<li><a href="#">The Minister</a></li> | ||
</ul> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">News</a></h4> | ||
<ul> | ||
<li><a href="#">News releases</a></li> | ||
<li><a href="#">Media advisories</a></li> | ||
<li><a href="#">Multimedia</a></li> | ||
</ul> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">Contact us</a></h4> | ||
<address> | ||
<ul> | ||
<li><a href="#">Phone numbers</a></li> | ||
<li><a href="#">Office locations</a></li> | ||
</ul> | ||
</address> | ||
</div></section> | ||
<section><div class="span-2"><h4 class="gcwu-col-head"><a href="#">Stay connected</a></h4> | ||
<ul> | ||
<li><a rel="external" href="#">YouTube</a></li> | ||
<li><a rel="external" href="#">Twitter</a></li> | ||
<li><a href="#">Feeds</a></li> | ||
</ul> | ||
</div></section> | ||
</div></div></nav> | ||
|
||
<nav role="navigation"><div id="gcwu-gcft"><h3>Government of Canada footer</h3><div id="gcwu-gcft-in"><div id="gcwu-gcft-fip"> | ||
<ul> | ||
<li><a rel="external" href="http://healthycanadians.gc.ca/index-eng.php"><span>Health</span><br />healthycanadians.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.voyage.gc.ca/index-eng.asp"><span>Travel</span><br />travel.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.servicecanada.gc.ca/eng/home.shtml"><span>Service Canada</span><br />servicecanada.gc.ca</a></li> | ||
<li><a rel="external" href="http://www.jobbank.gc.ca/intro-eng.aspx"><span>Jobs</span><br />jobbank.gc.ca</a></li> | ||
<li><a rel="external" href="http://actionplan.gc.ca/en"><span>Economy</span><br />actionplan.gc.ca</a></li> | ||
<li id="gcwu-gcft-ca"><div><a rel="external" href="http://www.canada.gc.ca/menu-eng.html">Canada.gc.ca</a></div></li> | ||
</ul> | ||
</div></div></div></nav> | ||
<!-- FooterEnd --> | ||
</footer> | ||
</div></div></div> | ||
|
||
<script> | ||
/* <![CDATA[ */ | ||
(function ($) { | ||
var $status = $('#process-status'), | ||
$document = $(document); | ||
$document.on('localstorage-loaded status-change', function() { | ||
var processStatus = localStorage.getItem('processStatus'); | ||
if (processStatus && processStatus === 'deactivated') { | ||
$status.html('<div class="module-attention span-4"><section><h2>Attention</h2><p>Process deactivated <a class="button button-confirm">Activate process</a></p></section></div><div class="clear"></div>'); | ||
} else { | ||
$status.html('<div class="module-note span-4"><section><h2>Note</h2><p>Process activated <a class="button button-attention">Deactivate process</a></p></section></div><div class="clear"></div>'); | ||
} | ||
$status.find('a').one('click vclick', function() { | ||
var processStatus = localStorage.getItem('processStatus'); | ||
if (processStatus && processStatus === 'deactivated') { | ||
localStorage.setItem('processStatus', 'activated'); | ||
} else { | ||
localStorage.setItem('processStatus', 'deactivated'); | ||
} | ||
$document.trigger('status-change'); | ||
}); | ||
}); | ||
if (window.localStorage) { | ||
$document.trigger('localstorage-loaded'); | ||
} | ||
}(jQuery)); | ||
/* ]]> */ | ||
</script> | ||
|
||
<!-- ScriptsStart --> | ||
<script src="../../build/theme-gcwu-fegc/js/theme-min.js"></script> | ||
<script src="../../build/js/settings.js"></script> | ||
<script src="../../build/js/pe-ap-min.js"></script> | ||
<!-- ScriptsEnd --> | ||
</body> | ||
</html> |
Oops, something went wrong.