Files
electron/spec/fixtures/pages/draggable-page.html
2025-12-25 16:16:55 -07:00

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>