This file contains 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
<div class="wrap_for_arrow"> | |
<!-- Слайд влево --> | |
<span id="btn_left"></span> | |
<div class="wrap_overflow"> | |
<div class="wrap-brand"> <!-- Обёртка для брэндов --> | |
<a href="#"><img src="img/brand/brand_gipersport.svg" alt="gipersport"></a> | |
<a href="#"><img src="img/brand/brand_mirsporta.svg" alt="mirsporta"></a> | |
<a href="#"><img src="img/brand/brand_sportmaster.svg" alt="sportmaster"></a> |
This file contains 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
// Обновляем в том случае если, изменение окна больше или меньше на 100px | |
let screen_width = window.innerWidth | |
window.addEventListener('resize', (e) => { | |
let res = screen_width - e.target.innerWidth | |
if (res > 100) { | |
location.reload() | |
} | |
if (res < -100) { | |
location.reload() | |
} |
This file contains 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
let wi = window.innerWidth | |
|| document.documentElement.clientWidth | |
|| document.body.clientWidth |
This file contains 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
var all = document.getElementsByTagName("*"); | |
console.log( all.length ); |
This file contains 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
<!-- HTML для класса --> | |
<span class="rating nowrap" id="stars3"> | |
<i class="empty star" data-qty-star="1"></i> | |
<i class="empty star" data-qty-star="2"></i> | |
<i class="empty star" data-qty-star="3"></i> | |
<i class="empty star" data-qty-star="4"></i> | |
<i class="empty star" data-qty-star="5"></i> | |
<label for="stars_input3"></label> | |
<input type="text" name="star_rait_speed" id="stars_input3" value="0" class="review-qty" readonly> | |
</span> |
This file contains 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
/node_modules | |
/public/hot | |
/public/build | |
/public/storage | |
/storage/*.key | |
/vendor | |
.env | |
.phpunit.result.cache | |
Homestead.json | |
Homestead.yaml |
This file contains 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
<?php | |
spl_autoload_register(function ($ClassName){ | |
$filePath = 'classes/' . $ClassName; | |
if (file_exists($filePath)) { | |
require_once $filePath; | |
} | |
}); | |
spl_autoload_register(function ($ClassName){ | |
$filePath = 'controller/' . $ClassName; |
This file contains 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
<?php | |
// Подключение к БД | |
$pdo = new PDO("mysql:host=localhost: dbname=test", "root", ""); | |
// Готовим запрос | |
$sql = "SELECT * FROM tasks"; | |
$statement = $pdo->prepare($sql); // подготовить запрос | |
$result = $statement->execute(); // вернет true || false // Запускает подготовленный запрос на выполнение |
This file contains 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>Title</title> | |
</head> | |
<body> | |
<ul id="chat"> | |
</ul> |
This file contains 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>Kaboom</h1> |