mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-11-01 21:27:51 +00:00
Added qortal lottery page
This commit is contained in:
@@ -72,6 +72,10 @@ const generateForPlugins = () => {
|
||||
in: 'plugins/core/overview-page/overview-page.src.js',
|
||||
out: 'plugins/core/overview-page/overview-page.js',
|
||||
},
|
||||
{
|
||||
in: 'plugins/core/qortal-lottery/qortal-lottery.src.js',
|
||||
out: 'plugins/core/qortal-lottery/qortal-lottery.js',
|
||||
},
|
||||
{
|
||||
in: 'plugins/core/trade-portal/trade-portal.src.js',
|
||||
out: 'plugins/core/trade-portal/trade-portal.js',
|
||||
|
||||
@@ -183,6 +183,17 @@ parentEpml.ready().then(() => {
|
||||
menus: [],
|
||||
parent: false,
|
||||
},
|
||||
{
|
||||
url: 'lottery',
|
||||
domain: 'core',
|
||||
page: 'qortal-lottery/index.html',
|
||||
title: 'Qortal Lottery',
|
||||
icon: 'vaadin:ticket',
|
||||
mwcicon: 'token',
|
||||
pluginNumber: 'plugin-TgHRtXRxit',
|
||||
menus: [],
|
||||
parent: false,
|
||||
},
|
||||
];
|
||||
|
||||
const registerPlugins = (pluginInfo) => {
|
||||
|
||||
55
plugins/plugins/core/qortal-lottery/index.html
Normal file
55
plugins/plugins/core/qortal-lottery/index.html
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="/font/material-icons.css">
|
||||
<link rel="stylesheet" href="/font/switch-theme.css">
|
||||
<script>
|
||||
const checkBack = localStorage.getItem('qortalTheme')
|
||||
if (checkBack === 'dark') {
|
||||
newtheme = 'dark';
|
||||
} else {
|
||||
newtheme = 'light';
|
||||
}
|
||||
document.querySelector('html').setAttribute('theme', newtheme);
|
||||
</script>
|
||||
<style>
|
||||
html {
|
||||
--scrollbarBG: #a1a1a1;
|
||||
--thumbBG: #6a6c75;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 11px;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--thumbBG) var(--scrollbarBG);
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-track {
|
||||
background: var(--scrollbarBG);
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: var(--thumbBG);
|
||||
border-radius: 6px;
|
||||
border: 3px solid var(--scrollbarBG);
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Roboto", sans-serif;
|
||||
background: var(--plugback);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<qortal-lottery></qortal-lottery>
|
||||
<script src="qortal-lottery.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1000
plugins/plugins/core/qortal-lottery/qortal-lottery.src.js
Normal file
1000
plugins/plugins/core/qortal-lottery/qortal-lottery.src.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user