mirror of
https://github.com/konpa/devicon.git
synced 2025-08-12 09:34:36 +02:00
update resource links to raw githubusercontent
This commit is contained in:
@@ -13,6 +13,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
|||||||
// as well as for CDN links
|
// as well as for CDN links
|
||||||
var gitHubPath = 'devicons/devicon';
|
var gitHubPath = 'devicons/devicon';
|
||||||
var url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
|
var url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
|
||||||
|
|
||||||
$scope.latestReleaseTagging = 'master';
|
$scope.latestReleaseTagging = 'master';
|
||||||
$http.get(url).success(function (data) {
|
$http.get(url).success(function (data) {
|
||||||
if(data.length > 0) {
|
if(data.length > 0) {
|
||||||
@@ -23,7 +24,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var baseUrl = window.location.origin + '/dist';
|
var baseUrl = 'https://raw.githubusercontent.com/' + gitHubPath + '/master/'
|
||||||
|
|
||||||
// Get devicon.json
|
// Get devicon.json
|
||||||
$http.get(baseUrl + '/devicon.json').success(function(data) {
|
$http.get(baseUrl + '/devicon.json').success(function(data) {
|
||||||
|
@@ -33,11 +33,13 @@
|
|||||||
<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="./dist/devicon.min.css">
|
<link rel="stylesheet" href="https://raw.githubusercontent.com/devicons/devicon/master/devicon.min.css">
|
||||||
<link rel="stylesheet" href="./assets/css/style.css">
|
<link rel="stylesheet" href="./assets/css/style.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body ng-app="devicon" ng-controller="IconListCtrl">
|
<body ng-app="devicon" ng-controller="IconListCtrl">
|
||||||
|
<link rel="stylesheet" ng-if="latestReleaseTagging" ng-href="https://cdn.jsdelivr.net/gh/devicons/devicon@{{ latestReleaseTagging }}/devicon.min.css">
|
||||||
|
|
||||||
<!--[if lt IE 7]>
|
<!--[if lt IE 7]>
|
||||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
@@ -75,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="./dist/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
|
<img ng-src="https://raw.githubusercontent.com/devicons/devicon/master/icons/{{selectedIcon.name}}/{{selectedIcon.name}}-{{svgVersion}}.svg">
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="cde">
|
<div class="cde">
|
||||||
|
Reference in New Issue
Block a user