-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (81 loc) · 2.39 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
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Unified search</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:100' rel='stylesheet' type='text/css'>
<style>
html, body {
width: 100%;
height: 100%;
}
body {
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
overflow: hidden;
font-family: 'Roboto', sans-serif;
text-align: center;
color: #555;
}
body > * {
transition: all ease 0.5s;
}
input {
font-size: 18px;
padding: 8px;
width: 320px;
font-family: 'Roboto', sans-serif;
font-weight: bolder;
color: black;
margin: 10px;
}
#tip {
overflow: hidden;
height: 60px;
}
#tip.full {
height: 320px;
}
</style>
</head>
<body>
<div>
<h1>Unified Search</h1>
<h2>Search all your conversations from one same place</h2>
</div>
<form>
🔍
<input autofocus placeholder="Type a keyword here then press enter" type="text" id="query"/>
<p>This will open tabs for: Facebook Messenger, Twitter, and Gmail.</p>
<p>No authentication needed! :-)</p>
</form>
<div id="tip">
<h3>Tip: don't forget to allow popups from this page!<h2>
<img width="339px" src="instructions.png">
</div>
<script>
var TWITTER_USERNAME = 'adrienjoly';
document.getElementsByTagName('form')[0].onsubmit = function(evt) {
evt.preventDefault();
document.getElementById('tip').classList.add('full');
var query = document.getElementById('query').value;
var q = encodeURIComponent(query);
var i = 0;
setTimeout(function(){
[
//'https://facebook.com/messages/search?action=search-snippet&query=blockchain&mquery=',
'https://m.facebook.com/messages/?pagination_direction=1&sbt=1&q=',
'https://twitter.com/search?f=tweets&src=typd&q=%40' + TWITTER_USERNAME + '%20',
'https://mail.google.com/mail/#search/',
//'https://drive.google.com/drive/search?q=',
//'https://keep.google.com/#search/text%3D',
//'https://www.diigo.com/search?what=',
].map(function(url){
window.open(url + q, '_blank');
});
}, 200);
};
</script>
</body>
</html>