2014-11-30 19:57:31 +01:00
<!DOCTYPE html>
<!-- [if lt IE 7]> <html class="no - js lt - ie9 lt - ie8 lt - ie7"> <![endif] -->
<!-- [if IE 7]> <html class="no - js lt - ie9 lt - ie8"> <![endif] -->
<!-- [if IE 8]> <html class="no - js lt - ie9"> <![endif] -->
<!-- [if gt IE 8]><! --> < html class = "no-js" > <!-- <![endif] -->
2014-11-30 19:28:43 +01:00
< head >
2014-11-30 19:57:31 +01:00
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" >
< title > Devicon< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
2014-11-30 19:28:43 +01:00
< link rel = "stylesheet" href = "http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" charset = "utf-8" >
2015-01-27 10:43:36 +01:00
< link rel = "stylesheet" href = "devicon.min.css" charset = "utf-8" >
2014-11-30 19:57:31 +01:00
2014-11-30 19:28:43 +01:00
< style media = "screen" >
body {
margin: 5rem;
text-align: center;
2015-05-13 10:12:29 +02:00
background: rgb(245, 245, 245);
}
.borders {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
border: 8px solid #60be86;
z-index: -1;
2014-11-30 19:28:43 +01:00
}
.icon-version {
2015-05-13 10:12:29 +02:00
margin: 4rem 0;
2014-11-30 19:28:43 +01:00
}
i {
display: inline-block;
margin: 2rem;
font-size: 5rem;
}
img {
max-width: 5rem;
}
2015-05-13 10:12:29 +02:00
h4 {
margin: 0;
color: #60be86;
}
2014-11-30 19:28:43 +01:00
< / style >
2014-11-30 19:57:31 +01:00
2014-11-30 19:28:43 +01:00
< / head >
< body ng-app = "app" ng-controller = "IconsCtrl" >
2015-05-13 10:12:29 +02:00
< div class = "borders" > < / div >
2014-11-30 19:57:31 +01:00
<!-- [if lt IE 7]>
< p class = "browsehappy" > You are using an < strong > outdated< / strong > browser. Please < a href = "http://browsehappy.com/" > upgrade your browser< / a > to improve your experience.< / p >
<![endif]-->
2015-05-13 10:12:29 +02:00
< input type = "text" id = "search" placeholder = "Search for icons" ng-model = "search.name" >
2015-01-27 10:43:36 +01:00
< div ng-repeat = "icon in icons | filter:search" >
2014-11-30 19:57:31 +01:00
2014-11-30 19:28:43 +01:00
< div class = "icon-version" ng-repeat = "version in icon.versions.font" >
< i class = "devicon-{{icon.name}}-{{version}}" > < / i >
< i class = "devicon-{{icon.name}}-{{version}} colored" > < / i >
2015-05-13 10:12:29 +02:00
< h4 > {{icon.name}}-{{version}} (font icon)< / h4 >
2014-11-30 19:28:43 +01:00
< / div >
2014-11-30 19:57:31 +01:00
2014-11-30 19:28:43 +01:00
< div class = "icon-version" ng-repeat = "version in icon.versions.svg" >
< img ng-src = "icons/{{icon.name}}/{{icon.name}}-{{version}}.svg" alt = "{{icon.name}}-{{version}}" / >
2015-05-13 10:12:29 +02:00
< h4 > {{icon.name}}-{{version}} (svg)< / h4 >
2014-11-30 19:28:43 +01:00
< / div >
2015-01-27 10:43:36 +01:00
2014-11-30 19:57:31 +01:00
< / div >
2014-11-30 19:28:43 +01:00
2014-11-30 19:57:31 +01:00
< script src = "http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js" charset = "utf-8" > < / script >
2014-11-30 19:28:43 +01:00
2014-11-30 19:57:31 +01:00
< script charset = "utf-8" >
var app = angular.module("app", []);
2014-11-30 19:28:43 +01:00
2014-11-30 19:57:31 +01:00
app.controller('IconsCtrl', function($scope, $http) {
2015-01-27 10:43:36 +01:00
$http.get('devicon.json').then(function(res) {
2014-11-30 19:57:31 +01:00
$scope.icons = res.data;
console.log($scope.icons);
});
2014-11-30 19:28:43 +01:00
});
2014-11-30 19:57:31 +01:00
< / script >
2014-11-30 19:28:43 +01:00
< / body >
< / html >