Skip to content

Commit

Permalink
add popup html
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Jun 4, 2017
1 parent 17348b8 commit 339e824
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
17 changes: 17 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>The export result</h1>
<div class="main">
<div class="left-area">
<textarea id="source"></textarea>
</div>
<div class="right-area"></div>
</div>
</body>
</html>
12 changes: 7 additions & 5 deletions scripts/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ chrome.browserAction.onClicked.addListener(function(tab) {
})
.then(function(text) {
const story = parseJsonToMarkdown(text);
return story.markdown;
})
.then(function(contents) {
let savedFileEntry, fileDisplayPath;
doExportToDisk(savedFileEntry);
document.querySelector('#source').value = story.markdown;
document.querySelector('.right-area').innerHTML =
// return story.markdown;
})
// .then(function(contents) {
// let savedFileEntry, fileDisplayPath;
// doExportToDisk(savedFileEntry);
// })
.catch(function(err) {
console.error(err);
})
Expand Down
2 changes: 2 additions & 0 deletions snarkdown.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 339e824

Please sign in to comment.