This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
105 lines (102 loc) · 4.27 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Invert Images</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link rel="stylesheet" href="InvertImages.css">
<script src="Modernizr.js"></script>
</head>
<body>
<div class="container">
<h1>Invert Images using SVG</h1>
<p class="demo">A plugin for CSS3 fallback on IE 10</p>
<hr>
<br>
<h2>Original</h2>
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.inverse.png" alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.inverse.reflect.horizontal.png" alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.png" alt="">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.reflect.horizontal.png" alt="">
</a>
</div>
</div>
<h2>Processed after InvertImage()</h2>
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.inverse.png" alt="" class="invert-it">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.inverse.reflect.horizontal.png" alt="" class="invert-it">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.png" alt="" class="invert-it">
</a>
</div>
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
<a href="#" class="thumbnail well">
<img src="images/appbar.clear.reflect.horizontal.png" alt="" class="invert-it">
</a>
</div>
</div>
<a href="https://github.com/shekhardesigner/InvertImage" class="btn btn-primary btn-lg">Fork/Download in Github</a>
<button class="btn btn-primary btn-lg toggleInvert">Destroy SVG Filter</button>
<hr /><br /><br />
</div>
<div id="fb-root"></div>
<script>(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=125381117600543";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<nav class="navbar navbar-default navbar-fixed-bottom fork-toolbar" role="navigation">
<div class="container">
<a class="btn btn-sm btn-primary" href="https://github.com/shekhardesigner/InvertImages">Fork in Github</a>
<a class="btn btn-sm btn-success" href="https://github.com/shekhardesigner/InvertImages/archive/gh-pages.zip">Download Source</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="shekhardesigner">Tweet</a>
<script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }(document, 'script', 'twitter-wjs');</script>
<div class="fb-like" data-href="http://shekhardesigner.github.io/InvertImages/" data-layout="button" data-action="like" data-show-faces="false" data-share="false"></div>
</div>
</nav>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="jquery.invertImages.js"></script>
<script>
$(function () {
//initialize
$(".invert-it").invertImages();
//Script below is just for "destroy" method demonstration
$(".toggleInvert").on("click", function () {
if ($("html").is(".inverted")) {
$(".invert-it").invertImages({ destroy: true });
$(this).html("Apply SVG Filter");
} else {
$(".invert-it").invertImages();
$(this).html("Destroy SVG Filter");
}
});
});
</script>
</body>
</html>