Sha256: 3084000a0f5a032a7b89b07dc7564ea6c288088bb2198754c4c727cac95b33a9

Contents?: true

Size: 1.58 KB

Versions: 37

Compression:

Stored size: 1.58 KB

Contents

var injectedHTML = 

  // Dark overlay
  `<div class="sweet-overlay" tabIndex="-1"></div>` +

  // Modal
  `<div class="sweet-alert">` +

    // Error icon
    `<div class="sa-icon sa-error">
      <span class="sa-x-mark">
        <span class="sa-line sa-left"></span>
        <span class="sa-line sa-right"></span>
      </span>
    </div>` +

    // Warning icon
    `<div class="sa-icon sa-warning">
      <span class="sa-body"></span>
      <span class="sa-dot"></span>
    </div>` +

    // Info icon
    `<div class="sa-icon sa-info"></div>` +

    // Success icon
    `<div class="sa-icon sa-success">
      <span class="sa-line sa-tip"></span>
      <span class="sa-line sa-long"></span>

      <div class="sa-placeholder"></div>
      <div class="sa-fix"></div>
    </div>` +

    `<div class="sa-icon sa-custom"></div>` +

    // Title, text and input
    `<h2>Title</h2>
    <p>Text</p>
    <fieldset>
      <input type="text" tabIndex="3" />
      <div class="sa-input-error"></div>
    </fieldset>` +

    // Input errors
    `<div class="sa-error-container">
      <div class="icon">!</div>
      <p>Not valid!</p>
    </div>` +

    // Cancel and confirm buttons
    `<div class="sa-button-container">
      <button class="cancel" tabIndex="2">Cancel</button>
      <div class="sa-confirm-button-container">
        <button class="confirm" tabIndex="1">OK</button>` + 

        // Loading animation
        `<div class="la-ball-fall">
          <div></div>
          <div></div>
          <div></div>
        </div>
      </div>
    </div>` +

  // End of modal
  `</div>`;

export default injectedHTML;

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
radius-rails-3.1.4 app/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.22 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.21 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.20 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.19 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.18 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.17 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.16 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.15 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.14 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.13 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.12 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.10 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.9 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.8 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.7 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.6 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.5 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.4 vendor/assets/components/sweetalert/dev/modules/injected-html.js
abstracted-0.4.3 vendor/assets/components/sweetalert/dev/modules/injected-html.js