Skip to content

Commit fbc9fce

Browse files
committed
added facebook like and comment plugin for html
1 parent e6616f7 commit fbc9fce

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

html.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>html</h1>
5353
<h2>HTML related interview questions</h2>
5454
<p>For Javascript developer to have some idea about html to impress interviewer..</p>
5555
<p>January 01, 2014</p>
56-
<div class="g-plusone"></div>
56+
<div id="fb-root"></div><div class="fb-like" data-href="http://www.thatjsdude.com/interview/css.html" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> &nbsp;<div class="g-plusone"></div>
5757
</div>
5858
</div>
5959
<div class="container">
@@ -226,7 +226,11 @@ <h2>15. semantic</h2>
226226
<h2>Need more!</h2>
227227
read: <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5?redirectlocale=en-US&redirectslug=HTML%2FHTML5">HTML5</a>
228228
</div>
229-
229+
<div>
230+
<h3 class="purpleBold">Express anger!</h3>
231+
<p class="gray">Feel free to express your anger (sorry u have to use facebook). also find out mistakes ( technical, wrong answer, spelling, grammar, sentence, whatever), let ur dude learn and grow.</p>
232+
<div class="fb-comments" data-href="http://www.thatjsdude.com/interview/css.html" data-numposts="5" data-colorscheme="light"></div>
233+
</div>
230234
<hr>
231235

232236
<footer>
@@ -243,11 +247,20 @@ <h2>Need more!</h2>
243247
<script src="js/highlight.pack.js"></script>
244248
<script>hljs.initHighlightingOnLoad();</script>
245249
<script type="text/javascript">
250+
//g+
246251
(function() {
247252
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
248253
po.src = 'https://apis.google.com/js/platform.js';
249254
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
250255
})();
256+
//fb
257+
(function(d, s, id) {
258+
var js, fjs = d.getElementsByTagName(s)[0];
259+
if (d.getElementById(id)) return;
260+
js = d.createElement(s); js.id = id;
261+
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
262+
fjs.parentNode.insertBefore(js, fjs);
263+
}(document, 'script', 'facebook-jssdk'));
251264
</script>
252265
</body>
253266
</html>

0 commit comments

Comments
 (0)