Save after transparent layer added
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
</head>
|
||||
<body class="antialiased">
|
||||
|
||||
<!-- RIGHT-CLICK PROTECTION OVERLAY -->
|
||||
<div id="no-rightclick-overlay" style="
|
||||
position: fixed;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
z-index: 9999;
|
||||
background: transparent;
|
||||
pointer-events: none;
|
||||
"></div>
|
||||
|
||||
<!-- HEADER -->
|
||||
<header id="main-header" class="fixed top-0 left-0 right-0 z-50 transition-all duration-500 py-6">
|
||||
<div class="container mx-auto px-6 flex justify-between items-center">
|
||||
@@ -420,5 +430,50 @@
|
||||
<!-- i18n 먼저 로드 후 script.js -->
|
||||
<script src="assets/js/i18n.js"></script>
|
||||
<script src="assets/js/script.js"></script>
|
||||
|
||||
<!-- RIGHT-CLICK & COPY PROTECTION -->
|
||||
<script>
|
||||
// 우클릭 방지
|
||||
document.addEventListener('contextmenu', function(e) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
// 드래그 선택 방지
|
||||
document.addEventListener('selectstart', function(e) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
});
|
||||
|
||||
// 키보드 단축키 방지 (F12, Ctrl+U, Ctrl+S, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+Shift+C)
|
||||
document.addEventListener('keydown', function(e) {
|
||||
// F12
|
||||
if (e.key === 'F12') {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
// Ctrl 조합 단축키
|
||||
if (e.ctrlKey) {
|
||||
const blocked = ['u', 's', 'p'];
|
||||
if (blocked.includes(e.key.toLowerCase())) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
// Ctrl+Shift 조합
|
||||
if (e.shiftKey && ['i', 'j', 'c'].includes(e.key.toLowerCase())) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 이미지 드래그 방지
|
||||
document.addEventListener('dragstart', function(e) {
|
||||
if (e.target.tagName === 'IMG') {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"cpu_temp": "40", "nvme_temp": "33", "uptime_days": 3, "last_update": "19:11:01"}
|
||||
{"cpu_temp": "39", "nvme_temp": "33", "uptime_days": 3, "last_update": "19:29:01"}
|
||||
Reference in New Issue
Block a user