1
0
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:
Thomas Bui
2021-09-06 19:07:46 -07:00
committed by GitHub
parent b6adba39e8
commit 63b340cb29
2 changed files with 23 additions and 7 deletions

View File

@@ -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" ----*/
});