mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-25 05:28:37 -05:00
Global pass over the code to remove trailing spaces
This commit is contained in:
@@ -3,7 +3,7 @@ var parseJson = (elementId) => {
|
||||
return JSON.parse(jsonElement.innerHTML);
|
||||
};
|
||||
|
||||
var urlifyFunction = (options, context) => {
|
||||
var urlifyFunction = (options, context) => {
|
||||
var data = context.data;
|
||||
|
||||
var identifier = options.replace(/ /g, '');
|
||||
@@ -48,8 +48,8 @@ var copyTextToClipboard = (text) => {
|
||||
var sidebarNavigate = (index) => {
|
||||
var subtreeSelector = "#index" + index + "-subtree";
|
||||
|
||||
if ((currentDocumentation == documentation[index])
|
||||
&& (document.querySelector(subtreeSelector).innerHTML != ""))
|
||||
if ((currentDocumentation == documentation[index])
|
||||
&& (document.querySelector(subtreeSelector).innerHTML != ""))
|
||||
{
|
||||
var subtreeSelector = "#index" + index + "-subtree";
|
||||
document.querySelector(subtreeSelector).innerHTML = "";
|
||||
@@ -89,7 +89,7 @@ var sidebarNavigate = (index) => {
|
||||
subTreeHTML += "</li>";
|
||||
}
|
||||
|
||||
//find our subtree and fill it with data
|
||||
//find our subtree and fill it with data
|
||||
document.querySelector(subtreeSelector).innerHTML = subTreeHTML;
|
||||
};
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
<span class="documentation-function-arguments">
|
||||
{{#each arguments}}
|
||||
<span class="arguments-name">{{name}}</span>
|
||||
<span class="arguments-type">({{type}})</span>
|
||||
<span class="arguments-type">({{type}})</span>
|
||||
{{#unless @last}},{{/unless}}
|
||||
{{/each}}
|
||||
</span>
|
||||
</span>
|
||||
<span class="documentation-key">)</span>
|
||||
{{#if returnType}}
|
||||
<span class="documentation-function-return">
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.documentation-function-arguments,
|
||||
.documentation-function-arguments,
|
||||
.documentation-function-return
|
||||
{
|
||||
font-size: 0.8em;
|
||||
@@ -74,7 +74,7 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.documentation-function-arguments > .arguments-type,
|
||||
.documentation-function-arguments > .arguments-type,
|
||||
.documentation-function-return
|
||||
{
|
||||
color: #aaa;
|
||||
@@ -229,4 +229,4 @@ body {
|
||||
position: relative;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ window.onload = function () {
|
||||
var mainTemplateElement = document.getElementById('mainTemplate');
|
||||
var mainTemplate = Handlebars.compile(mainTemplateElement.innerHTML);
|
||||
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
Handlebars.registerHelper('urlify', function(options, context) {
|
||||
var data = context.data;
|
||||
var identifier = options.replace(" ", "-").toLowerCase();
|
||||
|
||||
@@ -33,4 +33,4 @@ window.onload = function () {
|
||||
|
||||
var contents = mainTemplate(data);
|
||||
document.body.innerHTML = contents;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function scrollToPosition(selector) {
|
||||
}
|
||||
|
||||
function getLevel(element) {
|
||||
return levels.findIndex(function (levelString, level) {
|
||||
return levels.findIndex(function (levelString, level) {
|
||||
var className = 'log-level-' + levelString;
|
||||
if (element.classList.contains(className)) {
|
||||
return true;
|
||||
@@ -223,4 +223,4 @@ window.onload = function () {
|
||||
trackBottom: scroll > document.body.scrollHeight - 10
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user