forked from audreyt/ethercalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (140 loc) · 4.64 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html manifest="manifest.appcache">
<head>
<meta charset="utf-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<title>EtherCalc - Share the URL to your friends and edit together!</title>
<script>
if (!(window.location.hash.replace('#', ''))) {
if (window.location.href.match(/\/([^_][^\/]*)$/)) {
var SocialCalc = { _room: RegExp.$1 };
}
else {
window.location = './_start';
}
}
window.addEventListener("message", function(it){
if (/"type"\s*:\s*"multi"/.test(it.data)) {
window.__MULTI__ = (function(){ try { return JSON.parse(it.data); } catch (e$) {} }());
}
}, false);
</script>
<script src="./static/ethercalc.js"></script>
<script src="./socket.io/socket.io.js"></script>
<script src="./zappa/zappa.js"></script>
<script src="./player/broadcast.js"></script>
<script src="./player/graph.js"></script>
<script src="./player/main.js"></script>
<script>
var l10n_zh_TW = {
"s_BrowserNotSupported": "瀏覽器不支援",
"s_loc_align_center": "置中",
"s_loc_align_left": "置左",
"s_loc_align_right": "置右",
"s_loc_alignment": "對齊方式",
"s_loc_audit": "紀錄",
"s_loc_auto_sum": "自動加總",
"s_loc_automatic": "自動",
"s_loc_borders": "邊框",
"s_loc_bottom": "底",
"s_loc_csv_format": "逗號分隔值(CSV)格式",
"s_loc_cancel": "取消",
"s_loc_cancel": "取消",
"s_loc_category": "分類",
"s_loc_center": "中央",
"s_loc_clear": "清空",
"s_loc_clipboard": "剪貼簿",
"s_loc_color": "顏色",
"s_loc_column_": "欄 ",
"s_loc_comment": "留言",
"s_loc_copy": "複製",
"s_loc_custom": "自訂",
"s_loc_cut": "剪下",
"s_loc_default": "預設",
"s_loc_delete": "刪除",
"s_loc_delete_column": "刪除欄",
"s_loc_delete_contents": "刪除內文",
"s_loc_delete_row": "刪除列",
"s_loc_down": "下",
"s_loc_edit": "編輯",
"s_loc_font": "字體",
"s_loc_format": "格式",
"s_loc_formula": "公式",
"s_loc_function_list": "函式表",
"s_loc_functions": "函式",
"s_loc_grid": "格",
"s_loc_graph": "圖表",
"s_loc_horizontal": "水平",
"s_loc_insert_column": "置入一欄",
"s_loc_insert_row": "置入一列",
"s_loc_italic": "斜體",
"s_loc_left": "左",
"s_loc_left_border": "左邊框",
"s_loc_link": "連結",
"s_loc_list": "清單",
"s_loc_major_sort": "主要排序",
"s_loc_manual": "手冊",
"s_loc_merge_cells": "合併儲存格",
"s_loc_middle": "置中",
"s_loc_name": "名稱",
"s_loc_names": "名稱",
"s_loc_no_padding": "不留白",
"s_loc_normal": "一般",
"s_loc_number": "數值",
"s_loc_ok": "好",
"s_loc_padding": "留白",
"s_loc_page_name": "頁名",
"s_loc_paste": "貼上",
"s_loc_plain_text": "空白文件",
"s_loc_recalc": "重算",
"s_loc_recalculation": "重新計算",
"s_loc_redo": "重做",
"s_loc_right": "右",
"s_loc_right_border": "右邊框",
"s_loc_sheet_settings": "試算表設定",
"s_loc_save": "存檔",
"s_loc_save_to": "儲存為",
"s_loc_set_value_to": "賦值為",
"s_loc_sort": "排序",
"s_loc_sort_": "排序 ",
"s_loc_sort_cells": "排序儲存格",
"s_loc_url": "網址",
"s_loc_undo": "倒退",
"s_loc_unmerge_cells": "取消合併儲存格",
"s_loc_up": "上",
"s_loc_value": "值",
"s_loc_vertical": "垂直",
"s_loc_wikitext": "協作文字",
"s_loc_workspace": "工作區"
}
if (navigator.language === 'zh-TW') {
for (var k in l10n_zh_TW) {
SocialCalc.Constants[k] = l10n_zh_TW[k]
}
}
</script>
<link rel="stylesheet" type="text/css" href="./static/socialcalc.css">
<link rel="stylesheet" type="text/css" href="./static/index.css">
<link rel="stylesheet" type="text/css" href="./static/vex.css">
<link rel="stylesheet" type="text/css" href="./static/vex-theme-flat-attack.css">
<style>
body
{font-family:verdana,helvetica,sans-serif;font-size:small;}
.testclass {border:2px dotted red;}
.testclass2 {background-image:url(/images/sc-logo.gif);}
.smaller {font-size:smaller;}
.hide {display:none;}
</style>
</head>
<body onresize="if (typeof doresize != 'undefined') doresize();">
<div id="msg" style="position:absolute;right:15px;top: 8px; bottom: 80px; display: none">
<textarea id="msgtext" style="margin-top:10px;width:110px;height:100%;"></textarea><br>
<form id="msgform">
<input type="text" id="msgout" name="msgout" style="width: 110px">
<br>
<input type="submit" style="font-size:x-small;" value="Add a line" onclick="val = document.getElementById('msgout').value; if (/\S/.test(val)) {SocialCalc.Callbacks.broadcast('chat', {msg: val}); addmsg(val, false); document.getElementById('msgout').value = ''}; return false"><br>
</form>
</div>
<div id="tableeditor"> </div>
</body>
</html>