Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Яков
idivbanu
Commits
c806f56b
Commit
c806f56b
authored
May 29, 2018
by
Яков
Browse files
test
parent
c8fd5491
Changes
43
Hide whitespace changes
Inline
Side-by-side
web/index.php
View file @
c806f56b
<?php
<?php
require_once
(
dirname
(
__FILE__
)
.
'/../config/ProjectConfiguration.class.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/../config/ProjectConfiguration.class.php'
);
$configuration
=
ProjectConfiguration
::
getApplicationConfiguration
(
'www'
,
'
prod
'
,
true
);
$configuration
=
ProjectConfiguration
::
getApplicationConfiguration
(
'www'
,
'
dev
'
,
true
);
sfContext
::
createInstance
(
$configuration
)
->
dispatch
();
sfContext
::
createInstance
(
$configuration
)
->
dispatch
();
web/js/init.d.js
View file @
c806f56b
...
@@ -2663,6 +2663,47 @@ var imgUpload = {
...
@@ -2663,6 +2663,47 @@ var imgUpload = {
}
}
};
};
var
discount
=
{
submit
:
function
(
form
){
form
=
$
(
form
);
$
.
post
(
form
.
attr
(
'
action
'
),
form
.
serialize
(),
function
(
html
)
{
$
(
'
.overlay_discount__item
'
).
html
(
html
);
if
(
$
(
window
).
width
()
<
650
)
{
$
(
'
.header_mobile
'
).
addClass
(
'
discount
'
);
$
(
'
.header_mobile
'
).
addClass
(
'
d3
'
);
}
else
{
$
(
$
(
'
.top_right
'
)[
1
]).
addClass
(
'
discount
'
);
$
(
$
(
'
.top_right
'
)[
1
]).
addClass
(
'
d3
'
);
}
});
},
open
:
function
(
_this
)
{
if
(
_this
)
{
$
(
'
#discount_offer
'
).
show
();
$
(
'
#discount
'
).
hide
();
offer_id
=
$
(
_this
).
attr
(
'
data-offer-id
'
);
$
(
'
#discount_offer_id
'
).
val
(
offer_id
);
}
else
{
$
(
'
#discount
'
).
show
();
$
(
'
#discount_offer
'
).
hide
();
$
(
'
#discount_offer_id
'
).
val
(
''
);
}
var
discountForm
=
$
(
'
.discount_form
'
);
discountForm
.
removeClass
(
'
discount_form_done
'
);
$
(
'
.overlay_discount
'
).
addClass
(
'
overlay_discount_active
'
);
$
(
'
body
'
).
addClass
(
'
scroll_hidden
'
);
$
(
'
body
'
).
addClass
(
'
overlay_discount_active
'
);
discountForm
.
find
(
'
input[type="text"]
'
).
eq
(
0
).
focus
();
},
close
:
function
(){
$
(
'
.overlay_discount
'
).
removeClass
(
'
overlay_discount_active
'
);
$
(
'
body
'
).
removeClass
(
'
scroll_hidden
'
);
$
(
'
body
'
).
removeClass
(
'
overlay_discount_active
'
);
}
};
var
callback
=
{
var
callback
=
{
submit
:
function
(
form
){
submit
:
function
(
form
){
form
=
$
(
form
);
form
=
$
(
form
);
...
@@ -2808,9 +2849,24 @@ var form_validator = {
...
@@ -2808,9 +2849,24 @@ var form_validator = {
function
setUrlHash
(
hash
)
{
function
setUrlHash
(
hash
)
{
if
(
'
replaceState
'
in
window
.
history
&&
window
.
location
.
hash
!==
hash
)
window
.
history
.
replaceState
(
''
,
''
,
hash
);
if
(
'
replaceState
'
in
window
.
history
&&
window
.
location
.
hash
!==
hash
)
window
.
history
.
replaceState
(
''
,
''
,
hash
);
}
}
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
//slider.init();
$
.
ajax
({
if
(
$
(
'
.phone_mask
'
).
length
>
0
)
{
url
:
'
/check_discount_term/
'
,
$
(
'
.phone_mask
'
).
mask
(
"
+7 (999) 999-9999
"
);
dataType
:
'
json
'
,
}
type
:
'
post
'
,
success
:
function
(
data
)
{
if
(
data
.
status
==
'
success
'
&&
data
.
active_discount
!=
0
)
{
console
.
log
(
'
123
'
);
if
(
$
(
window
).
width
()
<
650
)
{
$
(
'
.header_mobile
'
).
addClass
(
'
discount
'
);
$
(
'
.header_mobile
'
).
addClass
(
'
d
'
+
data
.
active_discount
);
}
else
{
$
(
$
(
'
.top_right
'
)[
1
]).
addClass
(
'
discount
'
);
$
(
$
(
'
.top_right
'
)[
1
]).
addClass
(
'
d
'
+
data
.
active_discount
);
}
}
}
})
});
});
web/robots.txt
deleted
100644 → 0
View file @
c8fd5491
User-agent: *
Allow: /i/
Disallow: /js/
Disallow: /css/
Disallow: /a/
User-agent: Googlebot
Allow: /
User-agent: Yandex
Allow: /i/
Disallow: /js/
Disallow: /css/
Disallow: /a/
Host: idivbanu.ru
Sitemap: http://idivbanu.ru/sitemap.xml
\ No newline at end of file
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment