diff --git a/MaterialIcons-Regular.eot b/MaterialIcons-Regular.eot new file mode 100644 index 0000000..70508eb Binary files /dev/null and b/MaterialIcons-Regular.eot differ diff --git a/MaterialIcons-Regular.ttf b/MaterialIcons-Regular.ttf new file mode 100644 index 0000000..7015564 Binary files /dev/null and b/MaterialIcons-Regular.ttf differ diff --git a/MaterialIcons-Regular.woff b/MaterialIcons-Regular.woff new file mode 100644 index 0000000..b648a3e Binary files /dev/null and b/MaterialIcons-Regular.woff differ diff --git a/MaterialIcons-Regular.woff2 b/MaterialIcons-Regular.woff2 new file mode 100644 index 0000000..9fa2112 Binary files /dev/null and b/MaterialIcons-Regular.woff2 differ diff --git a/background.js b/background.js new file mode 100644 index 0000000..7ccd051 --- /dev/null +++ b/background.js @@ -0,0 +1,46 @@ +(function(window, chrome) { + //Background Scope + var background = {}; + window.background = background; + + //Create window and add listeners + chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('index.html', { + 'state': 'fullscreen', + + 'bounds': { + 'width': 1366, + 'height': 768 + } + }, function(window) { + window.onClosed.addListener(function() { + background.setKeyboard(false); + chrome.power.releaseKeepAwake(); + }); + background.setKeyboard(true); + chrome.power.requestKeepAwake('display'); + }); + }); + + /** + * Enables or disables the on-screen keyboard. + *

+ * If enable is true, the virtual keyboard of the ChromeOS + * accessibility features will be enabled. If false, this function will + * return the setting to its original value. + * @param {boolean} enable true to enable, or false to reset + * @returns {undefined} + */ + background.setKeyboard = function(enable) { + if (chrome.accessibilityFeatures) { + if (enable) { + chrome.accessibilityFeatures.virtualKeyboard.set({ + value: enable + }); + } + else { + chrome.accessibilityFeatures.virtualKeyboard.clear({}); + } + } + }; +})(window, chrome); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..cca5f8b --- /dev/null +++ b/index.html @@ -0,0 +1,453 @@ + + + + fuchsia + + + + + + + + +

+ + + + + +
+ +
+
+ + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + +
+
+
+
+
Ask for anything
+
+ + + + + + + + + + + +
+
+ + + + 0x324578 + 0x324578 + 0x324578 + 0x324578 + + 0x324578 + 0x324578 + 0x324578 + 0x324578 + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + +
+ + +0x324578 +

Starbucks Coffee | Apple Valley, California - 9168 Rincon Avenue, 92308

+

Close to you

+
+ + + + + + + + + + + +
+ + +0x324578 +

25 Minutes to Work, Light Traffic

+

Reccomended by Google

+
+ + + + + + + +
+ +0x324578 +

+

Monday, February 5 -72 F

+ +

Weather

+
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..bcc5e51 --- /dev/null +++ b/main.js @@ -0,0 +1,4 @@ +window.onload = function() { + document.querySelector('#greeting').innerText = + 'Hello, World! It is ' + new Date(); +}; diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..1910638 --- /dev/null +++ b/manifest.json @@ -0,0 +1,41 @@ + + +{ + "app": { + "background": { + "scripts": ["background.js"] + } + }, + "manifest_version": 2, + "name": "Fuchsia OS", + "version": "1.5.1", + "permissions":[ + "https://fonts.googleapis.com/css?family=Roboto:300", + "https://code.getmdl.io/1.3.0/material.green-indigo.min.css", + "http://google.com/" + + + ], + + "description": "Google Fuchsia OS launcher for chromebooks", + "icons": { + "16": "assets/icon_16.png", + "128": "assets/icon_128.png" + }, + + "author": "Google inc.", + "kiosk_enabled": true, + "minimum_chrome_version": "38", + "offline_enabled": true, + "permissions": [ + "power", + "accessibilityFeatures.read", + "accessibilityFeatures.modify", + "" + ], + "sandbox": { + "pages": [ + "scripts/sandbox-scripts.html" + ] + } +} diff --git a/scan.css b/scan.css new file mode 100644 index 0000000..cce39ef --- /dev/null +++ b/scan.css @@ -0,0 +1,50 @@ +body { + margin: 0; +} + +#webviewdummy { + display: none; +} + +/*.webviewdummy, +#close { + position: absolute; + z-index: 1; +}*/ + +/*#webviewdummy { + -webkit-app-region: drag; + background-color: rgba(0,132,255,1); + top: 0; + left: 0; + right: 15px; + height: 10px; +}*/ + +/*#webviewdummy1 { + -webkit-app-region: drag; + background-color: rgba(0,132,255,1); + top: 0; + left: 0; + height: 50px; + width: 10px; +} + +#webviewdummy2 { + -webkit-app-region: drag; + background-color: rgba(0,132,255,1); + top: 0; + left: 0; + right: 15px; + height: 10px; +} + +#close { + top: 0; + right: 0; + width: 15px; + height: 15px; + cursor: pointer; + z-index: 2; +} +*/ \ No newline at end of file diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..e74fc45 --- /dev/null +++ b/styles.css @@ -0,0 +1,43 @@ +/* CSS file placeholder. */ + body , html , div , p{ + font-family: 'Roboto', sans-serif; + } +} +body,html{ + +} +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ + src: local('Material Icons'), + local('MaterialIcons-Regular'), + url(MaterialIcons-Regular.woff2) format('woff2'), + url(MaterialIcons-Regular.woff) format('woff'), + url(MaterialIcons-Regular.ttf) format('truetype'); +} +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + + /* Support for IE. */ + font-feature-settings: 'liga'; +} \ No newline at end of file