-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (157 loc) · 4.64 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Meditation Minutes</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<style>
body {
font-family: Verdana, sans-serif;
padding:0;
margin: 0;
color: #222;
background-image:none;
}
.container {
margin: auto;
padding: 0 50px 0 50px;
max-width: 400px;
min-width: 250px;
}
.splash {
border-radius: 1em;
height:300px;
background-size:cover;
background-image: url(background-400x300.jpg);
background-repeat: no-repeat;
}
.teaching {
/* common */
text-align: left;
/* low res only */
color: #555;
font-size: 16px;
}
.header {
width:100%;
}
h1 {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-weight: 200;
font-size: 22px;
color:#000;
}
a, a:visited, a:active {
color: #000;
font-weight: 200;
text-decoration: none;
}
ul {
list-style: none;
}
#invisiblehd {
background-image: url(background-400x300.jpg);
display:none;
}
@media screen and (min-width: 700px) {
body {
background-image: url(background-400x300.jpg);
background-size:cover;
background-attachment: fixed;
background-repeat: no-repeat;
}
.splash {
background-image: none;
display:none;
}
h1 {
font-size: 32px;
}
#invisiblehd {
background-image: url(background.jpg);
}
.container {
margin: 50px;
}
.teaching {
position: absolute;
right:50px;
width: 30em;
border-radius: 1em;
background: rgba(24,24,24,0.6);
color: #aaa;
font-size: 14px;
text-align: justify;
text-justify: distribute;
padding: 1em;
}
a, a:visited, a:active {
color: #fff;
font-weight: 200;
text-decoration: none;
}
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<html>
<body class="image">
<div class="container">
<h1>meditation minutes</h1>
<div class="splash image"> </div>
<div class="teaching">
<p/>I teach <a href="https://siyli.org/">
Search Inside Yourself</a>, a mindfulness-based
emotional-intelligence and leadership course developed at Google.
<p/>I taught SIY to over 200 of my coworkers while I was an engineer
at Google - in Mountain View, Tokyo, London, and Dublin.
<p/>Teaching mindfulness is a hobby and a passion. Since leaving Google I
have continued to teach executives across a variety of industries including
consulting, retail, and manufacturing.
<a href="mailto:[email protected]">Email me</a> if you think I'd
be a good fit to bring this content to your organization.
<p/>I <a href="http://blog.meditationminutes.net">
write</a> often about meditation and I occasionally make
<a href="https://www.youtube.com/channel/UCEj1aX-5O7Ug8d2rf6dSNMg">videos</a>
when I have some extra time. I also have some guided meditations (
<a href="https://soundcloud.com/meditationminutes/sets">soundcloud</a>,
<a href="https://itunes.apple.com/us/podcast/meditation-minutes-three-week/id1155877772?mt=2">iTunes</a>).
<p/>Aside from teaching, I'm an entrepreneur, investor,
and engineer. You can find out more about me on
<a href="https://www.linkedin.com/in/hemantbhanoo" >linkedin</a>.
</div>
<img id="invisiblehd"></img>
<script>
var setimage = function() {
var altimage = $("#invisiblehd").css("background-image");
$(".image").each(function() {
if ($(this).css("background-repeat") == "no-repeat") {
$(this).css({"background-image" : altimage});
} else {
$(this).css({"background-image" : "none"});
}
});
};
$("<img>").load(function() {
$(window).resize(setimage);
setimage();
}).attr('src', function() {
var imgurl = $("#invisiblehd").css('background-image');
console.log("imgurl [" + imgurl + ']');
imgurl = imgurl.substring(4, imgurl.length - 1);
if(imgurl[0] == '"' && imgurl[imgurl.length - 1] == '"') {
imgurl = imgurl.substring(1, imgurl.length - 1);
}
console.log("imgurl [" + imgurl + ']');
return imgurl;
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72546823-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>