diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-13 15:43:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-13 15:43:49 -0400 |
commit | 7ce4ddbcac5c908c78ac6956b6c8799b5f927c4d (patch) | |
tree | cb80f88a05b2f06e01bafa1ab13014d80355dbef /demos/tabs/cookie.html | |
parent | b12d528e8f84fa6509165e7adef09da0b4a71469 (diff) | |
download | jquery-ui-7ce4ddbcac5c908c78ac6956b6c8799b5f927c4d.tar.gz jquery-ui-7ce4ddbcac5c908c78ac6956b6c8799b5f927c4d.zip |
Tabs demos: Coding standards.
Diffstat (limited to 'demos/tabs/cookie.html')
-rw-r--r-- | demos/tabs/cookie.html | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/demos/tabs/cookie.html b/demos/tabs/cookie.html index 638ee37f2..7e4e3aaf8 100644 --- a/demos/tabs/cookie.html +++ b/demos/tabs/cookie.html @@ -1,18 +1,18 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8" /> + <meta charset="utf-8"> <title>jQuery UI Tabs - Default functionality</title> - <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> - <script type="text/javascript" src="../../jquery-1.4.2.js"></script> - <script type="text/javascript" src="../../external/jquery.cookie.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> - <script type="text/javascript" src="../../ui/jquery.ui.tabs.js"></script> - <link type="text/css" href="../demos.css" rel="stylesheet" /> - <script type="text/javascript"> + <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> + <script src="../../jquery-1.4.2.js"></script> + <script src="../../external/jquery.cookie.js"></script> + <script src="../../ui/jquery.ui.core.js"></script> + <script src="../../ui/jquery.ui.widget.js"></script> + <script src="../../ui/jquery.ui.tabs.js"></script> + <link rel="stylesheet" href="../demos.css"> + <script> $(function() { - $("#tabs").tabs({ + $( "#tabs" ).tabs({ cookie: { // store cookie for a day, without, it would be a session cookie expires: 1 @@ -45,12 +45,11 @@ </div><!-- End demo --> -<div class="demo-description"> -<p>Looks the same as the default demo, but uses cookie to store the selected tab, and restore it when the page (re)loads. +<div class="demo-description"> +<p>Looks the same as the default demo, but uses cookie to store the selected tab, and restore it when the page (re)loads. The cookie is stored for a day, so tabs will be restored even after closing the browser. Use cookie: {} for using cookies with default options.</p> - </div><!-- End demo-description --> </body> |