forked from Dyalog/ride
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
55 lines (55 loc) · 1.69 KB
/
about.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
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>About Dyalog</title>
<link rel=stylesheet href='style/ride-base.css'>
<link rel=stylesheet href='style/light-theme.css'>
</head>
<body>
<div id=abt class="dlg floating">
<div id=abt_logo class=dlg_title>
<div id=abt_contact class=dlg_no_drag>
<span title="Dyalog's UK phone number">+44 1256 830030</span><br>
<a id=abt_email href="mailto:[email protected]">[email protected]</a><br>
<a href='http://www.dyalog.com/' target=_blank>www.dyalog.com</a>
</div>
</div>
<div id=abt_ta_wr><textarea id=abt_ta readonly wrap=off></textarea></div>
<div class=dlg_btns>
<button id=abt_copy accesskey=c><u>C</u>opy</button>
<button id=abt_close accesskey=l>C<u>l</u>ose</button>
</div>
</div>
<script>
if (typeof require !== 'undefined') {
document.getElementById('abt_contact').onclick = (x) => {
if (x.target.nodeName === 'A' && /^http/.test(x.target.href)) {
require('electron').shell.openExternal(x.target.href);
return !1;
}
return !0;
};
}
document.getElementById('abt_close').onclick = () => { window.close() };;
let cpy = document.getElementById('abt_copy');
cpy.onclick = () => {
let ta = document.getElementById('abt_ta');
ta.select();
document.execCommand('copy');
ta.selectionEnd = 0;
};
cpy.focus();
const abt = document.getElementById('abt');
abt.tabIndex = 0;
abt.onkeydown = (x) => {
if (x.key === 'Escape') {
window.close();
return !1;
} else if (x.key === 'Enter') {
cpy.click();
}
};
</script>
</body>
</html>