This file contains hidden or 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
по ссылке https://materials.itstep.org/content/b1ba8670-bd9d-4e6a-8269-2da56007b404/uk | |
10 заданий на переменные | |
а по этой ссылке https://materials.itstep.org/content/1134e0d4-78e0-47be-a70d-53d833c1009c/uk | |
ещё 10 заданий на переменные | |
ДЗ состоит в том, чтобы установить вебшторм (или любую другую подходящую ИДЕ), | |
научиться создавать проект (хтмл страницу с отдельным файлом скрипта / элементом <script>, | |
сделать 5 любых заданий из 20 доступных по ссылкам выше, | |
привыкнуть к запуску и просмотру страницы в браузере, |
This file contains hidden or 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
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link rel="stylesheet" href="css/style.css"> | |
<link rel="icon" href="/favicon.ico" sizes="any"> | |
<link rel="icon" href="/icon.svg" type="image/svg+xml"> |
This file contains hidden or 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
1. установить node.js по ссылке https://nodejs.org/en | |
2. выполнить такие команды в терминале git bash: | |
cd C:/Users/Alex/Desktop | |
mkdir file-server | |
cd file-server | |
npm init -y | |
npm install express multer | |
mkdir public | |
mkdir uploads |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Работа с файлами</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
max-width: 800px; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Концепт AJAX</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #121212; | |
color: #ffffff; |
This file contains hidden or 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
http://sunmeat.atwebpages.com/js/sharp.html (client side): | |
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Отправка числа на сервер</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; |
This file contains hidden or 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
https://www.pythonanywhere.com/user/sunmeat/files/home/sunmeat/alex.py?edit: | |
from flask import Flask, jsonify | |
from flask_cors import CORS | |
app = Flask(__name__) | |
# Enable CORS for all routes, allowing all origins | |
CORS(app, resources={r"/api/*": {"origins": "*"}}) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Лучшие фильмы (Axios + OOP)</title> | |
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #121212; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Jokes API + Axios</title> | |
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
<style> | |
body { | |
font-family: 'Courier New', monospace; | |
background-color: #121212; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Jokes API + fetch</title> | |
<style> | |
body { | |
font-family: 'Courier New', monospace; | |
background-color: #121212; | |
color: #ffffff; |