-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (81 loc) · 3.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="./node_modules/bulma/css/bulma.css">
</head>
<body>
<div class="container is-fluid">
<div class="content">
<h1 class="title is-1">
<center>Simple Dive Meets</center>
</h1>
<h2 class="subtitle is-4">
<center>Welcome to Simple Divemeets</center>
</h2>
<center>Click any of the buttons below to start</center>
</div>
<center>
<div class="columns">
<div class="column">
<a class="button" id="createmeetbutton">Create new Meet</a>
</div>
<div class="column">
<a class="button is-primary" id="startsearch">Search For A Dive</a>
</div>
<div class="column">
<a class="button" id="userbutton">User Example Page</a>
</div>
<div class="column">
<a class="button is-danger" id="closebutton">Exit</a>
</div>
</center>
<center>
<div class="columns">
<div class="column">
<a class="button is-primary" id="scoreentry">Test Live Score Entry</a>
</div>
<div class="column">
<a class="button" id="divesheettest">Test Dive Sheets</a>
</div>
<div class="column">
<a class="button" id="diverselect">Test Diver Selection</a>
</div>
</div>
</div>
</center>
<script>
const { app, BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')
var $ = require('jquery')
const dives = require('./assets/js/Dive');
let win;
let userpg;
$('#createmeetbutton').on('click', function () {
win = window.open("./CreateMeet.html");
});
$('#startsearch').on('click', function () {
win = window.open("./divesearch.html");
});
$('#userbutton').on('click', function () {
userpg = window.open("./userpage.html?name=John");
})
$('#scoreentry').on('click', function () {
userpg = window.open("./LiveScoreEntry.html");
})
const remote = require('electron').remote;
$('#closebutton').on('click', function () {
var window = remote.getCurrentWindow();
window.close();
});
$('#divesheettest').on('click', () => {
let newwin = window.open('./DiverSheet.html?meet=ExampleMeet&event=1MFC1&first=John&last=Elizarraras&board=1M');
});
$('#diverselect').on('click', () => {
let newwin = window.open('./DiverSelection.html?meet=ExampleMeet');
})
</script>
</body>
</html>