Compare commits
No commits in common. "d162a4005df2504206d245bbe96a29f91cb3dfd4" and "1751a375111792848ce5b27b17cb7dc0fffad0b8" have entirely different histories.
d162a4005d
...
1751a37511
3 changed files with 37 additions and 80 deletions
|
@ -31,12 +31,6 @@
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn--full{
|
|
||||||
padding: 12px 26px;
|
|
||||||
margin: 0 auto;
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn--large:hover,
|
.btn--large:hover,
|
||||||
.btn--medium:hover {
|
.btn--medium:hover {
|
||||||
transition: all 0.3s ease-out;
|
transition: all 0.3s ease-out;
|
||||||
|
@ -44,4 +38,3 @@
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
transition: 250ms;
|
transition: 250ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { Link } from "react-router-dom";
|
||||||
|
|
||||||
const STYLES = ["btn--primary", "btn--outline"];
|
const STYLES = ["btn--primary", "btn--outline"];
|
||||||
|
|
||||||
const SIZES = ["btn--medium", "btn--large", "btn--full"];
|
const SIZES = ["btn--medium", "btn--large"];
|
||||||
export const Button = ({
|
export const Button = ({
|
||||||
children,
|
children,
|
||||||
type,
|
type,
|
||||||
|
|
|
@ -6,7 +6,6 @@ import SubmitField from "../SubmitField";
|
||||||
import { Logger } from "@behametrics/logger-web";
|
import { Logger } from "@behametrics/logger-web";
|
||||||
import BehaviorStudyInfo from "../BehaviorStudyInfo";
|
import BehaviorStudyInfo from "../BehaviorStudyInfo";
|
||||||
import BehaviorNormal from "../BehaviorNormal";
|
import BehaviorNormal from "../BehaviorNormal";
|
||||||
import { Button } from "../Button";
|
|
||||||
|
|
||||||
export default function Study() {
|
export default function Study() {
|
||||||
let username = "";
|
let username = "";
|
||||||
|
@ -19,16 +18,6 @@ export default function Study() {
|
||||||
password = tmp_password;
|
password = tmp_password;
|
||||||
};
|
};
|
||||||
|
|
||||||
let isStepStart = true;
|
|
||||||
const setIsStepStart = (tmp) => {
|
|
||||||
isStepStart = tmp;
|
|
||||||
};
|
|
||||||
|
|
||||||
let isStepNormal = false;
|
|
||||||
const setIsStepNormal = (tmp) => {
|
|
||||||
isStepNormal = tmp;
|
|
||||||
};
|
|
||||||
|
|
||||||
let logger = new Logger({
|
let logger = new Logger({
|
||||||
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
||||||
inputs: ["keyboard"],
|
inputs: ["keyboard"],
|
||||||
|
@ -62,13 +51,6 @@ export default function Study() {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleIsStepStart = () => {
|
|
||||||
setIsStepStart(false);
|
|
||||||
console.log("isStepStar", isStepStart)
|
|
||||||
setIsStepNormal(true);
|
|
||||||
console.log("isStepStar", isStepNormal)
|
|
||||||
};
|
|
||||||
|
|
||||||
const onSubmitClick = (e) => {
|
const onSubmitClick = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let opts = {
|
let opts = {
|
||||||
|
@ -93,65 +75,47 @@ export default function Study() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
useEffect(() => {
|
|
||||||
if (isStepStart) {
|
|
||||||
handleIsStepStart();
|
|
||||||
console.log("useEffect; normal");
|
|
||||||
} else if (isStepNormal) {
|
|
||||||
console.log("useEffect; normal");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="sitePage">
|
<div className="sitePage">
|
||||||
<h1>Studie</h1>
|
<h1>Studie</h1>
|
||||||
<button onClick={handleLoggerOn}>LOGGER StaRTEN</button>
|
<button onClick={handleLoggerOn}>LOGGER StaRTEN</button>
|
||||||
{isStepStart ? (
|
<BehaviorStudyInfo />{" "}
|
||||||
<>
|
<form id="behaviorNormal" action="#">
|
||||||
<BehaviorStudyInfo />
|
<SubmitField
|
||||||
<Button
|
LabelName="Starten mit der Studie"
|
||||||
className="btns"
|
InputValue="next-situation"
|
||||||
buttonStyle="btn--primary"
|
InputName="Weiter"
|
||||||
buttonSize="btn--full"
|
onClick={handleLoggerOn}
|
||||||
onClick={handleIsStepStart}
|
/>
|
||||||
newTo="study"
|
</form>{" "}
|
||||||
>
|
<BehaviorNormal />
|
||||||
Starten mit der Studie
|
<form id="behaviorNormal" action="#">
|
||||||
</Button>
|
<InputField
|
||||||
</>
|
LabelName="Benutzername"
|
||||||
) : null}
|
onChange={handleUsernameChange}
|
||||||
{isStepNormal ? (
|
InputType="text"
|
||||||
<>
|
InputName="Benutzername"
|
||||||
<BehaviorNormal />
|
InputPlaceHolder="Benutzername"
|
||||||
<form id="behaviorNormal">
|
onPaste={handleOnPasteEvent}
|
||||||
<InputField
|
/>
|
||||||
LabelName="Benutzername"
|
<InputField
|
||||||
onChange={handleUsernameChange}
|
LabelName="Passwort"
|
||||||
InputType="text"
|
onChange={handlePasswordChange}
|
||||||
InputName="Benutzername"
|
InputType="password"
|
||||||
InputPlaceHolder="Benutzername"
|
InputName="Passwort"
|
||||||
onPaste={handleOnPasteEvent}
|
InputPlaceHolder="Benutzername"
|
||||||
/>
|
onPaste={handleOnPasteEvent}
|
||||||
<InputField
|
/>
|
||||||
LabelName="Passwort"
|
<SubmitField
|
||||||
onChange={handlePasswordChange}
|
LabelNa
|
||||||
InputType="password"
|
me="Weiter zur nächsten Situation"
|
||||||
InputName="Passwort"
|
InputValue="next-situation"
|
||||||
InputPlaceHolder="Benutzername"
|
InputName="Weiter"
|
||||||
onPaste={handleOnPasteEvent}
|
onClick={onSubmitClick}
|
||||||
/>
|
/>
|
||||||
<SubmitField
|
</form>
|
||||||
LabelName="Weiter zur nächsten Situation"
|
<button onClick={handleLoggerOff}>STOP THAT FUCKING LOGGER</button>
|
||||||
InputValue="next-situation"
|
|
||||||
InputName="Weiter"
|
|
||||||
onClick={onSubmitClick}
|
|
||||||
/>
|
|
||||||
</form>
|
|
||||||
</>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in a new issue