1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 21:12:50 +00:00
website/themes/openlp2v2/assets/js/custom.js
2015-07-11 23:57:10 +02:00

18 lines
779 B
JavaScript

/* Theme Name: Worthy - Free Powerful Theme by HtmlCoder
* Author:HtmlCoder
* Author URI:http://www.htmlcoder.me
* Version:1.0.0
* Created:November 2014
* License: Creative Commons Attribution 3.0 License (https://creativecommons.org/licenses/by/3.0/)
* File Description: Place here your custom scripts
*/
$(function(){
$("div.product-chooser").find("div.product-chooser-item").on("click", function() {
var $this = $(this);
$this.parent().parent().find('div.product-chooser-item').removeClass('selected');
$this.addClass('selected');
var target = $this.attr("data-target");
$("#download-section > div > div").hide().removeClass("hidden");
$("#download-section > div > div." + target).show();
});
});