😁
This commit is contained in:
parent
53425032c8
commit
807a9172d0
@ -12,5 +12,13 @@ insert_final_newline = true
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[package.json]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
jsdoc/
|
||||||
|
package-lock.json
|
4
code.js
4
code.js
@ -23,7 +23,7 @@ function getData(value) {
|
|||||||
// для металлических карточек нет параметра 'карточек выпадет'
|
// для металлических карточек нет параметра 'карточек выпадет'
|
||||||
let cardsDropLeft = 0;
|
let cardsDropLeft = 0;
|
||||||
if (value.getElementsByClassName('progress_info_bold')[0]) {
|
if (value.getElementsByClassName('progress_info_bold')[0]) {
|
||||||
let cardsDropLeft = value.getElementsByClassName('progress_info_bold')[0].match(/\d/g);
|
cardsDropLeft = value.getElementsByClassName('progress_info_bold')[0].match(/\d/g);
|
||||||
}
|
}
|
||||||
|
|
||||||
let badgeItem = {
|
let badgeItem = {
|
||||||
@ -51,7 +51,7 @@ function getBadges() {
|
|||||||
let badges = [];
|
let badges = [];
|
||||||
const collection = document.getElementsByClassName('badge_row');
|
const collection = document.getElementsByClassName('badge_row');
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(collection)) {
|
for (const value of Object.entries(collection)) {
|
||||||
badges.push(getData(value));
|
badges.push(getData(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
jsdoc.json
Normal file
11
jsdoc.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"source": {
|
||||||
|
"include": ["code.js"]
|
||||||
|
},
|
||||||
|
"opts": {
|
||||||
|
"template": "node_modules/clean-jsdoc-theme",
|
||||||
|
"encoding": "utf8",
|
||||||
|
"destination": "./jsdoc/",
|
||||||
|
"recurse": false
|
||||||
|
}
|
||||||
|
}
|
14
package.json
Normal file
14
package.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "steambadges",
|
||||||
|
"description": "",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"scripts": {
|
||||||
|
"generate-docs": "jsdoc --configure jsdoc.json --verbose"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"clean-jsdoc-theme": "^4.2.2",
|
||||||
|
"jsdoc": "^4.0.0"
|
||||||
|
},
|
||||||
|
"author": "Alexander Popov",
|
||||||
|
"license": "Unlicense"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user