@@ -411,8 +413,8 @@ Exolve.prototype.init = function() {
>${this.textLabels['exolve-link']}
-
-
+
+
@@ -420,9 +422,8 @@ Exolve.prototype.init = function() {
-
-
+
@@ -431,7 +432,6 @@ Exolve.prototype.init = function() {
@@ -442,7 +442,6 @@ Exolve.prototype.init = function() {
@@ -453,7 +452,6 @@ Exolve.prototype.init = function() {
@@ -503,7 +501,7 @@ Exolve.prototype.init = function() {
}
let smallPrintBox = document.getElementById(this.prefix + '-small-print')
for (credit of this.credits) {
- smallPrintBox.insertAdjacentHTML('beforeend', '
' + credit + '
')
+ smallPrintBox.insertAdjacentHTML('beforeend', '
' + credit + '
')
}
this.gridPanel = document.getElementById(this.prefix + '-grid-panel');
@@ -540,6 +538,9 @@ Exolve.prototype.init = function() {
this.downClues = document.getElementById(this.prefix + '-down')
this.nodirClues = document.getElementById(this.prefix + '-nodir')
+ this.gridcluesContainer = document.getElementById(this.prefix + '-grid-and-clues')
+ this.cluesContainer = document.getElementById(this.prefix + '-clues')
+
this.currClue = document.getElementById(this.prefix + '-curr-clue')
this.currClueParent = document.getElementById(
this.prefix + '-curr-clue-parent')
@@ -927,6 +928,10 @@ Exolve.prototype.parseOption = function(s) {
this.addSolutionToAnno = false
continue
}
+ if (spart == "columnar-layout") {
+ this.columnarLayout = true
+ continue
+ }
let kv = spart.split(':')
if (kv.length != 2) {
this.throwErr('Expected exolve-option: key:value, got: ' + spart)
@@ -2906,7 +2911,6 @@ Exolve.prototype.displayClues = function() {
'xlv-clues-box xlv-clues-extra-panel');
let newTable = document.createElement('table')
newPanel.appendChild(newTable)
- newPanel.appendChild(document.createElement('br'))
extraPanels.push(newPanel)
const newPanelInDiv = document.createElement('div')
@@ -3014,11 +3018,11 @@ Exolve.prototype.displayClues = function() {
if (this.cluesPanelLines > 0) {
const ems = 1.40 * this.cluesPanelLines
const emsStyle = '' + ems + 'em'
- this.acrossPanel.style.height = emsStyle
- this.downPanel.style.height = emsStyle
- this.nodirPanel.style.height = emsStyle
+ this.acrossPanel.style.maxHeight = emsStyle
+ this.downPanel.style.maxHeight = emsStyle
+ this.nodirPanel.style.maxHeight = emsStyle
for (let p of extraPanels) {
- p.style.height = emsStyle
+ p.style.maxHeight = emsStyle
}
}
if (this.hasAcrossClues) {
@@ -3036,16 +3040,16 @@ Exolve.prototype.displayClues = function() {
}
// Make all xlv-clues-box divs have the same width.
const cbs = document.getElementsByClassName('xlv-clues-box')
- let maxw = 0;
+ this.cluesBoxWidth = 0;
for (let x = 0; x < cbs.length; x++) {
const e = cbs[x]
- if (e.offsetWidth > maxw) {
- maxw = e.offsetWidth;
+ if (e.offsetWidth > this.cluesBoxWidth) {
+ this.cluesBoxWidth = e.offsetWidth;
}
}
- if (maxw > 0) {
+ if (this.cluesBoxWidth > 0) {
for (let x = 0; x < cbs.length; x++) {
- cbs[x].style.width = maxw + 'px'
+ cbs[x].style.width = this.cluesBoxWidth + 'px'
}
}
}
@@ -3081,6 +3085,29 @@ Exolve.prototype.computeGridSize = function(maxDim) {
this.arrowSize = Math.max(6, Math.floor(13 * this.squareDim / 31))
}
+Exolve.prototype.tryColumnarLayout = function() {
+ if (!this.columnarLayout) {
+ return;
+ }
+ const numColumns = Math.floor(this.getViewportWidth() /
+ (15 + Math.max(this.cluesBoxWidth, this.gridPanel.offsetWidth)));
+ if (numColumns == 2) {
+ this.cluesContainer.className = 'xlv-clues xlv-clues-columnar'
+ this.gridcluesContainer.className = 'xlv-grid-and-clues-2-columnar'
+ } else if (numColumns > 2) {
+ this.cluesContainer.className = 'xlv-clues xlv-clues-columnar'
+ this.gridcluesContainer.className = 'xlv-grid-and-clues-3-columnar'
+ } else {
+ this.cluesContainer.className = 'xlv-clues xlv-clues-flex'
+ this.gridcluesContainer.className = 'xlv-grid-and-clues-flex'
+ }
+}
+
+Exolve.prototype.handleResize = function() {
+ this.tryColumnarLayout();
+ this.makeCurrClueVisible();
+}
+
Exolve.prototype.displayGridBackground = function() {
let svgWidth = this.boxWidth + (2 * this.offsetLeft)
let svgHeight = this.boxHeight + (2 * this.offsetTop)
@@ -4474,9 +4501,8 @@ Exolve.prototype.createListeners = function() {
document.getElementById(this.prefix + '-title').addEventListener(
'click', boundDeactivator);
- let boundClueVisiblizer = this.makeCurrClueVisible.bind(this)
- window.addEventListener('scroll', boundClueVisiblizer)
- window.addEventListener('resize', boundClueVisiblizer)
+ window.addEventListener('scroll', this.makeCurrClueVisible.bind(this));
+ window.addEventListener('resize', this.handleResize.bind(this));
}
Exolve.prototype.displayGrid = function() {
@@ -5533,6 +5559,7 @@ Exolve.prototype.createPuzzle = function() {
this.displayButtons()
this.parseAndDisplayPS()
+ this.tryColumnarLayout()
this.restoreState()
diff --git a/exolve-player.html b/exolve-player.html
index 08ab3c5e..98649032 100644
--- a/exolve-player.html
+++ b/exolve-player.html
@@ -3,10 +3,10 @@
-
-
-
-
+
+
+
+
diff --git a/gussalufz-1-solved.html b/gussalufz-1-solved.html
index 32609538..8c936bce 100644
--- a/gussalufz-1-solved.html
+++ b/gussalufz-1-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Gussalufz
diff --git a/gussalufz-1-unsolved.html b/gussalufz-1-unsolved.html
index d30392d8..fb04b3b5 100644
--- a/gussalufz-1-unsolved.html
+++ b/gussalufz-1-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Gussalufz
diff --git a/gussalufz-10-solved.html b/gussalufz-10-solved.html
index 5748fb38..5819db84 100644
--- a/gussalufz-10-solved.html
+++ b/gussalufz-10-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
King's Rule
diff --git a/gussalufz-10-unsolved.html b/gussalufz-10-unsolved.html
index cda814ac..a33ad80e 100644
--- a/gussalufz-10-unsolved.html
+++ b/gussalufz-10-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
King's Rule
diff --git a/gussalufz-11-solved.html b/gussalufz-11-solved.html
index 47dd74b4..9f6f7745 100644
--- a/gussalufz-11-solved.html
+++ b/gussalufz-11-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Missing Instructions
diff --git a/gussalufz-11-unsolved.html b/gussalufz-11-unsolved.html
index 4796252c..cc6ca28f 100644
--- a/gussalufz-11-unsolved.html
+++ b/gussalufz-11-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Missing Instructions
diff --git a/gussalufz-12-solved.html b/gussalufz-12-solved.html
index 9aca1abd..cd0d2800 100644
--- a/gussalufz-12-solved.html
+++ b/gussalufz-12-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Fifteen Puzzles
@@ -59,7 +59,7 @@
This puzzle was published in the
1ACross blog
- in January 3019.
+ in February 319.
exolve-nina: b15 c15 d15 a14 b14 c14 d14 a13 b13 c13 d13 a12 b12 c12 d12
diff --git a/gussalufz-12-unsolved.html b/gussalufz-12-unsolved.html
index 9b2a0d15..4056e1e1 100644
--- a/gussalufz-12-unsolved.html
+++ b/gussalufz-12-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Fifteen Puzzles
@@ -57,7 +57,7 @@
This puzzle was published in the
1ACross blog
- in January 3019.
+ in February 319.
exolve-question: Rogue ?????????? Break ??????? (10,7)
exolve-question: Nose At War: ?????? Concoction ?????? (6,6)
diff --git a/gussalufz-13-solved.html b/gussalufz-13-solved.html
index 2a0df1da..e7b885be 100644
--- a/gussalufz-13-solved.html
+++ b/gussalufz-13-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Cursory Appearances
diff --git a/gussalufz-13-unsolved.html b/gussalufz-13-unsolved.html
index a07ace8a..891ac906 100644
--- a/gussalufz-13-unsolved.html
+++ b/gussalufz-13-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Cursory Appearances
diff --git a/gussalufz-14-solved.html b/gussalufz-14-solved.html
index 9a213a99..9fda3691 100644
--- a/gussalufz-14-solved.html
+++ b/gussalufz-14-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Putting Two And Two Together
diff --git a/gussalufz-14-unsolved.html b/gussalufz-14-unsolved.html
index f50d84a1..d942eab9 100644
--- a/gussalufz-14-unsolved.html
+++ b/gussalufz-14-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Putting Two And Two Together
diff --git a/gussalufz-15-solved.html b/gussalufz-15-solved.html
index ab068165..9a07cb0f 100644
--- a/gussalufz-15-solved.html
+++ b/gussalufz-15-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Al’s Trick
diff --git a/gussalufz-15-unsolved.html b/gussalufz-15-unsolved.html
index c31d69b4..566fe20e 100644
--- a/gussalufz-15-unsolved.html
+++ b/gussalufz-15-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Al’s Trick
diff --git a/gussalufz-16-solved.html b/gussalufz-16-solved.html
index 9feb6dc3..91b61214 100644
--- a/gussalufz-16-solved.html
+++ b/gussalufz-16-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Untitled Crossword
diff --git a/gussalufz-16-unsolved.html b/gussalufz-16-unsolved.html
index 48bb6309..50ae302d 100644
--- a/gussalufz-16-unsolved.html
+++ b/gussalufz-16-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Untitled Crossword
diff --git a/gussalufz-17-solved.html b/gussalufz-17-solved.html
index 10493b71..56188fb1 100644
--- a/gussalufz-17-solved.html
+++ b/gussalufz-17-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Puzzling Times
diff --git a/gussalufz-17-unsolved.html b/gussalufz-17-unsolved.html
index 84beeed8..bbedc4ad 100644
--- a/gussalufz-17-unsolved.html
+++ b/gussalufz-17-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Puzzling Times
diff --git a/gussalufz-18-solved.html b/gussalufz-18-solved.html
index 3415d5ce..fcaa5500 100644
--- a/gussalufz-18-solved.html
+++ b/gussalufz-18-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
diff --git a/gussalufz-18-unsolved.html b/gussalufz-18-unsolved.html
index 68aa533d..93baec9e 100644
--- a/gussalufz-18-unsolved.html
+++ b/gussalufz-18-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
diff --git a/gussalufz-19-solved.html b/gussalufz-19-solved.html
index ca5bf59d..27471ef4 100644
--- a/gussalufz-19-solved.html
+++ b/gussalufz-19-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Wormholes
diff --git a/gussalufz-19-unsolved.html b/gussalufz-19-unsolved.html
index ac9b8241..1ef9c4c2 100644
--- a/gussalufz-19-unsolved.html
+++ b/gussalufz-19-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Wormholes
diff --git a/gussalufz-2-solved.html b/gussalufz-2-solved.html
index 7b1fd809..8e040e4a 100644
--- a/gussalufz-2-solved.html
+++ b/gussalufz-2-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Many Rustams
diff --git a/gussalufz-2-unsolved.html b/gussalufz-2-unsolved.html
index ccca8557..ac605637 100644
--- a/gussalufz-2-unsolved.html
+++ b/gussalufz-2-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Many Rustams
diff --git a/gussalufz-20-solved.html b/gussalufz-20-solved.html
index 7f78207b..40e2b595 100644
--- a/gussalufz-20-solved.html
+++ b/gussalufz-20-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
diff --git a/gussalufz-20-teaser-solved.html b/gussalufz-20-teaser-solved.html
index 85610ae8..927141ff 100644
--- a/gussalufz-20-teaser-solved.html
+++ b/gussalufz-20-teaser-solved.html
@@ -4,8 +4,8 @@
-
-
+
+
Unlock and find a bug
diff --git a/gussalufz-20-unsolved.html b/gussalufz-20-unsolved.html
index 9a62acaf..1b793337 100644
--- a/gussalufz-20-unsolved.html
+++ b/gussalufz-20-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
diff --git a/gussalufz-21-solved.html b/gussalufz-21-solved.html
index 8a931cc1..160a2407 100644
--- a/gussalufz-21-solved.html
+++ b/gussalufz-21-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Last Solo
diff --git a/gussalufz-21-unsolved.html b/gussalufz-21-unsolved.html
index 5e63aa20..3846667f 100644
--- a/gussalufz-21-unsolved.html
+++ b/gussalufz-21-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Last Solo
diff --git a/gussalufz-3-solved.html b/gussalufz-3-solved.html
index cea1f2de..3786cccf 100644
--- a/gussalufz-3-solved.html
+++ b/gussalufz-3-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Smashing Plates
diff --git a/gussalufz-3-unsolved.html b/gussalufz-3-unsolved.html
index 0e6b8da1..77112c66 100644
--- a/gussalufz-3-unsolved.html
+++ b/gussalufz-3-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Smashing Plates
diff --git a/gussalufz-4-solved.html b/gussalufz-4-solved.html
index 7fc137ad..8e276c74 100644
--- a/gussalufz-4-solved.html
+++ b/gussalufz-4-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Hidden Figure
diff --git a/gussalufz-4-unsolved.html b/gussalufz-4-unsolved.html
index c96d542f..7938f1be 100644
--- a/gussalufz-4-unsolved.html
+++ b/gussalufz-4-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Hidden Figure
diff --git a/gussalufz-5-solved.html b/gussalufz-5-solved.html
index 05902712..434f6bdd 100644
--- a/gussalufz-5-solved.html
+++ b/gussalufz-5-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
French Toast
diff --git a/gussalufz-5-unsolved.html b/gussalufz-5-unsolved.html
index 09d23486..813423a6 100644
--- a/gussalufz-5-unsolved.html
+++ b/gussalufz-5-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
French Toast
diff --git a/gussalufz-8-solved.html b/gussalufz-8-solved.html
index 36c1c84f..f0ebd58a 100644
--- a/gussalufz-8-solved.html
+++ b/gussalufz-8-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Do Squares Reveal?
diff --git a/gussalufz-8-unsolved.html b/gussalufz-8-unsolved.html
index 6a2fb0fb..9d53bdaa 100644
--- a/gussalufz-8-unsolved.html
+++ b/gussalufz-8-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Do Squares Reveal?
diff --git a/latc-temp.html b/latc-temp.html
index 673e22c1..b433e749 100644
--- a/latc-temp.html
+++ b/latc-temp.html
@@ -10,10 +10,10 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
Last Solo
diff --git a/ragitvach-1-solved.html b/ragitvach-1-solved.html
index 75ecd970..08a20ead 100644
--- a/ragitvach-1-solved.html
+++ b/ragitvach-1-solved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
22⅘ Across
diff --git a/ragitvach-1-unsolved.html b/ragitvach-1-unsolved.html
index 90c796e9..64321251 100644
--- a/ragitvach-1-unsolved.html
+++ b/ragitvach-1-unsolved.html
@@ -11,11 +11,11 @@
See the full license notice in exolve-m.js.
-Version: Exolve v1.02 January 30 2021
+Version: Exolve v1.03 February 3 2021
-->
-
-
+
+
22⅘ Across
diff --git a/ribelle-gussalufz-1-solved.html b/ribelle-gussalufz-1-solved.html
index 34095b5c..7e7399b7 100644
--- a/ribelle-gussalufz-1-solved.html
+++ b/ribelle-gussalufz-1-solved.html
@@ -4,8 +4,8 @@
-
-
+
+
Chain Letters
diff --git a/ribelle-gussalufz-1-unsolved.html b/ribelle-gussalufz-1-unsolved.html
index dfa8c05a..a5797dfd 100644
--- a/ribelle-gussalufz-1-unsolved.html
+++ b/ribelle-gussalufz-1-unsolved.html
@@ -4,8 +4,8 @@
-
-
+
+
Chain Letters
diff --git a/test-hindi.html b/test-hindi.html
index 54810c48..a21ad434 100644
--- a/test-hindi.html
+++ b/test-hindi.html
@@ -3,8 +3,8 @@
-
-
+
+
Test-Hindi