diff options
| author | Teddy Wing | 2014-03-30 18:35:28 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2014-03-30 18:37:11 -0400 | 
| commit | d239f03dcef8afe7f727b758e7c55c2f99c9c6a7 (patch) | |
| tree | 872d8083f3fdd451c1f10a71b42c918e0e1ed31a | |
| parent | 703d26ae56ed76f22695b5133ce7b4c2576f0461 (diff) | |
| download | chrome-copy-urls-from-all-tabs-d239f03dcef8afe7f727b758e7c55c2f99c9c6a7.tar.bz2 | |
Page: move download link to top
Move the download link to the top of the page and style it.
| -rw-r--r-- | TODO | 2 | ||||
| -rw-r--r-- | chrome-get-urls-from-tabs-in-windows.html | 6 | ||||
| -rw-r--r-- | chrome-get-urls-from-tabs-in-windows.js | 2 | 
3 files changed, 6 insertions, 4 deletions
@@ -3,7 +3,7 @@ TODO  2014.03.30:  v Better fonts -- Move download link +v Move download link  v Create options page  - Default behaviour option: icon click downloads file or opens page  v Format option: text, HTML, YAML diff --git a/chrome-get-urls-from-tabs-in-windows.html b/chrome-get-urls-from-tabs-in-windows.html index 90e4013..a19819a 100644 --- a/chrome-get-urls-from-tabs-in-windows.html +++ b/chrome-get-urls-from-tabs-in-windows.html @@ -4,16 +4,18 @@  	<title>Chrome Copy URLs From All Tabs</title>  	<style> -		html, body { height: 100%; } +		html, body { height: 100%; font-family: Helvetica, sans-serif; }  		textarea { width: 600px; height: 90%; font: 13px/1.6 Courier, monospace; } -		#header { font: bold 18px Helvetica, sans-serif; } +		#header { font-size: 18px; font-weight: bold; }  	</style>  </head>  <body>  	<p id="header"></p> +	<p id="download-link"></p> +	  	<textarea id="copy-area"></textarea>  	<script src="chrome-get-urls-from-tabs-in-windows.js"></script> diff --git a/chrome-get-urls-from-tabs-in-windows.js b/chrome-get-urls-from-tabs-in-windows.js index aefab19..46a9e8a 100644 --- a/chrome-get-urls-from-tabs-in-windows.js +++ b/chrome-get-urls-from-tabs-in-windows.js @@ -87,7 +87,7 @@ create_download_link = function(text) {  		download_link.setAttribute('download', filename);  		download_link.innerHTML = 'Download file'; -		document.querySelector('body').appendChild(download_link); +		document.getElementById('download-link').appendChild(download_link);  	});  };  | 
