Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
national_dex_final_project/index.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (35 sloc)
1.81 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" ng-app="myPokedex"> | |
<head> | |
<meta charset="utf-8"> | |
<title>National Dex</title> | |
<link href="content/css/styles.css" rel="stylesheet" type="text/css"> | |
<link href="https://fonts.googleapis.com/css?family=Cabin" rel="stylesheet"> | |
<script src="app/lib/angular.min.js"></script> | |
<script src="app/app.js"></script> | |
</head> | |
<body> | |
<div ng-controller="PokedexController"> | |
<header> | |
<img src="content/img/nationaldex_logo.png"> | |
<h2>Filter Generation 1 Pokemon by type, or search for a specific Pokemon by name.</h2> | |
</header> | |
<div id="filterButtonsContainer"> | |
<input type="text" ng-model="searchPokemon.name" placeholder="search for a Pokemon.." id="searchBar"> | |
<div ng-repeat="checkbox in checkboxes" class="checkbox"> | |
<input type="checkbox" ng-model="checkbox.value" id="{{checkbox.type}}Checkbox" class="defaultCheckboxStyles"> | |
<label for="{{checkbox.type}}Checkbox" id="{{checkbox.type}}Label">{{checkbox.type}}</label> | |
</div> | |
</div> | |
<div class="tileContainerWrapper"> | |
<ul class="tileContainer"> | |
<li ng-show="filter(pokemon)" ng-repeat="pokemon in pokemonDatabase | orderBy: 'index' | filter:searchPokemon" ng-class="'tile'" style="background: linear-gradient(to left,{{pokemon.bgColor2}} 50%,{{pokemon.bgColor1}} 50%);"> | |
<span class="displayNumber">#{{pokemon.displayNumber}}</span> | |
<img ng-src="{{pokemon.imgUrl}}"> | |
<span class="pokemonName">{{pokemon.name}}</span> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |