mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-05 16:07:32 +02:00
modernise layout a bit
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>{{ page.title }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ '/stylesheets/styles.css' | relative_url }}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<header>
|
||||
<h1 class="site-title"><a href="/">Altorouter</a></h1>
|
||||
<h1 class="site-title"><a href="{{ '/' | relative_url }}">Altorouter</a></h1>
|
||||
<p>PHP5.3+ Routing Class. Supports REST, dynamic and reversed routing. </p>
|
||||
|
||||
<p class="view"><a href="https://github.com/dannyvankooten/AltoRouter">View the Project on GitHub <small>dannyvankooten/AltoRouter</small></a></p>
|
||||
@@ -24,14 +22,10 @@
|
||||
{{ content }}
|
||||
</section>
|
||||
<footer>
|
||||
|
||||
<iframe src="/github-stars.html?user=dannyvankooten&repo=altorouter&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="120px" height="20px" style="margin-bottom: 20px;"></iframe>
|
||||
|
||||
<iframe src="/github-stars.html?user=dannyvankooten&repo=altorouter&type=watch&count=true" allowtransparency="true" width="120px" height="20px" style="margin-bottom: 20px;"></iframe>
|
||||
<p>This project is maintained by <a href="https://github.com/dannyvankooten">dannyvankooten</a></p>
|
||||
<p><small>Hosted on GitHub Pages<br />Theme by <a rel="nofollow" href="https://github.com/orderedlist">orderedlist</a></small></p>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="/javascripts/scale.fix.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
16
index.html
16
index.html
@@ -3,7 +3,7 @@ title: AltoRouter - PHP Router that supports REST, dynamic and reversed routing
|
||||
layout: default
|
||||
---
|
||||
<h1>
|
||||
<a name="altorouter-" class="anchor" href="#altorouter-"><span class="octicon octicon-link"></span></a>AltoRouter <a href="http://travis-ci.org/dannyvankooten/AltoRouter"><img src="https://api.travis-ci.org/dannyvankooten/AltoRouter.png" alt="Build Status"></a>
|
||||
<a name="altorouter-" class="anchor" href="#altorouter-"><span class="octicon octicon-link"></span></a>AltoRouter <a href="https://travis-ci.org/dannyvankooten/AltoRouter"><img src="https://api.travis-ci.org/dannyvankooten/AltoRouter.png" alt="Build Status"></a>
|
||||
</h1>
|
||||
|
||||
<p class="intro">AltoRouter is a small but powerful routing class for PHP 5.3+, heavily inspired by <a href="https://github.com/chriso/klein.php/">klein.php</a>.</p>
|
||||
@@ -36,11 +36,11 @@ $router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
|
||||
<p>To use AltoRouter in your project you need a web server running PHP 5.3 or newer.</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="/usage/install.html">Install AltoRouter</a></li>
|
||||
<li><a href="/usage/rewrite-requests.html">Rewrite all requests to AltoRouter</a></li>
|
||||
<li><a href="/usage/mapping-routes.html">Map your routes</a></li>
|
||||
<li><a href="/usage/matching-requests.html">Match requests</a></li>
|
||||
<li><a href="/usage/processing-requests.html">Process the request your preferred way</a></li>
|
||||
<li><a href="{{ '/usage/install.html' | relative_url }}">Install AltoRouter</a></li>
|
||||
<li><a href="{{ '/usage/rewrite-requests.html' | relative_url }}">Rewrite all requests to AltoRouter</a></li>
|
||||
<li><a href="{{ '/usage/mapping-routes.html' | relative_url }}">Map your routes</a></li>
|
||||
<li><a href="{{ '/usage/matching-requests.html' | relative_url }}">Match requests</a></li>
|
||||
<li><a href="{{ '/usage/processing-requests.html' | relative_url }}">Process the request your preferred way</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>
|
||||
@@ -54,5 +54,5 @@ $router->map( 'GET|POST', '/users/[i:id]/', function( $id ) {
|
||||
</ul>
|
||||
|
||||
|
||||
<p>Released under the <a href="/license.html">MIT Public License</a>.</p>
|
||||
<p>© 2012-2018 <a href="https://dannyvankooten.com/">Danny van Kooten</a></p>
|
||||
<p>Released under the <a href="{{ '/license.html' | relative_url }}">MIT Public License</a>.</p>
|
||||
<p>© 2012-2023 <a href="https://dannyvankooten.com/">Danny van Kooten</a></p>
|
||||
|
@@ -1,17 +0,0 @@
|
||||
var metas = document.getElementsByTagName('meta');
|
||||
var i;
|
||||
if (navigator.userAgent.match(/iPhone/i)) {
|
||||
for (i=0; i<metas.length; i++) {
|
||||
if (metas[i].name == "viewport") {
|
||||
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
|
||||
}
|
||||
}
|
||||
document.addEventListener("gesturestart", gestureStart, false);
|
||||
}
|
||||
function gestureStart() {
|
||||
for (i=0; i<metas.length; i++) {
|
||||
if (metas[i].name == "viewport") {
|
||||
metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user