Notes
Notes - notes.io |
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Знакомство с фреймворком Vue.JS</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
</head>
<body>
<div id="app">
<!-- <p>
<input type="text" v-model="newPhone" />
<button v-on:click="phones.push(newPhone)">Добавить</button>
</p>
<ul>
<li v-for="(phones, index) in phones">
<p>{{ phone }} <button v-on:click="phones.splice(index, 1)">Удалить</button></p>
</li>
</ul> -->
<div class="container py-5">
<h2 class="mb-5 text-center">Знакомство с фреймворком VueJS</h2>
<section class="py-3">
<h3 class="mb-3">Отрисовка</h3>
<p>Добро пожаловать на курс по <span v-text="courseName"></span></span>, <b>дорогой друг</b>!</p>
</section>
<section class="py-3">
<h3 class="mb-3">Список</h3>
<ul>
<li v-for="task in tasks"><span v-text="task"></span></li>
</ul>
</section>
<section class="py-3">
<h3 class="mb-3">Связывание данных</h3>
<div class="row">
<div class="col-12 col-md-3">
<div class="card">
<div class="card-header">Текстовое поле</div>
<div class="card-body">
<input type="text" class="form-control mb-3" v-model="forms.input1">
<span>Вы ввели <b>{{forms.input1}}</b></span>
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="card">
<div class="card-header">Многострочное текстовое поле</div>
<div class="card-body">
<textarea class="form-control mb-3" rows="3">Тут можно написать большое описание</textarea>
<span>Вы ввели <b>Тут можно написать большое описание</b></span>
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="card">
<div class="card-header">Опции</div>
<div class="card-body">
<div class="d-flex flex-column mb-3">
<label>
<input type="checkbox" class="form-check-input" checked> Опция 1
</label>
<label>
<input type="checkbox" class="form-check-input" checked> Опция 2
</label>
<label>
<input type="checkbox" class="form-check-input"> Опция 3
</label>
</div>
<span>Вы выбрали опции: <span>Опция 1, Опция 2</span></span>
</div>
</div>
</div>
<div class="col-12 col-md-3">
<div class="card">
<div class="card-header">Выпадющий список</div>
<div class="card-body">
<select class="form-control mb-3">
<option>Значение 1</option>
<option>Значение 2</option>
<option>Значение 3</option>
</select>
<span>Вы выбрали <b>Значение 1</b></span>
</div>
</div>
</div>
</div>
</section>
<section class="py-3">
<h3 class="mb-3">События</h3>
<div class="row">
<div class="col-12 col-md-6">
<div class="card mb-3">
<div class="card-header">Элементы управления</div>
<div class="card-body">
<button class="btn btn-primary">Кнопка</button>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="card mb-3">
<div class="card-header">Форма</div>
<div class="card-body">
<form>
<input type="text" class="form-control mb-3" placeholder="Login">
<input type="text" class="form-control mb-3" placeholder="Password">
<button class="btn btn-primary">Кнопка</button>
</form>
</div>
</div>
</div>
</div>
</section>
<section class="py-3">
<h3 class="mb-3">Атрибуты</h3>
<div class="row">
<div class="col-12 col-md-6">
<div class="card mb-4">
<div class="card-header">Работа с атрибутами</div>
<div class="card-body d-flex flex-column">
<label class="mb-3">
<input type="checkbox" name="disabled"> Заблокировать поле ввода
</label>
<input type="text" class="form-control mb-3" placeholder="Укажите placeholder">
<label>
<input type="checkbox" class="form-check-input"> form-control
</label>
<label>
<input type="checkbox" class="form-check-input"> bg-primary
</label>
<label>
<input type="checkbox" class="form-check-input"> text-white
</label>
<label>
<input type="checkbox" class="form-check-input"> mt-5
</label>
<label>
<input type="checkbox" class="form-check-input"> mb-5
</label>
<label>
<input type="checkbox" class="form-check-input"> shadow-lg
</label>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="card">
<div class="card-header">Демонстрация</div>
<div class="card-body">
<input type="text" placeholder="Введите текст">
</div>
</div>
</div>
</div>
</section>
<section class="py-3">
<h3 class="mb-3">Отображение</h3>
<div class="row">
<div class="col-12 col-md-4">
<div class="card mb-4">
<div class="card-header">Видимость сообщений</div>
<div class="card-body">
<label>
<input type="radio"> Показывать
</label>
<label>
<input type="radio"> Скрыть
</label>
</div>
</div>
</div>
<div class="col-12 col-md-4">
<div class="card">
<div class="card-header">Метод v-show</div>
<div class="card-body">
<div class="alert alert-info">Информационное сообщение</div>
<div class="alert alert-danger">Сообщение об ошибке</div>
</div>
</div>
</div>
<div class="col-12 col-md-4">
<div class="card">
<div class="card-header">Метод v-if</div>
<div class="card-body">
<div class="alert alert-info">Информационное сообщение</div>
<div class="alert alert-danger">Сообщение об ошибке</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<script src="assets/js/main.js.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@3"></script>
</body>
</html>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: hello@notes.io
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team