车牌号码,手机号码随机估价系统维吾尔语版

ئۇيغۇرچە تېلىپۇن نومۇر باھالاش سېستىمىسى ،ئالدىبەت كود

图片[1]-车牌号码,手机号码随机估价系统维吾尔语版-[:ug]Waris[:zh]Waris[:]
<!DOCTYPE html>
<html lang="ug">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>نومۇر باھالاش سىستېمىسى</title>
    <style>
        @font-face {
            font-family: 'ALKATIPTom';
            src: url('https://alkatip.net/font/ALKATIPTom.ttf') format('truetype');
        }
        body {
            font-family: 'ALKATIPTom', Arial, sans-serif;
            direction: rtl;
            background-color: #111;
            color: #fff;
            text-align: right;
            margin: 0;
            padding: 0;
        }
        .container {
            margin: 50px auto;
            padding: 20px;
            background-color: #222;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
        }
        h1, h2 {
            color: #0af;
        }
        input, select, button {
            margin: 10px 0;
            padding: 10px;
            width: 100%;
            border: none;
            border-radius: 5px;
            font-family: 'ALKATIPTom', Arial, sans-serif;
            text-align: right;
        }
        button {
            background-color: #0af;
            color: #fff;
            cursor: pointer;
        }
        button:hover {
            background-color: #08c;
        }
        .result {
            margin-top: 20px;
        }
        .stars {
            color: gold;
            font-size: 1.5em;
            display: inline-block;
        }
        .stars-container {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <center><h1>نومۇر باھالاش سىستېمىسى</h1></center>
        <label for="category">نومۇر تۈرنى تاللاڭ:</label>
        <select id="category">
            <option value="phone">تېلفۇن نومۇرى</option>
            <option value="car">ماشىنا نومۇرى</option>
        </select>
        <input type="text" id="input-number" placeholder="نومۇرنى كىرگۈزۈڭ"><br>
       <center>
            <button id="evaluate-btn"><center>باھالاش</center></button>
       </center>
        
        <div class="result hidden" id="result">
            <center><h2>باھالاش نەتىجىسى</h2></center>
            <p>باھاسى: <span id="value">25336 يۈەن</span></p >
            <p>دەرىجىسى: <span id="grade">گولدى</span></p >
            <p>تەۋسىيە: <span id="recommend">1.10</span></p >
            <div class="stars-container">
                <span>باھا يۇلتۇزى:</span>
                <span class="stars" id="stars">★★★★★</span>
            </div>
            <p>باھا سۆزى: <span id="comment">نومۇرنىڭ قىممىتى بەك ياخشى!</span></p >
        </div>
    </div>

    <script>
        document.getElementById("evaluate-btn").addEventListener("click", function () {
            const category = document.getElementById("category").value;
            const input = document.getElementById("input-number").value.trim();

            // تېلفۇن نومۇرى تەكشۈرۈش
            if (category === "phone" && (isNaN(input) || input.length !== 4)) {
                alert("توغرا تەلفۇن نومۇرىنىڭ تۆت خانىسىنى كىرگۈزۈڭ!");
                return;
            }

            // ماشىنا نومۇرى شەكىل تەكشۈرۈشى
            if (category === "car" && !/^[\u4E00-\u9FFF][A-Z]·[A-Z0-9]{5}$/.test(input)) {
                alert("توغرا ماشىنا نومۇرى كىرگۈزۈڭ! (مەسىلەن: 新R·8S362)");
                return;
            }

            const result = generateRandomResult();

            document.getElementById("result").classList.remove("hidden");
            document.getElementById("value").innerText = result.value + " يۈەن";
            document.getElementById("grade").innerText = result.grade;
            document.getElementById("recommend").innerText = result.recommend;
            document.getElementById("stars").innerText = result.stars;
            document.getElementById("comment").innerText = result.comment;
        });

        function generateRandomResult() {
    const grades = ["شاھ", "ئالتۇن", "ئالماس"];
    const comments = [
        "ھەرھالدا بوپ قويىدىكەن ",
        "ياخشى، نومۇر ئىكەن",
        "تاشلىۋەتمەي ئىشلىتىڭ ",
        "ئامەتلىك نومۇر ئىكەن",
        "كەم ئۇچرايدىغان نومۇر تىپى",
    ];
            const starsArray = ["★★★★★", "★★★★☆", "★★★☆☆", "★★☆☆☆", "★☆☆☆☆"];

            const randomValue = Math.floor(Math.random() * 50000) + 1000;
            const randomGrade = grades[Math.floor(Math.random() * grades.length)];
            const randomRecommend = (Math.random() * 10).toFixed(2);
            const randomStars = starsArray[Math.floor(Math.random() * starsArray.length)];
            const randomComment = comments[Math.floor(Math.random() * comments.length)];

            return {
                value: randomValue,
                grade: randomGrade,
                recommend: randomRecommend,
                stars: randomStars,
                comment: randomComment
            };
        }
    </script>
</body>
</html>
© 版权声明
THE END
喜欢就支持一下吧
点赞7.7W+赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容