-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from RichVillage/master
데스크탑 우클릭 이벤트 추가, 앱 리스트 및 데스크탑 설정 창 추가 Added Desktop Right Click Event…
- Loading branch information
Showing
6 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"> | ||
<title>App Drawer</title> | ||
</head> | ||
<body> | ||
<b>Installed Apps</b> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#context-menu { | ||
list-style: none; | ||
margin: 0px; | ||
margin-top: 4px; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
padding-bottom: 3px; | ||
font-size: 15px; | ||
color: #ffffff; | ||
} | ||
|
||
#rc-menu { | ||
display: none; | ||
position: fixed; | ||
border: 1px solid green; | ||
width: 200px; | ||
background: #616161; | ||
box-shadow: 3px 3px 2px #E9E9E9; | ||
border-radius: 4px; | ||
} | ||
|
||
li { | ||
padding; 3px; | ||
padding-left: 10px; | ||
} | ||
|
||
#context-menu :hover { | ||
color: white; | ||
background: #9E9E9E; | ||
border-radius: 2px; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"> | ||
<title>Desktop Settings</title> | ||
</head> | ||
<body> | ||
<b>Desktop Settings</b> | ||
</body> | ||
</html> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Right Click context menu, requires jQuery | ||
$(document).bind("contextmenu", function(e) { | ||
e.preventDefault(); | ||
$("#rc-menu").css("left", e.pageX); | ||
$("#rc-menu").css("top", e.pageY); | ||
$("#rc-menu").fadeIn(100, startFocusOut()); | ||
}); | ||
|
||
function startFocusOut() { | ||
$(document).on("click", function() { | ||
$("#rc-menu").hide(); | ||
$(document).off("click"); | ||
}); | ||
} | ||
|
||
$("#context-menu > li").click(function() { | ||
if ($(this).text() == "Open App Drawer") { | ||
window.open("./app-drawer.html", "App List", "width=1280,height=720"); | ||
} | ||
if ($(this).text() == "Open Desktop Settings") { | ||
window.open("./desktop-settings.html", "Desktop Settings", "width=1280,height=720"); | ||
} | ||
}); |