This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
/
dialogAlert.html
44 lines (39 loc) · 1.67 KB
/
dialogAlert.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
<!DOCTYPE html>
<html>
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
See LICENSE in the project root for license information -->
<!-- dialog.html is the html file that is used for our dialog window. The dialog
window shows the count results of matching text found via search. -->
<head>
<!--During development turn off caching-->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.1.min.js"></script>
<!--<script src="https://appsforoffice.microsoft.com/lib/beta/hosted/office.js" type="text/javascript"></script>-->
<script>
// Office.initialize = function () {
$(document).ready(function() {
$('#dialog-title').text(getParameterByName("message"));
$('#dialog-message').text(getParameterByName("description"));
})
// };
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if (results == null)
return "";
else
return decodeURIComponent(results[1]);
}
</script>
</head>
<body bgcolor="#E6E6E6">
<h1 id="dialog-title"></h1>
<p id="dialog-message"> </p>
</body>
</html>