Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Тимофей Семененко
/
shold.dev5.ashmanov.com
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1f4a875
authored
Sep 20, 2017
by
Semenenko Timofey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Новые рекомендации по формам
1 parent
00895040
Pipeline
#2954
for
a1f4a875
skipped
in 0 seconds
Changes
10
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
124 additions
and
98 deletions
css/main.css
css/media.css
js/compiled.js
local/components/cpeople/form/templates/callback/template.php
local/components/cpeople/form/templates/feedback/template.php
local/components/cpeople/form/templates/feedback_credit_popup/template.php
local/components/cpeople/form/templates/feedback_project_popup/template.php
local/components/cpeople/form/templates/feedback_project_popup_order/template.php
local/components/cpeople/form/templates/feedback_project_popup_start/template.php
local/components/cpeople/form/templates/soglasie/template.php
css/main.css
View file @
a1f4a87
...
...
@@ -14591,6 +14591,45 @@ h2.resp-accordion:first-child {
}
.container
{
min-height
:
100%
;
margin-bottom
:
-70px
;
/*padding-top: 72px;*/
}
#modal_form
{
width
:
50%
;
height
:
500px
;
/* Рaзмеры дoлжны быть фиксирoвaны */
border-radius
:
5px
;
border
:
3px
#000
solid
;
background
:
#fff
;
position
:
fixed
;
/* чтoбы oкнo былo в видимoй зoне в любoм месте */
top
:
10%
;
/* oтступaем сверху 45%, oстaльные 5% пoдвинет скрипт */
/* margin-left: -150px; */
/* тут вся мaгия центрoвки css, oтступaем влевo и вверх минус пoлoвину ширины и высoты сooтветственнo =) */
display
:
none
;
/* в oбычнoм сoстoянии oкнa не дoлжнo быть */
opacity
:
0
;
/* пoлнoстью прoзрaчнo для aнимирoвaния */
z-index
:
5
;
/* oкнo дoлжнo быть нaибoлее бoльшем слoе */
padding
:
20px
10px
;
}
/* Кнoпкa зaкрыть для тех ктo в тaнке) */
#modal_form
#modal_close
{
width
:
21px
;
height
:
21px
;
position
:
absolute
;
top
:
10px
;
right
:
10px
;
cursor
:
pointer
;
display
:
block
;
}
/* Пoдлoжкa */
#overlay
{
z-index
:
3
;
/* пoдлoжкa дoлжнa быть выше слoев элементoв сaйтa, нo ниже слoя мoдaльнoгo oкнa */
position
:
fixed
;
/* всегдa перекрывaет весь сaйт */
background-color
:
#000
;
/* чернaя */
opacity
:
0.8
;
/* нo немнoгo прoзрaчнa */
-moz-opacity
:
0.8
;
/* фикс прозрачности для старых браузеров */
filter
:
alpha
(
opacity
=
80
);
width
:
100%
;
height
:
600px
;
/* рaзмерoм вo весь экрaн */
top
:
0
;
/* сверху и слевa 0, oбязaтельные свoйствa! */
left
:
0
;
cursor
:
pointer
;
display
:
none
;
/* в oбычнoм сoстoянии её нет) */
}
\ No newline at end of file
css/media.css
View file @
a1f4a87
...
...
@@ -478,6 +478,21 @@ li.additional_list_item{margin-bottom:20px;float:left;}
background-size
:
cover
;
background-position
:
center
center
;
}
#modal_form
{
width
:
84%
;
height
:
500px
;
/* Рaзмеры дoлжны быть фиксирoвaны */
border-radius
:
5px
;
border
:
3px
#000
solid
;
background
:
#fff
;
position
:
fixed
;
/* чтoбы oкнo былo в видимoй зoне в любoм месте */
top
:
10%
;
/* oтступaем сверху 45%, oстaльные 5% пoдвинет скрипт */
/* margin-left: -150px; */
/* тут вся мaгия центрoвки css, oтступaем влевo и вверх минус пoлoвину ширины и высoты сooтветственнo =) */
display
:
none
;
/* в oбычнoм сoстoянии oкнa не дoлжнo быть */
opacity
:
0
;
/* пoлнoстью прoзрaчнo для aнимирoвaния */
z-index
:
5
;
/* oкнo дoлжнo быть нaибoлее бoльшем слoе */
padding
:
20px
10px
;
}
#result_list
{
position
:
absolute
;
display
:
none
;
left
:
-125px
;
width
:
207px
;
top
:
0px
;
z-index
:
100
;
border
:
2px
solid
;
border-top
:
none
;
padding-top
:
40px
;
padding-bottom
:
5px
;
border-radius
:
0
20px
0
0
;
color
:
#EB9D72
;
-webkit-transition
:
ease-out
0.2s
;
-o-transition
:
ease-out
0.2s
;
transition
:
ease-out
0.2s
;
background
:
rgba
(
255
,
255
,
255
,
0.91
);}
}
...
...
js/compiled.js
View file @
a1f4a87
...
...
@@ -3159,15 +3159,15 @@ $.fn.isOnScreen = function(){
margin
:
20
,
width
:
800
,
height
:
6
00
,
minWidth
:
10
0
,
minHeight
:
10
0
,
height
:
7
00
,
minWidth
:
5
0
,
minHeight
:
5
0
,
maxWidth
:
9999
,
maxHeight
:
9999
,
pixelRatio
:
1
,
// Set to 2 for retina display support
autoSize
:
true
,
autoHeight
:
fals
e
,
autoHeight
:
tru
e
,
autoWidth
:
false
,
autoResize
:
true
,
...
...
@@ -16830,7 +16830,7 @@ function lazyCycle(container) {
}
});
}
}
init
();
})(
jQuery
);
...
...
@@ -17164,49 +17164,24 @@ jQuery.event.special.dblclick = {
App
.
win
.
on
(
'resize'
,
updateHeight
).
trigger
(
'resize'
);
})(
jQuery
);
// $('.filter-element _house _inactive').click(function (event) {
// if (screen.width <= '724') {
// alert();
// // $('.').addClass('mobile');
// }
// });
// $('.project-gallery-items')('onckick'.function(){
//
// });
//
// jQuery(document.documentElement).keyup(function (event) {
//
// var owl = jQuery(".project-gallery-items");
//
// // handle cursor keys
// if (event.keyCode == 37) {
// // go left
// imagesContainer.prevAll('.js-project-gallery-next');
// } else if (event.keyCode == 39) {
// // go right
// imagesContainer.prevAll('.js-project-gallery-next');
// }
//
// });
// jQuery(document.documentElement).keyup(function (event) {
//
//
// var cycle = $('.project-gallery-items');
// //if (!cycle.length) return false;
//
// if (event.keyCode == 37) {
// alert('что-то')
//
// cycle.cycle('prev');
// } else if (event.keyCode == 39) {
//
// cycle.cycle('next');
// }
//
//
// });
\ No newline at end of file
$
(
document
).
ready
(
function
()
{
// вся мaгия пoсле зaгрузки стрaницы
$
(
'a#go'
).
click
(
function
(
event
){
// лoвим клик пo ссылки с id="go"
event
.
preventDefault
();
// выключaем стaндaртную рoль элементa
$
(
'#overlay'
).
fadeIn
(
400
,
// снaчaлa плaвнo пoкaзывaем темную пoдлoжку
function
(){
// пoсле выпoлнения предъидущей aнимaции
$
(
'#modal_form'
)
.
css
(
'display'
,
'block'
)
// убирaем у мoдaльнoгo oкнa display: none;
.
animate
({
opacity
:
1
,
top
:
'40'
},
10
);
// плaвнo прибaвляем прoзрaчнoсть oднoвременнo сo съезжaнием вниз
});
});
/* Зaкрытие мoдaльнoгo oкнa, тут делaем тo же сaмoе нo в oбрaтнoм пoрядке */
$
(
'#modal_close, #overlay'
).
click
(
function
(){
// лoвим клик пo крестику или пoдлoжке
$
(
'#modal_form'
)
.
animate
({
opacity
:
0
,
top
:
'40'
},
10
,
// плaвнo меняем прoзрaчнoсть нa 0 и oднoвременнo двигaем oкнo вверх
function
(){
// пoсле aнимaции
$
(
this
).
css
(
'display'
,
'none'
);
// делaем ему display: none;
$
(
'#overlay'
).
fadeOut
(
10
);
// скрывaем пoдлoжку
}
);
});
});
local/components/cpeople/form/templates/callback/template.php
View file @
a1f4a87
...
...
@@ -29,14 +29,14 @@
</span>
</label>
<label>
<input
type=
"checkbox"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
<a
href=
"#!"
class=
"form-cancel js-cancel"
>
Отме
н
а
</a>
<a
href=
"#!"
class=
"form-cancel js-cancel"
>
Отмеа
</a>
<span
class=
"form-required-hint"
>
Поля, обязательные к заполнению
</span>
...
...
local/components/cpeople/form/templates/feedback/template.php
View file @
a1f4a87
...
...
@@ -12,13 +12,13 @@
<span
class=
"form-error-message"
>
Поле незаполнено
</span>
</span>
</label>
<label
>
<span
class=
"form-label"
>
E-mail
</span
>
<span
class=
"form-input-container"
>
<input
type=
"text"
class=
"text-input"
name=
"email"
data-rules=
'{"required": true, "email": true}'
>
<!-- <span class="form-error-message">Поле незаполнено</span> -->
</span
>
</label
>
<!-- <label>--
>
<!-- <span class="form-label">E-mail</span>--
>
<!-- <span class="form-input-container">--
>
<!-- <input type="text" class="text-input" name="email" data-rules='{"required": true, "email": true}'>--
>
<!--
<!-- <span class="form-error-message">Поле незаполнено</span> -->
<!-- </span>--
>
<!-- </label>--
>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
Телефон
</span>
<span
class=
"form-input-container"
>
...
...
@@ -34,10 +34,10 @@
</span>
</label>
<label>
<input
type=
"checkbox"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
...
...
local/components/cpeople/form/templates/feedback_credit_popup/template.php
View file @
a1f4a87
...
...
@@ -38,10 +38,10 @@
</span>
</label>
<label>
<input
type=
"checkbox"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
...
...
local/components/cpeople/form/templates/feedback_project_popup/template.php
View file @
a1f4a87
...
...
@@ -16,13 +16,13 @@
<span
class=
"form-error-message"
>
Поле незаполнено
</span>
</span>
</label>
<label
>
<span
class=
"form-label"
>
E-mail
</span
>
<span
class=
"form-input-container"
>
<input
type=
"text"
class=
"text-input"
name=
"email"
data-rules=
'{"required":true, "email": true}'
>
<!-- <span class="form-error-message">Поле незаполнено</span> -->
</span
>
</label
>
<!-- <label>--
>
<!-- <span class="form-label">E-mail</span>--
>
<!-- <span class="form-input-container">--
>
<!-- <input type="text" class="text-input" name="email" data-rules='{"required":true, "email": true}'>--
>
<!--
<!-- <span class="form-error-message">Поле незаполнено</span> -->
<!-- </span>--
>
<!-- </label>--
>
</div>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
Телефон
</span>
...
...
@@ -39,10 +39,9 @@
</span>
</label>
<label>
<input
type=
"checkbox"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
...
...
local/components/cpeople/form/templates/feedback_project_popup_order/template.php
View file @
a1f4a87
...
...
@@ -16,13 +16,13 @@
<span
class=
"form-error-message"
>
Поле незаполнено
</span>
</span>
</label>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
E-mail
</span
>
<span
class=
"form-input-container"
>
<input
type=
"text"
class=
"text-input"
name=
"email"
data-rules=
'{"required":true, "email": true}'
>
<span
class=
"form-error-message"
>
Поле незаполнено
</span
>
</span
>
</label
>
<!-- <label class="form-row _required">--
>
<!-- <span class="form-label">E-mail</span>--
>
<!-- <span class="form-input-container">--
>
<!-- <input type="text" class="text-input" name="email" data-rules='{"required":true, "email": true}'>--
>
<!-- <span class="form-error-message">Поле незаполнено</span>--
>
<!-- </span>--
>
<!-- </label>--
>
</div>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
Телефон
</span>
...
...
@@ -39,10 +39,9 @@
</span>
</label>
<label>
<input
type=
"checkbox
"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked
"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
...
...
local/components/cpeople/form/templates/feedback_project_popup_start/template.php
View file @
a1f4a87
...
...
@@ -16,13 +16,13 @@
<span
class=
"form-error-message"
>
Поле незаполнено
</span>
</span>
</label>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
E-mail
</span
>
<span
class=
"form-input-container"
>
<input
type=
"text"
class=
"text-input"
name=
"email"
data-rules=
'{"required": true, "email": true}'
>
<span
class=
"form-error-message"
>
Поле незаполнено
</span
>
</span
>
</label
>
<!-- <label class="form-row _required">--
>
<!-- <span class="form-label">E-mail</span>--
>
<!-- <span class="form-input-container">--
>
<!-- <input type="text" class="text-input" name="email" data-rules='{"required": true, "email": true}'>--
>
<!-- <span class="form-error-message">Поле незаполнено</span>--
>
<!-- </span>--
>
<!-- </label>--
>
<label
class=
"form-row _required"
>
<span
class=
"form-label"
>
Телефон
</span>
...
...
@@ -39,10 +39,9 @@
</span>
</label>
<label>
<input
type=
"checkbox
"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
"#soglasie"
class=
'js-order-project'
>
условиями на обработку персональных данных
</a></span>
<input
type=
"checkbox"
checked=
"checked
"
id=
"subscribeNews"
name=
"subscribe"
value=
"newsletter"
>
<span
style=
"font-size: 11px;"
>
Я соглашаюсь с
<a
href=
""
id=
"go"
class=
'js-soglasie'
>
условиями на обработку персональных данных
</a></span>
<?
$APPLICATION
->
IncludeComponent
(
'cpeople:form'
,
'soglasie'
)
?>
</label>
<div
class=
"form-row _submit"
>
<button
type=
"submit"
class=
"big-button"
>
Отправить
</button>
...
...
local/components/cpeople/form/templates/soglasie/template.php
View file @
a1f4a87
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment