-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
132 lines (132 loc) · 5.6 KB
/
index.php
File metadata and controls
132 lines (132 loc) · 5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>jPolaroid</title>
<link rel="stylesheet" href="_css/yui.css" type="text/css">
<link rel="stylesheet" href="_css/main.css" type="text/css">
<link rel="stylesheet" href="_css/jpolaroid.minified.css" type="text/css">
<script type = "text/javascript" src = "_js/jquery-1.3.2.min.js"></script>
<script type = "text/javascript" src = "_js/jquery.jpolaroid.minified.js"></script>
<script type = "text/javascript" src = "_js/jquery.chili-2.2.js"></script>
<script type = "text/javascript" src = "_js/effects.js"></script>
<script type="text/javascript">
ChiliBook.recipeFolder = "_js/";
</script>
</head>
<body>
<div id="doc3" class="yui-t7">
<div id="hd">
<div class="center">
<center>
<div id = "title">
<img id = "logo" src = "_images/logo.png"></img>
<br/>
<small style = "margin-bottom:10px">Turn your images into fancy customizable Polaroids!</small>
</div>
</center>
</div>
<div id = "tagline">developed by <a target="_blank" href="http://www.steveram.info">Steven Ramkumar</a> under the <a target="_blank" href="http://www.opensource.org/licenses/mit-license.php">MIT License</a>, using <a target="_blank" href="http://www.jquery.com">jQuery</a>, last updated on 25/04/2009</div>
</div>
<div id="bd">
<div class="yui-g">
<div class="center">
<div class="example">
<h2>What is it?</h2>
<p style = "line-height:2em">jPolaroid is a jQuery plugin, which turns your boring images into fun, customizable Polaroid style images! It is simple to use and very clean. Download the tarball, or zip/rar, view the examples, then start adding some retro style to your webpages.</p>
</div>
<div class="example">
<h2>Download</h2>
<p>Requires <a target = "_blank" href = "http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&downloadBtn=">jQuery 1.3.x</a>.</p>
<p style = "font-weight:bold"><a href = "/jpolaroid/jpolaroid.rar">Download jPolaroid 1.1</a></p>
<p>The development code is kept at GitHub at <a target = "_blank" href = "http://github.com/steveram/jpolaroid">http://github.com/steveram/jpolaroid</a></p>
</div>
<div class="example">
<h2>Support</h2>
<p>Join our <a target = "_blank" href ="http://groups.google.com/group/jpolaroid/">Google Groups mailing list</a>.</p>
</div>
<div class="example">
<h2>Installation</h2>
<p>Include the css and js file, along with the jQuery library.<b> Don't forget to change the paths to your image directory in the css file.</b></p>
<div class = "code">
<pre style="margin:30px; line-height:1.3em"><code class="html">
<script type="text/javascript" src="path_to_js/jquery.js"></script>
<script type="text/javaScript" src="path_to_js/jquery.jpolaroid.js"></script>
<link rel="stylesheet" href="path_to_css/jpolaroid.css" type="text/css"/>
</code></pre>
</div>
</div>
<div class="example">
<h2>Usage</h2>
<br/>
<p>1. The simplest way to use jPolaroid is to call polaroid() on any image element: </p>
<div class = "code">
<h3>HTML</h3>
<pre style="margin:30px; line-height:1.3em"><code class="html">
<img id = "jquery" src = "_images/jquery-logo.gif"></img>
</code></pre>
<h3>JavaScript</h3>
<pre style="margin:30px; line-height:1.3em"><code class="js">
$(document).ready(function(){
$('#jquery').polaroid();
});
</code></pre>
</div>
<h3 style = "font-size:11px; padding-top:10px; padding-left:10px; font-weight:bold; text-decoration:underline">Result:</h3>
<img id = "jquery" src = "_images/jquery-logo.gif"></img>
<br/>
<div style = "clear:both"></div>
<p>2. You can also pass in options into the polaroid function: </p>
<div class = "code">
<h3>HTML</h3>
<pre style="margin:30px; line-height:1.3em"><code class="html">
<img id = "sanfran" src = "_images/san-francisco.jpg"></img>
</code></pre>
<h3>JavaScript</h3>
<pre style="margin:30px; line-height:1.3em"><code class="js">
$(document).ready(function(){
$('#sanfran').polaroid({
tape:true,
shadowPos: "top-left",
bottom: "50px",
top: "22px",
left: "24px",
right: "24px",
shadowColor: "#CCCCCC",
backgroundColor: "#FDFDFD"
});
});
</code></pre>
</div>
<h3 style = "font-size:11px; padding-top:10px; padding-left:10px; font-weight:bold; text-decoration:underline">Result:</h3>
<img id = "sanfran" src = "_images/san-francisco.jpg"></img>
<br/>
<div style = "clear:both"></div>
<p>3. Here is a list of all possible options you can pass: </p>
<br/>
<table>
<col/>
<col id="middle"/>
<col/>
<thead>
<tr><th>Option</th><th>Parameters</th><th>Default</th></tr>
</thead>
<tbody>
<tr><td>tape</td><td>true | false</td><td>true</td></tr>
<tr class="odd"><td>shadowPos</td><td>"top-left" | "top-right" | "bottom-left" | "bottom-right" </td><td>"bottom-right"</td></tr>
<tr><td>top</td><td>[pixel value]</td><td>"22px"</td></tr>
<tr class="odd"><td>bottom</td><td>[pixel value]</td><td>"33px"</td></tr>
<tr><td>right</td><td>[pixel value]</td><td>"27px"</td></tr>
<tr class="odd"><td>left</td><td>[pixel value]</td><td>"27px"</td></tr>
<tr><td>shadowColor</td><td>[hex value]</td><td>"#CCCCCC"</td></tr>
<tr class="odd"><td>backgroundColor</td><td>[hex value]</td><td>"#FDFDFD"</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="ft"><div class="center"><p>Code ©2009 Steven Ramkumar MIT License</p></div></div>
</div>
</body>
</html>