"layout"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/hpw12/pen/OxJyEE?depth=everything&order=popularity&page=58&q=card+list&show_forks=false" /> <link rel='stylesheet prefetch' href='https://unpkg.com/onsenui/css/onsenui.css'><link rel='stylesheet prefetch' href='https://unpkg.com/onsenui/css/onsen-css-components.css'> <style class="cp-pen-styles">undefined</style></head><body> <ons-splitter> <ons-splitter-side id="menu" side="right" width="220px" collapse swipeable> <ons-page> <ons-list> <ons-list-item onclick="fn.load('home.html')" tappable> Home </ons-list-item> <ons-list-item onclick="fn.load('cards.html')" tappable> Cards </ons-list-item> <ons-list-item onclick="fn.load('settings.html')" tappable> Settings </ons-list-item> </ons-list> </ons-page> </ons-splitter-side> <ons-splitter-content> <ons-navigator id="myNavigator" page="home.html"></ons-navigator> </ons-splitter-content> </ons-splitter> <template id="home.html"> <ons-page> <ons-toolbar> <div class="center"> Splitter+Navigator </div> <div class="right"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> </ons-toolbar> <h2>Home</h2> <div style="text-align: center"> <br> <ons-button onclick="myNavigator.pushPage('pageNav1.html')"> Push Page </ons-button> </div> <p style="text-align: center; opacity: 0.6; padding-top: 20px;"> Swipe left to open the menu! </p> </ons-page> </template> <template id="pageNav1.html"> <ons-page id="pageNav1"> <ons-toolbar> <div class="left"> <ons-back-button>Back</ons-back-button> </div> <div class="center"></div> <div class="right"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> </ons-toolbar> <div style="text-align: center"> <h1>Custom Page</h1> <p> <ons-input modifier="underbar" placeholder="Title" float></ons-input> </p> <ons-button onclick="customPush()"> Push Page </ons-button> <ons-button onclick="myNavigator.popPage()"> Pop Page </ons-button> </div> <p style="text-align: center; opacity: 0.6; padding-top: 20px;"> Swipe left to open the menu! </p> </ons-page> </template> <template id="cards.html"> <ons-page> <ons-toolbar> <div class="center"> Splitter+Navigator </div> <div class="right"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> </ons-toolbar> <h2>Cards</h2> <ons-list-title>Card List</ons-list-title> <ons-list> <ons-list-item onclick="customPush2(event)">Card One</ons-list-item> <ons-list-item onclick="customPush2(event)">Card Two</ons-list-item> <ons-list-item onclick="customPush2(event)">Card Three</ons-list-item> </ons-list> <p style="text-align: center; opacity: 0.6; padding-top: 20px;"> Swipe left to open the menu! </p> </ons-page> </template> <template id="pageNav2.html"> <ons-page id="pageNav2"> <ons-toolbar> <div class="left"> <ons-back-button>Back</ons-back-button> </div> <div class="right"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> </ons-toolbar> <ons-card> <img src="https://monaca.io/img/logos/download_image_onsenui_01.png" alt="Onsen UI" style="width: 100%"> <div class="title"></div> <div class="content"> <div> <ons-button> <ons-icon icon="ion-thumbsup"></ons-icon> </ons-button> <ons-button> <ons-icon icon="ion-share"></ons-icon> </ons-button> </div> <ons-list> <ons-list-header>Bindings</ons-list-header> <ons-list-item>Vue</ons-list-item> <ons-list-item>Angular</ons-list-item> <ons-list-item>React</ons-list-item> </ons-list> </div> </ons-card> <p style="text-align: center; opacity: 0.6; padding-top: 20px;"> Swipe left to open the menu! </p> </ons-page> </template> <template id="settings.html"> <ons-page> <ons-toolbar> <div class="center"> Splitter+Navigator </div> <div class="right"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> </ons-toolbar> <h2>Settings</h2> <p style="text-align: center; opacity: 0.6; padding-top: 20px;"> Swipe left to open the menu! </p> </ons-page> </template> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://unpkg.com/onsenui/js/onsenui.js'></script> <script >window.fn = {}; window.fn.open = function () { var menu = document.getElementById('menu'); menu.open(); }; window.fn.load = function (page) { var menu = document.getElementById('menu'); var myNavigator = document.getElementById('myNavigator'); menu.close(); myNavigator.resetToPage(page, { animation: 'fade' }); }; document.addEventListener('init', function (event) { if (event.target.id === 'pageNav1') { var title = event.target.data && event.target.data.title ? event.target.data.title : 'Custom Page'; event.target.querySelector('ons-toolbar div.center').textContent = title; } if (event.target.id === 'pageNav2') { var cardTitle = event.target.data && event.target.data.cardTitle ? event.target.data.cardTitle : 'Custom Card'; event.target.querySelector('ons-card div.title').textContent = cardTitle; } }); var customPush = function () { myNavigator.pushPage('pageNav1.html', { data: { title: myNavigator.topPage.querySelector('ons-input').value } }) }; var customPush2 = function (event) { myNavigator.pushPage('pageNav2.html', { data: { cardTitle: event.target.textContent } }) }; //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: