Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
f24cf03b
Commit
f24cf03b
authored
Aug 31, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1102 - Исправить карту на странице Контакты.
parent
a6fd8dc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
frontend/views/site/contacts.php
frontend/views/site/contacts.php
+2
-2
frontend/web/js/common.js
frontend/web/js/common.js
+9
-2
No files found.
frontend/views/site/contacts.php
View file @
f24cf03b
...
...
@@ -211,7 +211,7 @@ $lang = Languages::getCurrent();
<br>
<form
class=
""
>
<button
class=
"map_form_button
"
onclick=
"printHtml($(this).closest('.popup').find('.print-block').html()); return false;
"
>
Печать
</button>
<button
class=
"map_form_button
map_print_button
"
>
Печать
</button>
<span
class=
"map_form_button mfp-close simple_btn_close"
>
Закрыть
</span>
<span
class=
"mfp-close"
>
×
</span>
</form>
...
...
@@ -235,7 +235,7 @@ $lang = Languages::getCurrent();
<br>
<form
class=
""
>
<button
class=
"map_form_button
"
onclick=
"printHtml($(this).closest('.popup').find('.print-block').html()); return false;
"
>
Печать
</button>
<button
class=
"map_form_button
map_print_button
"
>
Печать
</button>
<span
class=
"map_form_button mfp-close simple_btn_close"
>
Закрыть
</span>
<span
class=
"mfp-close"
>
×
</span>
</form>
...
...
frontend/web/js/common.js
View file @
f24cf03b
function
printHtml
(
html
)
{
var
mywindow
=
window
.
open
(
''
,
'
my div
'
,
'
height=768,width=1024
'
);
var
mywindow
=
window
.
open
(
''
,
'
Контакты ООО "Арт Проект"
'
,
'
height=768,width=1024
'
);
mywindow
.
document
.
write
(
'
<html><head><title>Контакты ООО "Арт Проект"</title>
'
);
/*optional stylesheet*/
//mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
mywindow
.
document
.
write
(
'
</head><body >
'
);
mywindow
.
document
.
write
(
html
);
mywindow
.
document
.
write
(
'
</body></html>
'
);
...
...
@@ -17,6 +17,13 @@ function printHtml(html)
}
$
(
document
).
ready
(
function
()
{
$
(
'
.map_print_button
'
).
click
(
function
(){
var
html
=
$
(
this
).
closest
(
'
.popup
'
).
find
(
'
.print-block
'
).
html
()
+
'
<div id="moscow_map" style="width: 100%; height: 748px;"></div>
'
;
printHtml
(
html
);
return
false
;
});
$
.
parallaxify
();
// $(".player").mb_YTPlayer();
...
...
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