# Mod_Autoindex
<IfModule mod_autoindex.c>
# Запрещаем просмотр содержимого папок
Options -Indexes
</IfModule>
# Mod_Rewrite
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [L,R=301]
# Backend redirect
RewriteCond %{REQUEST_URI} ^/backend
RewriteRule ^backend/(.*)$ backend/web/$1 [L]
# Storage redirect
RewriteCond %{REQUEST_URI} ^/storage
RewriteRule ^storage/(.*)$ storage/$1 [L]
# Frontend redirect
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^(.*)$ frontend/web/$1
</IfModule> var typed = new Typed("#typed", {
strings: ['Welcome to...', 'Hello!.', 'How are you?'],
onStop: (arrayPos, self) => {
console.log('onStop', arrayPos, self);
},
onStart: (arrayPos, self) => {
console.log('onStart', arrayPos, self)
}
});
var checkbox = document.querySelector("input[id=typstop]");
checkbox.addEventListener( 'change', function() {
if(this.checked) {
// Checkbox is checked..
typed.stop();
} else {
// Checkbox is not checked..
typed.start();
}
});