Skip to content

Commit

Permalink
Electron: Add a folder for electron subpage
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMo1 committed Aug 16, 2023
1 parent 16f9b67 commit 6e299ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
19 changes: 18 additions & 1 deletion .hintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,22 @@
"not ie 11",
"not ios_saf <= 16.5",
"not safari <= 16.5"
]
],
"hints": {
"axe/forms": "off",
"meta-viewport": "off",
"axe/language": [
"default",
{
"html-has-lang": "off"
}
],
"axe/text-alternatives": [
"default",
{
"image-alt": "off"
}
],
"no-inline-styles": "off"
}
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ function create_versionWindow() {
show: false, // hide the window initially
webPreferences: {
nodeIntegration: true, // enable node modules in renderer
preload: path.join(__dirname, 'verpreload.js'),
preload: path.join(__dirname, 'subpage/version/verpreload.js'),
}
});

// load the html file for the window
versionWindow.loadFile('version.html');
versionWindow.loadFile('subpage/version/version.html');
versionWindow.setMenuBarVisibility(false);
return versionWindow;
}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions version.html → subpage/version/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<title>Zeal 8-bit Computer Emulator</title>
<link rel="icon" href="imgs/zeal.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="frontend/css/emulator.css" media="screen" />
<link rel="icon" href="../../imgs/zeal.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="../../frontend/css/emulator.css" media="screen" />
</head>
<body>
<style>
Expand All @@ -17,7 +17,7 @@
align-self: flex-start;
}
</style>
<img id="zealpng" src="imgs/zeal-version.png">
<img id="zealpng" src="../../imgs/zeal-version.png">
<!-- create a div element to display the version -->
<div id="version"></div>
</body>
Expand Down

0 comments on commit 6e299ca

Please sign in to comment.