mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
37 lines
748 B
HTML
37 lines
748 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Draggable Page</title>
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
app-region: drag;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
#no-drag {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: orangered;
|
|
app-region: no-drag;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
if (window.location.search.includes('no-drag')) {
|
|
const noDragDiv = document.createElement('div');
|
|
noDragDiv.id = 'no-drag';
|
|
document.body.appendChild(noDragDiv);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|