UNPKG

@patternslib/patternslib

Version:

Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming la

37 lines (28 loc) 909 B
<!DOCTYPE html> <html> <head> <title>pat-clone demo page</title> <meta charset="utf-8"> <link rel="stylesheet" href="/style/common.css" /> <script>window.__patternslib_disable_modernizr = true;</script> <script src="/bundle.min.js"></script> </head> <body> <h1>Clone Code</h1> <h2>Example 1</h2> <p class="clone-ignore"> Clone the next block and ignore this paragraph which has the `clone-ignore` class. </p> <div class="pat-clone-code"> <p>Hello.</p> </div> <h2>Example 2</h2> <p class="clone-ignore"> Clone the whole HTML page but ignore this paragraph which has the `clone-ignore` class. </p> <div class="pat-clone-code" data-pat-clone-code="source: html"> <p>Test paragraph</p> </div> </body> </html>