From 388642e388c277f16b5af9b56670fdc6f18387d5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 4 Jul 2016 23:10:04 -0400 Subject: [PATCH] Double to single quotes [ci skip] --- docs/template.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/template.html b/docs/template.html index 54b739083..9fc0002bd 100644 --- a/docs/template.html +++ b/docs/template.html @@ -219,7 +219,7 @@ pageHeader = document.querySelectorAll('.markdown-body p')[0], headers = document.querySelectorAll('h2, h3, h4'), classNames = ['table', 'table-striped', 'table-hover', 'table-condensed'], - localPath = location.pathname.split('/').splice(2).join("/"), + localPath = location.pathname.split('/').splice(2).join('/'), addClass = function (el, className) { if (el.classList) { el.classList.add(className); @@ -231,11 +231,11 @@ if (elem.addEventListener) { elem.addEventListener(type, fn, false); } else if (elem.attachEvent) { - elem.attachEvent("on" + type, function() { + elem.attachEvent('on' + type, function() { return fn.call(elem, window.event); }); } else { - elem["on" + type] = fn; + elem['on' + type] = fn; } }, hasClass = function (el, className) { @@ -274,13 +274,13 @@ var ls2 = { save : function (key, jsonData, expirationMS) { - if (typeof (Storage) == "undefined") { return false; } + if (typeof (Storage) === 'undefined') { return false; } var record = {value: JSON.stringify(jsonData), timestamp: new Date().getTime()/1000 + expirationMS} localStorage.setItem(key, JSON.stringify(record)); return jsonData; }, load : function (key) { - if (typeof (Storage) == "undefined") { return false; } + if (typeof (Storage) === 'undefined') { return false; } var record = JSON.parse(localStorage.getItem(key)); if (!record){return false;} return (new Date().getTime()/1000 < record.timestamp && JSON.parse(record.value)); @@ -288,22 +288,22 @@ }; var ToC = - "'; if (count > 1) { var navItems = document.querySelectorAll('.list-group-item'); @@ -342,7 +342,7 @@ var highlightElements = document.querySelectorAll('pre'); Array.prototype.forEach.call(highlightElements, function(el, i) { var language = languageClass(el.parentElement); - if (typeof (language) === "undefined") { + if (typeof (language) === 'undefined') { return; } @@ -394,7 +394,7 @@ versionName = 'master'; } - a.setAttribute('href', "/" + ref + "/" + localPath); + a.setAttribute('href', '/' + ref + '/' + localPath); a.appendChild(document.createTextNode(versionName)); if (versionName == currentVersion) { var strong = document.createElement('strong'); @@ -433,7 +433,7 @@ if (!data) { var request = new XMLHttpRequest(); request.open('GET', '/dokku/assets/versions.json', true); - request.setRequestHeader("Cache-Control", "no-cache, no-store"); + request.setRequestHeader('Cache-Control', 'no-cache, no-store'); request.onload = function() { if (request.status >= 200 && request.status < 400) {