title: showing popup once for each language home page
body: <p>I want to show popup window once at each language site ( which my site is at double language ) . So when the user open each of them the message shows only one time .. I have used session to do that , but it's only showing one time for both of the language , and i have used this code </p>
  
  <pre><code>    &lt;script&gt;// Created for an Articles on:
  // https://www.html5andbeyond.com/session-storage-display-popup-advert/
  
  jQuery(document).ready(function($){
  
  if (sessionStorage.getItem('advertOnce') !== 'true') {
  $('body').append('&lt;div id="advert-once"&gt; &lt;div id="boxes"&gt;&lt;div style="top: 199.5px; left: 551.5px; display: none;" id="dialog" class="window"&gt;&lt;h1 class="dialog"&gt;@lang("pagination.poptitle")&lt;/h1&gt;&lt;h2 class="dialog"&gt;@lang("pagination.popup")&lt;/h2&gt;&lt;button id="clos" class="close  " class="  "&gt;@lang("pagination.popbutton") &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="width: 1478px; height: 1000px; display: none; opacity: 0.8;" id="mask"&gt;&lt;/div&gt;&lt;div class="advert-button"&gt;&lt;/div&gt;&lt;/div&gt;')
  sessionStorage.setItem('advertOnce','true');
  }
  
  $('#advert-once .advert-button').on('click',function(){
  $('#advert-once').hide();
  });
  
  $('#reset-session').on('click',function(){
  sessionStorage.setItem('advertOnce','');
  });
  
  });
  //# sourceURL=pen.js
  &lt;/script&gt;
  </code></pre>
  
  <p>So the question is how to make it shows at each home page language only one time ? 
  It's now show only one time for both of them . </p>