Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprince committed Feb 12, 2020
0 parents commit ee62232
Show file tree
Hide file tree
Showing 25 changed files with 3,433 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
package-lock.json
.vscode
dist/
.eslintrc.js
37 changes: 37 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>

<head>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
</head>

<body style="text-align: center; -webkit-user-select: none; -webkit-app-region: drag;">
<div class="container" style="text-align: center;">
<div class="row" style="margin-top: 5%; margin-bottom: 5%;">
<div class="col-lg-12">
<img src="icon-256.png" width="128px" height="128px">
</div>
</div>
<div class="row" style="font-weight: bold; ">
<div class="col-lg-12">AudioMoth Flash App</div>
</div>
<div class="row">
<div class="col-lg-12" id="version-display">Version 1.0</div>
</div>
<div class="row">
<div class="col-lg-12" id="electron-version-display">Running on Electron version 1.0</div>
</div>
<div class="row">
<div class="col-lg-12" id="audiomoth-hid-version-display">AudioMoth-HID module 1.0.0</div>
</div>
<div class="row">
<div class="col-lg-12">
<a href id="website-link">www.openacousticdevices.info</a>
</div>
</div>
</div>
</body>

<script src="about.js" charset="utf-8"></script>

</html>
27 changes: 27 additions & 0 deletions about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/****************************************************************************
* about.js
* openacousticdevices.info
* June 2017
*****************************************************************************/

'use strict';

/* global document */

const electron = require('electron');
const audiomoth = require('audiomoth-hid');

var versionDisplay = document.getElementById('version-display');
var electronVersionDisplay = document.getElementById('electron-version-display');
var audiomothHidVersionDisplay = document.getElementById('audiomoth-hid-version-display');
var websiteLink = document.getElementById('website-link');

versionDisplay.textContent = 'Version ' + electron.remote.app.getVersion();
electronVersionDisplay.textContent = 'Running on Electron version ' + electron.remote.process.versions.electron;
audiomothHidVersionDisplay.textContent = 'AudioMoth-HID module ' + audiomoth.version;

websiteLink.addEventListener('click', function () {

electron.shell.openExternal('https://openacousticdevices.info');

});
Loading

0 comments on commit ee62232

Please sign in to comment.