-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a995e51
commit a2ea80c
Showing
5 changed files
with
117 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Устанавливаем вкладку "Игроки" в фокусе после перехода на страницу игрока | ||
const playersTab = document.getElementById('item2'); | ||
playersTab.classList.add('active'); | ||
|
||
|
||
// СКРОЛЛ ДЛЯ БЛОКА ВИДЕО, ДРУЗЬЯ И МАТЧИ | ||
let currentIndexV = 0; | ||
const slidesV = document.querySelectorAll('.slidV'); | ||
const totalSlidesV = slidesV.length; | ||
|
||
let currentIndexF = 0; | ||
const slidesF = document.querySelectorAll('.slidF'); | ||
const totalSlidesF = slidesF.length; | ||
|
||
function scrollSliderV(direction) { | ||
currentIndexV = (currentIndexV + direction + totalSlidesV) % totalSlidesV; | ||
const offset = -currentIndexV * slidesV[0].offsetWidth; | ||
document.querySelector('.sliderV').style.transform = `translateX(${offset}px)`; | ||
} | ||
|
||
function scrollSliderF(direction) { | ||
currentIndexF = (currentIndexF + direction + totalSlidesF) % totalSlidesF; | ||
const offset = -currentIndexF * slidesF[0].offsetWidth; | ||
document.querySelector('.sliderF').style.transform = `translateX(${offset}px)`; | ||
} | ||
|
||
// ========================== | ||
|
||
//ДИАГРАММА | ||
var options = { | ||
series: [22, 78, 67, 83], | ||
chart: { | ||
height: 220, | ||
type: "radialBar", | ||
}, | ||
series: [67, 84, 97, 61], | ||
plotOptions: { | ||
radialBar: { | ||
track: { | ||
background: '#1f1f1f', // Укажите желаемый цвет контуров здесь | ||
}, | ||
dataLabels: { | ||
total: { | ||
show: true, | ||
label: 'Рейтинг', | ||
color: '#DDDDDD' | ||
}, | ||
name: { | ||
fontSize: '12px', | ||
}, | ||
value: { | ||
fontSize: '12px', | ||
color: '#DDDDDD', | ||
}, | ||
} | ||
}, | ||
track: { | ||
background: '#1f1f1f', // Укажите желаемый цвет контуров здесь | ||
}, | ||
}, | ||
stroke: { | ||
lineCap: 'round', | ||
}, | ||
labels: ['Скорость', 'Точность', 'Ловкость', 'Сила'] | ||
}; | ||
|
||
var chart = new ApexCharts(document.querySelector("#chart"), options); | ||
chart.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters