Sha256: f0b0a848d4c760ec24c7bd3ec6300638c5aa372b3179334cfa2e6a7f4d42e2ef

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

# Theme switcher
$('.widget-themes a').each ->
	$(@).on "click", (e) ->
		e.preventDefault()
		$('#main-css').attr 'href', "/assets/css/#{$(e.target).data('theme')}.css"
		$('.widget-themes a').removeClass 'active'
		$(e.target).addClass 'active'
		$('#theme-value').text($(e.target).data('theme'))
		true
	true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-any-theme-0.1.2 _includes/js/themes.coffee
jekyll-any-theme-0.1.1 assets/js/any_theme/themes.coffee
jekyll-any-theme-0.1.0 assets/js/any_theme/themes.coffee