1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-05-21 04:47:04 +00:00

Makes the page work at a file:// URL.

Since this is such a barebones static thing, developing it and testing
with file:// URLs is helpful. Protocol-relative URLs don't work well
in that context.
This commit is contained in:
Eric Mill 2014-07-06 12:31:43 -04:00
parent b86a9a85b0
commit 86cbd4c5a6

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<title>Mail-in-a-Box Setup Guide</title> <title>Mail-in-a-Box Setup Guide</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
<style> <style>
@import url(https://fonts.googleapis.com/css?family=Iceland); @import url(https://fonts.googleapis.com/css?family=Iceland);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700); @import url(https://fonts.googleapis.com/css?family=Raleway:400,700);
@ -21,7 +21,7 @@
h1 { h1 {
font-family: 'Iceland', sans-serif; font-family: 'Iceland', sans-serif;
font-size: 50px; font-size: 50px;
} }
h2 { h2 {
margin-top: 1.75em; margin-top: 1.75em;
@ -96,7 +96,7 @@
#nav li.active { background-color: #D55; } #nav li.active { background-color: #D55; }
#nav li.active a { color: white; } #nav li.active a { color: white; }
#nav li.active a:hover { color: #E64; } #nav li.active a:hover { color: #E64; }
</style> </style>
</head> </head>
<body data-spy="scroll" data-target="#nav"> <body data-spy="scroll" data-target="#nav">
@ -375,8 +375,8 @@ cd mailinabox</pre>
</div> </div>
</div> </div>
<script src="//code.jquery.com/jquery-2.1.1.min.js"> </script> <script src="https://code.jquery.com/jquery-2.1.1.min.js"> </script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script> <script>
if ($(window).width() >= 768) { if ($(window).width() >= 768) {
// scroll spy with a fixed TOC doesn't work on small screens // scroll spy with a fixed TOC doesn't work on small screens