Skip to content

Commit

Permalink
ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
volca committed May 27, 2018
1 parent 2ace8d7 commit 2db1bee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
*.swp
.DS_Store
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
<h1>Hello World!</h1>

<form>
<input type="text" name="mqtt-host" placeholder="MQTT Host">
<input type="number" name="mqtt-port" placeholder="MQTT Port">
<input type="text" name="mqtt-topic" placeholder="Topic">
<input type="text" name="mqtt-host" placeholder="MQTT Host" value="mqtt.bconimg.com">
<input type="number" name="mqtt-port" placeholder="MQTT Port" value="1883">
<input type="text" name="mqtt-topic" placeholder="Topic" value="hello">
<input type="text" name="mqtt-username" placeholder="MQTT Username">
<input type="text" name="mqtt-password" placeholder="MQTT Password">

<button>Test</button>
<button id="btn-test" type="button">Test</button>
</form>

<script>
Expand All @@ -25,5 +24,9 @@ <h1>Hello World!</h1>
require('./renderer.js')
</script>
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script>
$("#btn-test").click(function() {
});
</script>
</body>
</html>
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ let mainWindow

function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600})
mainWindow = new BrowserWindow({
width: 800,
height: 600
})

// and load the index.html of the app.
mainWindow.loadFile('index.html')
Expand Down

0 comments on commit 2db1bee

Please sign in to comment.