Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit 8f07b53

Browse files
committed
update index.html
1 parent d20a729 commit 8f07b53

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

public/index.html

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@
9898
.contents {
9999
margin: 0 30px;
100100
}
101+
102+
.fb-like {
103+
width: 52px !important;
104+
margin: 0 26px 0 0;
105+
padding: 0;
106+
position: relative;
107+
display: inline-block;
108+
top: -3px;
109+
}
101110
</style>
102111
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
103112

@@ -122,16 +131,19 @@ <h3 class="muted">html2pdf.it - HTML5, CSS3 and JavaScript supported.</h3>
122131
<h1>Web pages as PDF</h1>
123132

124133
<div id="fb-root"></div>
125-
<script>(function (d, s, id) {
126-
if (document.location.href.indexOf("html2pdf.it") !== -1) {
127-
var js, fjs = d.getElementsByTagName(s)[0];
128-
if (d.getElementById(id)) return;
129-
js = d.createElement(s);
130-
js.id = id;
131-
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=253053011377188";
132-
fjs.parentNode.insertBefore(js, fjs);
133-
}
134-
}(document, 'script', 'facebook-jssdk'));</script>
134+
<script>
135+
var loadSocial = false;
136+
(function (d, s, id) {
137+
if (loadSocial || document.location.href.indexOf("html2pdf.it") !== -1) {
138+
var js, fjs = d.getElementsByTagName(s)[0];
139+
if (d.getElementById(id)) return;
140+
js = d.createElement(s);
141+
js.id = id;
142+
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=253053011377188";
143+
fjs.parentNode.insertBefore(js, fjs);
144+
}
145+
}(document, 'script', 'facebook-jssdk'));
146+
</script>
135147
<script type="text/javascript" src="/js/spin.min.js"></script>
136148
<script type="text/javascript">
137149
function spinme() {
@@ -272,18 +284,16 @@ <h4>Contact?</h4>
272284

273285

274286
<hr>
275-
<div class="row-fluid">
287+
<div>
276288

277289

278-
<div class="span6">
279-
<div class="fb-like-box" data-href="http://www.facebook.com/html2pdf.it" data-width="200" data-height="100"
280-
data-show-faces="false" data-stream="false" data-header="false"></div>
281-
</div>
282-
<div class="span6">
290+
<div class="">
291+
<div class="fb-like" data-href="http://www.facebook.com/html2pdf.it" data-send='false'
292+
data-layout='button_count' data-width='52' data-show-faces='false'></div>
283293
<a href="https://twitter.com/html2pdfit" class="twitter-follow-button" data-show-count="false"
284294
data-size="large">Follow @html2pdfit</a>
285295
<script>
286-
if (document.location.href.indexOf("html2pdf.it") !== -1) {
296+
if (loadSocial || document.location.href.indexOf("html2pdf.it") !== -1) {
287297
!function (d, s, id) {
288298
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
289299
if (!d.getElementById(id)) {

0 commit comments

Comments
 (0)