Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Renatodeluna/6064131 to your computer and use it in GitHub Desktop.
Save Renatodeluna/6064131 to your computer and use it in GitHub Desktop.
var dialog = document.createElement('div'),
ie6Launch = 2001,
ie7Launch = 2006,
currentYear = new Date().getFullYear(),
ieVersion = head.browser.version,
timeAgo = ieVersion <= 6 ? currentYear - ie6Launch : currentYear - ie7Launch;
dialog.className = 'dialog-fixed browsers';
dialog.innerHTML = '\
<div class="out-box"> \
<div class="content-box"> \
<p class="title">Navegador muito antigo!</p> \
<div class="content"> \
<div class="plaintext"> \
<p class="subtitle">Seu <b class="IEca">Internet Explorer ' + ieVersion + '</b> é muito antigo, foi lançado há mais de ' + timeAgo + ' anos (nossa!)</p> \
<p>Para navegar no JusBrasil, <b>aconselhamos que utilize um dos navegadores abaixo</b> ou (em último caso) atualize o seu navegador atual.</p> \
<table> \
<tr> \
<td> \
<a href="http://www.google.com/intl/pt-BR/chrome/browser/" title="Google Chrome" target="_blank"> \
<img src="/static/image/chrome.png" alt="Google Chrome"> \
<p>Google Chrome</p> \
</a> \
</td> \
<td> \
<a href="http://www.mozilla.org/pt-BR/firefox/" title="Mozilla Firefox" target="_blank"> \
<img src="/static/image/firefox.png" alt="Mozilla Firefox"> \
<p>Mozilla Firefox</p> \
</a> \
</td> \
</tr> \
</table> \
</div> \
</div> \
</div> \
</div> \
';
document.body.appendChild(dialog);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment