Skip to content

Commit

Permalink
Merge pull request #710 from georchestra/remove-cdn-resources
Browse files Browse the repository at this point in the history
Add js,css,font resource to avoid external dependencies
  • Loading branch information
f-necas authored Apr 17, 2024
2 parents 7f5b062 + 1269d56 commit 6942bb9
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
4 changes: 4 additions & 0 deletions assets/css/font-awesome.min.css

Large diffs are not rendered by default.

Binary file added assets/fonts/NotoSans.ttf
Binary file not shown.
Binary file added assets/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added assets/fonts/fontawesome-webfont.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions assets/js/es5.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions assets/js/proj4.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@
}

</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
@font-face {
font-family: 'Noto Sans';
src: local('Noto Sans'), local('NotoSans-Regular'), url(assets/fonts/NotoSans.ttf) format('truetype');
}
</style>
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.10/proj4.js"></script-->
<!--<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=__API_KEY_MAPQUEST__"></script>-->
Expand Down
14 changes: 9 additions & 5 deletions indexTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,16 @@
width: 100%;
}
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.10/proj4.js"></script>
<script async type="text/javascript" src="https://unpkg.com/[email protected]/es5.js" onload="checkBrowser()"></script>
<style>
@font-face {
font-family: 'Noto Sans';
src: local('Noto Sans'), local('NotoSans-Regular'), url(assets/fonts/NotoSans.ttf) format('truetype');
}
</style>
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
<script src="assets/js/proj4.js"></script>
<script async type="text/javascript" src="assets/js/es5.js" onload="checkBrowser()"></script>
<script type="text/javascript">
function checkBrowser() {
var browserInfo = bowser.getParser(window.navigator.userAgent);
Expand Down

0 comments on commit 6942bb9

Please sign in to comment.