-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
142 lines (117 loc) · 5.15 KB
/
index.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en" xmlns="//www.w3.org/1999/xhtml">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -- szekelydata -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-57335320-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-57335320-4');
</script>
<!-- Global site tag (gtag.js) - Google Analytics -- medveterkep -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-57335320-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-57335320-2');
</script>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />
<meta name="description"
content="Térképre helyeztük a székelyföldi medvetámadásokat. #medve #medveterkep #medveradar #szekelydata #szekelyland #dataviz @csaladenes" />
<meta name="keywords"
content="csaladenes, d3.js, data visualization, infographic, d3plus, d3, echarts, leaflet, map, terkep, bear map, bear, medveterkep, bear attack, medvetamadas, szekelyland, szekelydata, romania, transylvania, erdely" />
<meta property="og:image" content="https://medve.csaladen.es/snapshot.png" />
<meta property="twitter:image" content="https://medve.csaladen.es/snapshot.png" />
<meta property="og:description"
content="Térképre helyeztük a székelyföldi medvetámadásokat. #medve #medveterkep #medveradar #szekelydata #szekelyland #dataviz @csaladenes" />
<meta property="twitter:description"
content="Térképre helyeztük a székelyföldi medvetámadásokat. #medve #medveterkep #medveradar #szekelydata #szekelyland #dataviz @csaladenes" />
<meta property="og:title" content="🐻 Medvetérkép | székelydata" />
<meta property="twitter:title" content="🐻 Medvetérkép | székelydata" />
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />
<meta property="og:url" content="http://csaladenes.egologo.ro/?p=1721" />
<meta property="twitter:url" content="http://csaladenes.egologo.ro/?p=1721" />
<meta property="og:site_name" content="székelydata" />
<meta property="fb:admins" content="100943737036023614165" />
<link rel="shortcut icon" href="https://szekelydata.csaladen.es/favicon.ico" />
<link rel="publisher" href="https://plus.google.com/106181965793093327960" />
<link rel="shortcut icon" href="https://szekelydata.csaladen.es/blog/favicon.ico" />
<title>🐻 Medvetérkép | székelydata</title>
<style>
html,
body {
height: 100%;
width: 100%;
background-color: #ddd;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
border: none;
overflow: hidden;
}
div {
transition: opacity 0.5s;
-webkit-transition: opacity 0.5s;
}
iframe {
border: 1px solid #9EA8B1;
overflow: hidden;
background: none;
padding: 0;
margin: 0;
display: block;
}
#fr {
z-index: 2;
}
</style>
<body>
<div id='fr'>
<iframe id="container">
</iframe>
</div>
<script>
var width = 1000;
var height = 640;
var rescale = function () {
//scale content
var container = document.getElementById("container")
var parent = document.body;
var scal = Math.min(
(parent.offsetWidth) /
width,
(parent.offsetHeight) /
height)
if (scal < 1) {
console.log('rendering...scaling', scal)
container.width = width
container.height = height
container.style.WebkitTransform = "scale(" + scal + ")";
container.style.OTransform = "scale(" + scal + ")";
container.style.MozTransform = "scale(" + scal + ")";
container.style.msTransform = "scale(" + scal + ")";
container.style.Transform = "scale(" + scal + ")";
container.style.WebkitTransformOrigin = "50% 50%";
container.style.OTransformOrigin = "50% 50%";
container.style.MozTransformOrigin = "50% 50%";
container.style.msTransformOrigin = "50% 50%";
container.style.TransformOrigin = "50% 50%";
}
else {
console.log('rendering...no scaling', scal)
container.width = parent.offsetWidth
container.height = parent.offsetHeight
}
container.setAttribute('src', 'frame.html')
};
//init view
rescale();
</script>
</body>