header tweaks

The Eviction of the J-Monster
This commit is contained in:
scotty
2016-02-11 15:43:25 -08:00
parent 77aff5ad0c
commit 1a5f2659a0
3 changed files with 1 additions and 54 deletions
+1 -4
View File
@@ -6,8 +6,6 @@
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/styles.css"/>
<script src="/js/script.js"></script>
<!--<script src="/js/jquery-2.2.0.min.js"></script>-->
<!--<script src="/js/non-mini.js"></script>-->
<title>Kubernetes - {{ page.title }}</title>
</head>
<body>
@@ -15,8 +13,7 @@
<header>
<a href="/" class="logo"></a>
<div class="nav-buttons" data-auto-burger="primary">
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
<!--<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>-->
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
</div>
-4
View File
File diff suppressed because one or more lines are too long
-46
View File
@@ -1,46 +0,0 @@
//// credit to: http://jsfiddle.net/s8m2t/8/
//var buildRec;
//buildRec = function(headingNodes, $elm, lv) {
// var cnt, curLv, li, node;
// node = headingNodes.splice(0, 1);
// if (node && node.length > 0) {
// curLv = parseInt(node[0].tagName.substring(1));
// if (curLv === lv) {
// cnt = 0;
// } else if (curLv < lv) {
// cnt = 0;
// while (true) {
// $elm = $elm.parent().parent();
// cnt--;
// if (!(cnt > (curLv - lv))) {
// break;
// }
// }
// } else if (curLv > lv) {
// cnt = 0;
// while (true) {
// li = $elm.children().last();
// if (!($elm.children().last().length > 0)) {
// $elm.append($("<li>"));
// li = $elm.children().last();
// }
// li.append($('<ul style="list-style-type: none;">'));
// $elm = li.children().last();
// cnt++;
// if (!(cnt < (curLv - lv))) {
// break;
// }
// }
// }
// $elm.append($("<li>"));
// li = $elm.children().last();
// li.html("<a href=#" + node[0].id + ">" + node[0].innerHTML + "</a>");
// return buildRec(headingNodes, $elm, lv + cnt);
// }
//};
//$(document).ready(function(){
// var headingNodes = $('#docsContent').children().filter(":header");
// var result = $('<ul style="list-style-type: none; padding-left:0px;">');
// buildRec(headingNodes,result,1);
// $("#pageTOC").append(result);
//});