Skip to content

Commit

Permalink
added third image
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueschen1 committed Feb 20, 2019
1 parent cdf6030 commit c566cd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file added VisualEyesWeb/visualeyesweb/public/heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions VisualEyesWeb/visualeyesweb/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@
<div class='button'>
<button class='getbutton' id="getdata">Get Data</button>
</div>
<div class='heatmap' id='heatmap'>
<img src='heatmap.png'><img>
</div>

<script>
document.getElementById("heatmap").style.display = "none";
var emotion = document.getElementById('emotion');
var button = document.getElementById('getdata');
Plotly.plot( emotion, [{
Expand All @@ -81,6 +85,11 @@

button.addEventListener('click', function(){

var x = document.getElementById("heatmap");
if (x.style.display === "none") {
x.style.display = "block";
}

var scores = [0, 0, 0, 0, 0, 0, 0, 0];
var smile_x = [];
var smile_y = [];
Expand Down
5 changes: 5 additions & 0 deletions VisualEyesWeb/visualeyesweb/public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@
padding: 15px 32px;
font-size: 20px;
border-radius: 20px;
}

.heatmap {
padding-top: 50px;
text-align: center;
}

0 comments on commit c566cd8

Please sign in to comment.