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
## kirby | |
# Don't hint these as folders | |
rewrite ^/(site|kirby|panel/app|panel/test)$ /error last; | |
# block content | |
location ~ /(assets|content|site|kirby|thumbs) { | |
rewrite ^/(.*).(txt|md|mdown|yaml|yml|svn.*|git.*)$ /error last; | |
} |
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
<input type="email" pattern="/^[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/" /> |
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
(function($) { | |
$.event.props.push("dragstart"); | |
$.fn.dragOutLink = function() { | |
return this.each(function() { | |
var $this = $(this), | |
href = $this.attr("href"), | |
fileName = href.match(/[-_\w]+[.][\w]+$/i)[0]; | |
if (!!window.FileReader) { | |
var header = $.ajax({ | |
type: "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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>HTML5 drag out download link</title> | |
</head> | |
<body> | |
<nav> | |
<a id="downloadLink" data-downloadurl="application/zip:download.zip:http://yourdomain.tld/download.zip" href="download.zip">drag out to download .zip</a> | |
</nav> |