Skip to content

Commit

Permalink
v1.10
Browse files Browse the repository at this point in the history
### Version: Exolve v1.10 March 28 2021

- Make the underline colour in a revealed definition and the solution text
  colour be the same as the "solved clue number" color, dodgerblue.
- Make these colours be configurable via colour-... exolve-options
  ('def-underline" and "solution").
- Use the solution colour in "incluefill" too (the placeholder blank
  used for orphan clues).

Thanks to @Antagony1060 for the idea of unifying the solved/solution/def-underline colours to dodgerblue by default.
  • Loading branch information
viresh-ratnakar authored Mar 28, 2021
1 parent cf58d40 commit 9a3f5f4
Show file tree
Hide file tree
Showing 42 changed files with 118 additions and 92 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

### Version: Exolve v1.10 March 28 2021

- Make the underline colour in a revealed definition and the solution text
colour be the same as the "solved clue number" color, dodgerblue.
- Make these colours be configurable via colour-... exolve-options
('def-underline" and "solution").
- Use the solution colour in "incluefill" too (the placeholder blank
used for orphan clues).

### Version: Exolve v1.09 March 21 2021

- Make the current-clue div above the grid have a max-height and an
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## An Easily Configurable Interactive Crossword Solver

### Version: Exolve v1.09 March 21 2021
### Version: Exolve v1.10 March 28 2021

Exolve can help you create online interactively solvable crosswords (simple
ones with blocks and/or bars as well as those that are jumbles or are
Expand Down Expand Up @@ -1078,8 +1078,10 @@ be overriding), and descriptions.
| `colour-prefill` | blue | Any letters pre-filled with the ! decorator.|
| `colour-anno` | darkgreen | The text of the annotation. |
| `colour-solved` | dodgerblue | The clue number in the list of clues, once the clue has been solved.|
| `colour-solution` | dodgerblue | The solution part of the anno, as well as entries in placeholder blanks.|
| `colour-def-underline` | dodgerblue | The underline in a revealed definition within a clue.|
| `colour-separator` | blue | The hyphens and dashes in multi-word lights. |
| `colour-imp-text` | darkgreen | "Important" text: setter's name, answer entries, placeholder entries, grid-filling status.|
| `colour-imp-text` | darkgreen | "Important" text: setter's name, answer entries, grid-filling status.|
| `colour-button` | #4caf50 | Buttons (Check/Reveal etc). |
| `colour-button-hover` | darkgreen | Buttons with mouseover. |
| `colour-button-text` | white | The text in buttons. |
Expand Down
2 changes: 1 addition & 1 deletion exolve-from-ipuz.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
The latest code and documentation for Exolve can be found at:
https://github.com/viresh-ratnakar/exolve
Version: Exolve v1.09 March 21 2021
Version: Exolve v1.10 March 28 2021
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion exolve-from-puz.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
The latest code and documentation for Exolve can be found at:
https://github.com/viresh-ratnakar/exolve
Version: Exolve v1.09 March 21 2021
Version: Exolve v1.10 March 28 2021
*/

function exolveFromPuzNextNull(buffer, offset) {
Expand Down
6 changes: 3 additions & 3 deletions exolve-m-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
See the full Exolve license notice in exolve-m.js.
Version: Exolve v1.09 March 21 2021
Version: Exolve v1.10 March 28 2021
-->

<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v1.09"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="https://viresh-ratnakar.github.io/exolve-m.css?v1.10"/>
<script src="https://viresh-ratnakar.github.io/exolve-m.js?v1.10"></script>

<title>Exolve</title>

Expand Down
3 changes: 1 addition & 2 deletions exolve-m.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Copyright (c) 2019 Viresh Ratnakar
See the full license notice in exolve-m.js.
Version: Exolve v1.09 March 21 2021
Version: Exolve v1.10 March 28 2021
*/

@media (max-width: 500px) {
Expand Down Expand Up @@ -414,7 +414,6 @@ Version: Exolve v1.09 March 21 2021
}
.xlv-definition {
text-decoration: underline;
text-decoration-color: darkgreen;
text-decoration-thickness: 1.5px;
}
.xlv-blue {
Expand Down
6 changes: 3 additions & 3 deletions exolve-m.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
See the full Exolve license notice in exolve-m.js.
Version: Exolve v1.09 March 21 2021
Version: Exolve v1.10 March 28 2021
-->
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Exolve (replace with puzzle title)</title>

Expand Down
12 changes: 10 additions & 2 deletions exolve-m.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function Exolve(puzzleSpec,
visTop=0,
maxDim=0,
saveState=true) {
this.VERSION = 'Exolve v1.09 March 21 2021'
this.VERSION = 'Exolve v1.10 March 28 2021'

this.puzzleText = puzzleSpec
this.containerId = containerId
Expand Down Expand Up @@ -199,6 +199,8 @@ function Exolve(puzzleSpec,
'prefill': 'blue',
'anno': 'darkgreen',
'solved': 'dodgerblue',
'solution': 'dodgerblue',
'def-underline': 'dodgerblue',
'separator': 'blue',
'imp-text': 'darkgreen',
'button': '#4caf50',
Expand Down Expand Up @@ -2884,6 +2886,12 @@ Exolve.prototype.applyStyles = function() {
#${this.prefix}-frame .xlv-solved td:first-child {
color: ${this.colorScheme['solved']};
}
#${this.prefix}-frame .xlv-definition {
text-decoration-color: ${this.colorScheme['def-underline']};
}
#${this.prefix}-frame .xlv-solution {
color: ${this.colorScheme['solution']};
}
#${this.prefix}-status {
color: ${this.colorScheme['imp-text']};
}
Expand Down Expand Up @@ -4092,7 +4100,7 @@ Exolve.prototype.addOrphanUI =
html = html + '</span>'
elt.insertAdjacentHTML('beforeend', html)
let incluefill = elt.lastElementChild.firstElementChild
incluefill.style.color = this.colorScheme['imp-text']
incluefill.style.color = this.colorScheme['solution']
incluefill.addEventListener(
'input', this.updateOrphanEntry.bind(this, clueIndex, inCurr))
if (!this.hideCopyPlaceholders) {
Expand Down
8 changes: 4 additions & 4 deletions exolve-player.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<script src="exolve-from-ipuz.js?v1.09"></script>
<script src="exolve-from-puz.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>
<script src="exolve-from-ipuz.js?v1.10"></script>
<script src="exolve-from-puz.js?v1.10"></script>

<style>
#exolve-player {
Expand Down
4 changes: 2 additions & 2 deletions exolve-widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>
<script>
let puzzleText = '';
function receivePuzzle(event) {
Expand Down
13 changes: 10 additions & 3 deletions exolve.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
visTop=0,
maxDim=0,
saveState=true) {
this.VERSION = 'Exolve v1.09 March 21 2021'
this.VERSION = 'Exolve v1.10 March 28 2021'

this.puzzleText = puzzleSpec
this.containerId = containerId
Expand Down Expand Up @@ -232,6 +232,8 @@
'prefill': 'blue',
'anno': 'darkgreen',
'solved': 'dodgerblue',
'solution': 'dodgerblue',
'def-underline': 'dodgerblue',
'separator': 'blue',
'imp-text': 'darkgreen',
'button': '#4caf50',
Expand Down Expand Up @@ -2917,6 +2919,12 @@ <h2 id="${this.prefix}-title" class="xlv-title"></h2>
#${this.prefix}-frame .xlv-solved td:first-child {
color: ${this.colorScheme['solved']};
}
#${this.prefix}-frame .xlv-definition {
text-decoration-color: ${this.colorScheme['def-underline']};
}
#${this.prefix}-frame .xlv-solution {
color: ${this.colorScheme['solution']};
}
#${this.prefix}-status {
color: ${this.colorScheme['imp-text']};
}
Expand Down Expand Up @@ -4125,7 +4133,7 @@ <h2 id="${this.prefix}-title" class="xlv-title"></h2>
html = html + '</span>'
elt.insertAdjacentHTML('beforeend', html)
let incluefill = elt.lastElementChild.firstElementChild
incluefill.style.color = this.colorScheme['imp-text']
incluefill.style.color = this.colorScheme['solution']
incluefill.addEventListener(
'input', this.updateOrphanEntry.bind(this, clueIndex, inCurr))
if (!this.hideCopyPlaceholders) {
Expand Down Expand Up @@ -6131,7 +6139,6 @@ <h2 id="${this.prefix}-title" class="xlv-title"></h2>
}
.xlv-definition {
text-decoration: underline;
text-decoration-color: darkgreen;
text-decoration-thickness: 1.5px;
}
.xlv-blue {
Expand Down
4 changes: 2 additions & 2 deletions test-15x15-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-15x15</title>

Expand Down
4 changes: 2 additions & 2 deletions test-3d-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-3D</title>

Expand Down
4 changes: 2 additions & 2 deletions test-basic-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Basic</title>

Expand Down
4 changes: 2 additions & 2 deletions test-basic-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Basic</title>

Expand Down
4 changes: 2 additions & 2 deletions test-big-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Big</title>

Expand Down
4 changes: 2 additions & 2 deletions test-color-scheme.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Color-Scheme</title>

Expand Down
4 changes: 2 additions & 2 deletions test-columnar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Columnar</title>

Expand Down
4 changes: 2 additions & 2 deletions test-customize-puzzle.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<script>
function customizeExolve(p) {
Expand Down
4 changes: 2 additions & 2 deletions test-deleted-clues-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-3D</title>

Expand Down
4 changes: 2 additions & 2 deletions test-diagramless-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Diagramless</title>

Expand Down
4 changes: 2 additions & 2 deletions test-diagramless-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Diagramless</title>

Expand Down
4 changes: 2 additions & 2 deletions test-exolve-div.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Exolve-Div</title>

Expand Down
4 changes: 2 additions & 2 deletions test-hindi.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Hindi</title>

Expand Down
6 changes: 3 additions & 3 deletions test-ipuz-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<script src="exolve-from-ipuz.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>
<script src="exolve-from-ipuz.js?v1.10"></script>

<title>Test-Ipuz-Solved</title>

Expand Down
6 changes: 3 additions & 3 deletions test-ipuz-unsolved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<script src="exolve-from-ipuz.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>
<script src="exolve-from-ipuz.js?v1.10"></script>

<title>Test-Ipuz-Solved</title>

Expand Down
4 changes: 2 additions & 2 deletions test-jigsaw-solved.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.09"/>
<script src="exolve-m.js?v1.09"></script>
<link rel="stylesheet" type="text/css" href="exolve-m.css?v1.10"/>
<script src="exolve-m.js?v1.10"></script>

<title>Test-Jigsaw</title>

Expand Down
Loading

0 comments on commit 9a3f5f4

Please sign in to comment.