Skip to content

Commit

Permalink
Moved ./index.html to ./example/index.html.
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed Jul 22, 2019
1 parent 08a73b3 commit b75f367
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion 404.html
29 changes: 29 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="cache-control" content="no-cache"/>
<title>capybara-router</title>
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css"/>
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"/>
<style>
html.nprogress-busy {
cursor: wait !important;
}
html.nprogress-busy body, html.nprogress-busy div, html.nprogress-busy input, html.nprogress-busy textarea, html.nprogress-busy button, html.nprogress-busy select, html.nprogress-busy img, html.nprogress-busy a, html.nprogress-busy label, html.nprogress-busy .panel-heading {
cursor: wait !important;
}
</style>
</head>
<body>
<div id="root">
<p class="text-center text-muted h3" style="padding: 20px 0">
<i class="fa fa-spinner fa-pulse fa-fw"></i> Loading...
</p>
</div>
<a href="https://github.com/kelp404/capybara-router"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<script type="text/javascript" src="//localhost:8001/app.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion example/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server = http.createServer app
app.get '/', (req, res) -> res.redirect '/capybara-router'
app.use '/capybara-router/example/data', express.static(path.join(__dirname, '..', 'example', 'data'))
app.use (req, res) ->
res.sendFile path.join(__dirname, '..', 'index.html')
res.sendFile path.join(__dirname, 'index.html')

# launch server
server.listen config.server.port, config.server.host, ->
Expand Down
2 changes: 1 addition & 1 deletion example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
app.use('/capybara-router/example/data', express["static"](path.join(__dirname, '..', 'example', 'data')));

app.use(function(req, res) {
return res.sendFile(path.join(__dirname, '..', 'index.html'));
return res.sendFile(path.join(__dirname, 'index.html'));
});

server.listen(config.server.port, config.server.host, function() {
Expand Down
29 changes: 0 additions & 29 deletions index.html

This file was deleted.

1 change: 1 addition & 0 deletions index.html

0 comments on commit b75f367

Please sign in to comment.