all repos — h3rald @ 018209b143277aa17176b34286dfbc7f15d35b1b

The sources of https://h3rald.com

content/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
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
$(function() {
		$('#gallery a').fancybox();
		$('.fancybox').fancybox({
			frameWidth: 850,
			frameHeight: 450
		});
		});
function delicious_counter(data) {
	var posts = data[0].total_posts;
	if (!posts) return;
	var text = posts+" bookmarks";
	if (posts == 1) { text = posts+" bookmark" };
	$('#delcounter').text(text);
}
$(document).ready(function() {
	// Manage dates
	//$('header.home > time').text(Date.today().toString("dddd, MMMM dS yyyy"));
	//$('header.home > time').attr('datetime', Date.today().toString("yyyy-MM-dd"));
	$('.timeago').timeago();
	// Hyphenate contents 
	Hyphenator.run();
	// TOC
	$("#auto-toc ol").tableOfContents("#body-text", {startLevel: 1, depth: 5, topLinks: "↑"});
	// IE6 Warning
	var sevenup_options = {
  enableClosing: false,
  enableQuitBuggingMe: false,
  overlayColor: "#000000",  
  lightboxColor: "#ffffff",
  borderColor: "#6699ff",
  downloadLink: "http://www.google.com/chrome",
  overrideLightbox: false,
  lightboxHTML: null,
  showToAllBrowsers: false
	};
	sevenUp.plugin.black.test(sevenup_options, false);
});