header('Content-type: application/json; charset=utf-8');
$data['success'] = true;
$data['result']['title'] = 'Ваша заявка успешно отправлена';
$data['result']['message'] = '<p>Наши специалисты свяжутся с вами в ближайшее время</p>';
echo json_encode($data, JSON_UNESCAPED_UNICODE);
exit();
<input name="isNaked" type="hidden" value="1">
я сначала обрабатываю данные в своем php
function styles(s, d) {
return src(s)
.pipe(eval(preprocessor)())
.pipe(concat("style.css"))
.pipe(
autoprefixer({ overrideBrowserslist: ["last 10 versions"], grid: true })
)
.pipe(
cleancss({
level: { 1: { specialComments: 0 } } /* , format: 'beautify' */,
})
)
.pipe(dest(d))
.pipe(browserSync.stream());
}
styles('scss', 'css');
styles('scss2', 'css2');
@mixin placeholder-color($color)
{
&::-webkit-input-placeholder
{
/* WebKit, Blink, Edge */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&:-moz-placeholder
{
/* Mozilla Firefox 4 to 18 */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::-moz-placeholder
{
/* Mozilla Firefox 19+ */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&:-ms-input-placeholder
{
/* Internet Explorer 10-11 */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::-ms-input-placeholder
{
/* Microsoft Edge */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
&::placeholder
{
/* Most modern browsers support this now. */
text-overflow: ellipsis;
opacity: 1;
color: $color;
}
}
.link {
@include placeholder-color(#ccc);
&:hover {
@include placeholder-color(#000);
}
}
position: absolute;
width: 100%;
z-index: 10;
top: 0;
left: 0;