Sha256: 3208ad6762b5af000e7630ce1c36dc864d9faeff6d534e3517ccacc917fb062e

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

<script>
  var u = up.util;
  up.$compiler('.clamped-open', function($link) {
    $link.on('click', function(event) {
      event.preventDefault();
      u.task(function() {
        u.task(function() {
          u.task(function() {
            u.task(function() {
              u.task(function() {
                u.task(function() {
                  up.modal.follow($link, {
                    target: '.contents',
                    duration: 1000
                  });
                });
              });
            });
          });
        });
      });
    });
  });
</script>


<div class="example">
  <a class="button" href="/css_test/modal_contents" up-modal=".contents">Modal</a>
</div>

<div class="example">
  <a class="button" href="/css_test/modal_contents_wide" up-modal=".contents">Modal (wide contents)</a>
</div>

<div class="example">
  <a class="button" href="/css_test/modal_contents" up-drawer=".contents" style="float: left">Drawer (auto)</a>
  <a class="button" href="/css_test/modal_contents" up-drawer=".contents" style="float: right">Drawer (auto)</a>
</div>

<div class="example">
  <a class="button" href="/css_test/modal_contents" up-drawer=".contents" up-position="left">Drawer (left)</a>
  <a class="button" href="/css_test/modal_contents" up-drawer=".contents" up-position="right">Drawer (right)</a>
</div>

<div class="example">
  <a class="button clamped-open" href="/css_test/modal_contents">Clamped open</a>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unpoly-rails-1.0.3 spec_app/app/views/css_test/modal.erb
unpoly-rails-1.0.1 spec_app/app/views/css_test/modal.erb
unpoly-rails-1.0.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.62.1 spec_app/app/views/css_test/modal.erb