Fossil SCM

Adapt /pikchrshow to latest skin changes to keep the page footer from scrolling off the screen.

stephan 2024-03-03 13:50 trunk
Commit 7b4bbc8203e001b80390a71db299854cb39fa2a588b5261b9399dafeedb53233
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -316,11 +316,11 @@
316316
else{
317317
/*If it's from the server, it's already rendered, but this
318318
gets all labels/headers in sync.*/
319319
P.renderPreview();
320320
}
321
- }
321
+ }
322322
}/*F.onPageLoad()*/);
323323
324324
/**
325325
Updates the preview view based on the current preview mode and
326326
error state.
327327
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -316,11 +316,11 @@
316 else{
317 /*If it's from the server, it's already rendered, but this
318 gets all labels/headers in sync.*/
319 P.renderPreview();
320 }
321 }
322 }/*F.onPageLoad()*/);
323
324 /**
325 Updates the preview view based on the current preview mode and
326 error state.
327
--- src/fossil.page.pikchrshow.js
+++ src/fossil.page.pikchrshow.js
@@ -316,11 +316,11 @@
316 else{
317 /*If it's from the server, it's already rendered, but this
318 gets all labels/headers in sync.*/
319 P.renderPreview();
320 }
321 }
322 }/*F.onPageLoad()*/);
323
324 /**
325 Updates the preview view based on the current preview mode and
326 error state.
327
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -392,11 +392,11 @@
392392
setCurrentText(val);
393393
}, false);
394394
}/*Examples*/
395395
396396
/**
397
- TODO: Handle load/import of an external pikchr file.
397
+ TODO? Handle load/import of an external pikchr file.
398398
*/
399399
if(0) E('#load-pikchr').addEventListener('change',function(){
400400
const f = this.files[0];
401401
const r = new FileReader();
402402
const status = {loaded: 0, total: 0};
@@ -479,13 +479,13 @@
479479
off-screen. */
480480
const appViews = EAll('.app-view');
481481
const elemsToCount = [
482482
/* Elements which we need to always count in the
483483
visible body size. */
484
- E('body > div.header'),
485
- E('body > div.mainmenu'),
486
- E('body > div.footer')
484
+ E('body > header'),
485
+ E('body > nav.mainmenu'),
486
+ E('body > footer')
487487
];
488488
const resized = function f(){
489489
if(f.$disabled) return;
490490
const wh = window.innerHeight;
491491
var ht;
492492
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -392,11 +392,11 @@
392 setCurrentText(val);
393 }, false);
394 }/*Examples*/
395
396 /**
397 TODO: Handle load/import of an external pikchr file.
398 */
399 if(0) E('#load-pikchr').addEventListener('change',function(){
400 const f = this.files[0];
401 const r = new FileReader();
402 const status = {loaded: 0, total: 0};
@@ -479,13 +479,13 @@
479 off-screen. */
480 const appViews = EAll('.app-view');
481 const elemsToCount = [
482 /* Elements which we need to always count in the
483 visible body size. */
484 E('body > div.header'),
485 E('body > div.mainmenu'),
486 E('body > div.footer')
487 ];
488 const resized = function f(){
489 if(f.$disabled) return;
490 const wh = window.innerHeight;
491 var ht;
492
--- src/fossil.page.pikchrshowasm.js
+++ src/fossil.page.pikchrshowasm.js
@@ -392,11 +392,11 @@
392 setCurrentText(val);
393 }, false);
394 }/*Examples*/
395
396 /**
397 TODO? Handle load/import of an external pikchr file.
398 */
399 if(0) E('#load-pikchr').addEventListener('change',function(){
400 const f = this.files[0];
401 const r = new FileReader();
402 const status = {loaded: 0, total: 0};
@@ -479,13 +479,13 @@
479 off-screen. */
480 const appViews = EAll('.app-view');
481 const elemsToCount = [
482 /* Elements which we need to always count in the
483 visible body size. */
484 E('body > header'),
485 E('body > nav.mainmenu'),
486 E('body > footer')
487 ];
488 const resized = function f(){
489 if(f.$disabled) return;
490 const wh = window.innerHeight;
491 var ht;
492

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button