Axborot texnologiyalari va kommunikatsiyalarini rivojlantirish vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti “Individual loyiha” ishi



Download 1,09 Mb.
bet9/12
Sana24.12.2022
Hajmi1,09 Mb.
#895767
1   ...   4   5   6   7   8   9   10   11   12
Bog'liq
Individual loyiha

Foydalangan adabiyotlar ro’yxati
• Building JavaScript Games for Phones, Tablets, and Desktop by Arjan Egges
• Functional Programming in JavaScript by Luis Atencio
• High-Performance JavaScript: Build Faster Web Application Interfaces by Nicholas C. Zakas
• JavaScript & jQuery: The Missing Manual by David Sawyer McFarland
• JavaScript Enlightenment by Cody Lindley
• Maintainable JavaScript: Writing Readable Code by Nicholas C. Zakas
• Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications, and libraries by Stoyan Stefanov
• Professional JavaScript for Web Developers by Nicholas C. Zakas
• Secrets of the JavaScript Ninja by Bear Bibeault and John Resig
• Testable JavaScript: Ensuring Reliable Code by Mark Ethan Trostler
• The Principles of Object-Oriented JavaScript by Nicholas C. Zaka

Foydalanilgan web saytlar ro’yxati

1.https://reactjs.org/docs/getting-started.html


2.https://www.w3schools.com/
Ilova::
DASTUR kodi:
Indexjs dagi kodlar:
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";

ReactDOM.render(




,
document.getElementById("root")
);

App.js dagi kodlar.


import Header from "./components/Header";
import Calendar from "./components/Calendar";
import CalendarState from "./context/CalendarContext";
import TaskForm from "./components/TaskForm";

function App() {


return (







);
}

export default App;


Calendar.js dagi kodlar.
import React, { useContext, useEffect } from "react";
import { CalendarContext } from "../context/CalendarContext";
import Day from "./Day";

function Calendar() {


const { date, days, setDate } = useContext(CalendarContext);

useEffect(() => {


setDate(new Date());
// eslint-disable-next-line
}, []);

if (days.length < 1) return null;


const names = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];


return (



{names.map(name =>

{name}

)}


{days.map(day =>

)}


);
}

export default Calendar;


Day.js dagi kodlar.


import React, { useContext } from 'react';
import { CalendarContext, sameDay } from '../context/CalendarContext';
import { contrast } from '../utils/utils';
import Task from './Task';

function Day({day, date}) {


const {setTask, setDate} = useContext(CalendarContext);


const getStyle = (color)=> {


return { background: color, color: contrast(color)};
}
const selected = sameDay(day.date, date);
const style = (day.date.getMonth() !== date.getMonth() ? ' disabled':'')
+ (sameDay(day.date, new Date()) ? ' current-day':'')
+ (selected ? ' selected-day':'')
return (
setDate(day.date)}>


{day.tasks.map(task=>(

))}


Download 1,09 Mb.

Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish