This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="maindiv"> | |
<!-- Need to have two divs with same content. | |
One div will translate completely out of parent and other div will fill the void till the transition for first div starts again. --> | |
<div id="div1"> | |
Test-1 Test-2 Test-3 Test-4 Test-5 Test-6 Test-7 Test-8 Test-9 Test-10 Test-11 | |
</div> | |
<div id="div2"> | |
Test-1 Test-2 Test-3 Test-4 Test-5 Test-6 Test-7 Test-8 Test-9 Test-10 Test-11 | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vendor\Product\Cache\Frontend; | |
/* ************************************************************* | |
* Copyright notice | |
* | |
* (c) 2018 Luis Antonio García Escobar <[email protected]> | |
* | |
* All rights reserved | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let version = 1; | |
let cacheName = self.location.hostname + version; | |
let allowedPaths = [ | |
/^\/(\?utm_source=homescreen)?$/, | |
// Also matches /article/news/... !! | |
/\/news\/?.*$/ | |
]; | |
self.addEventListener('install', (e) => { | |
e.waitUntil( |