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
import React, { Component } from "react"; | |
import { connect } from "react-redux"; | |
import { fetchStackOverFlowData } from './actions'; | |
import Card from "./Card"; | |
class App extends Component { | |
componentDidMount() { | |
this.props.onFetchStackOverFlowData(); | |
} |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Closures</title> | |
</head> | |
<body> | |
<button></button> | |
<button></button> | |
<button></button> |
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
h1, h2 { | |
text-align: center; | |
} | |
h1:hover { | |
color: #55aacc; | |
} | |
/*Add image that consist with many different images and with transparent background - called "sprite"*/ | |
.sprite { |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Equalizer</title> | |
<link rel="stylesheet" href="equalizer.css"> | |
</head> | |
<body> | |
<div class="blocks"> | |
<ul> |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Timer</title> | |
<style> | |
div span:nth-of-type(1){ | |
color: deeppink; | |
font-size: 5em; | |
} |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>KeyRotate</title> | |
</head> | |
<body> | |
<h1>Поворачивание квадрата срелками: < и ></h1> | |
<div></div> | |
<script src="keyRotate.js"></script> |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>event handler - mouse move</title> | |
</head> | |
<body> | |
<div id="log"></div> | |
<div id="reg"></div> | |
<script> |
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="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>move object by keyboard</title> | |
<style> | |
div { | |
width: 30px; | |
height: 30px; | |
background: lightgreen; |
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
//ДЗ-2: Водим мышкой по екрану, а дивка двигается за мышкой, курсор по центру обьекта | |
//Короче вариант | |
window.addEventListener('mousemove', mouseFollow); | |
function mouseFollow(event) { | |
let btn1 = document.querySelector("#btn1"); | |
btn1.style.position = `absolute`; | |
btn1.style.background = `red`; | |
btn1.style.width = `30px`; | |
btn1.style.height = `30px`; |
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
//Определить количество натуральных чисел и интервала от 100 до 500 сума цифр которых равна 15 | |
let res = 0; | |
let sum = 0; | |
let total = 0; | |
for (let i = 100; i < 500; i++) { | |
let x = Math.floor(i / 100); | |
// console.log(`x ${x}`); | |
let y = Math.floor(i / 10 % 10); |
NewerOlder