-
Notifications
You must be signed in to change notification settings - Fork 260
/
index.html
126 lines (125 loc) · 5.04 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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>jQuery Gridly</title>
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href='stylesheets/jquery.gridly.css' rel='stylesheet' type='text/css'>
<link href='stylesheets/sample.css' rel='stylesheet' type='text/css'>
<script src='javascripts/jquery.js' type='text/javascript'></script>
<script src='javascripts/jquery.gridly.js' type='text/javascript'></script>
<script src='javascripts/sample.js' type='text/javascript'></script>
<script src='javascripts/rainbow.js' type='text/javascript'></script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-31911059-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</meta>
</head>
<body>
<a href='https://github.com/ksylvest/jquery-gridly'>
<img alt='Fork' class='fork' src='images/fork.png'>
</a>
<div class='content'>
<h1>jQuery Gridly</h1>
<p>Gridly is a jQuery plugin to enable dragging and dropping as well as resizing on a grids. In the example below try tapping or dragging any of the bricks.</p>
<h2>Example</h2>
<section class='example'>
<div class='gridly'>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
<div class='brick small'>
<a class='delete' href='#'>×</a>
</div>
</div>
<p class='actions'>
<a class='add button' href='#'>Add</a>
</p>
</section>
<h2>Installation</h2>
<p>To install download one of these packages and include the jquery.gridly.js and jquery.gridly.css files in your head with the following:</p>
<section class='formats'>
<div class='format'>
<a class='zip' href='packages/jquery.gridly.zip'></a>
</div>
<div class='format'>
<a class='tar' href='packages/jquery.gridly.tar'></a>
</div>
</section>
<pre><code data-language='html'><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
<script src="javascript/jquery.gridly.js" type="text/javascript"></script>
<link href="stylesheets/jquery.gridly.css" rel="stylesheet" type="text/css" /></code></pre>
<h2>Example</h2>
<p>Setting up a gridly is easy. The following snippet is a good start:</p>
<pre><code data-language='html'><style type="text/css">
 .gridly {
 position: relative;
 width: 960px;
 }
 .brick.small {
 width: 140px;
 height: 140px;
 }
 .brick.large {
 width: 300px;
 height: 300px;
 }
</style>
<div class="gridly">
 <div class="brick small"></div>
 <div class="brick small"></div>
 <div class="brick large"></div>
 <div class="brick small"></div>
 <div class="brick small"></div>
 <div class="brick large"></div>
</div>
<script>
 $('.gridly').gridly({
 base: 60, // px 
 gutter: 20, // px
 columns: 12
 });
</script></code></pre>
<p class='copy'>
Copyright (c) 2013 - 2015
<a href='http://ksylvest.com/'>Kevin Sylvestre</a>
</p>
<p class='links'>
<a href='https://github.com/ksylvest'>GitHub</a>
<a href='https://plus.google.com/+KevinSylvestre?rel=author'>Google</a>
<a href='https://twitter.com/ksylvest'>Twitter</a>
</p>
</div>
</body>
</html>