Skip to content

Commit 9822c7c

Browse files
committed
fix
1 parent 4f3bd5e commit 9822c7c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

css/index.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,13 @@ input:checked + .slider:before {
568568
}
569569

570570
.summary {
571+
font-family: GlacierIndifference;
572+
padding: 20px;
571573
width: 50%;
572574
height: 40%;
573575
position: absolute;
574-
top: 60%;
575-
left: 0px;
576+
top: 50%;
577+
left: 8%;
576578
color: var(--contrast);
577579
font: 20px;
578580
}

js/index.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ async function shrinkPlots(){
13431343
endPanel.innerHTML = `<div class="endexplain">R² = 1 - </div> <div class="endplot" id="destination1" style="border-bottom: 4px solid var(--contrast);"></div> <div class="endplot" id="destination2"></div><div class="summary">
13441344
13451345
R² is the variability in y-values explained by the variability in x-values. The residuals represent the variability in y-values that is not explained by variability in x-values.
1346-
Therefore, the variance of the residuals over the variance of the y values represents the proportion of the variability in y-values that is not explained by the variability in x-values.
1346+
The variance of the residuals over the variance of the y values represents the proportion of the variability in y-values that is not explained by the variability in x-values.
13471347
1 - this value leads to R².
13481348
13491349
<br>
@@ -1599,7 +1599,7 @@ function usePreloadedData(data){
15991599
}
16001600

16011601

1602-
function useSavedData(dataX, dataY){
1602+
async function useSavedData(dataX, dataY){
16031603

16041604
pointsarr = [];
16051605
tickXincrement = 1;
@@ -1621,6 +1621,8 @@ function useSavedData(dataX, dataY){
16211621

16221622
saveData();
16231623

1624+
closeel("loading");
1625+
16241626
console.log(pointsarr);
16251627
}
16261628

@@ -1820,6 +1822,7 @@ if (ur.includes("?")){
18201822
ur = splt[0];
18211823
splt = splt[1].split("&");
18221824

1825+
18231826
openel("loading");
18241827

18251828
if (window.confirm("Using this dataset will erase your current data. Do you want to continue?")) {
@@ -1837,11 +1840,13 @@ if (ur.includes("?")){
18371840

18381841
window.open(ur,"_self");
18391842
} else {
1843+
18401844
if (loadX == null || loadX == "" || loadX == NaN){
18411845
pointsarr = [];
18421846
redraw();
18431847
} else if (loadX != null && loadY != null){
18441848

1849+
18451850
if (loadX.substring(loadX.length-1,loadX.length) == ","){
18461851
loadX = loadX.substring(0, loadX.length-1);
18471852
}

0 commit comments

Comments
 (0)