diff --git a/src/assets/javascripts/actions/index.ts b/src/assets/javascripts/actions/index.ts index 7b004c9b0..cff5b5085 100644 --- a/src/assets/javascripts/actions/index.ts +++ b/src/assets/javascripts/actions/index.ts @@ -20,9 +20,7 @@ * IN THE SOFTWARE. */ -export * from "./anchor" export * from "./header" -export * from "./hidden" -export * from "./scrolling" +export * from "./main" export * from "./search" -export * from "./sidebar" +export * from "./toc" diff --git a/src/assets/javascripts/actions/hidden/index.ts b/src/assets/javascripts/actions/main/hideable/index.ts similarity index 100% rename from src/assets/javascripts/actions/hidden/index.ts rename to src/assets/javascripts/actions/main/hideable/index.ts diff --git a/src/assets/javascripts/actions/main/index.ts b/src/assets/javascripts/actions/main/index.ts new file mode 100644 index 000000000..e961f6e6b --- /dev/null +++ b/src/assets/javascripts/actions/main/index.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2016-2020 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +export * from "./hideable" +export * from "./sidebar" +export * from "./scrollable" diff --git a/src/assets/javascripts/actions/scrolling/index.ts b/src/assets/javascripts/actions/main/scrollable/index.ts similarity index 93% rename from src/assets/javascripts/actions/scrolling/index.ts rename to src/assets/javascripts/actions/main/scrollable/index.ts index ffb47f51a..a4ab7f3d6 100644 --- a/src/assets/javascripts/actions/scrolling/index.ts +++ b/src/assets/javascripts/actions/main/scrollable/index.ts @@ -32,7 +32,7 @@ export function setOverflowScrolling( el: HTMLElement ): void { - // el.style.backgroundColor = "yellow" // TODO: debugging + el.style.backgroundColor = "yellow" // TODO: debugging el.style.webkitOverflowScrolling = "touch" } @@ -44,6 +44,6 @@ export function setOverflowScrolling( export function resetOverflowScrolling( el: HTMLElement ): void { - // el.style.backgroundColor = "" // TODO: debugging + el.style.backgroundColor = "" // TODO: debugging el.style.webkitOverflowScrolling = "" } diff --git a/src/assets/javascripts/actions/sidebar/index.ts b/src/assets/javascripts/actions/main/sidebar/index.ts similarity index 100% rename from src/assets/javascripts/actions/sidebar/index.ts rename to src/assets/javascripts/actions/main/sidebar/index.ts diff --git a/src/assets/javascripts/actions/anchor/index.ts b/src/assets/javascripts/actions/toc/anchor/index.ts similarity index 100% rename from src/assets/javascripts/actions/anchor/index.ts rename to src/assets/javascripts/actions/toc/anchor/index.ts diff --git a/src/assets/javascripts/actions/toc/index.ts b/src/assets/javascripts/actions/toc/index.ts new file mode 100644 index 000000000..0189fd3ad --- /dev/null +++ b/src/assets/javascripts/actions/toc/index.ts @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2016-2020 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +export * from "./anchor"