Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 3.1.0 - Added Google Sheets support
- Loading branch information
1 parent
00d719b
commit e509941
Showing
7 changed files
with
166 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>StatsBook Tool</title> | ||
<link rel="stylesheet" href="../node_modules/typeface-raleway/index.css"> | ||
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="../css/index.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<H3>Enter Statsbook URL</H3><br> | ||
<P>Note: do NOT use any sort of URL shortener - full Google Sheets URL is required.</P> | ||
<form> | ||
<div class="form-group"> | ||
<input class="form-control" type="url" id="urlBox" name="statsbook_url" placeholder="docs.google.com/spreadsheets/d/13TAnjWUAheMgH_kDDwdd1LH3JghDLT88QsR-VR2OnzM/"> | ||
</div> | ||
<button id="submitURLbutton" type="button" class="btn btn-primary">Submit</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
window.jQuery = window.$ = require('jquery'); | ||
</script> | ||
<script src="../node_modules/popper.js/dist/umd/popper.js"></script> | ||
<script src="../node_modules/bootstrap/dist/js/bootstrap.js"></script> | ||
|
||
</body> | ||
<script src="openurl.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const electron = require('electron') | ||
const ipc = electron.ipcRenderer | ||
|
||
let submitURLbutton = document.getElementById('submitURLbutton') | ||
let urlBox = document.getElementById('urlBox') | ||
|
||
submitURLbutton.onclick = () => { | ||
ipc.send('url-submitted',urlBox.value) | ||
} | ||
|
||
// Submit URL if user hits "Enter" | ||
urlBox.addEventListener('keypress', function(event) { | ||
if (event.key === 'Enter') { | ||
event.preventDefault() | ||
submitURLbutton.click() | ||
} | ||
}) |