This file contains hidden or 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
<div data-scroll="elemIdOrJustNumber">HOME</div> |
This file contains hidden or 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
// Методы String. | |
String first = " Windows win "; | |
first.trim(); // "Windows win" | |
first.lastIndexOf('w'); // 9 | |
first.lastIndexOf('W'); // 1 | |
first.indexOf('w'); // 6 | |
first.indexOf('w', 8); // 9 | |
first.indexOf("win"); // 9 | |
first.toUpperCase(); // " WINDOWS WIN " | |
first.toLowerCase(); // " windows win " |
This file contains hidden or 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
<!-- EXAMPLE: https://jsfiddle.net/ukjxhjv2/3/ --> | |
<div class="editor"> | |
<ul class="editor-toolbar"> | |
<li data-editor="bold" title="Жирный"> | |
<%- include('../../dist/svg/editor-bold.svg'); %> | |
</li><!-- | |
--><li data-editor="italic" title="Курсив"> | |
<%- include('../../dist/svg/editor-italic.svg'); %> | |
</li><!-- |
This file contains hidden or 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
<button onclick="ev.emit('counter:set', {obj: document.getElementsByClassName('counter')[0], countCur: 400, countNext: 700} )">Увеличить с 400 до 700</button> | |
<button onclick="ev.emit('counter:set', {obj: document.getElementsByClassName('counter')[0], countCur: 700, countNext: 400} )">Уменьшить с 700 до 400</button> | |
<div class="counter">400</div> |
This file contains hidden or 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
// Подключение: | |
// mail = require('modules/mail').mail, | |
//------------------------------------------- | |
// Использование: | |
// mail(subject, mess, recipient, sender); | |
//------------------------------------------- | |
// Отправляем письмо на почту recipient от отправителя sender | |
// Если recipient не указан, отправляем письмо на почту, указанную в config | |
//------------------------------------------- |
This file contains hidden or 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
<!--Кнопки, вызывающие нужное окно--> | |
<button class="modal-but" data-modal="1">Открыть окно 1</button> | |
<button class="modal-but" data-modal="2">Открыть окно 2</button> | |
<!--Модальные окна--> | |
<!--Первое окно на странице используется для вывода ответа сервера--> | |
<div class="modal" data-modal="1"> | |
<p>Здесь будет ответ от сервера</p> | |
</div> |
This file contains hidden or 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
//- Example not working in JSFiddle: https://jsfiddle.net/hjzkye9f/3/ | |
//- тег .accordion необязателен | |
//- после тега .accordion-but обязательно должен идти .accordion-content | |
//- в .accordion-content обязательно должен быть .accordion-inner, так как из него берется высота | |
.accordion | |
.accordion-but First | |
.accordion-content | |
.accordion-inner | |
p Content 1 |
This file contains hidden or 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
//- Example: https://jsfiddle.net/f0nfnLe1/1/ | |
.tabs | |
ul.tabs-controls | |
li.active First | |
li Second | |
li Third | |
li Fourth | |
ul.tabs-content | |
li.active |
This file contains hidden or 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
// MATERIAL GOOGLE COLORS | |
//////////////////////////////// | |
white = #fff | |
black = #000 | |
red = #f44336 | |
pink = #e91e63 | |
purple = #9c27b0 | |
dpurple = #673ab7 | |
indigo = #3f51b5 |
This file contains hidden or 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
form(action="file_upload" method="POST" enctype="multipart/form-data") | |
input(type="file" name="file") | |
button Отправить |
NewerOlder