danoniplus 25.5.6 → 25.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/danoni_main.js +6 -6
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Source by tickle
|
|
6
6
|
* Created : 2018/10/08
|
|
7
|
-
* Revised : 2022/
|
|
7
|
+
* Revised : 2022/04/10
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 25.5.
|
|
12
|
-
const g_revisedDate = `2022/
|
|
11
|
+
const g_version = `Ver 25.5.7`;
|
|
12
|
+
const g_revisedDate = `2022/04/10`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
15
15
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -40,11 +40,11 @@ let g_localVersion2 = ``;
|
|
|
40
40
|
*/
|
|
41
41
|
const current = _ => {
|
|
42
42
|
if (document.currentScript) {
|
|
43
|
-
return document.currentScript.src;
|
|
43
|
+
return encodeURI(document.currentScript.src);
|
|
44
44
|
}
|
|
45
45
|
const scripts = document.getElementsByTagName(`script`);
|
|
46
46
|
const targetScript = scripts[scripts.length - 1];
|
|
47
|
-
return targetScript.src;
|
|
47
|
+
return encodeURI(targetScript.src);
|
|
48
48
|
};
|
|
49
49
|
const g_rootPath = current().match(/(^.*\/)/)[0];
|
|
50
50
|
const g_remoteFlg = g_rootPath.match(`^https://cwtickle.github.io/danoniplus/`) !== null;
|
|
@@ -1356,7 +1356,7 @@ function loadDos(_afterFunc, _scoreId = g_stateObj.scoreId, _cyclicFlg = false)
|
|
|
1356
1356
|
const externalDosInput = document.querySelector(`#externalDos`);
|
|
1357
1357
|
const divRoot = document.querySelector(`#divRoot`);
|
|
1358
1358
|
const queryDos = getQueryParamVal(`dos`) !== null ? `dos/${getQueryParamVal('dos')}.txt` :
|
|
1359
|
-
(externalDosInput !== null ? externalDosInput.value : ``);
|
|
1359
|
+
encodeURI(externalDosInput !== null ? externalDosInput.value : ``);
|
|
1360
1360
|
|
|
1361
1361
|
if (dosInput === null && queryDos === ``) {
|
|
1362
1362
|
makeWarningWindow(g_msgInfoObj.E_0023);
|