This repository was archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 2.89 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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Lobster" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>::-webkit-input-placeholder{text-align:center}:-moz-placeholder{text-align:center}::-moz-placeholder{text-align:center}:-ms-input-placeholder{text-align:center}body{font-size:16px}#hashtag{width:100%;height:40px}.header{text-align:center;font-family:Lobster;font-size:50px;color:#d9534f}#searchInstagram{font-size:24px;margin-top:2%;cursor:pointer}.content{padding-top:5%}.footer{background-color:#000;padding:1.5rem 0;word-spacing:10px;color:#d9534f;left:0;right:0;bottom:0;position:fixed}.fa{color:#d9534f}input{text-align:center}#loader{display:none;margin:10% auto;overflow:hidden}.footer{background-color:#000;padding:1.5rem 0;word-spacing:10px;color:#d9534f;left:0;right:0;bottom:0;position:fixed}</style>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="src/hashtaginstafeed.min.js"></script>
<title>#InstaFeed</title>
</head>
<body>
<div class="container">
<div class="header">
#InstaFeed
</div>
<div class="row content">
<div class="col-sm-12">
<p class="text-center">Enter Hashtag & click on 'Search in Instagram' button</p>
<form id="searchForm">
<input type="text" id="hashtag" placeholder="ShanviSri / #ShanviSri" autocomplete="off"/>
<input type="submit" class="btn btn-danger center-block" id="searchInstagram" value="Seach in Instagram">
</form>
</div>
<div class="col-sm-12">
<div id="message" class="text-center"></div>
<img id="loader" class="align-center" src="images/loader.gif" alt="loading...">
</div>
<div id="posts">
</div>
</div>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-xs-7 text-right">
© 2020
</div>
<div class="col-xs-5 text-right">
<a href="https://github.com/vishwas-r/HashtagInstaFeed" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://facebook.com/csultimates/" target="_blank"><i class="fa fa-facebook"></i></a>
<a href="https://csultimates.com/blog/" target="_blank"><i class="fa fa-external-link"></i></a>
</div>
</div>
</div>
</footer>
<script>
$(function() {
$("#searchForm").submit(function(e) {
$("#message").html("");
$("#posts").html("");
var hashtag = $("#hashtag").val();
if(hashtag != "") {
$("#loader").css("display", "block");
$("#posts").hashtaginstafeed({
get: hashtag
});
}
else {
$("#message").html("<h3>Invalid Hashtag! Please Enter Valid Hashtag</h3>");
}
e.preventDefault();
});
});
</script>
</body>
</html>