-
Notifications
You must be signed in to change notification settings - Fork 29
/
testing.html
81 lines (71 loc) · 3.01 KB
/
testing.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BesoGo</title>
<link rel="icon" type="image/png" href="icon32.png" sizes="32x32">
<link rel="icon" type="image/png" href="icon152.png" sizes="152x152">
<link rel="icon" type="image/png" href="icon192.png" sizes="192x192">
<link rel="icon" type="image/png" href="icon512.png" sizes="512x512">
<link rel="apple-touch-icon-precomposed" href="icon152.png" sizes="152x152">
<link rel="apple-touch-icon-precomposed" href="icon192.png" sizes="192x192">
<link rel="icon" href="icon.svg" sizes="any" type="image/svg+xml">
<link rel="manifest" href="manifest.json" />
<meta name="description" content="BesoGo: a web-based SGF Editor">
<meta property="og:url" content="https://yewang.github.io/besogo/testing.html">
<meta property="og:type" content="website">
<meta property="og:title" content="BesoGo">
<meta property="og:description" content="BesoGo: a web-based SGF Editor">
<meta property="og:image" content="https://yewang.github.io/besogo/icon512.png">
<link rel="stylesheet" type="text/css" href="css/besogo.css">
<link rel="stylesheet" type="text/css" href="css/besogo-fill.css">
<link rel="stylesheet" type="text/css" href="css/board-flat.css">
<script src="js/besogo.js"></script>
<script src="js/editor.js"></script>
<script src="js/gameRoot.js"></script>
<script src="js/svgUtil.js"></script>
<script src="js/parseSgf.js"></script>
<script src="js/loadSgf.js"></script>
<script src="js/saveSgf.js"></script>
<script src="js/boardDisplay.js"></script>
<script src="js/coord.js"></script>
<script src="js/toolPanel.js"></script>
<script src="js/filePanel.js"></script>
<script src="js/controlPanel.js"></script>
<script src="js/namesPanel.js"></script>
<script src="js/commentPanel.js"></script>
<script src="js/treePanel.js"></script>
</head>
<body>
<div id="target"></div>
<script type="text/javascript">
(function() {
var options = { resize: "fill" },
searchString = location.search.substring(1), // Drop question mark
params = searchString.split("&"),
div = document.getElementById('target'), // Target div
i, value; // Scratch iteration variables
for (i = 0; i < params.length; i++) {
value = params[i].split("="); // Splits on all "=" symbols
options[value.shift()] = value.join("="); // First "=" separates value from name, rest are part of value
}
if (options.theme) { // Board style theme (overrides std theme if set)
addStyleLink('css/board-' + options.theme + '.css');
}
if (options.height && options.width && options.resize === 'fixed') {
div.style.height = options.height + 'px';
div.style.width = options.width + 'px';
}
besogo.create(div, options);
function addStyleLink(cssURL) {
var element = document.createElement('link');
element.href = cssURL;
element.type = 'text/css';
element.rel = 'stylesheet';
document.head.appendChild(element);
}
})();
</script>
</body>
</html>