Skip to content

Commit

Permalink
Added import and export pages
Browse files Browse the repository at this point in the history
-Added import and export pages in preperation for the next update
  • Loading branch information
EuanRiggans committed Mar 1, 2018
1 parent 842a842 commit 2dfe668
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
27 changes: 27 additions & 0 deletions contexts manifest.txt
@@ -0,0 +1,27 @@
{
"name": "Bulk URL Opener",
"short_name": "BulkOpen",
"author": "Euan Riggans",
"manifest_version": 2,
"version": "1.1.4",
"description": "Allows user to open a list of url in one click.",
"permissions": [
"tabs",
"storage",
"contextMenus"
],
"background": {
"scripts": ["/js/bulkopen.contexts.js"],
"persistent": false
},
"browser_action": {
"default_icon": "icon/icon-48.png",
"default_title": "Bulk URL Open",
"default_popup": "popup.html"
},
"icons": {
"16": "icon/icon-16.png",
"48": "icon/icon-48.png",
"128": "icon/icon-128.png"
}
}
10 changes: 9 additions & 1 deletion css/style.css
Expand Up @@ -62,7 +62,15 @@ button {
padding-right:10px; padding-right:10px;
} }


.header.settings, .header.help { .import {
padding-right: 10px;
}

.export {
padding-right: 10px;
}

.header.settings, .header.help, .header.import, .header.export {
float:right; float:right;
font-size:35px; font-size:35px;
} }
Expand Down
Empty file added export.html
Empty file.
Empty file added import.html
Empty file.
14 changes: 14 additions & 0 deletions js/bulkopen.js
Expand Up @@ -46,6 +46,12 @@ $(document).ready(function () {
$('#openHelp').click(function () { $('#openHelp').click(function () {
openHelpDialog(); openHelpDialog();
}); });
$('#openImport').click(function () {
openImportDialog();
});
$('#openExport').click(function () {
openExportDialog();
});
$('#version').text("- Version " + getCurrentVersion()); $('#version').text("- Version " + getCurrentVersion());
}); });


Expand Down Expand Up @@ -183,6 +189,14 @@ function openHelpDialog() {
chrome.tabs.create({'url': chrome.extension.getURL('help.html')}); chrome.tabs.create({'url': chrome.extension.getURL('help.html')});
} }


function openImportDialog() {
chrome.tabs.create({'url': chrome.extension.getURL('import.html')});
}

function openExportDialog() {
chrome.tabs.create({'url': chrome.extension.getURL('export.html')});
}

function deleteList() { function deleteList() {
if(getSelectedListID() == "-1") { if(getSelectedListID() == "-1") {
alert("You need to select a list"); alert("You need to select a list");
Expand Down
10 changes: 10 additions & 0 deletions popup.html
Expand Up @@ -18,6 +18,16 @@ <h1 class="header title">Bulk Open <small id ="version"></small></h1>
<i class="fa fa-cog" id="openSettings" aria-hidden="true"></i> <i class="fa fa-cog" id="openSettings" aria-hidden="true"></i>
</a> </a>
</div> </div>
<div class="header import">
<a href="#" class="no-highlight" data-toggle="tooltip" data-placement="top" title="Import lists">
<i class="fa fa-download" id="openImport" aria-hidden="true"></i>
</a>
</div>
<div class="header export">
<a href="#" class="no-highlight" data-toggle="tooltip" data-placement="top" title="Export lists">
<i class="fa fa-upload" id="openExport" aria-hidden="true"></i>
</a>
</div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="comment">URLs:</label> <label for="comment">URLs:</label>
Expand Down

0 comments on commit 2dfe668

Please sign in to comment.