Skip to content

Commit 8c531af

Browse files
committed
地圖產生器 v3.10
1 parent 3deeab6 commit 8c531af

File tree

4 files changed

+21
-54
lines changed

4 files changed

+21
-54
lines changed

twmap_gen/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.03
1+
3.1

twmap_gen/pages/about.html

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<a href='https://www.facebook.com/twmapgen/' target="_blank" class="ui-state-default ui-corner-all hp">建議或討論</a>
3232
<p><b>更新紀錄</b>
3333
<pre>
34+
2023/07/02 地圖產生器 v3.10 老花救星加上4x6,3x4,2x3格式輸出。修正list的排序等。
3435
2023/06/13 地圖瀏覽器 v4.35 移除評價功能,修正下載範圍內圖資
3536
2023/06/07 地圖產生器 v3.03 出圖狀態改用beanstalkd架構順更新jquery前端lib
3637
2023/05/30 地圖產生器 v3.02 移除經建一版出圖

twmap_gen/pages/list.html

+3-34
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,6 @@
3434
var ps = {$ps};
3535
var info = "{$psinfo}";
3636
$(document).ready(function(){
37-
/*
38-
var dt = $("#mapTable").dataTable( {
39-
"bFilter": false,
40-
"bInfo": false,
41-
"bJQueryUI": false,
42-
"iDisplayLength": 10,
43-
"bProcessing": true,
44-
"bServerSide": true,
45-
"bStateSave": true, // 記住狀態
46-
"sAjaxSource": "list.php",
47-
"sPaginationType": "full",
48-
"aLengthMenu": [[10,20,30,-1],[10,20,30,"all"]],
49-
"sDom": '<"top"pl>rt<"bottom"p>',
50-
"bScrollCollapse": true,
51-
"bAutoWidth": false,
52-
"aoColumns": [
53-
{ "sTitle": "序號" , "bSortable": false , "sWidth": "40px"},
54-
{ "sTitle": "mid" },
55-
{ "sTitle": "日期", "sWidth": "100px" },
56-
{ "sTitle": "標題" ,"sWidth": "220px"},
57-
{ "sTitle": "X" },
58-
{ "sTitle": "Y" },
59-
{ "sTitle": "格", "sWidth": "20px" },
60-
//{ "sTitle": "張" , "sWidth": "30px"},
61-
{ "sTitle": "版", "sWidth": "10px"},
62-
{ "sTitle": "空間" },
63-
{ "sTitle": "操作" , "bSortable": false }
64-
]});
65-
*/
6637
var dt = $("#mapTable").DataTable( {
6738
ajax: {
6839
url: 'list.php?ajax=1'
@@ -75,10 +46,7 @@
7546
"columnDefs": [
7647
{ "searchable": false, "targets": [0,1,6,7,8,9] },
7748
{ "orderable": false, "targets": 9 }
78-
]
79-
80-
81-
49+
]
8250
});
8351
$(window).resize(function() {
8452
// console.log("resized");
@@ -89,10 +57,11 @@
8957
});
9058
var progressbar = $( "#progressbar" );
9159
progressbar.progressbar({ value: ps });
60+
// 須配合上面 dataTables dom option
9261
progressbar.appendTo(".top");
9362
// label
9463
progressbar.children().css("background","lightgreen");
95-
// progress bar
64+
// progress bar, -20px 是把綠色色塊搬到正確位置。
9665
progressbar.children().eq(1).css('position','relative').css('top','-20px');
9766
$( ".progressLabel" ).text(info).css("background","").css("background-color", "transparent").css('z-index',"100");
9867
// $.fn.DataTable.ext.pager.numbers_length = 5;

twmap_gen/pages/show_ok.html

+16-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
<table id="bigbox">
2-
<tr><td width=400 valign="top" align="left">
2+
<tr><td width=400 valign="top" style='text-align: left;'>
33
<ul>
44
<li>標題: <b class="ui-state-default">{$map.title}</b>
55
{if $map.keepon_id && $map.keepon_id != 'NULL' && !is_numeric($map.keepon_id)}
66
<li>紀錄: <a href='http://www.keepon.com.tw/redirectMap-{$map.keepon_id}.html' target=_blank><img src='http://www.keepon.com.tw/img/ic_launcher-web.png' height='60px' border=0></a>
77
{/if}
8-
<li>本頁<a href='{$links.page}'>連結</a> (張貼參考請使用下列 URL):
9-
<ul><li><span class="copy">{$links.page}</span>
10-
<li><img src="icons/facebook_share_icon.gif" class="fbshare" tile="分享到 facebook"> share to facebook<br/>
11-
</ul>
12-
{if $html_head == 1}
13-
<!-- AddThis Button BEGIN -->
14-
<li><div class="addthis_toolbox addthis_default_style ">分享
15-
<a class="addthis_button_facebook"></a>
16-
<a class="addthis_button_plurk"></a>
17-
<a class="addthis_button_twitter"></a>
18-
<a class="addthis_button_google"></a>
19-
<a class="addthis_button_compact"></a>
20-
<a class="addthis_counter addthis_bubble_style"></a>
21-
</div>
22-
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ef97c3d467e0504"></script>
23-
<!-- AddThis Button END -->
24-
{/if}
8+
<li>點選下列連結分享:
9+
<a href="{$links.page}">{$links.page}</a>
10+
<!-- AddToAny -->
11+
<div class="a2a_kit a2a_kit_size_32 a2a_default_style data-a2a-url='{$links.page}' data-a2a-title='show'">
12+
<a class="a2a_button_twitter"></a>
13+
<a class="a2a_button_line"></a>
14+
<a class="a2a_button_facebook"></a>
15+
<a class="a2a_button_telegram"></a>
16+
<a class="a2a_button_email"></a>
17+
<a class="a2a_button_copy_link"></a>
18+
</div>
19+
<script async src="https://static.addtoany.com/menu/page.js"></script>
20+
<!-- AddToAny END -->
2521
<li>本圖左上角座標 X={$map.locX},Y={$map.locY}
2622
<li>延伸 東方 {$map.shiftX} 與 南方 {$map.shiftY} 公里
2723
<li id="calc"></li>
@@ -81,7 +77,7 @@
8177
{/if}
8278
</ul><!-- 總 -->
8379
</td>
84-
<td valign="top" align="right" height="800">
80+
<td valign="top" style='text-align:right; height:800px'>
8581
{if isset($links.pdf) }
8682
<iframe src="{$links.pdf}" width="512" style="border: none;" height="800"></iframe>
8783
{else}
@@ -90,6 +86,7 @@
9086
</td>
9187
</tr>
9288
</table>
89+
9390
<script>
9491
$(document).ready(function() {
9592

0 commit comments

Comments
 (0)