Skip to content

Commit 280132f

Browse files
committed
using markdown
1 parent a5349aa commit 280132f

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

README.rdoc renamed to README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
= jquery.cookie
1+
# jquery.cookie
22

33
A simple, lightweight jQuery plugin for reading, writing and deleting cookies.
44

5-
== Installation
5+
## Installation
66

77
Include script *after* the jQuery library (unless you are packaging scripts somehow else):
88

99
<script src="/path/to/jquery.cookie.js"></script>
1010

11-
== Usage
11+
## Usage
1212

1313
Create session cookie:
1414

@@ -33,41 +33,41 @@ Delete cookie by passing null as value:
3333

3434
*Note: when deleting a cookie, you must pass the exact same path, domain and secure options that were used to set the cookie.*
3535

36-
== Options
36+
## Options
3737

3838
expires: 365
3939

40-
Define lifetime of the cookie. Value can be a +Number+ (which will be interpreted as days from time of creation) or a +Date+ object. If omitted, the cookie is a session cookie.
40+
Define lifetime of the cookie. Value can be a `Number` (which will be interpreted as days from time of creation) or a `Date` object. If omitted, the cookie is a session cookie.
4141

4242
path: '/'
4343

4444
Default: path of page where the cookie was created.
4545

46-
Define the path where cookie is valid. <b>By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).</b> If you want to make it available for instance across the entire page use <code>path: '/'</code>.
46+
Define the path where cookie is valid. *By default the path of the cookie is the path of the page where the cookie was created (standard browser behavior).* If you want to make it available for instance across the entire page use `path: '/'`.
4747

4848
domain: 'example.com'
4949

5050
Default: domain of page where the cookie was created.
5151

5252
secure: true
5353

54-
Default: +false+. If true, the cookie transmission requires a secure protocol (https).
54+
Default: `false`. If true, the cookie transmission requires a secure protocol (https).
5555

5656
raw: true
5757

58-
Default: +false+.
58+
Default: `false`.
5959

60-
By default the cookie is encoded/decoded when creating/reading, using +encodeURIComponent+/+decodeURIComponent+. Turn off by setting <code>raw: true</code>.
60+
By default the cookie is encoded/decoded when creating/reading, using `encodeURIComponent`/`decodeURIComponent`. Turn off by setting `raw: true`.
6161

6262
== Changelog
6363

6464
== Development
6565

66-
- Source hosted at {GitHub}[https://github.com/carhartl/jquery-cookie]
67-
- Report issues, questions, feature requests on {GitHub Issues}[https://github.com/carhartl/jquery-cookie/issues]
66+
- Source hosted at [GitHub](https://github.com/carhartl/jquery-cookie)
67+
- Report issues, questions, feature requests on [GitHub Issues](https://github.com/carhartl/jquery-cookie/issues)
6868

6969
Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.
7070

7171
== Authors
7272

73-
{Klaus Hartl}[https://github.com/carhartl]
73+
[Klaus Hartl](https://github.com/carhartl)

0 commit comments

Comments
 (0)