1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-11-03 18:58:30 +00:00
website/themes/openlp2v2/assets/js/custom.js

18 lines
779 B
JavaScript
Raw Normal View History

2015-07-11 21:57:10 +00:00
/* 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();
});
});