-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (56 loc) · 2.36 KB
/
index.html
File metadata and controls
57 lines (56 loc) · 2.36 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
<html>
<head>
<title>Jirence</title>
<style>
#jiraFrame, #confluenceFrame {
width: 50%;
border: 0;
height: 92%;
position: relative;
float: left;
}
#inputRow {
padding-bottom: 10px;
}
input {
width: 300px;
height: 20px;
padding: 20px;
font-size: 20px;
}
#jiraLink, #confluenceLink {
background-color: rgb(7, 71, 166);
border: none;
color: white;
padding: 10px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
font-family: Arial;
}
</style>
<script>
function load(){
var input = document.getElementById("searchInput");
input.addEventListener("keyup", function(event) {
// Number 13 is the "Enter" key on the keyboard
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("jiraFrame").src = 'https://scribdjira.atlassian.net/secure/QuickSearch.jspa?searchString=' + input.value;
document.getElementById("confluenceFrame").src = 'https://scribdjira.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+"' + input.value + '"';
document.getElementById("jiraLink").href = 'https://scribdjira.atlassian.net/secure/QuickSearch.jspa?searchString=' + input.value;
document.getElementById("confluenceLink").href = 'https://scribdjira.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+"' + input.value + '"';
}
});
}
</script>
</head>
<body onload="load()">
<div id='inputRow'>
<input id='searchInput' placeholder="Search"> <a id='jiraLink' href=''>Jira</a> <a id='confluenceLink' href=''>Confluence</a>
</div>
<iframe id="jiraFrame" src='https://scribdjira.atlassian.net/secure/QuickSearch.jspa'></iframe>
<iframe id="confluenceFrame" src='https://scribdjira.atlassian.net/wiki/dosearchsite.action"'></iframe>
</body>
</html>