-
Notifications
You must be signed in to change notification settings - Fork 0
/
print.html
52 lines (47 loc) · 1.39 KB
/
print.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="print.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body onload="load()">
<div class="top">
<img src="https://octa.net/Images/global/OCTA15_logo.png" class="logo" />
<h1 id="title">Print page under construction</h1>
<span class="logo"></span>
</div>
<table class="info">
<tr><td><b>Position Title:</b></td><td><span id="position"></span></td></tr>
<tr><td><b>Hiring Manager:</b></td><td><span id="manager"></span></td></tr>
<tr><td><b>Requisition #:</b></td><td><span id="number"></span></td></tr>
</table>
<div class="container">
<ol id="results">
<li>Result 1</li>
<li>Result 2</li>
<li>Result 3</li>
</ol>
</div>
<script>
function getParam(name) {
var regex = new RegExp("[?&]"+name+"=([^&]*)");
var results = regex.exec(document.location.search);
if (!results) return null;
return decodeURIComponent(results[1].replace(/\+/g, " "));
}
function load() {
$("#title").text("Competency Importance Results");
$("#position").text(getParam("position"));
$("#manager").text(getParam("manager"));
$("#number").text(getParam("number"));
var leadHTML = "";
var lead_count = getParam("count");
for (var i = 0; i < lead_count; i++) {
leadHTML += "<li>" + getParam("res" + i) + "</li>";
}
$("#results").html(leadHTML);
print();
}
</script>
</body>
</html>