This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
59 lines (57 loc) · 3.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>instastory.js - The simple instagram feed</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Poppins|Titillium+Web:700" rel="stylesheet">
<link rel="stylesheet" href="demo/demo-style.min.css">
</head>
<body>
<header class="container">
<h1>instastory.js</h1>
<div class="sub">The simple instagram feed</div>
<div class="buttons">
<a href="https://github.com/kasperlegarth/instastory.js"><i class="fab fa-github"></i> View on Github</a>
<a href="https://github.com/kasperlegarth/instastory.js/archive/master.zip"><i class="fas fa-cloud-download-alt"></i> Download zip</a>
</div>
</header>
<main class="container">
<section class="introduction">
<div class="text">
<h2>Introdoctuon</h2>
<p>instastory.js is a jQuery plugin to make it easy for you to make an instagram feed from a hashtag or a user (that is not private). It uses a standard Ajax call to a standard instagram url witch provide the data in JSON format. That means no need for app token client ids.</p>
<p>The only dependency to make it work is jQuery.</p>
<p>
<strong>Getting startet</strong><br />
It is really simple to use the plugin all you need to to is include jQuery and the hashtaghistory.js file where you include your other scrips in the project.
</p>
<code class="highlight-me multiline"><script src="jquery.min.js"></script>
<script src="path/to/script/instastory.js"></script>
</code>
<p>Then you just need to call the plugin on a DOM element that you want to be a container for the images. <code class="highlight-me">$("#demo1").instastory("coding");</code> There are only one required parmeter, and that is the hashtag you want to show the feed from.</p>
<p>This will give you the following output:</p>
<div id="demo1"></div>
<small class="note"><strong>Note!</strong> The styling is made for this demo only, it is not included in the plugin.</small>
</div>
</section>
</main>
<div class="playground container">
<div class="controls text">
<h2>Try it yourself</h2>
<p>See the plugin in action</p>
<hr>
<h5>What do you want to generate a feed from? - Use # or @ like you would on instagram.</h5>
<input type="text" id="hashtag-input" placeholder="E.g: @instagram or #summer">
<h5>How many items do you want?</h5>
<input type="text" id="limit-input" placeholder="E.g: 9">
<button id="new-feed">Generate feed</button>
</div>
<div id="playground-result" class="result"></div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="instastory.js" crossorigin></script>
<script src="demo/demo.js"></script>
</body>
</html>