Skip to content

Commit 829d0ed

Browse files
added amazon kindle link, fixed IE problems, fixed redirect problem
1 parent f8c7b21 commit 829d0ed

File tree

10 files changed

+203
-107
lines changed

10 files changed

+203
-107
lines changed

add_to_kindle_button.png

1.37 KB
Loading

amazon_rating_stars.png

386 Bytes
Loading

buy-bundle-bottom/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta http-equiv="Refresh" content="1; http://leanbundle.com/bundles/node" />
6+
<meta http-equiv="Refresh" content="1; url=http://leanbundle.com/bundles/node" />
77
<script type="text/javascript">
88
var _gaq = _gaq || [];
99
_gaq.push(['_setAccount', 'UA-2127388-6']);

buy-bundle/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta http-equiv="Refresh" content="1; http://leanbundle.com/bundles/node" />
6+
<meta http-equiv="Refresh" content="1; url=http://leanbundle.com/bundles/node" />
77
<script type="text/javascript">
88
var _gaq = _gaq || [];
99
_gaq.push(['_setAccount', 'UA-2127388-6']);

buy-chinese/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta http-equiv="Refresh" content="1; http://leanpub.com/nodebeginner-chinese" />
6+
<meta http-equiv="Refresh" content="1; url=http://leanpub.com/nodebeginner-chinese" />
77
<script type="text/javascript">
88
var _gaq = _gaq || [];
99
_gaq.push(['_setAccount', 'UA-2127388-6']);

buy-kindle/index.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
22
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4-
<head>
5-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta http-equiv="Refresh" content="1; http://www.amazon.com/The-Node-Beginner-Book-ebook/dp/B005T75AF4" />
7-
<script type="text/javascript">
8-
var _gaq = _gaq || [];
9-
_gaq.push(['_setAccount', 'UA-2127388-6']);
10-
_gaq.push(['_trackPageview']);
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<meta http-equiv="Refresh" content="1; url=http://www.amazon.com/gp/product/B005T75AF4/ref=as_li_tf_tl?ie=UTF8&tag=thenodbegboo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B005T75AF4" />
7+
<script type="text/javascript">
8+
var _gaq = _gaq || [];
9+
_gaq.push(['_setAccount', 'UA-2127388-6']);
10+
_gaq.push(['_trackPageview']);
1111

12-
(function() {
13-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
14-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
15-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
16-
})();
17-
</script>
18-
</head>
19-
<body>
20-
You are being redirected to <a href="http://www.amazon.com/The-Node-Beginner-Book-ebook/dp/B005T75AF4">The Node Beginner Book at Amazon's Kindle Store</a>...
21-
</body>
12+
(function() {
13+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
14+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
15+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
16+
})();
17+
</script>
18+
</head>
19+
<body>
20+
You are being redirected to <a href="http://www.amazon.com/gp/product/B005T75AF4/ref=as_li_tf_tl?ie=UTF8&tag=thenodbegboo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B005T75AF4">The Node Beginner Book at Amazon's Kindle Store</a>...
21+
</body>
2222
</html>

buy-kindle/reviews.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<meta http-equiv="Refresh" content="1; url=http://www.amazon.com/The-Node-Beginner-Book-ebook/product-reviews/B005T75AF4/ref=as_li_tf_tl?ie=UTF8&tag=thenodbegboo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B005T75AF4" />
7+
<script type="text/javascript">
8+
var _gaq = _gaq || [];
9+
_gaq.push(['_setAccount', 'UA-2127388-6']);
10+
_gaq.push(['_trackPageview']);
11+
12+
(function() {
13+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
14+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
15+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
16+
})();
17+
</script>
18+
</head>
19+
<body>
20+
You are being redirected to <a href="http://www.amazon.com/The-Node-Beginner-Book-ebook/product-reviews/B005T75AF4/ref=as_li_tf_tl?ie=UTF8&tag=thenodbegboo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=B005T75AF4">The Node Beginner Book at Amazon's Kindle Store</a>...
21+
</body>
22+
</html>

