Skip to content

Commit

Permalink
popup.html UI changes
Browse files Browse the repository at this point in the history
popup.js improvement in Google drive search
  • Loading branch information
vishvanath45 committed Jan 31, 2017
1 parent 1ac8545 commit 535cd19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
27 changes: 9 additions & 18 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,6 @@ <h1><span style="color:#4285f4">F</span><span style="color:#ea4335">e</span><spa
</td>
</tr>
<tr>
<td colspan="2">
<div>Also Show Results from :
<input type="checkbox" name="GDrive" value="GDrive" id="GDrive">
<label for="GDrive">GDrive</label>

</td>

</tr>
<tr>
<td>
<div id="searchenginewarning" style="display: none;">
&#9762 Please select any one of two to search in.
</div>
</div>
</td>
</tr>
<tr><div id="checkboxx">
<td colspan="2">
<input type="checkbox" name="music" value="music" id="music">
<label for="music" title="Ctrl+Alt+m">Music</label>
Expand All @@ -65,7 +48,15 @@ <h1><span style="color:#4285f4">F</span><span style="color:#ea4335">e</span><spa
<input type="checkbox" name="books" value="books" id="books">
<label for="books" title="Ctrl+Alt+b">Books</label>
</td>
</div>
</tr>
<tr>
<td colspan="2">

<input type="checkbox" name="GDrive" value="GDrive" id="GDrive">
<label for="GDrive">Also Show Results from Google Drive</label>

</td>

</tr>
<tr>
<td>
Expand Down
8 changes: 7 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,15 @@ function register(event) {
}
/* eslint-disable */
window.open("http://www.google.com/search?q="+query+" -"+uuid+" -inurl:(htm|html|php|pls|txt) intitle:index.of \"last modified\" ("+formats+")");

if(document.getElementById("GDrive").checked === true)
{
window.open("https://www.google.co.in/#q="+query+" site:drive.google.com")
if((document.getElementById("video").checked === true)||(document.getElementById("music").checked === true)){
window.open("https://www.google.co.in/#q="+query+" site:drive.google.com ");
}
else{
window.open("https://www.google.co.in/#q="+query+" site:docs.google.com ");
}
}
/* eslint-enable */
} else {
Expand Down

0 comments on commit 535cd19

Please sign in to comment.