Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 562b1fe

Browse files
committed
Stop using CDN
1 parent 42b16df commit 562b1fe

23 files changed

+11714
-5
lines changed

‎server.py‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<title>$title</title>
2020
<meta charset="utf-8">
2121
<meta name="viewport" content="width=device-width, initial-scale=1">
22-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
23-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
24-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
25-
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap.min.css">
26-
<script src="//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.min.js"></script>
22+
<script src="/.static/jquery/jquery.min.js"></script>
23+
<link rel="stylesheet" href="/.static/bootstrap/css/bootstrap.min.css">
24+
<script src="/.static/bootstrap/js/bootstrap.min.js"></script>
25+
<link rel="stylesheet" href="/.static/jasny-bootstrap/css/jasny-bootstrap.min.css">
26+
<script src="/.static/jasny-bootstrap/js/jasny-bootstrap.min.js"></script>
2727
<style>
2828
body {
2929
color: #333;
@@ -242,6 +242,7 @@ def main():
242242
args = parse_argv()
243243
log = configure_logger(os.path.join(os.path.dirname(sys.argv[0]), 'log'))
244244
app = web.Application(logger=log)
245+
app.router.add_static('/.static', os.path.join(os.path.dirname(sys.argv[0]), 'static'))
245246
app.router.add_get('/{tail:.*}', handle)
246247
web.run_app(app, port=args.port, ssl_context=create_ssl_context(args.ssl))
247248

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /