mirror of
https://github.com/konpa/devicon.git
synced 2025-08-06 14:46:46 +02:00
Replace raw.githubusercontent.com with jsdelivr (#586)
Co-authored-by: Clemens Bastian <8781699+amacado@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var baseUrl = 'https://raw.githubusercontent.com/' + gitHubPath + '/master/'
|
var baseUrl = `https://cdn.jsdelivr.net/gh/${gitHubPath}/`
|
||||||
|
|
||||||
// Get devicon.json
|
// Get devicon.json
|
||||||
$http.get(baseUrl + '/devicon.json').success(function(data) {
|
$http.get(baseUrl + '/devicon.json').success(function(data) {
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
<meta name="msapplication-TileImage" content="./logos/mstile-144x144.png">
|
<meta name="msapplication-TileImage" content="./logos/mstile-144x144.png">
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://raw.githubusercontent.com/devicons/devicon/master/devicon.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon/devicon.min.css">
|
||||||
<link rel="stylesheet" href="./assets/css/style.css">
|
<link rel="stylesheet" href="./assets/css/style.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
<h4>SVG versions</h4>
|
<h4>SVG versions</h4>
|
||||||
<ul class="icons-list">
|
<ul class="icons-list">
|
||||||
<li ng-repeat="svgVersion in selectedIcon.svg" ng-click="selectSvg(svgVersion, $index)" ng-class="{'selected-version' : $index == selectedSvgIndex}">
|
<li ng-repeat="svgVersion in selectedIcon.svg" ng-click="selectSvg(svgVersion, $index)" ng-class="{'selected-version' : $index == selectedSvgIndex}">
|
||||||
<img ng-src="https://raw.githubusercontent.com/devicons/devicon/master/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
|
<img ng-src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="cde">
|
<div class="cde">
|
||||||
|
Reference in New Issue
Block a user