File size: 2,528 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html class="desktop-preferences">
<head>
	<title>About WordPress.com</title>
	<style type="text/css">
	/* Try to mimic native window styling */
	@font-face {
		font-family: system;
		font-style: normal;
		font-weight: 400;
		src: local("SFNSText-Regular"), local("HelveticaNeueDeskInterface-Regular"), local("LucidaGrandeUI");
	}

	@font-face {
		font-family: system;
		font-style: normal;
		font-weight: 700;
		src: local("SFNSText-Bold"), local("HelveticaNeueDeskInterface-Bold"), local("LucidaGrandeUI");
	}

	html, body {
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
    	background: #ebebeb;
    	cursor: default;
	}

	body {
		padding: 10px 20px;
		font-family: "Segoe UI", Segoe, Ubuntu, system, sans-serif;
		font-size: 13px;
		text-align: center;
	}

	.options {
		max-width: 600px;
		width: 100%;
		margin: 0 auto;
		border-collapse: collapse;
	}

	.options td {
		vertical-align: top;
	}

	.option-group span {
		margin-right: 5px;
	}

	strong {
		font-weight: bold;
	}

	p a {
		text-decoration: none;
		color: #000;
	}
	</style>
</head>
<body>

<script type="text/javascript">
	const config = window.electron.config;

	const version = config.version;
	const build = config.build;

	let versionType = '';
	if ( build === 'development' )
		versionType = 'dev';
	else if ( build === 'updater' )
		versionType = 'updater';
	else if ( build === 'release' )
		versionType = 'release';
</script>

<p><img src="app-logo.png" alt="WordPress.com" width="64" height="64" /></p>

<p><strong>WordPress.com</strong></p>

<p>Version <script type="text/javascript">document.write( version + ' ' + versionType )</script></p>

<p>Copyright <a href="#">&copy;</a> Automattic, Inc. <br/>
Proudly released under the GPL</p>

<script>
	var KEY_RIGHT = 39;
	var KEY_LEFT = 37;
	var KEY_SPACE = 32;
	var KEY_UP = 38;
	var KEY_DOWN = 40;
	var KEY_A = 65;
	var KEY_B = 66;

	var KONAMI = [ KEY_UP, KEY_UP, KEY_DOWN, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_LEFT, KEY_RIGHT, KEY_B, KEY_A ];
	var keyPos = 0;

	document.querySelector( 'a' ).addEventListener( 'click', function() {
		window.electron.send( 'secrets', 0 );
		return false;
	} );

	document.addEventListener( 'keyup', function( ev ) {
		if ( KONAMI[keyPos] === ev.keyCode ) {
			keyPos++;

			if ( keyPos === KONAMI.length ) {
				keyPos = 0;
				window.electron.send( 'secrets', 1 );
			}
		}
		else {
			keyPos = 0;
		}
	} );
</script>
</body>
</html>