#1102 - Исправить карту на странице Контакты.

parent a6fd8dc9
...@@ -211,7 +211,7 @@ $lang = Languages::getCurrent(); ...@@ -211,7 +211,7 @@ $lang = Languages::getCurrent();
<br> <br>
<form class=""> <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="map_form_button mfp-close simple_btn_close">Закрыть</span>
<span class="mfp-close">&times;</span> <span class="mfp-close">&times;</span>
</form> </form>
...@@ -235,7 +235,7 @@ $lang = Languages::getCurrent(); ...@@ -235,7 +235,7 @@ $lang = Languages::getCurrent();
<br> <br>
<form class=""> <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="map_form_button mfp-close simple_btn_close">Закрыть</span>
<span class="mfp-close">&times;</span> <span class="mfp-close">&times;</span>
</form> </form>
......
function printHtml(html) 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>'); 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('</head><body >');
mywindow.document.write(html); mywindow.document.write(html);
mywindow.document.write('</body></html>'); mywindow.document.write('</body></html>');
...@@ -17,6 +17,13 @@ function printHtml(html) ...@@ -17,6 +17,13 @@ function printHtml(html)
} }
$(document).ready(function() { $(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(); $.parallaxify();
// $(".player").mb_YTPlayer(); // $(".player").mb_YTPlayer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment