split icon indicating copy to clipboard operation
split copied to clipboard

Why no live demo?

Open AnastasiusVivaldus opened this issue 5 years ago • 8 comments

Why isn't there a live demo of the split in action on your site?

AnastasiusVivaldus avatar May 20 '20 23:05 AnastasiusVivaldus

I thought that too.

Here are some examples that I put together.

https://github.com/LondonWebFactory/bootstrap-split

LondonWebFactory avatar May 30 '20 06:05 LondonWebFactory

I made one you can check it here.

http://jsfiddle.net/0zbj37kh/23/

kzmain avatar Jun 29 '20 07:06 kzmain

@LondonWebFactory your link has an error in its markdown and actually goes somewhere else. I had to copy and paste the text of your url rather than clicking on it. Here is the correct link https://github.com/LondonWebFactory/bootstrap-split

abulka avatar Jun 29 '20 23:06 abulka

Hello.

I just discovered split. Does anyone have react example with both horizontal/vertical splits? I can't seem to get my head around it.

For example, I've seen the example below: http://jsfiddle.net/3ouzzzxb/

How would this be re-written in react?

Thanks

cmrts avatar Jul 06 '20 23:07 cmrts

No examples no demos no full code example, i don't understand how hard to create 2-3 examples for start going?

xeroxstar avatar Oct 05 '20 15:10 xeroxstar

I don't know if you guys are joking or what. There are 2 live demos on the main page, have been for at least 2 years 🤣

https://split.js.org/

here's one

ScreenFlow

greggman avatar Oct 12 '20 08:10 greggman

They are referring to Split-grid.js, which doesn't have its own landing page, and the example from split.js won't work because in -grid you need to bring your own gutters. It is s quite confusing that they share github repo.

LarsGBV avatar Feb 28 '21 07:02 LarsGBV

Agreed - definitely needs a live demo or a simple copy-paste to get people started. Here's one that I found:

https://jsfiddle.net/oskar/rcqkox3t/

Edit: Looks like split.js.org now has some nice simple demos. In case anyone wants a quick copy-paste:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/split-grid.min.js"></script>

<style>
  body {
    height: 100%;  
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr 10px 1fr;
    height:100%;
  }

  .vertical-gutter {
    grid-area: 1 / 2 / 4 / 2;
    border: solid 1px #cacaca;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    background-repeat: no-repeat;
    background-position: center;
    cursor: ew-resize;
    border-top: none;
    border-bottom: none;
    background-color: #ebebeb;
  }
</style>

<div class="grid">
  <div>
    left side
  </div>
  <div>
    right side
  </div>
  <div class="vertical-gutter"></div>
</div>
<script>
  Split({
    columnGutters: [{
      track: 1,
      element: document.querySelector('.vertical-gutter'),
    }],
  })
</script>

josephrocca avatar Jan 12 '23 13:01 josephrocca