Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
m1-solution-repo/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
150 lines (139 sloc)
5.53 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Simple To Do List</title> | |
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script> | |
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" /> | |
</head> | |
<body> | |
<ion-app> | |
<ion-menu content-id="main-content"> | |
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-title>Menu Content</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content class="ion-padding">This is the menu content.</ion-content> | |
</ion-menu> | |
<div class="ion-page" id="main-content"> | |
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title>Menu</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content class="ion-padding"> | |
<ion-tabs> | |
<ion-tab tab="home"> | |
<ion-nav id="home-nav"></ion-nav> | |
<div id="home-page"> | |
<ion-content class="ion-padding"> | |
<!-- <form action="" id="list-form"> --> | |
<ion-grid> | |
<ion-row> | |
<ion-col> | |
<h1>Add an item</h1> | |
</ion-col> | |
</ion-row> | |
<ion-row> | |
<ion-col> | |
<ion-input id="task" label="Enter a task" label-placement="floating" fill="outline" | |
placeholder="Mow the lawn"></ion-input></ion-col> | |
<ion-col size="auto"> | |
<ion-button type="submit" id="open-toast" expand="block" size="large" class="ion-no-margin">Save</ion-button> | |
<ion-toast trigger="open-toast" position="bottom" position-anchor="footer" message="New item added!" duration="3000"></ion-toast> | |
</ion-col> | |
</ion-row> | |
</ion-grid> | |
<!-- </form> --> | |
<ion-grid> | |
<ion-row> | |
<ion-col> | |
<ion-list id="task-list"> | |
<ion-item> | |
<ion-label><ion-checkbox justify="start" label-placement="end">Placeholder | |
item</ion-checkbox></ion-label> | |
</ion-item> | |
</ion-list> | |
</ion-col> | |
</ion-row> | |
</ion-grid> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab tab="radio"> | |
<ion-nav id="radio-nav"></ion-nav> | |
<div id="radio-page"> | |
<ion-content class="ion-padding"> | |
<ion-grid> | |
<ion-row> | |
<ion-col> | |
<h1>Lists</h1> | |
</ion-col> | |
</ion-row> | |
</ion-grid> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab tab="library"> | |
<ion-nav id="library-nav"></ion-nav> | |
<div id="library-page"> | |
<ion-content class="ion-padding"> | |
<ion-grid> | |
<ion-row> | |
<ion-col> | |
<h1>Settings</h1> | |
</ion-col> | |
</ion-row> | |
</ion-grid> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab tab="search"> | |
<ion-nav id="search-nav"></ion-nav> | |
<div id="search-page"> | |
<ion-content> | |
<div class="example-content">Search content</div> | |
</ion-content> | |
</div> | |
</ion-tab> | |
<ion-tab-bar slot="bottom" color="primary" id="footer"> | |
<ion-tab-button tab="home"> | |
<ion-icon name="home"></ion-icon> | |
Home | |
</ion-tab-button> | |
<ion-tab-button tab="radio"> | |
<ion-icon name="list"></ion-icon> | |
Lists | |
</ion-tab-button> | |
<ion-tab-button tab="library"> | |
<ion-icon name="settings"></ion-icon> | |
Settings | |
</ion-tab-button> | |
</ion-tab-bar> | |
</ion-tabs> | |
<script> | |
const homeNav = document.querySelector('#home-nav'); | |
const homePage = document.querySelector('#home-page'); | |
homeNav.root = homePage; | |
const radioNav = document.querySelector('#radio-nav'); | |
const radioPage = document.querySelector('#radio-page'); | |
radioNav.root = radioPage; | |
const libraryNav = document.querySelector('#library-nav'); | |
const libraryPage = document.querySelector('#library-page'); | |
libraryNav.root = libraryPage; | |
const searchNav = document.querySelector('#search-nav'); | |
const searchPage = document.querySelector('#search-page'); | |
searchNav.root = searchPage; | |
</script> | |
</ion-content> | |
</div> | |
</ion-app> | |
</body> | |
</html> |