Code reorganization and fix regresion.
This commit is contained in:
10
TrimSP.html
10
TrimSP.html
@@ -1,18 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="mcss">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||
<link rel="stylesheet" href="ZGUI.css">
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
||||
<script src="TrimSPlib.js"></script>
|
||||
<script src="TrimSPelec.js"></script>
|
||||
<script src="TrimSPlib.js"></script>
|
||||
<script src="myplots.js"></script>
|
||||
<script type="text/javascript">
|
||||
const ipcRenderer = require('electron').ipcRenderer;
|
||||
const fs = require('fs');
|
||||
const exec = require('child_process').execSync;
|
||||
const remote = require('electron').remote;
|
||||
</script>
|
||||
|
||||
<title>Trim.SP</title>
|
||||
</head>
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
// This file contains function that are Electron/Node specific
|
||||
// This file contains function that are Electron/Node.JS specific
|
||||
|
||||
// Load required packages
|
||||
const Plotly = require('plotly.js-dist');
|
||||
const ipcRenderer = require('electron').ipcRenderer;
|
||||
const fs = require('fs');
|
||||
const exec = require('child_process').execSync;
|
||||
const remote = require('electron').remote;
|
||||
|
||||
function getFiles(dir, filelist){
|
||||
fileList = [];
|
||||
var files = fs.readdirSync(dir);
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
if (!amIWeb()) {
|
||||
const Plotly = require('plotly.js-dist');
|
||||
}
|
||||
|
||||
function Plot_xy(plotdiv,x,y,labels){
|
||||
// Plot (x,y) scatter with x/ylabels
|
||||
// place generated plot in div named plotdiv
|
||||
|
||||
Reference in New Issue
Block a user