Tag cloud
.tagcloud {height: 560px;width: 100%;margin: 0;padding: 0; text-align:center; page-break-after: always;page-break-inside: avoid} .tagcloud span {display: none; padding: 5px 10px;} a.count7 {font-size: 150%} a.count6 {font-size: 150%} a.count5 {font-size: 140%} a.count4 {font-size: 130%} a.count3 {font-size: 120%} a.count2 {font-size: 110%} a.count3 {font-size: 100%} canvas {width: 100%;height: auto;}
//document.getElementById('script').addEventListener('load', function() {
// wait until jQuery is loaded
//loadAwesomeCloud();
//});
function loadAwesomeCloud() {
//jQuery is now loaded;
$.getScript("/assets/templates/bootstrap/js/jquery.awesomeCloud-0.2.min.js", function(){
//awesomeCloud loaded
if($( window ).width()>750){
$(".tagcloud").awesomeCloud({
"size" : {
"grid" : 4,
"normalize" : true
},
"color" : {
"start" : "#999", // color of the smallest font, if options.color = "gradient""
"end" : "#000" // color of the largest font, if options.color = "gradient"
},
"options" : {
"color" : "gradient",
"rotationRatio" : 0.35,
"printMultiplier" : 4,
"sort" : "highest"
},
"font" : 'Helvetica, Arial',
"shape" : "square"
});
} else {
$('.tagcloud span').css({display: "inline-block"});
}
});
}
.tagcloud span {display:inline-block; margin:4px 10px;}