admin:online-platform-cms:new-script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:online-platform-cms:new-script [2022/10/31 08:09] ignas-bogusisadmin:online-platform-cms:new-script [2022/10/31 11:49] (current) ignas-bogusis
Line 11: Line 11:
 **HIDDEN_GAMES** **HIDDEN_GAMES**
 <code> <code>
-Here you can add games that you want to be hidden from places where it could be opened (headers, side menus and etc.).+Here you can add games that you want to be hidden in header. If you pass `'undefined'` to hidden games array it will hide all expandable menus. It is important to know that if you want the best experience with the script you should add `'.left-menu.side-menu-toggle-wrapper'` to HIDDEN_CONTENT array, to hide mobile side menu, since this script can't handle it. 
 </code> </code>
  
Line 22: Line 23:
     - lottery     - lottery
     - horses     - horses
 +    - keno
 +    - roulette
     - greyhounds     - greyhounds
 +    - undefined (hides every expandable header menu)
  
 ==== HIDDER SCRIPT ==== ==== HIDDER SCRIPT ====
Line 33: Line 36:
   '.header-cms-links-row',   '.header-cms-links-row',
   '#cms-footer-content-holder',   '#cms-footer-content-holder',
 +  '.left-menu.side-menu-toggle-wrapper'
 ]; ];
 const HIDDEN_GAMES = [ const HIDDEN_GAMES = [
-  'dogs'+  'horses', 
 +  'lottery', 
 +  'roulette', 
 +  'horses', 
 +  'keno', 
 +  'betgames-iframe', 
 +  'greyhounds', 
 +  'undefined'
 ] ]
  
Line 69: Line 80:
  
   console.log('Hidder enabled');   console.log('Hidder enabled');
-  const interval = setInterval(() => { +  hidePageContent(); 
-    hidePageContent(); +  window.addEventListener('resize', hidePageContent); 
-  }100);+  document.addEventListener('routeChange'hidePageContent);
 } }
  
 startHider(); startHider();
 </code> </code>
  • admin/online-platform-cms/new-script.1667203782.txt.gz
  • Last modified: 2022/10/31 08:09
  • by ignas-bogusis