Commit 817f8087 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

tried to fix ios jumping behavioury

parent 0c70aec2
......@@ -7,6 +7,8 @@ class App {
if (!navigator.geolocation)
alert("Your browser does not support geo data!");
$("main").css("height", window.innerHeight - 93);
setInterval(() => {
navigator.geolocation.getCurrentPosition(position => {
let p = new GeoPoint(position.coords.latitude, position.coords.longitude, position.coords.altitude);
......
......@@ -12,10 +12,17 @@ class smallQ {
return this;
}
}
function $(selector) {
return new smallQ(selector);
css(key, value) {
if (!value)
return this.elements[0].style[key];
for (let element of this.elements)
element.style[key] = value;
}
static $(selector) {
return new smallQ(selector);
}
}
export default $;
\ No newline at end of file
export default smallQ.$;
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment