Sha256: f3b0a048b724df9cec3d53eb23c039f901d3bdb19c477c4ec83c826520097e48

Contents?: true

Size: 393 Bytes

Versions: 63

Compression:

Stored size: 393 Bytes

Contents

<script>
// Switches error container on and off
document.addEventListener('DOMContentLoaded', function () {
  $('#form').parsley().on('field:validated', function () {
    var ok = $('.invalid').length === 0;
    $('#error-container').toggleClass('js-hidden', ok);
  });
});
</script>

<p class="uikit-page-alerts uikit-page-alerts--error js-hidden" id="error-container">{{ include.text }}</p>

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
dta_rapid-1.0.0 _includes/forms/error-container.html
dta_rapid-0.7.14 _includes/forms/error-container.html
dta_rapid-0.7.13 _includes/forms/error-container.html
dta_rapid-0.7.12 _includes/forms/error-container.html
dta_rapid-0.7.11 _includes/forms/error-container.html
dta_rapid-0.7.10 _includes/forms/error-container.html
dta_rapid-0.7.9 _includes/forms/error-container.html
dta_rapid-0.7.8 _includes/forms/error-container.html
dta_rapid-0.7.7 _includes/forms/error-container.html
dta_rapid-0.7.6 _includes/forms/error-container.html
dta_rapid-0.7.5 _includes/forms/error-container.html
dta_rapid-0.7.4 _includes/forms/error-container.html
dta_rapid-0.7.3 _includes/forms/error-container.html
dta_rapid-0.7.2 _includes/forms/error-container.html
dta_rapid-0.7.1 _includes/forms/error-container.html
dta_rapid-0.7.0 _includes/forms/error-container.html
dta_rapid-0.6.6 _includes/forms/error-container.html
dta_rapid-0.6.5 _includes/forms/error-container.html
dta_rapid-0.6.4 _includes/forms/error-container.html
dta_rapid-0.6.3 _includes/forms/error-container.html