Skip to content

Instantly share code, notes, and snippets.

View l4ci's full-sized avatar

Volker Otto l4ci

View GitHub Profile
<noscript>
<div class="info-box info-box--alert" id="no-js-hint">
<div class="info-box__headline">Bitte aktivieren Sie Javascript!</div>
<p>Um den vollen Funktionsumfang dieser Webseite zu erfahren, benötigen Sie JavaScript. Hier finden Sie die <a href="http://www.enable-javascript.com/de/" target="_blank">Anleitung wie Sie JavaScript in Ihrem Browser einschalten</a>.</p>
</div>
</noscript>
// Screen readers only
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
clip-path: inset(50%);
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<div style="overflow:hidden;width:0;height:0;"><div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="email" name="email" tabindex="-1" value="" autocomplete="off"></div></div>
<script src="https://cdn.jsdelivr.net/webfontloader/1.6.27/webfontloader.js"></script>
<script>
WebFont.load({
google: {
families: ['Source Serif Pro','Source Sans Pro:400,700']
},
custom: {
families: ['FontAwesome'],
urls: ['https://cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min.css']
}
# User specific & automatically generated files
/dist
/composer.lock
/phpunit.xml
/phpcs.xml
bower_components
node_modules
#kirby
/site/accounts
AuthType Basic
AuthName "Development"
AuthUserFile /var/.htpasswd
Require valid-user
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Alternative via Port
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# no-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Wartungsmodus
RewriteCond %{REMOTE_ADDR} !=84.46.78.143
RewriteCond %{REQUEST_URI} !=/wartung.html
RewriteRule ^(.*)$ /wartung.html?%{REMOTE_ADDR} [R=503,L]