forked from kennethcachia/background-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcross-origin.html
74 lines (60 loc) · 3.64 KB
/
cross-origin.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=1000">
<title>BackgroundCheck</title>
<meta name="description" content="Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="examples.css" >
<script src="background-check.min.js"></script>
<script src="cross-origin.js"></script>
</head>
<body>
<div class="header">
<h1>BackgroundCheck</h1>
<p class="header-subtitle">Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.</p>
<div class="header-drag">Drag and Release elements over image</div>
<div class="demo demo--single">
<img crossorigin data-src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Centralpark.png/800px-Centralpark.png" draggable="false" />
<noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Centralpark.png/800px-Centralpark.png" /></noscript>
<p class="demo-credits">
The image is served with <a href="http://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS" target="_blank"><strong>access-control-allow-origin: *</strong></a> from <a href="http://en.wikipedia.org/wiki/File:Centralpark.png" target="_blank">Wikipedia</a>.
</p>
<div class="border border--one"><div class="icon target"></div></div>
<div class="border border--two"><div class="icon target"></div></div>
<div class="border border--three"><div class="icon target"></div></div>
<div class="border border--four"><div class="icon icon--simple target"></div></div>
</div>
<div class="download">
<a class="button" href="http://github.com/kennethcachia/Background-Check">Github Project</a>
<a class="button button--secondary" href="http://raw.github.com/kennethcachia/Background-Check/master/background-check.min.js">Download</a>
</div>
<h2>Demos</h2>
<ul class="examples">
<li><a href="index.html">Project Page</a></li>
<li><a href="slider.html">Slider</a></li>
<li><a href="fixed-nav.html">Fixed Nav</a></li>
</ul>
</div>
<div class="footer container">
<span class="twitter-share">
<a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true" data-count="none" data-text="BackgroundCheck — Automatically switch to a darker or a lighter version of an element.">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</span>
<span class="footer-credits"><a href="http://twitter.com/kennethcachia/" target="_blank">@kennethcachia</a></span>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18542897-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>
</body>
</html>