-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
113 lines (104 loc) · 3.78 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
<!DOCTYPE html>
<html>
<head>
<title>FilterAwesome</title>
<link rel="stylesheet" type="text/css" href="static/css/semantic.min.css">
<link rel="stylesheet" type="text/css" href="filterawesome.css">
<link href='http://fonts.useso.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<script type="text/javascript" src="static/js/zepto.min.js"></script>
<style type="text/css">
.name{
font-size: 48px;
text-align: center;
font-family: 'Indie Flower', cursive;
}
.code{
font-weight: bold;
background-color: #564f8a;
color: white;
font-size: 18px;
padding: 12px;
}
header{
text-align: center;
}
footer{
text-align: center;
margin: 24px;
}
#quickstart{
text-align: center;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
var show = $('.show');
$('[data-behaviors~=change-setting]').change(function(){
show.attr('class',
['ui',
'image',
'centered',
'show',
$('[data-behaviors~=change-setting]')[0].value,
$('[data-behaviors~=change-setting]')[1].value
].join(' '));
});
})
</script>
</head>
<body>
<header>
<h1 class="name">FilterAwesome</h1>
<h5>*FilterAwesome* is a CSS filter library.</h5>
<a class="ui labeled icon button" href="https://raw.githubusercontent.com/djyde/FilterAwesome/master/filterawesome.css">
<i class="download icon"></i> Downlaod
</a>
<p style="margin-top: 12px;">Latest version: Alpha</p>
<div class="ui text menu">
<a href="https://github.com/djyde/filterawesome" class="item">
<i class="github icon"></i> Github
</a>
</div>
</header>
<div class="ui header horizontal divider">Showcase</div>
<div style="text-align: center; margin-top: 24px; margin-bottom: 24px;">
<select data-behaviors="change-setting">
<option value="none">Select a filter</option>
<option value="B1">B1</option>
<option value="kawa">kawa</option>
<option value="gill">gill</option>
<option value="fongsor">fongsor</option>
<option value="mi">mi</option>
</select>
<select data-behaviors="change-setting">
<option value="none">Add a blur effect</option>
<option value="deep blur">deep blur</option>
<option value="light blur">light blur</option>
</select>
</div>
<div class="ui grid">
<div class="center aligned two column row">
<div class="column">
<img class="ui image centered" src="http://7mnoy7.com1.z0.glb.clouddn.com/pho.jpg?imageView2/2/w/640/q/100">
</div>
<div class="column">
<img class="ui image centered show" src="http://7mnoy7.com1.z0.glb.clouddn.com/pho.jpg?imageView2/2/w/640/q/100">
</div>
</div>
</div>
<div class="ui header horizontal divider">Quick Start</div>
<div id="quickstart">
<h1>1. Link CSS</h1>
<p class="code"><link rel="stylesheet" type="text/css" href="path/to/filterawesome.css" /></p>
<h1>2. Add class</h1>
<p class="code"><img src="foo.jpg" class="[filter name]" /></p>
<h2>3. Bonus: Blur!</h2>
<p>Every filter had one <b>light blur</b> and one <b>deep blur</b> class. Like below:</p>
<p class="code"><img class="fongsor light blur" src="foo.jpg"/></p>
</div>
<footer>
Create by <a href="https://github.com/djyde/">Randy</a>
</footer>
</body>
</html>