-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.php
More file actions
executable file
·136 lines (114 loc) · 3.7 KB
/
app.php
File metadata and controls
executable file
·136 lines (114 loc) · 3.7 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<title>OurApp</title>
<link rel = "stylesheet" href = "style.css">
<?php include ('Users/russelldaly/Downloads/tweet-2-json-master/tweet2json.php');?>
<script src="things.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!--
<script type="text/javascript">
function init() {
$.getJSON("http://api.openweathermap.org/data/2.5/weather?q=London,uk&APPID=c2c7a3843669f5958de03a4cc553111d", function() {
console.log('yo');
});
}-->
</script>
</head>
<body onload="storage()">
<div>
<div id="title"><h1>App</h1></div>
<div id="history">
<div id="topTen">
<h4 class="headings">Top Ten Searches</h4>
<ol id="topTenList">
</ol>
</div>
<div id="lastThree">
<h4 class="headings">Your Last Searches</h4>
<ol id="lastThreeList">
</ol>
</div>
</div>
<div class="form">
<form>
<!--
<div>
<label for="oldest">Oldest:</label>
<input type="date" name="oldest" id="oldest" required/>
</div>
<div>
<label for="latest">Latest:</label>
<input type="date" name="latest" id="latest" required/>
</div>
-->
<!--
<div>
<label for="distance">Distance(miles):</label>
<input type="number" name="distance" id="distance" placeholder="50" min="1" max="3000" required/>
</div>
-->
<div>
<label for="name">Hash Tag 1:</label>
<input type="text" name="Hash" id="Hash" placeholder="#doge" size="14" maxlength="140"/>
</div>
<div>
<label for="name">Hash Tag 2:</label>
<input type="text" name="Hash2" id="Hash2" placeholder="#KillaSwag" size="14" maxlength="140"/>
</div>
<!--<div>
<label for="sentiment">Sentiment:</label>
<select name="order" id="sentiment">
<option value="1">Highest</option>
<option value="2">Lowest</option>
</select>
</div>-->
<input type="hidden" id="latitude" name="latitude" value=0>
<input type="hidden" id="longitude" name="longitude" value=0>
<div class="submit"><input type="button" onclick="run(Hash.value, Hash2.value)" id="submit" value="Go"></div>
</form>
</div>
<div id="history">
<?php echo search_tweets('#obama', 1, FALSE, FALSE); ?>
</div>
</div>
<!--
<script>
//var temp = search_tweets('#obama', 1, FALSE, FALSE);
var history = document.getElementById("hashtag")
localStorage.setItem("hashtag", '<?php echo search_tweets('#obama', 1, FALSE, FALSE); ?>');
</script>
-->
<!--
<script>
dataType: "text",
var json = $.parseJSON(tweet2json);
$('#history').html('Text: ' + json.text);
</script>
-->
<!--
<script>
//When DOM loaded we attach click event to button
$(document).ready(function() {
//after button is clicked we download the data
$('.button').click(function(){
//start ajax request
$.ajax({
url: "tweet2json.json",
//force to handle it as text
dataType: "text",
success: function(data) {
//data downloaded so we call parseJSON function
//and pass downloaded data
var json = $.parseJSON(data);
//now json variable contains data in json format
//let's display a few items
$('#results').html('Plugin name: ' + json.name + '<br />Author: ' + json.author.name);
}
});
});
});
</script>
-->
</body>
</html>