Created
September 27, 2018 13:16
-
-
Save noirbizarre/df2ec0d23ed62f20f296805671f8f33c to your computer and use it in GitHub Desktop.
An ODS dataset card to demonstrate that relative URLs are broken everywhere but the explore page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Card</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://opendatasoft.github.io/ods-widgets/dist/ods-widgets.css"> | |
<style> | |
* { | |
box-sizing: border-box; | |
border: none; | |
margin: 0; | |
padding: 0; | |
outline: 0; | |
} | |
html, body { | |
height: 100%; | |
width: 100%; | |
} | |
.preview-title { | |
font-size: 24px; | |
height: 32px; | |
margin: 10px 0; | |
text-align: center; | |
} | |
.preview-container { | |
height: calc(100% - 52px); | |
} | |
</style> | |
</head> | |
<body ng-app="ods-widgets"> | |
<ods-dataset-context context="card" | |
card-domain="data.paysdelaloire.fr" | |
card-dataset="248500589_arrets-horaires-et-circuits-impulsyon-gtfs_lrsya"> | |
<ods-dataset-card context="card" style="height: 600px"> | |
</ods-dataset-card> | |
</ods-dataset-context> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular-sanitize.min.js"></script> | |
<script type="text/javascript" src="https://opendatasoft.github.io/ods-widgets/dist/ods-widgets.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment