mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: remove extra title
This commit is contained in:
1 parent
10603d9602
commit
df5682333c
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/vjudge",
|
"name": "@hydrooj/vjudge",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Submit problems to remote oj",
|
"description": "Submit problems to remote oj",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"preferUnplugged": true,
|
"preferUnplugged": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hydrooj/utils": "workspace:packages/utils",
|
"@hydrooj/utils": "workspace:*",
|
||||||
"jsdom": "^16.6.0",
|
"jsdom": "^16.6.0",
|
||||||
"superagent": "^6.1.0"
|
"superagent": "^6.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export default class CodeforcesProvider implements IBasicProvider {
|
|||||||
files[`${fid}.png`] = file;
|
files[`${fid}.png`] = file;
|
||||||
ele.setAttribute('src', `%file%://${fid}.png`);
|
ele.setAttribute('src', `%file%://${fid}.png`);
|
||||||
});
|
});
|
||||||
const title = document.querySelector('.title').innerHTML;
|
const title = document.querySelector('.title').innerHTML.trim().substr(3, 100);
|
||||||
const time = parseInt(document.querySelector('.time-limit').innerHTML.substr(53, 2), 10);
|
const time = parseInt(document.querySelector('.time-limit').innerHTML.substr(53, 2), 10);
|
||||||
const memory = parseInt(document.querySelector('.memory-limit').innerHTML.substr(55, 4), 10);
|
const memory = parseInt(document.querySelector('.memory-limit').innerHTML.substr(55, 4), 10);
|
||||||
document.body.firstChild.remove();
|
document.body.firstChild.remove();
|
||||||
|
|||||||
Reference in new issue
Block a user