-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
240 lines (189 loc) · 10.1 KB
/
index.html
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="glossify.js is a jQuery plugin that transforms any image into a beautiful and colourful glossy sphere">
<meta name="keywords" content="javascript, jquery, glossy, glossify, sphere, glass, canvas, image">
<meta name="author" content="Manuel Fernandes">
<title>glossify.js v1.1</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/glossifyjs.css" rel="stylesheet">
</head>
<body>
<!-- NAVBAR
================================================== -->
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only trn">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">glossify.js</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#" class="trn">Home</a></li>
<li><a href="#" class="trn" data-toggle="modal" data-target="#modal_about">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>glossify.js</h1>
<p class="trn" data-trn-key="subtitle_key">glossify.js is a jQuery plugin that transforms any image into a beautiful and colourful glossy sphere.</p>
<img src="imgs/r01.jpg" data-gloss data-glosscolor="009999" width="100"/>
<img src="imgs/r02.jpg" data-gloss data-glosscolor="009999" data-glossalpha="0.3" width="100"/>
<img src="imgs/r03.jpg" data-gloss data-glosscolor="000000" width="100"/>
<img src="imgs/r05.jpg" data-gloss data-glosscolor="333333" width="100"/>
<img src="imgs/r07.jpg" data-gloss data-glosscolor="ff0000" data-glossalpha="0.3" width="100"/>
<img src="imgs/r08.jpg" data-gloss data-glosscolor="990099" data-glossalpha="0.5" width="100"/>
<p><a class="btn btn-primary btn-lg" role="button" href="https://github.com/tinoni/gloss" target="_blank">Download glossify.js v1.1</a></p>
</div>
</div>
<div class="container">
<h2>Documentation</h2>
<p>Using glossify.js couldn't be easier: just include the script and use some special attributes with any image you want to glossify. No need to call any script or initialize anything.</p>
<!-- Example row of columns -->
<div class="row">
<div class="col-md-6">
<div>
<h3 class="trn">Usage</h3>
<p><strong>Step 1</strong>: include JQuery and glossify.js in your page</p>
<pre><script src="jquery.js"/>
<script src="glossify.js"/></pre>
<p><strong>Step 2</strong>: every image you want to glossify just include the <code>data-gloss</code> attribute</p>
<pre><image src="html5.png" data-gloss/></pre>
<img src="imgs/html5.png" data-gloss/>
</div>
<div>
<h3 class="trn">Options</h3>
<p><strong>Changing the color</strong> is easy: just use the <code>data-glosscolor</code> attribute. If not provided, the default color is black.</p>
<pre><image src="html5.png" data-gloss data-glosscolor="#ff0000" width="75"/></pre>
<img src="imgs/html5.png" data-gloss data-glosscolor="#ff0000" width="75"/>
<p>You can also <strong>change the alpha</strong> by using the <code>data-glossalpha</code> attribute. If not provided, the default alpha value is 1 (no transparency).</p>
<pre><image src="html5.png" data-gloss data-glosscolor="#ff0000" data-glossalpha="0.5" width="75"/></pre>
<img src="imgs/html5.png" data-gloss data-glosscolor="#ff0000" data-glossalpha="0.5" width="75"/>
</div>
</div>
<div class="col-md-6">
<h3 class="trn">JQuery API</h3>
<p>glossify.js is also a JQuery plugin which can be called from your code to transform any image. For instance, to glossify the image whoose id is my_image just issue the following JQuery command:</p>
<pre>$('#my_image').glossify({color: "#0000ff", alpha: 1})</pre>
<img src="imgs/html5.png" data-gloss data-glosscolor="#0000ff"/>
</div>
</div>
<hr/>
<div>
<h2>More Examples</h2>
<div>
<p>Images before glossify</p>
<img src="imgs/facebook.png" width="75"/>
<img src="imgs/twitter.png" width="75"/>
<img src="imgs/pinterest.png" width="75"/>
<img src="imgs/linkedin.png" width="75"/>
<img src="imgs/googleplus.png" width="75"/>
<img src="imgs/tumblr.png" width="75"/>
<img src="imgs/flickr.png" width="75"/>
<img src="imgs/instagram.png" width="75"/>
<img src="imgs/foursquare.png" width="75"/>
</div>
<div>
<p>After glossify</p>
<img src="imgs/facebook.png" data-gloss data-glosscolor="#265999" width="75"/>
<img src="imgs/twitter.png" data-gloss data-glosscolor="#00b0ef" width="75"/>
<img src="imgs/pinterest.png" data-gloss data-glosscolor="#ef0021" width="75"/>
<img src="imgs/linkedin.png" data-gloss data-glosscolor="#0082b2" width="75"/>
<img src="imgs/googleplus.png" data-gloss data-glosscolor="#f32e31" width="75"/>
<img src="imgs/tumblr.png" data-gloss data-glosscolor="#174863" width="75"/>
<img src="imgs/flickr.png" data-gloss data-glosscolor="#0062dd" width="75"/>
<img src="imgs/instagram.png" data-gloss data-glosscolor="#00749c" width="75"/>
<img src="imgs/foursquare.png" data-gloss data-glosscolor="#009bca" width="75"/>
</div>
</div>
<hr/>
<div>
<h2>Cross Platform & Safe to Use with Older Browsers</h2>
<img src="imgs/chrome.png" data-gloss width="75" data-glossalpha="0.8" alt="Chrome" title="Chrome"/>
<img src="imgs/firefox.png" data-gloss width="75" data-glossalpha="0.8" alt="Firefox" title="Firefox"/>
<img src="imgs/ie.png" data-gloss width="75" data-glossalpha="0.8" alt="Internet Explorer" title="Internet Explorer"/>
<img src="imgs/opera.png" data-gloss width="75" data-glossalpha="0.8" alt="Opera" title="Opera"/>
<img src="imgs/safari.png" data-gloss width="75" data-glossalpha="0.8" alt="Safari" title="Safari"/>
<p>
glossify.js allows developers to create fantastic looking images across all modern desktop and mobile browsers. glossify.js uses HTML5 Canvas which is compatible with the latest Android and Apple iOS (iPhone/iPad) phones and tablets.
</p>
<p>
glossify.js is a jQuery plugin.
</p>
List of supported browsers:
<ul>
<li>Internet Explorer 9+</li>
<li>Firefox 2+</li>
<li>Chrome 4+</li>
<li>Safari 3.1+</li>
<li>Opera 9+</li>
<li>iOS Safari 3.2+</li>
<li>Android 3+</li>
</ul>
<p>glossify.js is safe to use with older browsers. If glossify.js is not supported by the browser then the original image will be displayed as fallback and your site will continue to work. No javascript errors will be thrown.</p>
</div>
<hr/>
<div>
<h2>Known Limitations</h2>
Due to javascript security reasons, glossify.js will not work with images hosted on different domains.
</div>
<hr/>
<div>
<h2>License</h2>
You may use glossify.js under the terms of the MIT License. <a href="http://en.wikipedia.org/wiki/MIT_License" target="_blank">More information</a>.
</div>
<hr/>
<footer>
<p>© Manuel Fernandes 2013</p>
</footer>
</div> <!-- /container -->
<!-- Modal About-->
<div class="modal fade" id="modal_about" tabindex="-1" role="dialog" aria-labelledby="modal_about_label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title trn" id="modal_about_label">About</h4>
</div>
<div class="modal-body">
<p><a href="https://github.com/tinoni" target="_blank">by Manuel Fernandes</a></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/glossify.min.js"></script>
<script>
if (location.protocol == 'file:') alert("Due to javascript security reasons glossify.js will not work from the file system. To see it working please open this file from a web server.");
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45896419-2', 'openxrest.com');
ga('send', 'pageview');
</script>
</body>
</html>