+
+
+
+// Update search form filters.
+(function() {
+ $('.j-form-auto').each(function() {
+ let $form = $(this);
+ $('input', $form).change(function() {$form.submit()});
+ $('select', $form).change(function() {$form.submit()});
+ $('textarea', $form).change(function() {$form.submit()});
+ });
+
+
+ // experiments
+ $(".experiment input").on('change', function() {
+ let name = $(this).attr('name');
+ let val = $(this).val();
+ document.cookie = 'EXPERIMENT_' + name + '=' + val + '; path=/; max-age=31536000';
+ window.location.reload(true);
+ });
+
+
+})();