Skip to content

Commit

Permalink
protect header
Browse files Browse the repository at this point in the history
  • Loading branch information
andistuder committed Sep 6, 2017
1 parent 62dbd26 commit 0cd9dd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions react/Collage/Collage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ class Collage extends React.Component {
}

function randomTop() {
// between 0% & 40%
let max = 0.6;
let min = -0.1;
let widthPercentage = Math.random() * (max - min) + min;
// between 2% & 40%
let max = 0.40;
let min = 0.02;
let widthPercentage = (Math.random() * (max - min)) + min;
return that.canvas.width * widthPercentage;
}

function randomWidth() {
// between 20% & 35%
let max = 0.35;
let min = 0.2;
let widthPercentage = Math.random() * (max - min) + min;
let widthPercentage = (Math.random() * (max - min)) + min;

return that.canvas.width * widthPercentage;
}
Expand Down

0 comments on commit 0cd9dd6

Please sign in to comment.