-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwcc_styling_toolkit.js
2 lines (2 loc) · 1.5 KB
/
wcc_styling_toolkit.js
1
2
$(document).ready(function(){$(".form-sections").wcc_form_sections()});(function(a){a.fn.wcc_form_sections=function(){a(this).children(".form-section").children("label").children("input:radio").change(function(){a(this).is(":checked")?(a(this).parent().parent().parent().children(".form-section").children(".form-section-content").hide(),a(this).parent().parent().children(".form-section-content").show()):a(this).parent().parent().children(".form-section-content").hide()})}})(jQuery);
$(document).on("click",".tab",function(){$(this).parent().parent().children(".tab-content").hide();$($(this).data("target")).show();$(".tab").removeClass("tab-selected");$(this).addClass("tab-selected")});$(document).on("click","[data-dismiss='alert']",function(){$(this).parent().slideUp("fast")});(function(a){a.fn.wcc_gallery=function(b){a(this).children(".gallery-selector").children(".gallery-selector-icon").on("click",function(){a(this).toggleClass("gallery-selected")});return this}})(jQuery);$(document).on("click",".header-mobile-menu-icon",function(){$(".header-mobile-menu").toggleClass("collapsed")});$(document).on("click",".header-mobile-search-icon",function(){$(".header-mobile-search").toggle();$(".header-mobile-search-icon").toggleClass("fa-search");$(".header-mobile-search-icon").toggleClass("fa-times")});$(document).on("click",".search-suggestion",function(){$("#search").val($(this).text());$(this).parent().hide();$(this).parent().parent().submit()});$(document).on("click",".tab",function(){$($(this).data("target")).show()});