PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.11
Smart Grid-Layout Design for Contact Form 7 v4.11
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 4.11, 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(a){"use strict";a(document).ready(function(){var s=a("form.wpcf7-form");s.each(function(){if(a(this).is("div.cf7_2_post form.wpcf7-form")){var s=a(this).closest("div.cf7_2_post").attr("id");a(this).on(s,function(){a("input.cf7sg-benchmark",a(this)).cf7sgBenchmark(!1)})}}),s.on("change","input.cf7sg-benchmark",function(s){a(s.target).cf7sgBenchmark(!0)}),s.on("click","span.dashicons-no-alt",function(s){var n=a(s.target);n.is("span.cf7sg-benchmark-warning .dashicons-no-alt")&&(n.closest("span.cf7sg-benchmark-warning").hide(),n.remove())})}),a.fn.cf7sgBenchmark=function(s){if(void 0===s&&(s=!1),!a(this).is("input.cf7sg-benchmark"))return a(this);if(a(this).removeClass("cf7sg-benchmark-warning"),a(this).next("span.cf7sg-benchmark-warning").remove(),""==a(this).val())return a(this);var n=a(this).data("cf7sg-benchmark"),i="";a(this).is('input[type="hidden"]')&&(i=" cf7sg-benchmark-hidden");var t='<span class="cf7sg-benchmark-warning'+i+'"><span>warning<span class="dashicons dashicons-no-alt"></span></span><span class="cf7sg-benchmark-msg">'+a(this).data("cf7sg-benchmark-msg")+"</span></span>";switch(n){case"above":var c=a(this).data("cf7sg-benchmark-limit");a(this).val()>c&&(a(this).after(t),s||a(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),a(this).addClass("cf7sg-benchmark-warning"),i.length>0&&a(this).trigger("cf7sg-benchmark-"+a(this).attr("name")));break;case"below":c=a(this).data("cf7sg-benchmark-limit");a(this).val()<c&&(a(this).after(t),s||a(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),a(this).addClass("cf7sg-benchmark-warning"),i.length>0&&a(this).trigger("cf7sg-benchmark-"+a(this).attr("name")));break;case"range":var e=a(this).data("cf7sg-benchmark-min"),h=a(this).data("cf7sg-benchmark-max");(a(this).val()<e||a(this).val()>h)&&(a(this).after(t),s||a(this).next("span.cf7sg-benchmark-warning").hide().find(".dashicons-no-alt").remove(),a(this).addClass("cf7sg-benchmark-warning"),i.length>0&&a(this).trigger("cf7sg-benchmark-"+a(this).attr("name")))}}}(jQuery);
2