]> Shamusworld >> Repos - ardour-manual/blobdiff - source/_layouts/bootstrap.html
remove script cruft that got superseded during XHTML fix. add charset meta-equiv...
[ardour-manual] / source / _layouts / bootstrap.html
index f2e93967a344a656bf7a4c2bfdeac9bc4d771166..a85ffe7505cb2a4f3882112162849c3c07e5b22c 100644 (file)
@@ -3,21 +3,21 @@ bootstrap_path: /bootstrap-2.2.2
 page_title: The Ardour Manual
 ---
 
-<!DOCTYPE html>
-
-<html lang="en">
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+      
     <head>
-        <meta charset="utf-8" />
-
         <title>{{page.page_title}}</title>
+        <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
 
-        <meta name="viewport" content="width=device-width, initial-scale=1.0">
-        <link href="{{page.bootstrap_path}}/css/bootstrap.min.css" rel="stylesheet">
-        <link href="{{page.bootstrap_path}}/css/bootstrap-responsive.min.css" rel="stylesheet">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+        <link href="{{page.bootstrap_path}}/css/bootstrap.min.css" rel="stylesheet" />
+        <link href="{{page.bootstrap_path}}/css/bootstrap-responsive.min.css" rel="stylesheet" />
 
-        <link href="/css/app.css" rel="stylesheet">
+        <link href="/css/app.css" rel="stylesheet" />
 
-        <link href='http://fonts.googleapis.com/css?family=Junge' rel='stylesheet' type='text/css'>
+        <link href='http://fonts.googleapis.com/css?family=Junge' rel='stylesheet' type='text/css' />
     </head>
     <body>
 
@@ -51,8 +51,7 @@ page_title: The Ardour Manual
                 </div>
             </div>
             <div class="span12" id="content">
-                <div id="search">
-                    <gcse:search></gcse:search>
+                <div id="search" class="gcse-search">
                 </div>
                 <div id="content-main">
                     <h1 class="title">{{ page.title }}</h1>
@@ -64,30 +63,18 @@ page_title: The Ardour Manual
 
     <script type="text/javascript">
 
-        if (navigator.userAgent.match(/Mac/)) {
-            var e = document.getElementsByTagName('body')[0];
-            e.className += ' mac';
-        }
-
-        var tree = document.getElementById('tree'),
-            anchors = document.getElementsByTagName('a'),
-            name = '/' + document.location.pathname.split('/')[1] + '/',
-            offset;
+        // I'll go to hell for this
+        var isA = function(regex) { return navigator.userAgent.match(regex) };
+        var isAbout = function(regex) { return document.getElementsByTagName('h1')[1].textContent.match(regex) };
 
-        for (var i = 0; i < anchors.length; i++) { 
-            if (anchors[i].getAttribute('name') === name) { 
-                offset = anchors[i].offsetTop;
-                break;
-            } 
-        }
-
-        if (tree && offset) {
-            tree.scrollTop = offset - 10;
+        if ( (isA(/Mac/) || isAbout(/OS X/)) && (!isAbout(/Linux/)) ) {
+            var e = document.getElementsByTagName('body')[0];
+            e.className += ' mac';  // class magic for Cmd vs. Ctrl keys.
         }
 
     </script>
 
-    <script>
+    <script type="text/javascript">
         (function() {
           var cx = '011950134405426689607:2lg2y9xgf3a';
           var gcse = document.createElement('script'); gcse.type = 'text/javascript';