Last active
December 29, 2020 18:15
-
-
Save josephernest/f3db7d319af407b2dcef04c7c1c514ee to your computer and use it in GitHub Desktop.
Electron Fiddle Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
* { margin: 0; } | |
#topright { float: right; width: 100px; background-color: blue; -webkit-app-region: no-drag; } | |
#topright:hover { background-color: black; } | |
#topleft { background-color: red; -webkit-app-region: drag; padding: 10px; } | |
</style> | |
</head> | |
<body> | |
<div id="topright" onclick="alert();">Click here!</div> | |
<div id="topleft"></div> | |
<script> | |
for (var i = 0; i < 50; i++) | |
document.getElementById("topleft").innerHTML += "<button>xyz" + i + "</button>"; | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {app, BrowserWindow} = require('electron') | |
app.on('ready', function () { | |
mainWindow = new BrowserWindow({width: 800, height: 600, frame: false}) | |
mainWindow.loadFile('index.html'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment