-
Notifications
You must be signed in to change notification settings - Fork 0
/
spike.html
52 lines (46 loc) · 1.83 KB
/
spike.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
<!DOCTYPE html>
<html>
<head>
<title>Check spike sequences</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/menu.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
</head>
<body>
<script>
$( document ).ready(function() {
$("#Menu").load("menu.html");
document.getElementById("outputtext").style.display = "none";
var url = require('url');
var url_parts = url.parse(location.href, true);
const query = url_parts.query;
var fs = require('fs');
if (fs.existsSync(query.folder)) {
const path = require('path');
document.getElementById("fileDialog").style.display = "none";
document.getElementById("path1").innerHTML = "Working in the directory: " + path.basename(query.folder);
document.getElementById("ruta").value = query.folder;
}
});
</script>
<div id="Menu"></div>
<!-- Use any element to open the sidenav -->
<span onclick="openNav()" style="color: chartreuse;background-color: black;"><B> ☰ Menu </B> </span>
<div id="main">
<div class="container" id="container">
<label id="ruta"></label>
<label id="path1">Select uploaded samples folder</label><br><br>
<input id="fileDialog" type="file" nwdirectory nwworkingdir="./" /><br><br>
<label>Spinking sequences</label><br>
<textarea id="inputtext"></textarea>
<br><br>
<input id="run" type="submit" value="Run" onclick="spike()">
<textarea id="outputtext"></textarea>
<div id="graph"></div>
<input id="trimming" type="submit" value="Next >" align="right" onclick="link_analysis('ruta')"></div>
</div>
</div>
</body>
</html>