Skip to content

Commit

Permalink
added folder for images
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaLim8 committed Oct 30, 2019
1 parent a64506d commit ee536d8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
Binary file added client/src/pages/.Recording.js.swp
Binary file not shown.
Binary file not shown.
Empty file removed client/src/pages/NetrwTreeListing
Empty file.
8 changes: 3 additions & 5 deletions client/src/pages/Recording.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { Component } from 'react';
import { Link } from "react-router-dom";
import "./style.css";
import play from "./play.png";
import pause from "./pause.png";
import play from "./images/play.png";
import pause from "./images/pause.png";
import logo from "../images/Text-logo.png";

const webkitSpeechRecognition = window.webkitSpeechRecognition
Expand All @@ -19,7 +19,7 @@ export default class Recording extends Component {
this.state = {
transcript: "",
playing: false,
question: questions[Math.floor(Math.random() * 10)],
question: questions[Math.floor(Math.random() * questions.length)],
recognition: recognition,
first: true
}
Expand Down Expand Up @@ -47,10 +47,8 @@ export default class Recording extends Component {
const isPlaying = this.state.playing;
if (!isPlaying) {
recognition.start();
console.log("starting to record")
} else if (isPlaying) {
recognition.stop();
console.log("recording has stopped");
}
this.setState({ first: false, playing: !isPlaying });
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions client/src/pages/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
fill: green;
}

.slogan {
font-size: 1.3em;
}

.group {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit ee536d8

Please sign in to comment.