force opacity, rather than depend on scroll
authorAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2020 07:19:20 +0000 (15:19 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2020 07:19:20 +0000 (15:19 +0800)
domains/businesssandesh.in.js

index 74aea25..cb3e228 100644 (file)
@@ -1,17 +1,8 @@
 (function() {
-    var  scrollTo = function(duration) {
-        var to  = document.body.parentNode.scrollHeight;
-        if (duration <= 0) return;
-        var difference = to - document.body.parentNode.scrollTop;
-        var perTick = difference / duration * 10;
-    
-        var sid = setInterval(function() {
-            document.body.parentNode.scrollTop = document.body.parentNode.scrollTop + perTick;
-            if (document.body.parentNode.scrollTop > to) {
-                clearInterval(sid );
-            }
-            
-        }, 10);
-    }
-    scrollTo(10000);
+    // this is run when capture is ready.
+    try {
+       var ar = document.getElementsByTagName('img');
+       for (i = 0;i<ar.length;i++) { ar[i].setAttribute('style','opacity:1 !important'); }
+   } catch(e) {}
+
 })()
\ No newline at end of file