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 | |
$file_big = "file-big.txt"; | |
$file_small = "file-small.txt"; | |
$file_clear = "file-clear.txt"; | |
function getLines($file) { | |
$f = fopen($file, 'r'); | |
try { | |
while ($line = fgets($f)) { |
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 | |
$file_big = "file-big.txt"; | |
$file_small = "file-small.txt"; | |
$file_clear = "file-clear.txt"; | |
function getLines($file) { | |
$f = fopen($file, 'r'); | |
try { | |
while ($line = fgets($f)) { |
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
<head> | |
<!-- og --> | |
<meta property="og:title" content="<?$APPLICATION->ShowTitle()?>"> | |
<meta property="og:description" content='<?=$APPLICATION->ShowProperty("description");?>'/> | |
<meta property="og:type" content="website" /> | |
<meta property="og:image" content='<?=$APPLICATION->ShowProperty("ogimage","https://".$_SERVER['HTTP_HOST'].SITE_TEMPLATE_PATH."/img/og-new.jpg");?>' /> | |
<!-- og --> | |
</head> |
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 className="parent"> | |
<h3 onClick={toggleView}>Утро</h3> | |
<div className="hidden-child"> | |
<p>Здравствуйте!</p> | |
</div> | |
</div> |
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
const body = document.body; | |
const nav = document.querySelector(".page-header nav"); | |
const menu = document.querySelector(".page-header .menu"); | |
const scrollUp = "scroll-up"; | |
const scrollDown = "scroll-down"; | |
let lastScroll = 0; | |
window.addEventListener("scroll", () => { | |
const currentScroll = window.pageYOffset; | |
if (currentScroll <= 0) { |
OlderNewer