SHARE
TWEET

Untitled

a guest Jun 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.   function setAboutLink(lang){
  3.     var url = lang+"/aboutus";  // will be xyz.com/en/aboutus
  4.     window.location.href= url;
  5.   }
  6.   function setContactLink(lang){
  7.     var url = lang+"/contact"; // will be xyz.com/en/contact
  8.     window.location.href= url;
  9.   }
  10.   function setListLink(lang){
  11.     var url = lang+"/list"; // will be xyz.com/en/list
  12.     window.location.href= url;
  13.   }
  14.  
  15. </script>
  16.  
  17. <nav class="navbar navbar-expand-md navbar-light bg-light fixed-top pb-0">
  18.     <a class="navbar-brand" href="/"+selectedLanguageName><img src="/images/logo.png" alt="" class="logoC mr-4"
  19.             style="max-width: 100px"></a>
  20.     <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
  21.         <span class="navbar-toggler-icon"></span>
  22.     </button>
  23.     <div class="collapse navbar-collapse justify-content-between" id="collapsibleNavbar">
  24.         <ul class="navbar-nav mr-auto">
  25.             <li class="nav-item">
  26.                 <a class="nav-link" href="javascript:" onclick="setAboutLink(window.location.href)"
  27.                    >About Us</a>
  28.             </li>
  29.             <li class="nav-item">
  30.                 <a class="nav-link" href="javascript:" onclick="setContactLink(window.location.href)"
  31.                     >Contact Us</a>
  32.             </li>
  33.             <li class="nav-item">
  34.                 <a class="nav-link" href="javascript:" onclick="setListLink(window.location.href)"
  35.                    >List</a>
  36.             </li>
  37.         </ul>      
  38.     </div>
  39. </nav>
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