/*
https://i.ytimg.com/vi_webp/{ключ к видео}/maxresdefault.webp
*/
function detect_mobile() {
const toMatch = [
/Android/i,
/webOS/i,
/iPhone/i,
/iPad/i,
/iPod/i,
/BlackBerry/i,
/Windows Phone/i
];
return toMatch.some((toMatchItem) => {
return navigator.userAgent.match(toMatchItem);
});
}
let styles = {
"card": {
width: (detect_mobile() ? "90%" : "250px"),
backgroundColor: "white",
padding: (detect_mobile() ? "15px" : "5px"),
margin: (detect_mobile() ? "30px" : "10px"),
border: "3px solid black",
borderRadius: (detect_mobile() ? "30px" : "10px")
},
"img": {
width: "100%",
aspectRatio: "1/1",
borderRadius: (detect_mobile() ? "15px" : "5px"),
border: "1px solid red",
marginBottom: (detect_mobile() ? "15px" : "5px")
},
"donate_img": {
width: "1%",
aspectRatio: "1/1",
borderRadius: (detect_mobile() ? "15px" : "5px"),
border: "1px solid red",
marginBottom: (detect_mobile() ? "15px" : "5px")
},
"info_btn": {
width: "100%",
height: (detect_mobile() ? "120px" : "40px"),
fontSize: (detect_mobile() ? "51px" : "17px"),
borderRadius: (detect_mobile() ? "15px" : "5px"),
background_color: "blue"
},
"card_title": {
fontFamily: "'MyArial', Arial, sans-serif",
fontSize: (detect_mobile() ? "3.75rem" : "1.25rem"),
textTransform: "uppercase",
textAlign: "center"
},
"card_text": {
fontSize: (detect_mobile() ? "48px" : "16px")
},
"card_body": {
width: "100%",
height: "100%"
},
"donate_input": {
display: "flex",
justifyContent: "center",
alignItems: "center",
width: (detect_mobile() ? "100%" : "80%"),
height: "120px"
}
};
class Card extends React.Component {
render(){
return (
{this.props.name ? this.props.name : '???'}
{
(((this.props.partition !== null) && (this.props.category !== null)) && (this.props.id !== null)) ? (
) : (
)
}
);
}
}
/*
https://yoomoney.ru/quickpay/fundraise/button?
targets=кика
&default-sum=100
&button-text=12
&yoomoney-payment-type=on
&button-size=xl
&button-color=orange
&successURL=
&quickpay=small
&account=4100116763942651&
*/
class DonateCard extends React.Component {
render(){
//let donateParams = new URLSearchParams();
let donateURL = "https://yoomoney.ru/quickpay/fundraise/button?";
donateURL += "targets="+this.props.name;
donateURL += "&default-sum="+this.props.amount;
donateURL += "&button-text=12";
donateURL += "&yoomoney-payment-type=on";
donateURL += "&button-size=s";
donateURL += "&button-color=orange";
donateURL += "&quickpay=small";
donateURL += "&account=4100116763942651";
return (
{this.props.name ? this.props.name : '???'}
{String(this.props.amount)+" руб."}
);
}
}
class RulesBolder extends React.Component{
render(){
if (this.props.isEnough){
if (detect_mobile()){
return (
{this.props.caption}
);
} else {
return (
{this.props.caption}
);
}
} else {
NULL
}
}
}
class Overlay extends React.Component {
render(){
function to_go(link){
close_mobile_menu();
window.location.href += "/../"+link;
}
let menus = [
{
"name": "Об игре",
"link": "index.html",
"badge": "info_badge.svg"
},
{
"name": "Правила",
"link": "Rules.html",
"badge": "rules_badge.svg"
},
{
"name": "Бравлеры",
"link": "Brawlers.html",
"badge": "brawlers_badge.webp"
},
{
"name": "Режимы",
"link": "Events.html",
"badge": "events_badge.png"
},
{
"name": "Пожертвовать",
"link": "Donate.html",
"badge": "donate_badge.svg"
},
{
"name": "Игровая валюта",
"link": "Currency.html",
"badge": "currency_badge.svg"
}
];
console.log(menus.slice(0, 3));
return (
О бравлере
{
document.querySelector("div.modal_info_window").classList.add("hidden");
document.querySelector("div.modal_overlay").classList.add("hidden");
setTimeout(() => {
document.querySelector("div.modal_overlay").style.display = "none";
}, 550);
}}>X
???
???
BЯAШL SТAЯS
{close_mobile_menu();}}>X
{
menus.map((m) => (
{to_go(m.link);}}>
{m.name}
))
}
{
(detect_mobile() === false) ? (
) : (
)
}
{
menus.slice(0, 3).map((m) => (
))
}
);
}
}
class Welcome extends React.Component {
render(){
return (
Привет {this.props.name}
);
}
}
// (new Date("2026-01-12 12:00:00") < new Date());
// (new Date() < new Date("2026-12-01 12:00:00"));