@@ -35,7 +35,7 @@ document.addEventListener("DOMContentLoaded", function(e) {
3535
3636
3737function buildKeyboardNavigator ( ) {
38- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "keyboard" , "" ] ] ) . toString ( )
38+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "keyboard" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
3939 fetch ( url , {
4040 method : "GET" ,
4141 cache : "no-cache"
@@ -68,7 +68,7 @@ function buildKeyboardNavigator () {
6868function keyboardNavigatorEnter ( event ) {
6969 if ( event . keyCode == 13 ) {
7070 passage = document . querySelector ( "#keyboard" ) . value ;
71- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "passage" , passage ] ] ) . toString ( )
71+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "passage" , passage ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
7272 fetch ( url , {
7373 method : "GET" ,
7474 cache : "no-cache"
@@ -94,7 +94,7 @@ function keyboardNavigatorEnter (event) {
9494
9595
9696function buildMouseNavigator ( ) {
97- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] ] ) . toString ( )
97+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
9898 fetch ( url , {
9999 method : "GET" ,
100100 cache : "no-cache"
@@ -226,7 +226,7 @@ function navigateBack (event) {
226226 navigateBackSkip = false ;
227227 return ;
228228 }
229- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "goback" , "" ] ] ) . toString ( ) ;
229+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "goback" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
230230 fetch ( url , {
231231 method : "GET" ,
232232 cache : "no-cache"
@@ -256,7 +256,7 @@ function navigateForward (event) {
256256 navigateForwardSkip = false ;
257257 return ;
258258 }
259- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "goforward" , "" ] ] ) . toString ( )
259+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "goforward" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
260260 fetch ( url , {
261261 method : "GET" ,
262262 cache : "no-cache"
@@ -281,7 +281,7 @@ function navigateForward (event) {
281281
282282function displayBooks ( event ) {
283283 event . preventDefault ( ) ;
284- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "getbooks" , true ] ] ) . toString ( )
284+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "getbooks" , true ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
285285 fetch ( url , {
286286 method : "GET" ,
287287 cache : "no-cache"
@@ -309,7 +309,7 @@ function displayBooks (event) {
309309function applyBook ( event ) {
310310 event . preventDefault ( ) ;
311311 if ( event . target . localName == "a" ) {
312- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applybook" , event . target . id ] ] ) . toString ( )
312+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applybook" , event . target . id ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
313313 fetch ( url , {
314314 method : "GET" ,
315315 cache : "no-cache"
@@ -335,7 +335,7 @@ function applyBook (event) {
335335
336336function displayChapters ( event ) {
337337 event . preventDefault ( ) ;
338- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "book" , navigationBook ] , [ "getchapters" , true ] , [ "chapter" , navigationChapter ] ] ) . toString ( )
338+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "book" , navigationBook ] , [ "getchapters" , true ] , [ "chapter" , navigationChapter ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
339339 fetch ( url , {
340340 method : "GET" ,
341341 cache : "no-cache"
@@ -362,7 +362,7 @@ function displayChapters (event) {
362362function applyChapter ( event ) {
363363 event . preventDefault ( ) ;
364364 if ( event . target . localName == "a" ) {
365- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applychapter" , event . target . id ] ] ) . toString ( )
365+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applychapter" , event . target . id ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
366366 fetch ( url , {
367367 method : "GET" ,
368368 cache : "no-cache"
@@ -388,7 +388,7 @@ function applyChapter (event) {
388388
389389function displayVerses ( event ) {
390390 event . preventDefault ( ) ;
391- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "book" , navigationBook ] , [ "chapter" , navigationChapter ] , [ "verse" , navigationVerse ] , [ "getverses" , true ] ] ) . toString ( )
391+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "book" , navigationBook ] , [ "chapter" , navigationChapter ] , [ "verse" , navigationVerse ] , [ "getverses" , true ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
392392 fetch ( url , {
393393 method : "GET" ,
394394 cache : "no-cache"
@@ -415,7 +415,7 @@ function displayVerses (event) {
415415function applyVerse ( event ) {
416416 event . preventDefault ( ) ;
417417 if ( event . target . localName == "a" ) {
418- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applyverse" , event . target . id ] ] ) . toString ( )
418+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applyverse" , event . target . id ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
419419 fetch ( url , {
420420 method : "GET" ,
421421 cache : "no-cache"
@@ -441,7 +441,7 @@ function applyVerse (event) {
441441
442442function navigatePreviousVerse ( event ) {
443443 event . preventDefault ( ) ;
444- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previousverse" , "" ] ] ) . toString ( )
444+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previousverse" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
445445 fetch ( url , {
446446 method : "GET" ,
447447 cache : "no-cache"
@@ -466,7 +466,7 @@ function navigatePreviousVerse (event) {
466466
467467function navigateNextVerse ( event ) {
468468 event . preventDefault ( ) ;
469- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextverse" , "" ] ] ) . toString ( )
469+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextverse" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
470470 fetch ( url , {
471471 method : "GET" ,
472472 cache : "no-cache"
@@ -491,7 +491,7 @@ function navigateNextVerse (event) {
491491
492492function navigatePreviousChapter ( event ) {
493493 event . preventDefault ( ) ;
494- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previouschapter" , "" ] ] ) . toString ( )
494+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previouschapter" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
495495 fetch ( url , {
496496 method : "GET" ,
497497 cache : "no-cache"
@@ -516,7 +516,7 @@ function navigatePreviousChapter (event) {
516516
517517function navigateNextChapter ( event ) {
518518 event . preventDefault ( ) ;
519- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextchapter" , "" ] ] ) . toString ( )
519+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextchapter" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
520520 fetch ( url , {
521521 method : "GET" ,
522522 cache : "no-cache"
@@ -541,7 +541,7 @@ function navigateNextChapter (event) {
541541
542542function navigatePreviousBook ( event ) {
543543 event . preventDefault ( ) ;
544- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previousbook" , "" ] ] ) . toString ( )
544+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "previousbook" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
545545 fetch ( url , {
546546 method : "GET" ,
547547 cache : "no-cache"
@@ -566,7 +566,7 @@ function navigatePreviousBook (event) {
566566
567567function navigateNextBook ( event ) {
568568 event . preventDefault ( ) ;
569- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextbook" , "" ] ] ) . toString ( )
569+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "nextbook" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
570570 fetch ( url , {
571571 method : "GET" ,
572572 cache : "no-cache"
@@ -681,7 +681,7 @@ function historyForward (event) {
681681 // After the long press event, if releasing the mouse, it will fire a click event.
682682 // Set a flag to not handle the click event.
683683 navigateForwardSkip = true ;
684- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "historyforward" , "" ] ] ) . toString ( )
684+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "historyforward" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
685685 fetch ( url , {
686686 method : "GET" ,
687687 cache : "no-cache"
@@ -709,7 +709,7 @@ function historyBack (event) {
709709 // After the long press event, if releasing the mouse, it will fire a click event.
710710 // Set a flag to not handle the click event.
711711 navigateBackSkip = true ;
712- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "historyback" , "" ] ] ) . toString ( )
712+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "historyback" , "" ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
713713 fetch ( url , {
714714 method : "GET" ,
715715 cache : "no-cache"
@@ -725,7 +725,7 @@ function historyBack (event) {
725725 navigatorContainer . insertAdjacentHTML ( 'beforeend' , response ) ;
726726 document . querySelectorAll ( "#applyhistory" ) . forEach ( ( element ) => {
727727 element . addEventListener ( "click" , applyHistory ) ;
728- } )
728+ } )
729729 } )
730730 . catch ( ( error ) => {
731731 console . log ( error ) ;
@@ -736,7 +736,7 @@ function historyBack (event) {
736736function applyHistory ( event ) {
737737 event . preventDefault ( ) ;
738738 if ( event . target . localName == "a" ) {
739- const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applyhistory" , event . target . id ] ] ) . toString ( )
739+ const url = "/navigation/update?" + new URLSearchParams ( [ [ "bible" , navigationBible ] , [ "applyhistory" , event . target . id ] , [ "focusgroup" , focusGroup ] ] ) . toString ( ) ;
740740 fetch ( url , {
741741 method : "GET" ,
742742 cache : "no-cache"
0 commit comments