Skip to content

Instantly share code, notes, and snippets.

@zaurmag
zaurmag / fixed-block.js
Created May 21, 2018 19:49
Fixed блок
// ======= Fixed block =======
(function($) {
$.fn.addFixClass = function(options) {
options = $.extend({
offset: 200,
destroy: false
}, options);
var fixClass = $(this);
$(window).bind('scroll', function() {
if ($(window).scrollTop() >= options.offset && !options.destroy) {
@zaurmag
zaurmag / dop-wp-config
Created January 28, 2020 07:33
Dop const Wordpress in wp-config
<?php
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define('WP_HOME','');
define('WP_SITEURL','');
define('FORCE_SSL_LOGIN', true);