mirror of
https://github.com/konpa/devicon.git
synced 2025-08-17 20:01:38 +02:00
New Feature: webpage now displays <img> of SVG (#834)
* Webpage now displays <img> of SVG * Update docs/index.html Co-authored-by: David Leal <halfpacho@gmail.com> * Add a hint to change width/height for svg/img Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -88,6 +88,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
||||
$scope.selectedFontIcon = $scope.icons[0].font[0];
|
||||
$scope.selectedSvgIcon = $scope.selectSvg($scope.icons[0].svg[0], 0);
|
||||
$scope.selectedFontIndex = 0;
|
||||
$scope.selectedSvgIndex = 0;
|
||||
|
||||
/*------ End of "Re-format devicon.json" ------*/
|
||||
});
|
||||
@@ -101,6 +102,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
||||
$scope.selectedFontIcon = icon.font[0];
|
||||
$scope.selectedFontIndex = 0;
|
||||
$scope.selectedSvgIcon = $scope.selectSvg(icon.svg[0], 0);
|
||||
$scope.selectedSvgIndex = 0;
|
||||
|
||||
// reset color
|
||||
$scope.fontBackground = DEFAULT_BACKGROUND;
|
||||
@@ -154,6 +156,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*---- End of "Change selected svg icon" ----*/
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user