-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscourses.html
More file actions
169 lines (145 loc) · 13.1 KB
/
discourses.html
File metadata and controls
169 lines (145 loc) · 13.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#F0F5FF" id="meta-theme-color">
<link rel="manifest" href="/site.webmanifest">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#F0F5FF" id="meta-ms-nav-color">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" id="meta-apple-status-style">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Android Chrome on Lollipop and later -->
<meta name="mobile-web-app-capable" content="yes">
<title>OSHORead – Read & Listen to Osho's Discourses (Hindi & English)</title>
<meta name="description" content="OSHORead is a minimal, open-source web app to read and listen to Osho's discourses in Hindi and English. Featuring an advanced reader with distraction-free UI.">
<meta name="keywords" content="Osho, OSHORead, Osho discourses, Hindi Osho books, English Osho books, Osho audiobook, Osho quotes, meditation, spiritual books, osho online reading">
<meta name="author" content="Osho">
<meta property="og:title" content="OSHORead – Read & Listen to Osho's Discourses">
<meta property="og:description" content="Minimal open-source app to explore Osho's spiritual teachings in Hindi and English. Read or listen with a distraction-free interface.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://oshoread.netlify.app">
<meta property="og:image" content="https://oshoread.netlify.app/og-image.png"> <!-- Replace with actual preview image URL -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sahitya:wght@400;700&display=swap" rel="stylesheet">
<!-- Standard Favicon -->
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<!-- PNG Favicons -->
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<!-- Apple Touch Icon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<!-- Android/Chrome Icons -->
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">
<!-- Custom Styles -->
<link rel="stylesheet" href="/style.css?version=1">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MDXGZJ54HC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MDXGZJ54HC');
</script>
</head>
<body>
<nav>
<a class="logo" href="/index.html">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 1024 1024" fill="currentColor">
<g>
<path fill="currentColor" d="M 483.18 921.50 C467.60,891.00 455.12,865.62 455.44,865.10 C456.18,863.90 470.94,860.43 484.21,858.34 C498.68,856.05 529.02,856.04 543.50,858.31 C554.53,860.04 568.67,863.33 569.77,864.44 C570.09,864.76 567.26,870.98 563.47,878.26 C559.69,885.54 552.29,899.83 547.04,910.02 C541.79,920.21 531.88,939.44 525.01,952.77 C518.13,966.10 512.28,976.99 512.01,976.98 C511.73,976.96 498.75,952.00 483.18,921.50 ZM 564.12 857.30 C540.21,849.72 503.06,849.05 466.03,855.53 C458.62,856.83 452.46,857.79 452.33,857.66 C451.87,857.20 447.74,836.77 432.00,757.00 C413.18,661.71 387.25,530.39 375.99,473.50 C371.64,451.50 365.35,419.55 362.01,402.50 C358.66,385.45 355.67,370.21 355.36,368.64 L 354.79 365.78 L 360.15 366.52 C385.48,369.98 407.62,385.59 418.63,407.75 C420.06,410.64 421.31,413.00 421.40,413.00 C421.49,413.00 426.73,409.61 433.03,405.47 C462.67,386.00 485.73,377.94 511.94,377.88 C537.94,377.82 563.15,386.47 590.76,404.92 L 602.80 412.97 L 615.20 400.70 C628.76,387.29 641.90,376.88 652.00,371.57 C658.43,368.19 667.59,365.26 668.60,366.26 C669.06,366.72 660.56,410.52 618.50,624.50 C606.62,684.96 593.44,752.11 580.44,818.50 C576.24,839.95 572.51,857.98 572.15,858.57 C571.71,859.30 569.11,858.88 564.12,857.30 ZM 538.91 444.02 C549.33,441.89 559.70,438.59 567.39,434.96 L 572.28 432.65 L 570.00 430.80 C566.06,427.61 551.81,420.31 544.35,417.66 C523.57,410.27 501.45,410.21 480.09,417.47 C472.37,420.10 458.86,426.94 454.44,430.47 L 451.73 432.63 L 461.61 436.43 C473.84,441.12 487.89,444.75 498.46,445.96 C509.53,447.22 527.43,446.36 538.91,444.02 ZM 434.47 825.81 C430.99,815.26 421.36,793.31 414.81,781.00 C389.89,734.19 355.34,689.24 307.55,641.46 C260.06,593.98 205.48,549.58 146.00,510.04 C135.82,503.28 127.07,497.36 126.55,496.87 C126.01,496.37 176.72,496.00 244.83,496.00 C339.35,496.00 364.14,496.26 364.44,497.25 C364.65,497.94 368.72,516.50 373.49,538.50 C378.25,560.50 385.69,594.70 390.02,614.50 C394.35,634.30 406.49,689.88 416.99,738.00 C427.49,786.12 436.54,827.23 437.10,829.35 C439.03,836.59 437.21,834.14 434.47,825.81 ZM 585.58 830.50 C585.91,828.85 589.49,812.42 593.52,794.00 C597.56,775.58 612.36,707.85 626.41,643.50 C640.47,579.15 653.44,519.75 655.25,511.50 L 658.53 496.50 L 777.26 496.25 C842.57,496.11 896.00,496.33 896.00,496.75 C896.00,497.16 891.39,500.43 885.75,504.00 C872.14,512.63 845.15,531.56 826.01,545.90 C731.85,616.45 656.96,695.08 615.94,766.50 C607.48,781.22 595.06,807.17 590.57,819.50 C586.17,831.59 584.68,834.87 585.58,830.50 ZM 354.58 361.86 C352.48,349.00 350.79,329.65 350.32,313.00 C348.73,257.36 362.95,212.99 392.54,181.20 C420.17,151.51 459.76,134.16 504.00,132.35 C578.24,129.31 639.21,167.48 662.96,231.88 C671.00,253.70 674.41,276.32 674.29,307.00 C674.21,327.94 671.44,360.86 669.50,364.00 C668.53,365.57 653.89,365.18 648.79,363.45 C635.98,359.08 628.09,343.93 628.00,323.50 C627.96,314.03 624.95,300.07 620.69,289.62 C606.05,253.72 558.28,225.63 512.00,225.72 C479.92,225.79 444.84,240.20 422.59,262.45 C405.82,279.21 399.12,295.03 396.53,324.00 C394.95,341.70 393.27,347.80 388.14,354.53 C382.60,361.77 376.76,364.36 364.84,364.84 L 355.13 365.23 L 354.58 361.86 Z" />
</g>
</svg>
OSHORead</a>
<ul class="menu">
<li><a href="contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
<li><a href="privacy-policy.html">Privacy Policy</a></li>
<div class="smol-grid">
<li>
<a href="https://discord.gg/EnQA8eRsbw">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"/></svg>
</a>
</li>
<li>
<a href="https://t.me/oshoread">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38" stroke-width="0.2" stroke="currentColor"/></svg>
</a>
</li>
<li>
<a href="https://github.com/oshoapp">
<!--Tab to edit-->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"/></svg>
</a>
</li>
<li onclick="toggleTheme()">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M12 19a1 1 0 0 1 .993.883L13 20v1a1 1 0 0 1-1.993.117L11 21v-1a1 1 0 0 1 1-1m6.313-2.09l.094.083l.7.7a1 1 0 0 1-1.32 1.497l-.094-.083l-.7-.7a1 1 0 0 1 1.218-1.567zm-11.306.083a1 1 0 0 1 .083 1.32l-.083.094l-.7.7a1 1 0 0 1-1.497-1.32l.083-.094l.7-.7a1 1 0 0 1 1.414 0M4 11a1 1 0 0 1 .117 1.993L4 13H3a1 1 0 0 1-.117-1.993L3 11zm17 0a1 1 0 0 1 .117 1.993L21 13h-1a1 1 0 0 1-.117-1.993L20 11zM6.213 4.81l.094.083l.7.7a1 1 0 0 1-1.32 1.497l-.094-.083l-.7-.7A1 1 0 0 1 6.11 4.74zm12.894.083a1 1 0 0 1 .083 1.32l-.083.094l-.7.7a1 1 0 0 1-1.497-1.32l.083-.094l.7-.7a1 1 0 0 1 1.414 0M12 2a1 1 0 0 1 .993.883L13 3v1a1 1 0 0 1-1.993.117L11 4V3a1 1 0 0 1 1-1m0 5a5 5 0 1 1-4.995 5.217L7 12l.005-.217A5 5 0 0 1 12 7"/></svg>
</li>
</div>
</ul>
<a href="https://discord.gg/EnQA8eRsbw" class="hamburger">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M4 18q-.425 0-.712-.288T3 17t.288-.712T4 16h16q.425 0 .713.288T21 17t-.288.713T20 18zm0-5q-.425 0-.712-.288T3 12t.288-.712T4 11h16q.425 0 .713.288T21 12t-.288.713T20 13zm0-5q-.425 0-.712-.288T3 7t.288-.712T4 6h16q.425 0 .713.288T21 7t-.288.713T20 8z"/></svg>
</a>
</nav>
<div class="loader" style="padding: 1rem;"></div>
<div class="grid">
</div>
<script>
const grid = document.querySelector('.grid');
const loader = document.querySelector('.loader');
// Get URL param ?slug=...
// const urlParams = new URLSearchParams(window.location.search);
// const slug = urlParams.get('slug');
// if (!slug) {
// loader.innerText = 'No slug found in URL.';
// throw new Error('Missing slug param.');
// }
let slug;
// 1) Check if we have query param style (?slug=...)
const params = new URLSearchParams(window.location.search);
if (params.has("slug")) {
slug = params.get("slug");
} else {
// 2) Otherwise, extract it from the path (/discourse/slug-name)
const pathParts = window.location.pathname.split("/");
// Example: ["", "discourse", "adhyatam-upanishad-01"]
if (pathParts[1] === "discourses" && pathParts[2]) {
slug = pathParts[2];
}
}
// Fetch the JSON using slug
fetch(`https://extremekrish.github.io/osho/discourses/${encodeURIComponent(slug)}.json`)
.then(res => {
if (!res.ok) throw new Error('Fetch failed.');
return res.json();
})
.then(data => {
loader.style.display = 'none';
data.forEach((item, index) => {
const a = document.createElement('a');
a.classList.add('item');
a.href = `/discourse/${encodeURIComponent(item.slug)}`;
a.style.setProperty("--i", index);
const h1 = document.createElement('h1');
h1.innerText = item.title;
const span = document.createElement('span');
span.innerHTML = item.duration + '<a href="https://oshoworld.com' + item.file + '" download><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.4" d="m3.25 13.25h9m-8.5-6.5 4 3.5 4-3.5m-4-5v8.5"/></svg></a>';
span.innerHTML += '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M6.906 4.537A.6.6 0 0 0 6 5.053v13.894a.6.6 0 0 0 .906.516l11.723-6.947a.6.6 0 0 0 0-1.032z"/></svg>';
a.appendChild(h1);
a.appendChild(span);
grid.appendChild(a);
});
})
.catch(err => {
loader.innerText = 'Failed to load discourses.';
console.error('Error:', err);
});
</script>
<script src="/settings.js?version=1"></script>
</body>
</html>