Sha256: 71d54f5fdcb1a904930118bee5de8b6fd35e3d1cc8b154e3372be9784e59e141

Contents?: true

Size: 1.45 KB

Versions: 32

Compression:

Stored size: 1.45 KB

Contents

<script>
  var u = up.util;
  up.compiler('.clamped-open', function($link) {
    $link.on('click', function(event) {
      event.preventDefault();
      u.nextFrame(function() {
        u.nextFrame(function() {
          u.nextFrame(function() {
            u.nextFrame(function() {
              u.nextFrame(function() {
                u.nextFrame(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

32 entries across 32 versions & 1 rubygems

Version Path
unpoly-rails-0.57.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.7 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.6 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.5 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.4 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.3 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.2 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.1 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.56.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.55.1 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.55.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.54.1 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.54.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.53.4 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.53.3 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.53.2 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.53.1 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.53.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.52.0 spec_app/app/views/css_test/modal.erb
unpoly-rails-0.51.1 spec_app/app/views/css_test/modal.erb