modern-spa-boilerplate
Version:
Modern Boilerplate for Single Page Applications
24 lines (19 loc) • 469 B
JavaScript
var shared = {
title: "Message Box",
text: "Your data was successfully parsed!",
base: 0
}
import template from "./Message.html"
export default {
template: template,
data: function() {
return shared
}
}
console.log("Debug from Message.js")
function update() {
shared.base = getComputedStyle(document.documentElement).fontSize
}
window.addEventListener("resize", update, true);
window.addEventListener("orientationchange", update, true);
update();