Skip to content

Instantly share code, notes, and snippets.

var reader;
var inProcess = false;
var content = document.getElementById('content');
var loader = document.getElementById('loader');
let fetchPage = function(url) {
if (inProcess) {
return false;
}
function getTitleFromContent(content) {
var title
// вытаскиваем заголово из контента
return title
}
axios.get(url).then((resp) => {
inProcess = false;
loader.style.display = 'none';
content.innerHTML = resp.data;
@fasteasy
fasteasy / 2019-https-localhost.md
Created August 18, 2020 10:12 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

<?php
declare(strict_types=1);
namespace Chaika\Domain\MedicalCard\ValueObject\VisitReports;
use Chaika\Domain\MedicalCard\Model\PastVisit;
class OculistReport implements VisitReport
{