1
0
mirror of https://github.com/konpa/devicon.git synced 2025-01-17 21:48:28 +01:00
devicon/index.html
2014-11-30 19:57:31 +01:00

75 lines
2.2 KiB
HTML

<!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]-->
<head>
<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">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" charset="utf-8">
<link rel="stylesheet" href="devicon.css" charset="utf-8">
<link rel="stylesheet" href="devicon-colors.css" charset="utf-8">
<style media="screen">
body {
margin: 5rem;
text-align: center;
background: #d9d9d9;
}
.icon-version {
margin-bottom: 3rem;
}
i {
display: inline-block;
margin: 2rem;
font-size: 5rem;
}
img {
max-width: 5rem;
}
</style>
</head>
<body ng-app="app" ng-controller="IconsCtrl">
<!--[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]-->
<div ng-repeat="icon in icons">
<div class="icon-version" ng-repeat="version in icon.versions.font">
<h4>{{icon.name}}-{{version}} (font icon)</h4>
<i class="devicon-{{icon.name}}-{{version}}"></i>
<i class="devicon-{{icon.name}}-{{version}} colored"></i>
</div>
<div class="icon-version" ng-repeat="version in icon.versions.svg">
<h4>{{icon.name}}-{{version}} (svg)</h4>
<img ng-src="icons/{{icon.name}}/{{icon.name}}-{{version}}.svg" alt="{{icon.name}}-{{version}}" />
</div>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js" charset="utf-8"></script>
<script charset="utf-8">
var app = angular.module("app", []);
app.controller('IconsCtrl', function($scope, $http) {
$http.get('https://rawgit.com/konpa/devicon/master/devicon.json').then(function(res) {
$scope.icons = res.data;
console.log($scope.icons);
});
});
</script>
</body>
</html>