daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const url = window.location.href
  2. const title = document.getElementById("title")
  3.  
  4. if(url.match(".it")) {
  5.  title.append("Benvenuto!")
  6. } else if(url.match(".de")) {
  7.  title.append("Herzlich Willkommen!")
  8. } else {
  9.  title.append("Welcome!")
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top