diff --git a/res/ui_front/app-drawer.html b/res/ui_front/app-drawer.html new file mode 100644 index 0000000..cd20a02 --- /dev/null +++ b/res/ui_front/app-drawer.html @@ -0,0 +1,11 @@ + + + + + + App Drawer + + + Installed Apps + + diff --git a/res/ui_front/css/context_menu.css b/res/ui_front/css/context_menu.css new file mode 100644 index 0000000..d2de339 --- /dev/null +++ b/res/ui_front/css/context_menu.css @@ -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; +} diff --git a/res/ui_front/desktop-settings.html b/res/ui_front/desktop-settings.html new file mode 100644 index 0000000..32b2543 --- /dev/null +++ b/res/ui_front/desktop-settings.html @@ -0,0 +1,11 @@ + + + + + + Desktop Settings + + + Desktop Settings + + diff --git a/res/ui_front/desktop.html b/res/ui_front/desktop.html index 0e1c904..d9f4c8f 100644 --- a/res/ui_front/desktop.html +++ b/res/ui_front/desktop.html @@ -3,8 +3,10 @@ + +
@@ -16,7 +18,19 @@

- + + +
+ +
+ + + - \ No newline at end of file + diff --git a/res/ui_front/js/clock.js b/res/ui_front/js/clock.js index 10fc37d..a29e655 100644 --- a/res/ui_front/js/clock.js +++ b/res/ui_front/js/clock.js @@ -13,6 +13,11 @@ hour = hour - 12; } + else if (hour == 0) { + AMPM = "오전"; + hour = hour + 12; + } + else if (hour == 12) { AMPM = "오후"; } @@ -23,7 +28,8 @@ minute = checkTime(minute); second = checkTime(second); - + month = checkTime(month); + document.getElementById('clock').innerHTML = AMPM + " " + hour + ":" + minute; document.getElementById('date').innerHTML = year + "-" + month + "-" + date; var t = setTimeout(startTime, 500); @@ -35,4 +41,4 @@ function checkTime (i) { i = "0" + i; } return i; -} \ No newline at end of file +} diff --git a/res/ui_front/js/context_menu.js b/res/ui_front/js/context_menu.js new file mode 100644 index 0000000..1590cd1 --- /dev/null +++ b/res/ui_front/js/context_menu.js @@ -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"); + } +});