Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
The way to keep the alert display when viewing the production web page

I'm trying to create a program to keep the alert display when viewing the production web page.

For example, I have two pages as follows:

  • TEST environment ) https://example.com/123
  • PROD environment ) https://example.com/456

Only when viewing the PROD page, I'd like to display the alert that covers the content. Please see the image I attached.

enter image description here

As I'm beginner of programing, I have no idea how to realize it. Could anyone give me an advice for this? I have basic knowledges of HTML/CSS/Java/JS.

Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Let's define a function like this:

function alertProd(url, prodPattern) {
    if (url.indexOf(prodPattern) >= 0) alert("PROD!");
}

alertProd(window.location.href, "stacksnippets");

Note that I have used stacksnippets as pattern, you will need to change it to 456 when you call the function.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda