-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
61 lines (44 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Instagram Connector</title>
<meta http-equiv="Cache-Control" content="no-store" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<!-- Latest WDC Library -->
<script src="https://connectors.tableau.com/libs/tableauwdc-2.0.latest.js" type="text/javascript"></script>
<!-- Use to access cookie storage to grab access token -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.0.2/js.cookie.min.js" type="text/javascript"></script>
<!-- This will contain all of your OAuth code -->
<script src="./instagram.js" type="text/javascript"></script>
<script type="text/javascript">
function showText(name){
if(name=='hashtag')document.getElementById('div1').innerHTML='<div id="gg">Hashtag</div><input type="text" id="ticker" /></br><p>No need to add a #</p>'
else document.getElementById('div1').innerHTML='<p> </p>';
}
</script>
</head>
<body background="background.jpg">
<div style="margin: auto; text-align: center; margin-top: 50px; max-width: 300px">
<!-- These labels will toggle depending on whether the user is authenticated or not -->
<p class="signedin">You are signed in! </br></br>
<select name "option" id="option" onchange="showText(this.value)">
<option selected="selected">Please select one option ...</option>
<option value="user">Get the data from your account</option>
</select>
<div id="div1"></div></br><p class="signedin"><a href="#" class="btn btn-primary btn-block" id="submitButton"><span class="glyphicon glyphicon-arrow-down"></span> Get Data</a>
</p>
</p>
<p class="lead"><p class="notsignedin">You are not signed in, please click below to sign in to your Instagram account. </p></p></br></br>
<p class="notsignedin"> <a href="#" id="connectbutton"><img src="./logo.png" alt="Login with Instagram"/></a></p>
<br /><br /></p>
<!-- The connect to foursquare button will have a link added to it in the js-->
<!-- This button will pull the user's liked venues once the user is authenticated -->
</div>
</body>
</html>