Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <body data-ng-app="myApp">
  <div data-ng-controller="directionsEditorController">
      <!-- Controller link to generalDirectionsEditor.js -->
    <br>
<div class="container">
    <div class="form-group">
        <div class="row">
            <!-- Heading Text-->
            <div class="col-sm-6">
                <p class="headerClass">Super Heroes Information</p>
            </div>
            <!-- Search -->
            <div class="col-sm-5">
                <div class="form-group">
                    <div class="input-group">
                        <input type="text" data-ng-model="byLocation.location" class="form-control" placeholder="Search By Name" />
                        <span class="input-group-addon" id="start-date"><span class="glyphicon glyphicon-search"></span></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <hr />

    <!-- Table -->
    <div class="row">
        <div class="col-md-12">
            <table class="table table-hover table-bordered results">
                <thead>
                    <tr class="active">
                        <th></th>
                        <th class="col-md-4 col-xs-3">Locations</th>
                        <th class="col-md-4 col-xs-3">Name</th>
                        <th class="col-md-4 col-xs-3">Weapons</th>
                    </tr>
                    <tr class="warning no-result">
                        <td colspan="4"><i class="fa fa-warning"></i> </td>
                    </tr>
                </thead>
                <tbody>
                    <tr data-ng-repeat="loc in editLocation | filter:byLocation">
                        <th>
                            <button type="button" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-pencil"></span></button>
                        </th>
                        <td>{{loc.location}}</td>
                        <td>{{loc.name}}</td>
                        <td>{{loc.Powers}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- Modal -->
    <div class="modal fade" id="myModal" role="dialog">
        <div class="modal-dialog">
            <!-- Modal content-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">Abilities</h4>
                </div>
                <div class="modal-body">
                    <p>Heroes are awesome!!</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

  </div>




            
          
!
            
              /*Background Design For Header Text and Search Bar*/

body {
  background-image: url("https://pbs.bento.storage.s3.amazonaws.com/hostedbento-prod/filer_public/Superheroes%3A%20A%20Never-Ending%20Battle/Master/SuperHeroes-title-960px%20copy.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center; 
}
.container-fluid > .form-group {
    background-color:#ecf9ec;
    border: .5px solid #f2f2f2;
    display:inline-block
}
.row:hover {
	background: transparent!important;
}

.headerClass {
    font-weight:bold;
    font-size:35px;
    margin:0px 0px 0px 30px;
}

hr {
    width:100%;
    margin:0px 53px 0px 0px;
}

/*Table Design*/
tr > th {
    font-size:15px;
    font-weight:bold;
    text-align:center;
}

th > button {
    font-size:15px;
    border-radius:5px;
    box-shadow:none;
}

tr > td {
    text-align:center;
    font-size:17px;
    font-weight:bold;
    vertical-align: text-bottom;
}
.table-hover:hover {
  opacity: 0.7;
}

            
          
!
            
              
/// <reference path="" />
var app = angular.module('myApp', []);

app.controller('directionsEditorController', function ($scope) {

    $scope.editLocation = [
        {
            "location": "New Jersey",
            "name": "Iron Man",
            "Powers": "Missiles and Lasers"
        },
        {
            "location": "Pennsylvania",
            "name": "Batman",
            "Powers": "Genius intellect, physical prowess"
        },        {
            "location": "California",
            "name": "Thor",
            "Powers": "God Blast, Super Human Healing and Senses"
        },
        {
            "location": "Pennsylvania",
            "name": "SuperMan",
            "Powers": "Superhuman strength, Superhuman speed."
        }
    ]

});




            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console