[7193] | 1 | <style type="text/css"> |
---|
| 2 | #bp_cla {ldelim} |
---|
| 3 | cursor:pointer; |
---|
| 4 | } |
---|
[11961] | 5 | </style> |
---|
[8957] | 6 | |
---|
[11961] | 7 | {php} |
---|
| 8 | global $picture; |
---|
| 9 | $zoom=$_POST['zoom']; |
---|
| 10 | $this->assign('zoom', $zoom ); |
---|
| 11 | |
---|
| 12 | {/php} |
---|
[7193] | 13 | <a onclick = "Toggle_bp()" id="bp_cla" |
---|
[7124] | 14 | title="{'cl_autosize_info_2'|@translate}" |
---|
| 15 | alt="{'cl_autosize_info_2'|@translate}" /> |
---|
[17192] | 16 | <img class="button" id="bp_img_cla" alt="{'cl_autosize_info_2'|@translate}" src="{$cl_autosize_button.ICON}" complete="complete"/><span></span> |
---|
[7193] | 17 | </a> |
---|
| 18 | |
---|
[16931] | 19 | |
---|
| 20 | |
---|
[11961] | 21 | <script language="JavaScript" type="text/javascript"> |
---|
[16935] | 22 | var src1="{$cl_autosize_button.ICON}"; |
---|
| 23 | var src2="{$cl_autosize_button.ICON2}"; |
---|
| 24 | var src3="{'cl_autosize_info_2'|@translate}"; |
---|
| 25 | var src4 = "{'cl_autosize_info'|@translate}"; |
---|
| 26 | var src5 = "{'cl_autosize_info_1'|@translate}"; |
---|
| 27 | var src6 = "{$cl_autosize_button.ICON1}"; |
---|
[19764] | 28 | var asp_options = null; |
---|
[16935] | 29 | |
---|
| 30 | {if $ASP.width} |
---|
[22467] | 31 | jQuery(window).on("load", function () {ldelim} |
---|
[19764] | 32 | asp_options ={ldelim} }; |
---|
[11961] | 33 | if(typeof $("#imageToolBar") !="undefined" ) |
---|
[16935] | 34 | var w = $("#imageToolBar").width(); |
---|
| 35 | if (w === null) {ldelim} w = $("#theImage").width(); } |
---|
| 36 | if (w < {$ASP.min_viewport_width}) {ldelim} w = .75 * $("#theImage").width(); } |
---|
[11277] | 37 | var m = w; |
---|
| 38 | w = w * ( Math.min( Math.max({$ASP.viewport_width} / 100, .5) , 1 )); |
---|
| 39 | w = Math.round(Math.min( {$ASP.max_viewport_width} , Math.max( {$ASP.min_viewport_width}, w) )); |
---|
| 40 | var s = (100 - {$ASP.speed}) * 2000; |
---|
| 41 | var p = Math.round(Math.min(Math.max({$ASP.width} * ( {$ASP.start_position} / 100 ), 0), {$ASP.width})); |
---|
| 42 | if ({$ASP.width} > w) {ldelim} |
---|
| 43 | $("#theImage img").eq(0).removeAttr("style").attr({ldelim}width:{$ASP.width},height:{$ASP.height}}).addClass("simple_panorama"); |
---|
| 44 | asp_options = {ldelim} |
---|
| 45 | viewport_width: w, |
---|
| 46 | speed: s, |
---|
| 47 | direction: '{$ASP.direction}', |
---|
| 48 | control_display: '{$ASP.control_display}', |
---|
| 49 | start_position : p, |
---|
| 50 | auto_start : {$ASP.auto_start}, |
---|
| 51 | mode_360 : {$ASP.mode_360}, |
---|
| 52 | loop_180 : {$ASP.loop_180} |
---|
| 53 | }; |
---|
[19764] | 54 | |
---|
| 55 | // $("#theImage img.simple_panorama").panorama(asp_options); |
---|
[11277] | 56 | }; |
---|
[11961] | 57 | }); |
---|
[11277] | 58 | {/if} |
---|
[16931] | 59 | </script> |
---|
| 60 | |
---|