buy/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta http-equiv="Refresh" content="1; http://leanpub.com/nodebeginner" />
6+
<meta http-equiv="Refresh" content="1; url=http://leanpub.com/nodebeginner" />
77
<script type="text/javascript">
88
var _gaq = _gaq || [];
99
_gaq.push(['_setAccount', 'UA-2127388-6']);

default.css

+60-12
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ body {
6565
text-align: center;
6666
}
6767

68-
.buy-the-bundle, .buy-the-ebook, #translations {
68+
.buybox, .buy-the-bundle, .buy-kindle, #translations {
6969
font-family: "Helvetica Neue", sans-serif;
7070
font-size: 13px;
7171
color: #fff;
@@ -83,9 +83,8 @@ body {
8383
background-color: #555;
8484
}
8585

86-
.buy-the-ebook {
87-
color: #aaa;
88-
margin-top: -30px;
86+
#translations img {
87+
border: none;
8988
}
9089

9190
#translations td {
@@ -108,8 +107,62 @@ body {
108107
margin-right: 24px;
109108
}
110109

110+
.buybox {
111+
background: none;
112+
border: none;
113+
box-shadow: none;
114+
padding: 0;
115+
width: 769px;
116+
}
117+
118+
.buy-kindle {
119+
padding: 8px;
120+
display: inline-block;
121+
width: 154px;
122+
height: 189px;
123+
margin-left: 24px;
124+
}
125+
126+
.gecko .buy-kindle {
127+
height: 195px;
128+
}
129+
130+
.buy-kindle .inner {
131+
background-color: #fff;
132+
border-radius: 6px;
133+
padding: 4px;
134+
box-shadow: 0 0 6px #aaa inset;
135+
}
136+
137+
.buy-kindle .inner img {
138+
border: none;
139+
}
140+
141+
.buy-kindle .inner img.cover {
142+
border: 1px solid #999;
143+
margin-top: 16px;
144+
}
145+
146+
.buy-kindle .inner a {
147+
font-size: 10px;
148+
}
149+
150+
.buy-kindle .inner img.stars {
151+
padding-top: 2px;
152+
margin-bottom: -6px;
153+
}
154+
155+
.buy-kindle .inner img.button {
156+
padding-top: 10px;
157+
margin-bottom: 6px;
158+
}
159+
111160
.buy-the-bundle {
161+
float: left;
112162
padding-bottom: 20px;
163+
width: 510px;
164+
display: inline-block;
165+
margin: 0;
113166
}
114167

115168
.buy-the-bundle .cover {
@@ -130,7 +183,7 @@ body {
130183
}
131184

132185
.buy-the-bundle .description {
133-
width: 349px;
186+
width: 200px;
134187
display: table-cell;
135188
padding-right: 16px;
136189
padding-left: 16px;
@@ -176,11 +229,6 @@ body {
176229
text-shadow: 0.1em 0.1em #666;
177230
}
178231

179-
.buy-the-ebook a {
180-
text-decoration: underline;
181-
color: #ddd;
182-
}
183-
184232
#donate p {
185233
font-family: "Helvetica Neue", sans-serif;
186234
text-align: center;
@@ -417,7 +465,7 @@ li.L1, li.L3, li.L5, li.L7, li.L9 {
417465
border: none;
418466
}
419467

420-
.buy-the-bundle, .buy-the-ebook, #forkmeongithub, #praise, #adsense, #social {
468+
.buy-the-bundle, .buy-kindle, #forkmeongithub, #praise, #adsense, #social {
421469
display: none;
422470
}
423471

@@ -456,7 +504,7 @@ li.L1, li.L3, li.L5, li.L7, li.L9 {
456504
display: none;
457505
}
458506

459-
.buy-the-bundle, .buy-the-ebook {
507+
.buy-the-bundle, .buy-kindle {
460508
display: none;
461509
}
462510

0 commit comments

Comments
 (0)