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
<?php | |
$start = microtime(true); | |
// /////////////////// // | |
// CODE // | |
// /////////////////// // | |
$end = microtime(true) - $start; | |
dump("Rendered for [ {$end}s ]"); | |
?> |
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
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
?> |
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
$(function () { | |
// слайдер с прогрессом | |
// - [all] | |
var owlPromo = $('.js-promo__items'); | |
var owlPromoTimer = 9000; | |
var owlPromoSpeed = 1000; | |
function promo_start (event) { | |
var duration = owlPromoTimer; | |
if(event == 'change') { | |
duration -= owlPromoSpeed; |
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
$(function () { | |
// прокрутка к элементу | |
// - [all] | |
let to = $('.object').offset().top; | |
$('html, body').stop().animate({ | |
scrollTop: to | |
}, 0); | |
}); |
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
$(function () { | |
// слайдер изображений | |
// - [all] | |
var owlImages = $('.js-Images'); | |
owlImages.owlCarousel({ | |
items: 4, | |
loop: true, | |
smartSpeed: 900, | |
slideBy: 1, | |
nav: true, |
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
/* jQuery Form Styler v1.7.7 | (c) Dimox | https://github.com/Dimox/jQueryFormStyler */ | |
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t,s){this.element=t,this.options=e.extend({},l,s);var i=this.options.locale;void 0!==this.options.locales[i]&&e.extend(this.options,this.options.locales[i]),this.init()}function s(t){if(!e(t.target).parents().hasClass("jq-selectbox")&&"OPTION"!=t.target.nodeName&&e("div.jq-selectbox.opened").length){var s=e("div.jq-selectbox.opened"),l=e("div.jq-selectbox__search input",s),o=e("div.jq-selectbox__dropdown",s),a=s.find("select").data("_"+i).options;a.onSelectClosed.call(s),l.length&&l.val("").keyup(),o.hide().find("li.sel").addClass("selected"),s.removeClass("focused opened dropup dropdown")}}var i="styler",l={idSuffix:"-styler",filePlaceholder:"Файл не выбран",fileBrowse:"Обзор...",fileNumber:"Выбрано файлов: %s",selectPlaceholder:"Выберите...",se |
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
$(function () { | |
// стилизация элементов форм | |
// - [all] | |
$('\ | |
select, \ | |
textarea, \ | |
input[type="checkbox"], \ | |
input[type="radio"], \ | |
input[type="number"], \ | |
input[type="file"]\ |
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
ymaps.ready(function () { | |
var loc = [55.830963, 37.130694], | |
z = 16; | |
var myMap = new ymaps.Map('map', { | |
center: loc, | |
zoom: z | |
}, { | |
searchControlProvider: 'yandex#search' | |
}), | |
myPlacemark = new ymaps.Placemark(loc, { |
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
function initialize () { | |
var myLatlng = new google.maps.LatLng(55.7531262, 37.6203079); | |
var mapOptions = { | |
center: myLatlng, | |
zoom: 16, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
scrollwheel: false, | |
}; | |
var map = new google.maps.Map(document.getElementById('map'), mapOptions); |
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
$(function () { | |
// параллакс при прокрутке | |
// - [all] | |
function pagerScroll () { | |
let t = $(window).scrollTop(); | |
// code ... | |
} | |
$(window).scroll(function () { | |
pagerScroll(); | |
}); |
NewerOlder