Skip to content

Instantly share code, notes, and snippets.

View TrywaR's full-sized avatar

Сергей Ильин TrywaR

View GitHub Profile
@TrywaR
TrywaR / BS form
Last active May 15, 2018 23:36
[ BS ] form
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group">
@TrywaR
TrywaR / BS navbar fixed to the top
Last active May 15, 2018 23:37
[ BS ] navbar fixed to the top
<!-- The fixed navbar will overlay your other content, unless you add padding to the bottom of the <body>. Tip: By default, the navbar is 50px high. -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@TrywaR
TrywaR / [ jQuery ] slick slider
Created May 16, 2018 13:29
[ jQuery ] slick slider
$('.responsive').slick({
dots: true,
// lazyLoad: 'ondemand', // <img data-lazy="img/lazyfonz1.png"/>
infinite: false,
speed: 300,
slidesToShow: 4,
slidesToScroll: 4,
responsive: [
{
breakpoint: 1024,
@TrywaR
TrywaR / [ FormFullBleat ] html
Last active October 30, 2023 15:56
[ FormFullBleat ] html
<noindex>
<!-- form -->
<div class="contact_form" active_class="_complete_" id="contact_form">
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-11 _input">
<input type="text" class="form-control" required="required" id="name" name="name" placeholder="Введите Ваше имя">
</div>
</div>
@TrywaR
TrywaR / [ FormFullBleat ] sass
Created May 17, 2018 10:49
[ FormFullBleat ] sass
.contact_form
position: relative
overflow: hidden
z-index: 1
form
filter: blur(0px)
transition: all .5s ease
textarea,
@TrywaR
TrywaR / [ FormFullBleat ] php
Last active October 30, 2023 15:55
[ FormFullBleat ] php
<?php
if (isset($_POST['org']) && $_POST['org'] == '') {
if (isset($_POST['email']) && $_POST['email'] != '') {
$to = 'email@example.com';
$subject = 'site.com: Обратная связь';
$message = '<p><b>Имя: </b> ' . $_POST['name'] . '</p>';
$message .= '<p><b>Почта: </b> ' . $_POST['email'] . '</p>';
$headers = "MIME-Version: 1.0" . "\r\n" .
"Content-type: text/html; charset=UTF-8" . "\r\n";
@TrywaR
TrywaR / [ FormFullBleat ] jQuery
Last active October 30, 2023 15:56
[ FormFullBleat ] jQeury
// _________________ //
// [ FormFullBleat ]
// Параметры
var
block_form = '#contact_form', //Силектор блока с формой
this_form = 'form' //Силектор формы
// Параметры x
// Обработка ввода данных
@TrywaR
TrywaR / [ ScrollMenuBeautiful ] jQuery
Last active May 17, 2018 14:03
[ ScrollMenuBeautiful ] jQuery
/*___________________ Скрольная магия __________________*/
$(document).on ('click', '#up', function(event) {
event.preventDefault();
$('html, body').stop().animate({
scrollTop: 0
}, 600)
})
if ($(document).scrollTop() > 100) {
$('header').addClass('_fixed_')
@TrywaR
TrywaR / [ MODX ] create doc
Created May 21, 2018 14:23
[ MODX ] create doc
<?
$title = 'title';
$longtitle = 'longtitle';
$introtext = 'introtext';
$content = '';
$template = '';
$publishedon = DateTime::createFromFormat('Y-m-d', date('Y-m-d'));
$published = 0;
$parent = 31;
@TrywaR
TrywaR / [ MODX | BS ] menu
Last active May 22, 2018 18:58
[ MODX | BS ] menu
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">[[++site_name]]</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
[[!pdoMenu?
&parents=`0`