-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
449 lines (416 loc) · 16.1 KB
/
index.html
File metadata and controls
449 lines (416 loc) · 16.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bible Split View</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: black;
color: white;
height: 100vh;
overflow: hidden;
}
nav {
width: 100%;
background: #0b0b0b;
backdrop-filter: blur(15px);
padding: 15px 25px;
position: fixed;
top: 0;
left: 0;
border-bottom: 1px solid #333;
z-index: 10;
display: flex;
justify-content: space-between;
align-items: center;
}
button {
padding: 8px 18px;
border: none;
background: #333;
border-radius: 6px;
color: white;
cursor: pointer;
}
button:hover {
background: #111;
}
.wrapper {
display: flex;
height: 100vh;
position: relative;
margin-top: 60px;
}
.panel {
flex: 1 1 auto;
display: flex;
flex-direction: column;
background: #101010bb;
backdrop-filter: blur(25px);
min-width: 100px;
overflow: hidden;
}
.tabbar {
background: #1a1a1acc;
border-bottom: 1px solid #333;
padding: 10px;
display: flex;
gap: 10px;
flex-shrink: 0;
}
.tab {
padding: 8px 14px;
background: #222;
border-radius: 12px 12px 0 0;
}
.tab.active {
background: #333;
}
.search-bar {
position: sticky;
top: 0;
z-index: 5;
margin: 0 10px 10px 10px;
padding: 8px;
border-radius: 6px;
border: none;
width: calc(100% - 20px);
background: #222;
color: white;
flex-shrink: 0;
}
.scroll-content {
overflow-y: auto;
padding: 0 20px 80px 20px;
flex: 1;
}
.scroll-content h2 {
margin-top: 20px;
}
.scroll-content p {
margin-bottom: 16px;
line-height: 1.6;
}
.book {
margin-bottom: 30px;
}
.divider {
width: 6px;
cursor: col-resize;
background: #444;
z-index: 10;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
background: #0b0b0b;
padding: 12px;
border-top: 1px solid #333;
}
</style>
</head>
<body>
<nav>
<h2>Bible Split View</h2>
<button id="swapBtn">Swap Panels</button>
</nav>
<div class="wrapper" id="wrapper">
<!-- LEFT PANEL -->
<div class="panel left" id="leftPanel">
<div class="tabbar">
<div class="tab active">Old Testament</div>
</div>
<input type="text" class="search-bar" id="searchOld" placeholder="Search Old Testament...">
<div class="scroll-content" id="oldContent"></div>
</div>
<!-- Divider -->
<div class="divider" id="divider"></div>
<!-- RIGHT PANEL -->
<div class="panel right" id="rightPanel">
<div class="tabbar">
<div class="tab active">New Testament</div>
</div>
<input type="text" class="search-bar" id="searchNew" placeholder="Search New Testament...">
<div class="scroll-content" id="newContent"></div>
</div>
</div>
<footer>
Scroll independently • Divider draggable • Unlimited swaps
</footer>
<script>
// ===============================
// Old Testament (39 books)
const oldTestament = [{
book: "Genesis",
summary: ["Creation, fall, flood, patriarchs, covenant with Abraham, Joseph’s story."]
}, {
book: "Exodus",
summary: ["Israel’s deliverance from Egypt, Sinai covenant, Ten Commandments, tabernacle instructions."]
}, {
book: "Leviticus",
summary: ["Laws of holiness, sacrifices, priestly duties, ritual purity, moral guidance."]
}, {
book: "Numbers",
summary: ["Wilderness journey, censuses, rebellion, God’s provision, tribal organization."]
}, {
book: "Deuteronomy",
summary: ["Moses’ farewell speeches, covenant reminders, blessings and curses, obedience to God."]
}, {
book: "Joshua",
summary: ["Conquest of Canaan, division of land, covenant renewal, faithfulness required."]
}, {
book: "Judges",
summary: ["Cycles of sin and deliverance, leadership of judges, Israel’s moral decline."]
}, {
book: "Ruth",
summary: ["Faithfulness, loyalty, God’s providence, lineage of David."]
}, {
book: "1 Samuel",
summary: ["Samuel, Saul’s kingship, David’s rise, God’s guidance, obedience vs rebellion."]
}, {
book: "2 Samuel",
summary: ["David’s reign, victories, sins, covenant with God, kingdom consolidation."]
}, {
book: "1 Kings",
summary: ["Solomon’s reign, temple built, wisdom, divided kingdom, kings’ failures."]
}, {
book: "2 Kings",
summary: ["History of Israel and Judah, prophets, exile, faithfulness consequences."]
}, {
book: "1 Chronicles",
summary: ["Genealogies, David’s reign, temple preparations, worship instructions."]
}, {
book: "2 Chronicles",
summary: ["Solomon’s reign, temple dedication, kings of Judah, exile warnings."]
}, {
book: "Ezra",
summary: ["Return from exile, rebuilding temple, restoring worship, covenant renewal."]
}, {
book: "Nehemiah",
summary: ["Rebuilding Jerusalem walls, reforms, social and religious restoration."]
}, {
book: "Esther",
summary: ["Providence, courage, deliverance of Jews in Persia, God’s protection."]
}, {
book: "Job",
summary: ["Suffering, faith, dialogue on God’s justice, perseverance."]
}, {
book: "Psalms",
summary: ["Prayers, hymns, worship, lament, praise, expressions of faith."]
}, {
book: "Proverbs",
summary: ["Wisdom sayings, moral guidance, practical life instructions."]
}, {
book: "Ecclesiastes",
summary: ["Life’s meaning, vanity, fear of God, purpose in human endeavors."]
}, {
book: "Song of Solomon",
summary: ["Love poetry, beauty, intimacy, allegory of God’s love."]
}, {
book: "Isaiah",
summary: ["Prophecies of judgment and salvation, Messiah promises, God’s sovereignty."]
}, {
book: "Jeremiah",
summary: ["Warnings to Judah, call to repentance, suffering prophet, hope for restoration."]
}, {
book: "Lamentations",
summary: ["Mourning Jerusalem’s destruction, God’s judgment, mercy in suffering."]
}, {
book: "Ezekiel",
summary: ["Prophecies during exile, visions, restoration, God’s glory."]
}, {
book: "Daniel",
summary: ["Faithfulness in exile, visions of God’s kingdom, prophecy of nations."]
}, {
book: "Hosea",
summary: ["God’s love vs Israel’s unfaithfulness, call to repentance."]
}, {
book: "Joel",
summary: ["Day of the Lord, repentance, outpouring of God’s Spirit."]
}, {
book: "Amos",
summary: ["Social justice, God’s judgment, call for righteousness."]
}, {
book: "Obadiah",
summary: ["Judgment of Edom, God’s sovereignty, restoration of Israel."]
}, {
book: "Jonah",
summary: ["God’s mercy, prophet’s reluctance, Nineveh’s repentance."]
}, {
book: "Micah",
summary: ["Judgment, hope, Messiah prophecy, justice and mercy."]
}, {
book: "Nahum",
summary: ["Judgment on Nineveh, God’s justice and power."]
}, {
book: "Habakkuk",
summary: ["Questioning God’s justice, faith, and trust in divine plan."]
}, {
book: "Zephaniah",
summary: ["Day of the Lord, judgment, call to humility and seek God."]
}, {
book: "Haggai",
summary: ["Encouragement to rebuild temple, obedience, God’s blessing."]
}, {
book: "Zechariah",
summary: ["Prophecies of restoration, Messiah, encouragement for God’s people."]
}, {
book: "Malachi",
summary: ["Call to faithfulness, warnings, promise of coming Messiah."]
}];
// ===============================
// New Testament (27 books)
const newTestament = [{
book: "Matthew",
summary: ["Jesus as Messiah, teachings, miracles, kingdom of heaven, Great Commission."]
}, {
book: "Mark",
summary: ["Concise ministry of Jesus, suffering servant, miracles, discipleship."]
}, {
book: "Luke",
summary: ["Jesus’ compassion, inclusivity, parables, prayer, salvation for all."]
}, {
book: "John",
summary: ["Jesus’ divinity, signs, love, eternal life, abiding in Christ."]
}, {
book: "Acts",
summary: ["Early church, Holy Spirit, missionary journeys, spreading the Gospel."]
}, {
book: "Romans",
summary: ["Salvation by faith, sin, grace, justification, Christian living."]
}, {
book: "1 Corinthians",
summary: ["Church divisions, love, spiritual gifts, resurrection, Christian conduct."]
}, {
book: "2 Corinthians",
summary: ["Paul’s ministry defense, comfort, generosity, strength in weakness."]
}, {
book: "Galatians",
summary: ["Freedom from law, justification by faith, fruit of the Spirit."]
}, {
book: "Ephesians",
summary: ["Church as body of Christ, unity, blessings, spiritual growth, relationships."]
}, {
book: "Philippians",
summary: ["Joy, humility, unity, contentment, living worthy of the gospel."]
}, {
book: "Colossians",
summary: ["Christ’s supremacy, warnings against false teaching, holy living."]
}, {
book: "1 Thessalonians",
summary: ["Encouragement, Christ’s return, holy living, hope."]
}, {
book: "2 Thessalonians",
summary: ["Clarifying end times, faithfulness, avoiding idleness."]
}, {
book: "1 Timothy",
summary: ["Church leadership, elders, deacons, sound teaching, godliness."]
}, {
book: "2 Timothy",
summary: ["Endure hardships, Scripture’s usefulness, perseverance, courage."]
}, {
book: "Titus",
summary: ["Church leadership, sound teaching, good works, integrity."]
}, {
book: "Philemon",
summary: ["Forgiveness, reconciliation, mercy, Christian fellowship."]
}, {
book: "Hebrews",
summary: ["Christ superior, faith, endurance, ultimate salvation plan."]
}, {
book: "James",
summary: ["Practical faith, works, wisdom, patience, integrity."]
}, {
book: "1 Peter",
summary: ["Encouragement under persecution, holiness, perseverance, trust."]
}, {
book: "2 Peter",
summary: ["Warnings against false teachers, spiritual growth, discernment."]
}, {
book: "1 John",
summary: ["Love, obedience, fellowship, assurance of salvation."]
}, {
book: "2 John",
summary: ["Faithfulness, walking in truth, love, discernment."]
}, {
book: "3 John",
summary: ["Hospitality, support for teachers, integrity, Christian fellowship."]
}, {
book: "Jude",
summary: ["Warnings against ungodliness, contend for faith, persevere."]
}, {
book: "Revelation",
summary: ["Visions of Christ, end times, God’s victory, hope, endurance."]
}];
// ===============================
// Render content
// ===============================
function renderOldContent() {
const oldDiv = document.getElementById("oldContent");
oldDiv.innerHTML = oldTestament.map(b => `<div class="book"><h2>${b.book}</h2>${b.summary.map(p=>`<p>${p}</p>`).join('')}</div>`).join('');
}
function renderNewContent(){
const newDiv = document.getElementById("newContent");
newDiv.innerHTML = newTestament.map(b=>`<div class="book"><h2>${b.book}</h2>${b.summary.map(p=>`<p>${p}</p>`).join('')}</div>`).join('');
}
renderOldContent();
renderNewContent();
// ===============================
// Search functionality
// ===============================
function setupSearch(searchInputId, contentId, booksArray){
const searchInput = document.getElementById(searchInputId);
const contentDiv = document.getElementById(contentId);
searchInput.addEventListener('input', e=>{
const q = e.target.value.toLowerCase();
const bookDivs = contentDiv.querySelectorAll('.book');
bookDivs.forEach((div,i)=>{
const book = booksArray[i];
const visible = book.book.toLowerCase().includes(q) || book.summary.some(p=>p.toLowerCase().includes(q));
div.style.display = visible ? 'block' : 'none';
});
});
}
setupSearch('searchOld','oldContent',oldTestament);
setupSearch('searchNew','newContent',newTestament);
// ===============================
// Draggable divider
// ===============================
const divider = document.getElementById('divider');
let isDragging=false;
divider.addEventListener('mousedown',()=>{isDragging=true;document.body.style.cursor='col-resize';});
document.addEventListener('mouseup',()=>{isDragging=false;document.body.style.cursor='default';});
document.addEventListener('mousemove',e=>{
if(!isDragging) return;
const rect = document.getElementById('wrapper').getBoundingClientRect();
let percent = (e.clientX - rect.left)/rect.width*100;
if(percent<10) percent=10;
if(percent>90) percent=90;
document.getElementById('leftPanel').style.flex=`0 0 ${percent}%`;
document.getElementById('rightPanel').style.flex=`0 0 ${100-percent}%`;
});
// ===============================
// Swap panels
// ===============================
const wrapperEl = document.getElementById('wrapper');
const leftPanel = document.getElementById('leftPanel');
const rightPanel = document.getElementById('rightPanel');
document.getElementById('swapBtn').addEventListener('click',()=>{
if(wrapperEl.firstElementChild===leftPanel){
wrapperEl.insertBefore(rightPanel,leftPanel);
} else {
wrapperEl.insertBefore(leftPanel,rightPanel);
}
});
</script>
</body>
</html>