/
respondr-examples.html
59 lines (52 loc) · 1.71 KB
/
respondr-examples.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Respondr Examples</title>
<style>
img{
max-width: 100%;
}
</style>
</head>
<body>
<div class="notice">
<h1>Notice:</h1>
<p>This file will not work without a valid API key from Flickr. Create a file inside this folder called my-api-key.js and copy the following into it:</p>
<p><code>$.respondr({ apiKey: 'YOUR API KEY HERE' });</code></p>
<p>Plug in your API key and this page will work. The file you created will not be tracked by version control because it is called out in the <code>.gitignore</code> file.</p>
</div>
<h1>Respondr Examples</h1>
A gallery...
<div class="gallery">
<p>[respondr gallery 72157650653171405]</p>
</div>
<div class="no-arguments">
<p>Look, a picture that's never square.</p>
<p>[respondr 2423496036]</p>
</div>
<div class="include-squares">
<p>Look, a picture that can be square at small sizes.</p>
<p>[respondr 14471103384]</p>
</div>
<div class="squares-only">
<p>Look, a picture that's always square.</p>
<p>[respondr 14471103384]</p>
</div>
</body>
<!-- Load local jQuery. Fall back to Google CDN if not installed with Bower. -->
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script>
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"><\/script>')
</script>
<!-- Load local lib and tests. -->
<script src="../dist/jquery.respondr.js"></script>
<script>
$.getScript('my-api-key.js', function(){
$('.gallery').respondr();
$('.no-arguments').respondr();
$('.include-squares').respondr('', true);
$('.squares-only').respondr('', 'only');
});
</script>
</html>