Commits

Matthew Turk  committed f1abb71

Setting username in the header

  • Participants
  • Parent commits b500431

Comments (0)

Files changed (1)

  $(document).ready(function() {
     var loc = window.location;
     bbuser = loc.hostname.substring(0, loc.hostname.indexOf('.'));
+    if(bbuser.length == 0) { bbuser = "Unknown User"; }
+    $("#this_username").html(bbuser);
     update_inventory(inventory_data);
  });
 </script>    
 <body>
 <div id="header" class="container_6">
     <div class="grid_6">
-        <h1>My PasteBoard</h1>
+        <h1><span id="this_username">Nothing</span>'s PasteBoard</h1>
     </div>
 <div id="content" class="container_6">