Permalink
Browse files

change file structure

  • Loading branch information...
linjunpop committed Jan 4, 2012
1 parent 13bdcca commit 42c9a584d9f1e5aa0a52d19afee241fdf0cc8318
View
@@ -3,7 +3,7 @@ G New Doc
Description
---
-This is a google chrome extension, let you to create new Google Doc with only two clicks.
+A google chrome extension to create new Google Doc with only two clicks.
Avaliable types:
@@ -16,9 +16,3 @@ Install
---
Install from [Chrome Web Store](https://chrome.google.com/extensions/detail/ebmobgdemdgppppmboipgkdfagfnleaj)
-
-Changlog
----
-v1.0.4
-
- * Code cleanup, migrate from google code to github
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
View
@@ -3,13 +3,13 @@
"version": "1.0.4",
"description": "Create new Google Doc with ONLY TWO CLICKS",
"icons": {
- "16": "icon16.png",
- "48": "icon48.png",
- "128": "icon128.png"
+ "16": "images/icon16.png",
+ "48": "images/icon48.png",
+ "128": "images/icon128.png"
},
"browser_action": {
- "default_icon": "icon.png",
+ "default_icon": "images/icon.png",
"default_title": "Create new Google Docs",
- "default_popup": "popup.html"
+ "default_popup": "pages/popup.html"
}
}
View
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <link rel="stylesheet" href="/stylesheets/application.css" >
+ <script type="text/javascript" src="/scripts/application.js"></script>
+ </head>
+ <body>
+ <ul id="links">
+ <li id="document" class="link" onClick="newDoc('document')">Document</li>
+ <li id="spreadsheet" class="link" onClick="newDoc('spreadsheet')">Spreadsheet</li>
+ <li id="presentation" class="link" onClick="newDoc('presentation')">Presentation</li>
+ <li id="drawing" class="link" onClick="newDoc('drawing')">Drawing</li>
+ </ul>
+ <span id="all_item" onClick="loadURL('https://docs.google.com/#all')">All items</span>
+ </body>
+</html>
View
@@ -1,84 +0,0 @@
-<html>
- <head>
- <script>
- function newDoc(type) {
- if (type == 'document') {
- url = 'http://docs.google.com/?action=newdoc';
- }
- else if (type == 'spreadsheet') {
- url = 'http://spreadsheets.google.com/ccc?new';
- }
- else if (type == 'presentation') {
- url = 'http://docs.google.com/?action=new_presentation';
- }
- else if (type == 'drawing') {
- url = 'https://docs.google.com/drawings/create';
- }
-
- chrome.tabs.create(
- {'url': url},
- function(tab) {
- // Tab opened.
- });
- }
-
- function loadURL(url) {
- chrome.tabs.create(
- {'url': url},
- function(tab) {
- // Tab opened.
- });
- }
- </script>
-
- <style type="text/css" media="all">
- #links {
- list-style:none;
- padding: 0px;
- margin: 0px;
- }
- li.link {
- color: #fff;
- border: 1px solid black;
- margin-top: 2px;
- padding: 2px;
- border-radius: 3px;
- }
- li.link:hover {
- cursor: hand;
- color: black;
- }
- #document {
- background-color: #214471;
- }
- #spreadsheet {
- background-color: #627830;
- }
- #presentation {
- background-color: #984305;
- }
- #drawing {
- background-color: #947236;
- }
- #all_item {
- padding: 0px;
- margin: 0px;
- font-size: 12px;
- color: blue;
- }
- #all_item:hover {
- cursor: hand;
- color: green;
- }
- </style>
- </head>
- <body>
- <ul id="links">
- <li id="document" class="link" onClick="newDoc('document')">Document</li>
- <li id="spreadsheet" class="link" onClick="newDoc('spreadsheet')">Spreadsheet</li>
- <li id="presentation" class="link" onClick="newDoc('presentation')">Presentation</li>
- <li id="drawing" class="link" onClick="newDoc('drawing')">Drawing</li>
- </ul>
- <span id="all_item" onClick="loadURL('https://docs.google.com/#all')">All items</span>
- </body>
-</html>
View
@@ -0,0 +1,25 @@
+function newDoc(type) {
+ if (type == 'document') {
+ url = 'http://docs.google.com/?action=newdoc';
+ }
+ else if (type == 'spreadsheet') {
+ url = 'http://spreadsheets.google.com/ccc?new';
+ }
+ else if (type == 'presentation') {
+ url = 'http://docs.google.com/?action=new_presentation';
+ }
+ else if (type == 'drawing') {
+ url = 'https://docs.google.com/drawings/create';
+ }
+
+ loadURL(url);
+ }
+
+function loadURL(url) {
+ chrome.tabs.create(
+ {'url': url},
+ function(tab) {
+ // Tab opened.
+ }
+ );
+}
@@ -0,0 +1,38 @@
+#links {
+ list-style:none;
+ padding: 0px;
+ margin: 0px;
+}
+li.link {
+ color: #fff;
+ border: 1px solid black;
+ margin-top: 2px;
+ padding: 2px;
+ border-radius: 3px;
+}
+li.link:hover {
+ cursor: hand;
+ color: black;
+}
+#document {
+ background-color: #214471;
+}
+#spreadsheet {
+ background-color: #627830;
+}
+#presentation {
+ background-color: #984305;
+}
+#drawing {
+ background-color: #947236;
+}
+#all_item {
+ padding: 0px;
+ margin: 0px;
+ font-size: 12px;
+ color: blue;
+}
+#all_item:hover {
+ cursor: hand;
+ color: green;
+}

0 comments on commit 42c9a58

Please sign in to comment.