summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2021-01-14 22:05:25 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2021-01-15 21:49:17 +0100
commitd07128a021a9895ef450e6ed313a0546cfb0f68b (patch)
tree7974ba903dc3ed7c802889c41efe31435b340c01 /templates
parent7853e955643b452cab39217c9521fbfb92589756 (diff)
downloadcataract-d07128a021a9895ef450e6ed313a0546cfb0f68b.tar.xz
fluid: Add workaround to disable initial transitions on page load
Although this may look weird on a first sight it does the trick. Perhaps as a result of another bug in recent Webkit-based browsers, still good enough for the time being.
Diffstat (limited to 'templates')
-rw-r--r--templates/fluid/template_album.html3
-rw-r--r--templates/fluid/template_index.html4
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/fluid/template_album.html b/templates/fluid/template_album.html
index 2535a58..7c028b0 100644
--- a/templates/fluid/template_album.html
+++ b/templates/fluid/template_album.html
@@ -32,6 +32,9 @@
}
</style>
<link href="$(TEMPLATES_PATH)styles.css" type="text/css" rel="stylesheet" media="screen, print" />
+ <script type="text/javascript">
+ document.addEventListener("DOMContentLoaded", () => document.body.className = "");
+ </script>
</head>
<body>
diff --git a/templates/fluid/template_index.html b/templates/fluid/template_index.html
index 89c5be1..12fc918 100644
--- a/templates/fluid/template_index.html
+++ b/templates/fluid/template_index.html
@@ -12,6 +12,10 @@
}
</style>
<link href="$(TEMPLATES_PATH)styles.css" type="text/css" rel="stylesheet" media="screen, print" />
+ <script type="text/javascript">
+ /* This dirty little trick prevents Webkit-based browsers to do initial animation upon page load. */
+ document.addEventListener("DOMContentLoaded", () => document.body.className = "");
+ </script>
</head>
<body>