Відмінності між версіями «Test2»

Матеріал з Вікіпедія ЄСІТС
Перейти до навігації Перейти до пошуку
Рядок 9: Рядок 9:
             <thead>
             <thead>
                 <tr>
                 <tr>
            <th>Id</th>
                    <th>Id</th>
                     <th>Name</th>
                     <th>Name</th>
                     <th>Last name</th>
                     <th>Last name</th>
Рядок 24: Рядок 24:


       <script>
       <script>
        const NAMES = ['Paul', 'Anne', 'Benji', 'Carl', 'Sarah', 'Julie', 'Ryan', 'Steve','Peter', 'Samantha'];
                 // required options
        const LAST_NAMES = ['Smith', 'Anderson', 'Morrison', 'Kane', 'Ferguson', 'Warner', 'Hammer', 'Phillips','Thompson', 'Chang'];
        const COUNTRIES = ['South Africa', 'England', 'Australia', 'Mexico', 'China', 'Japan', 'Honduras','Canada','France','Spain']
 
        let data = [];
        for(let i = 0; i < 100; i++){
            let row = {
                 id: i,
                name: NAMES[Math.floor(Math.random() * 10)],
                last_name: LAST_NAMES[Math.floor(Math.random() * 10)],
                country: COUNTRIES[Math.floor(Math.random() * 10)],
                age: Math.floor(Math.random() * 99)
            }
            data.push(row);
        }
 
        // required options
             const options = {
             const options = {
             tableId:'easy-table',
             tableId:'easy-table',

Версія за 05:03, 9 лютого 2022

Id Name Last name Email Gere Actions