forked from InterruptorPt/ate-onde-chega-cultura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teatros.html
54 lines (47 loc) · 2.24 KB
/
teatros.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<head>
<!-- As obrigatórias meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Folha de estilos do Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- Título da página -->
<title>Teatros</title>
</head>
<body>
<div class="container-fluid px-lg-5 pt-5 pb-5">
<div class="row mx-lg-n5">
<div class="col-sm px-lg-5">
<h3>Lista e mapa dos teatros em Portugal</h3>
<p>
<iframe id="wikidataframe" style="width: 100%; height: 62vh; border: none;" referrerpolicy="origin"
sandbox="allow-scripts allow-same-origin allow-popups"></iframe>
<script>
var wikidataQuery = `
# Map of theaters in Portugal
#defaultView:Map
SELECT ?itemLabel ?geo WHERE {
?item wdt:P31/wdt:P279* wd:Q24354. # Item is an instance or subclass of Theater (Q24354)
?item wdt:P625 ?geo. # Store item's geographic coordinates in the ?geo variable
?item wdt:P17 wd:Q45. # Item's country is Portugal
SERVICE wikibase:label { bd:serviceParam wikibase:language "pt,en" }.
}
`
var urlPrefix = "https://query.wikidata.org/embed.html#"
var frame = document.getElementById("wikidataframe")
frame.src = urlPrefix + encodeURI(wikidataQuery)
</script>
</p>
</div>
</div>
</div>
<!-- Javascript para o Bootstrap -->
<!-- desativo porque não está a ser usado, mas fica aqui para a eventualidade de vir a ser -->
<!-- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous">
</script> -->
</body>