mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
25 lines
615 B
HTML
25 lines
615 B
HTML
|
<html>
|
||
|
<head>
|
||
|
<script type="text/javascript">
|
||
|
var theme = {
|
||
|
id: "test",
|
||
|
name: "Test Background",
|
||
|
headerURL: "http://example.com/firefox/personas/01/header.jpg",
|
||
|
footerURL: "http://example.com/firefox/personas/01/footer.jpg",
|
||
|
textcolor: "#fff",
|
||
|
accentcolor: "#6b6b6b"
|
||
|
};
|
||
|
|
||
|
function setTheme(node) {
|
||
|
node.setAttribute("data-browsertheme", JSON.stringify(theme));
|
||
|
var event = document.createEvent("Events");
|
||
|
event.initEvent("InstallBrowserTheme", true, false);
|
||
|
node.dispatchEvent(event);
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<a id="theme-install" href="#" onclick="setTheme(this)">Install</a>
|
||
|
</body>
|
||
|
</html>
|