mirror of
https://github.com/konpa/devicon.git
synced 2025-08-12 01:24:42 +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
|
||||
var gitHubPath = 'devicons/devicon';
|
||||
var url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
|
||||
|
||||
$scope.latestReleaseTagging = 'master';
|
||||
$http.get(url).success(function (data) {
|
||||
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
|
||||
$http.get(baseUrl + '/devicon.json').success(function(data) {
|
||||
|
@@ -33,11 +33,13 @@
|
||||
<meta name="msapplication-TileImage" content="./logos/mstile-144x144.png">
|
||||
<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">
|
||||
</head>
|
||||
|
||||
<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]>
|
||||
<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]-->
|
||||
@@ -75,7 +77,7 @@
|
||||
<h4>SVG versions</h4>
|
||||
<ul class="icons-list">
|
||||
<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>
|
||||
</ul>
|
||||
<div class="cde">
|
||||
|
Reference in New Issue
Block a user