PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 3.2.0
Smart Grid-Layout Design for Contact Form 7 v3.2.0
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / public / js / min / cf7-benchmark.js

cf7-benchmark.js in Smart Grid-Layout Design for Contact Form 7 3.2.0, at public/js/min/cf7-benchmark.js

2 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(h){"use strict";h(document).ready(function(){var a=h("form.wpcf7-form");a.each(function(){if(h(this).is("div.cf7_2_post form.wpcf7-form")){var a=h(this).closest("div.cf7_2_post").attr("id");h(this).on(a,function(){h("input.cf7sg-benchmark",h(this)).cf7sgBenchmark(!1)})}}),a.on("change","input.cf7sg-benchmark",function(a){h(a.target).cf7sgBenchmark(!0)}),a.on("click","span.dashicons-no-alt",function(a){var s=h(a.target);s.is("span.cf7sg-benchmark-warning .dashicons-no-alt")&&(s.closest("span.cf7sg-benchmark-warning").hide(),s.remove())})}),h.fn.cf7sgBenchmark=function(a){if(void 0===a&&(a=!1),!h(this).is("input.cf7sg-benchmark"))return h(this);if(h(this).removeClass("cf7sg-benchmark-warning"),h(this).next("span.cf7sg-benchmark-warning").remove(),""==h(this).val())return h(this);var s=h(this).data("cf7sg-benchmark"),n="";h(this).is('input[type="hidden"]')&&(n=" cf7sg-benchmark-hidden");var i='<span class="cf7sg-benchmark-warning'+n+'"><span>warning<span class="dashicons dashicons-no-alt"></span></span><span class="cf7sg-benchmark-msg">'+h(this).data("cf7sg-benchmark-msg")+"</span></span>";switch(s){case"above":var t=h(this).data("cf7sg-benchmark-limit");h(this).val()>t&&(h(this).after(i),a||h(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),h(this).addClass("cf7sg-benchmark-warning"),0<n.length&&h(this).trigger("cf7sg-benchmark-"+h(this).attr("name")));break;case"below":t=h(this).data("cf7sg-benchmark-limit");h(this).val()<t&&(h(this).after(i),a||h(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),h(this).addClass("cf7sg-benchmark-warning"),0<n.length&&h(this).trigger("cf7sg-benchmark-"+h(this).attr("name")));break;case"range":var c=h(this).data("cf7sg-benchmark-min"),e=h(this).data("cf7sg-benchmark-max");(h(this).val()<c||h(this).val()>e)&&(h(this).after(i),a||h(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),h(this).addClass("cf7sg-benchmark-warning"),0<n.length&&h(this).trigger("cf7sg-benchmark-"+h(this).attr("name")))}}}(jQuery);
2