Less:

.block{
	position:relative;
	&:before{
		content:'';
		position:absolute;
		top:0;
		left:-20px;
		display:block;
		width:20px;
		height:100px;
		background:@color_white;
		-webkit-transform:skewX(15deg);
		-moz-transform:skewX(15deg);
		-ms-transform:skewX(15deg);
		-o-transform:skewX(15deg);
		transform:skewX(15deg);
	}
}
Categories: CSS Tags: ,

Javascript:

$('#owl_1').owlCarousel({
	loop:true,
	margin:0,
	items:1,
	nav:false,
	dots:false,
	autoplay:true,
	autoplayTimeout:500,
	animateOut:'fadeOut',
	animateIn:'fadeIn',
});

Less:

#owl_1{
	.animated{
		-webkit-animation-duration:0ms;
		animation-duration:0ms;
		-webkit-animation-fill-mode:both;
		animation-fill-mode:both;
	}
	.fadeOut{
		-webkit-animation-name:fadeOut;
		animation-name:fadeOut;
	}
	@-webkit-keyframes fadeOut{
		0%{
			opacity:0;
		}
		100%{
			opacity:0;
		}
	}
	@keyframes fadeOut{
		0%{
			opacity:0;
		}
		100%{
			opacity:0;
		}
	}
}
Categories: CSS, Javascript Tags:

1. Установка epel (если не установлен) и remi

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

2. Установка yum-utils (если не установлен)

yum install yum-utils

3. Обновление или установка php

yum-config-manager --enable remi-php56
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo

4. Проверка версии

php -v
https://www.tecmint.com/install-php-5-6-on-centos-7/
Categories: Linux Tags:
4 июня 2019 3 комментария
ul{
	list-style:none;
	column-count:2;
	-moz-column-count:2;
	-webkit-column-count:2;
}
ul li{
	-webkit-column-break-inside:avoid;
	-moz-column-break-inside:avoid;
	-moz-page-break-inside:avoid;
	page-break-inside:avoid;
	break-inside:avoid-column;
}

http://qaru.site/questions/34311/how-to-prevent-column-break-within-an-element

Categories: CSS Tags:
input::-ms-clear{
	display:none;
	width:0;
	height:0;
}

для password:

input::-ms-reveal{
	display:none;
	width:0;
	height:0;
}
Categories: CSS Tags:
3 апреля 2019 1 комментарий
import UIKit
import WebKit
class ViewController: UIViewController, WKNavigationDelegate {
    var webView: WKWebView!
    override func loadView() {
        webView = WKWebView()
        webView.navigationDelegate = self
        view = webView
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        let url = URL(string: "http://example.com")!
        webView.load(URLRequest(url: url))
        let refresh = UIBarButtonItem(barButtonSystemItem: .refresh, target: webView, action: #selector(webView.reload))
        toolbarItems = [refresh]
        navigationController?.isToolbarHidden = false
    }
    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!){
        title = webView.title
    }
}

https://www.ioscreator.com/tutorials/webview-ios-tutorial-ios11

Categories: iOS Tags:
2 апреля 2019 Нет комментариев
header('X-XSS-Protection:0');
Categories: PHP Tags: