<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h2>
Get Favicon From URL with <a href="http://favconi.de.pl/" target="_parent">FavconI</a></small></h2>
<p>
How to easily include favicons from any URL into your Site.
</p>
<div class="po-markup">
<br>
<a href="http://www.youtube.com" class="po-link">www.youtube.com</a>
← popover with favicon and HTML coded site information.
<div class="po-content hidden">
<div class="po-title">
<img src="http://favconi.de.pl/https://www.youtube.com" alt="YouTube" width="16" height="16" />
YouTube.com
</div>
<div class="po-body">
<p>
YouTube ist the biggest Video Platform on the Web. Million of Peoples use the fantastic Page.
</p>
</div>
</div>
</div>
<hr>
<div class="text-info lead">
<br>
<p>
Examples of retrieving favicons:
</p>
<img src="http://favconi.de.pl/http://www.google.com" alt="Google" width="16" height="16" />
<img src="http://favconi.de.pl/http://www.cnn.com" alt="CNN" width="16" height="16" />
<img src="http://favconi.de.pl/http://www.ebay.com" alt="eBay" width="16" height="16" />
<img src="http://favconi.de.pl/http://www.facebook.com" alt="Facebook" width="16" height="16" />
<img src="http://favconi.de.pl/http://abc.com" alt="ABC News" width="16" height="16" />
<img src="http://favconi.de.pl/http://youtube.com" alt="ABC News" width="16" height="16" />
<img src="http://favconi.de.pl/http://bootsnipp.com/" alt="ABC News" width="16" height="16" />
</div><!-- ./text-info -->
<hr>
<a href="http://favconi.de.pl/" target="_parent">Get Favicons from URL now.</a>
<br>
</div>
</div>
</div>
body{
margin-top:24px;
}
/*
Bootstrap Popover Ref:
http://getbootstrap.com/javascript/#popovers
Favicons Ref:
http://getfavicon.appspot.com/
(https:// links are available)
Popover ref:
Note: the JS is written, so that you can have unlimited number of popovers.
http://wolfslittlestore.be/2013/12/easy-popovers-with-bootstrap/
with:
http://jsfiddle.net/7Kd44/
*/
$(document).ready(function() {
$('.po-markup > .po-link').popover({
trigger: 'hover',
html: true, // must have if HTML is contained in popover
// get the title and conent
title: function() {
return $(this).parent().find('.po-title').html();
},
content: function() {
return $(this).parent().find('.po-body').html();
},
container: 'body',
placement: 'right'
});
});