-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathheader.html
More file actions
184 lines (149 loc) · 5.78 KB
/
header.html
File metadata and controls
184 lines (149 loc) · 5.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W44SDDB');</script>
<!-- End Google Tag Manager -->
<meta
name="viewport" content="width=device-width, initial-scale=1">
<style>
:root {
--bg: initial;
--text: #121212;
--opacity: 1;
--link: #3a4fd3;
--link-visited: #0a0068;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #121212;
--text: white;
--opacity: 0.87;
--link: #5d6edf;
--link-visited: rgb(129, 140, 216);
}
}
:root[data-theme="dark"] {
--bg: #121212;
--text: white;
--opacity: 0.87;
--link: #5d6edf;
--link-visited: rgb(129, 140, 216);
}
body {
margin: 40px auto;
max-width: 50vw;
font-size: 1.2em;
background-color: var(--bg);
color: var(--text);
opacity: var(--opacity);
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
/* This is the dangerous one in WebKit, as it breaks things wherever */
word-break: break-all;
/* Instead use this non-standard one: */
word-break: break-word;
}
p {
margin-bottom: 1.2em;
line-height: 1.4;
}
li {
line-height: 1.4;
margin-bottom: .1em;
}
h1 {
margin-top: 1em;
}
a:link {
color: var(--link);
}
a:visited, a:hover {
color: var(--link-visited);
}
#darkmode {
position: fixed;
top: 2%;
right: 2%;
}
/* When the browser is at least 600px and above */
@media screen and (max-width: 1024px) {
body {
max-width: 90vw;
}
}
.paypal-button {
position: fixed;
top: 2%; /* Adjust the distance from the top as needed */
left: 2%; /* Adjust the distance from the left as needed */
z-index: 1000; /* Ensures the button stays on top of other elements */
@media print {
body {
max-width: inherit;
padding: 2em;
}
#darkmode,
.paypal-button,
.paypal-button + ul
{
display: none;
}
}
}
</style>
<title>
Meditation from Cold Start to Complete Mastery
</title>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W44SDDB"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<button id="darkmode">dark</button>
<script>
var toggle = document.querySelector("#darkmode");
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)');
function isDark() {
var theme = document.documentElement.dataset.theme;
if (theme) return theme === "dark";
return prefersDark.matches;
}
toggle.textContent = isDark() ? "light" : "dark";
toggle.onclick = function() {
document.documentElement.dataset.theme = isDark() ? "light" : "dark";
this.textContent = isDark() ? "light" : "dark";
};
prefersDark.addEventListener('change', function() {
delete document.documentElement.dataset.theme;
toggle.textContent = isDark() ? "light" : "dark";
});
</script>
<div class="paypal-button">
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="T25H5ZWDJD48Q" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
</div>
<ul>
<li> <a href="#quick-start-guide"> Jump to Quick Start Guide</a> </li>
<li> <a href="#full-table-of-contents">Jump to Full Table of Contents</a> </li>
</ul>
<hr>
(scroll down past the notes for the book title and front matter)
</br></br>
<em><strong>Note:</strong> This website is a single, very long page, and it can take a few seconds to load. If you arrived via a URL that has an anchor link on the end, like "<strong>/#132c</strong>", then make sure you wait and/or refresh, to make sure that you get jumped to the beginning of the intended section of the document. </em>
</br></br>
<em><strong>Note:</strong> <a href="https://github.com/meditationstuff/protocol_1/commits/master">Click here to see what's recently changed!</a></em>
</br></br>
<em><strong>Note:</strong> This whole book is a single, static webpage, with no external resources, which you're reading right now. Save a local copy with a single command-s or ctrl-s! For better functioning internal links use (from command line): wget -m https://meditationbook.page </em>
</br></br>
<span id="work-in-progress-note"></span> <em><strong>Note:</strong> This book is a versioned, long-term work-in-progress, a living document. It’s very "useably complete," and/but there are typos, rough patches, risks, and uncertainties; and, improvements, rewrites, refactorings, and additions continue to happen.</em>
<hr>