Files
Electron.NET/ElectronNET.Host/splashscreen/index.html
Brendan 4596492cd9 Fix splash screen interaction causing crashes, fix splash screen content ghost drag, fix resizable splash screen. Resolves #539, #357
Using the browser-window-focus event would cause the splashScreen to be destroyed early (since regular mouse-focus events would cause the event to be fired).

Using the browser-window-created event produces the correct behavior.
2021-02-17 02:07:42 -05:00

29 lines
675 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Splashscreen</title>
</head>
<body>
<style>
body {
overflow: hidden;
}
</style>
<img draggable="false" alt="splashscreen" style="width: 100%; height: 100%;">
<script>
(() => {
const imgSrcPath = window.location.search.substr(1).split('=').pop();
const imageElement = document.getElementsByTagName('img')[0];
imageElement.setAttribute('src', imgSrcPath);
})();
</script>
</body>
</html>