all repos — h3rald @ ae434fa1e27329b57f0a691710c32b42735a802d

The sources of https://h3rald.com

resources/js/init.js

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
Cufon.replace('#navigation a', {fontFamily: 'Mutlu', hover: true, fontSize: '35px'});
Cufon.replace('h2', {fontFamily: 'Mutlu', fontSize: '40px'});
Cufon.replace('h3', {fontFamily: 'Mutlu', hover: true, fontSize: '35px'});
Cufon.replace('#article-content h4', {fontFamily: 'Mutlu', fontSize: '28px'});
$(document).ready(function() {
		// Feeds
		display_opinions(7);
		display_tweets(7);
		display_bookmarks(7);
		// Drop Caps
		$('h2 + p').each(function(){
			var first_paragraph = this;//$('#content p')[0];
			if (!first_paragraph) return false;
			var node = first_paragraph;
			while (node.childNodes.length) {
			node = node.firstChild;
			}
			var text = node.nodeValue;
			var first_letter = text.substr(0,1);
			node.nodeValue = text.slice(1,text.length);
			$('<span></span>').addClass('dropcap').html(first_letter).prependTo( first_paragraph );
			});
		Cufon.replace('.dropcap', {fontFamily: 'Mutlu'});
		});
Cufon.now();