"RedHawk Test - Manager"
Bootstrap 3.3.0 Snippet by wfkronberg

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-inverse"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-3"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">RedHawk</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="navbar-collapse-3"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Home</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container --> </nav><!-- /.navbar --> <div class="container"> <div class="row"> <div class="col-lg-offset-0 col-lg-20"> <div class="well profile"> <div class="col-lg-8"> <div class="col-lg-offset-0 row-lg-offset-10 col-lg-3"> <figure> <img src="http://science-all.com/images/wallpapers/iron-man-images/iron-man-images-1.jpg" alt="" class="img-circle img-responsive"> </figure> </div> <div class="col-lg-20 col-lg-8"> <h3>Iron Man</h3> <p><strong>Login: </strong> ironma </p> <p><strong>Manager: </strong> Phil Coulson </p> <p><strong>Job Title: </strong> Super Hero </p> </div> </div> </div> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-lg-15"> <form action="#" method="get"> <div class="input-group"> <!-- USE TWITTER TYPEAHEAD JSON WITH API TO SEARCH --> <input class="form-control" id="system-search" name="q" placeholder="Search for" required> <span class="input-group-btn"> <button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i></button> </span> </div> </form> </div> </div> </div> <div class="container"> <div class="row"> <table class="table table-list-search table table-hover"> <thead> <tr> <th>Full Name</th> <th>Login</th> <th>Score</th> <th>Duration</th> <th>Brutalness</th> </tr> </thead> <tbody> <tr> <td>Captain America</td> <td>capta</td> <td>89%</td> <td>02:14</td> <td>7</td> </tr> <tr> <td>Spider-Man</td> <td>spida</td> <td>77%</td> <td>03:13</td> <td>8</td> </tr> <tr> <tr> <td>Thor</td> <td>thor</td> <td>98%</td> <td>01:12</td> <td>10</td> </tr> </tr> </tbody> </table> </div> </div>
@import url(http://fonts.googleapis.com/css?family=Lato:400,700); body { font-family: 'Lato', 'sans-serif'; margin-top: 2% } .profile { min-height: 100px; min-width: 1000px; display: inline-block; } span.tags { background: #000000; border-radius: 2px; color: #000000; font-weight: bold; padding: 2px 4px; } .stats { border: 2px; } .row{ margin-left:0px; margin-right:0px; } .spacer{ min-height: 70px; } /* Code snippet by maridlcrmn for Bootsnipp.com Follow me on Twitter @maridlcrmn */ .navbar-brand { position: relative; z-index: 2; } .navbar-nav.navbar-right .btn { position: relative; z-index: 2; padding: 4px 20px; margin: 10px auto; } .navbar .navbar-collapse { position: relative; } .navbar .navbar-collapse .navbar-right > li:last-child { padding-left: 22px; } .navbar .nav-collapse { position: absolute; z-index: 1; top: 0; left: 0; right: 0; bottom: 0; margin: 0; padding-right: 120px; padding-left: 80px; width: 100%; } .navbar.navbar-default .nav-collapse { background-color: #f8f8f8; } .navbar.navbar-inverse .nav-collapse { background-color: #222; } .navbar .nav-collapse .navbar-form { border-width: 0; box-shadow: none; } .nav-collapse>li { float: right; } .btn.btn-circle { border-radius: 50px; } .btn.btn-outline { background-color: transparent; } @media screen and (max-width: 767px) { .navbar .navbar-collapse .navbar-right > li:last-child { padding-left: 15px; padding-right: 15px; } .navbar .nav-collapse { margin: 7.5px auto; padding: 0; } .navbar .nav-collapse .navbar-form { margin: 0; } .nav-collapse>li { float: none; } }
$(document).ready(function() { var activeSystemClass = $('.list-group-item.active'); //something is entered in search form $('#system-search').keyup( function() { var that = this; // affect all table rows on in systems table var tableBody = $('.table-list-search tbody'); var tableRowsClass = $('.table-list-search tbody tr'); $('.search-sf').remove(); tableRowsClass.each( function(i, val) { //Lower text for case insensitive var rowText = $(val).text().toLowerCase(); var inputText = $(that).val().toLowerCase(); if(inputText != '') { $('.search-query-sf').remove(); tableBody.prepend('<tr class="search-query-sf"><td colspan="6"><strong>Searching for: "' + $(that).val() + '"</strong></td></tr>'); } else { $('.search-query-sf').remove(); } if( rowText.indexOf( inputText ) == -1 ) { //hide rows tableRowsClass.eq(i).hide(); } else { $('.search-sf').remove(); tableRowsClass.eq(i).show(); } }); //all tr elements are hidden if(tableRowsClass.children(':visible').length == 0) { tableBody.append('<tr class="search-sf"><td class="text-muted" colspan="6">No entries found.</td></tr>'); } }); });

Related: See More


Questions / Comments: