diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-04-22 19:52:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-04-22 19:52:03 +0200 |
| commit | 3a97d69b84fa762313c0af3779e031c2234afbaf (patch) | |
| tree | bb02c6a8e7d1316cebfb90edf7d8b914c2cfe26d /frontend/site/projects/museum/app/revisions.js | |
| parent | 17ba8604b903e5f87a960ab88d34d884ff6d84d8 (diff) | |
replace the marquee
Diffstat (limited to 'frontend/site/projects/museum/app/revisions.js')
| -rw-r--r-- | frontend/site/projects/museum/app/revisions.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/frontend/site/projects/museum/app/revisions.js b/frontend/site/projects/museum/app/revisions.js new file mode 100644 index 0000000..9aa66a7 --- /dev/null +++ b/frontend/site/projects/museum/app/revisions.js @@ -0,0 +1,24 @@ + +import { isMobile } from "app/utils" + +export default function reviseSite (graph) { + console.log(graph) + if (!isMobile) { + return graph + } + graph.pages['/last-museum/home'].tiles = ( + graph.pages['/last-museum/home'].tiles + .filter(tile => tile.type !== 'text') + ) + Object.keys(graph.pages).forEach(path => { + const page = graph.pages[path] + if (path.match("opoku")) { + page.tiles.forEach(tile => { + if (tile.type === 'image') { + tile.settings.scale /= 2 + } + }) + } + }) + return graph +} |
