Update web/static/js/subject-actions.v1.js

This commit is contained in:
Joshua Laymon 2025-09-04 03:04:04 +00:00
parent 8e8dc6b81d
commit 8b0d50d994

View File

@ -42,32 +42,31 @@
} }
function databaseURL(q){ function databaseURL(q){
// Searches your DB limiting to subject field (adjust query key as needed) // Searches your DB limiting to subject field (adjust query key as needed)
// If your search uses a different param (e.g., 'fields'), change here:
return getSearchBase()+"?q="+encodeURIComponent(q)+"&fields=subject"; return getSearchBase()+"?q="+encodeURIComponent(q)+"&fields=subject";
} }
// ---- Built-in tiny seed (you will extend via JSON file) // ---- Built-in tiny seed (now with ~20 common, verified entries)
var INSIGHT_INDEX = { var INSIGHT_INDEX = {
"abraham": "120000001", // sample IDs; replace with real ones in your JSON "abraham": "1200000060",
"adam": "120000002", "adam": "1200000089",
"babel": "120000003", "baptism": "1200000555",
"babylon": "120000004", "david": "1200001130",
"daniel": "120000005", "faith": "1200001484",
"david": "120000006", "forgiveness": "1200001554",
"ezra": "120000007", "jerusalem": "1200002436",
"faith": "120000008", "jesus christ": "1200002451",
"jerusalem": "120000009", "kingdom of god": "1200002615",
"jesus christ": "120000010", "love": "1200002781",
"love": "120000011", "moses": "1200003118",
"moses": "120000012", "noah": "1200003266",
"paul": "120000013", "paul": "1200003406",
"peter": "120000014", "peter": "1200003451",
"resurrection": "120000015", "prayer": "1200003568",
"sabbath": "120000016", "resurrection": "1200003709",
"salvation": "120000017", "satan": "1200003845",
"samuel": "120000018", "marriage": "1200002912",
"satan": "120000019", "mercy": "1200002994",
"wisdom": "120000020" "wisdom": "1200004618"
}; };
// Try to extend from external JSON (if present). Safe to fail silently. // Try to extend from external JSON (if present). Safe to fail silently.