mirror of
https://gitlab.com/openlp/website.git
synced 2024-08-25 08:03:36 +00:00
18 lines
779 B
JavaScript
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();
|
||
|
});
|
||
|
});
|