Skip to content

Commit

Permalink
Added About link, and allowed reshowing of repeated but faded error m…
Browse files Browse the repository at this point in the history
…essages
  • Loading branch information
Strilanc committed Apr 30, 2016
1 parent 23221de commit 9831f23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions res/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<link rel="shortcut icon" href="favicon.ico">
</head>
<body style="margin: 0">
<a href="https://github.com/Strilanc/Quirk/"
style="position: fixed; bottom: 5px; right: 5px; font-size: 20px;">About Quirk</a>
<div id="inspectorDiv">
<div id="canvasDiv" style="width: 100%;">
<canvas id="drawCanvas"></canvas>
Expand Down
5 changes: 3 additions & 2 deletions src/fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import describe from "src/base/Describe.js"
let _alreadySeen = [];
let showErrorDiv = (subject, body) => {
let errDivStyle = document.getElementById('errorDiv').style;
if (errDivStyle.display !== 'block') {
// Faded away. We can re-show messages now.
if (errDivStyle.opacity < 0.7) {
// Partially faded away as user interacted with circuit.
// Enough time to justify updating the message despite the risk of clearing the user's selection.
_alreadySeen = [];
}

Expand Down

0 comments on commit 9831f23

Please sign in to comment.