added global js and fixed buttons
This commit is contained in:
parent
8a0f8c77fe
commit
a0fa864475
4 changed files with 21 additions and 7 deletions
|
@ -30,6 +30,8 @@ declare function page:head($title as xs:string, $script as node()* := ()) {
|
|||
<head>
|
||||
<script src="/static/jquery-3.7.1.min.js">
|
||||
</script>
|
||||
<script src="/static/abaev-global.js">
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"/>
|
||||
|
||||
|
@ -56,15 +58,13 @@ declare function page:header($lang as xs:string, $href-other as xs:string) {
|
|||
(element {if ($lang = 'ru') then 'mark' else 'a'}{
|
||||
if ($lang != 'ru') then
|
||||
(attribute class {'link'},
|
||||
attribute data-href {`{$href-other}`},
|
||||
attribute href {'#'}) else (),
|
||||
attribute data-href {`{$href-other}`}) else (),
|
||||
'ru'
|
||||
}, ' / ',
|
||||
element {if ($lang = 'ru') then 'a' else 'mark'}{
|
||||
if ($lang = 'ru') then
|
||||
(attribute class {'link'},
|
||||
attribute data-href {`{$href-other}`},
|
||||
attribute href {'#'}) else (),
|
||||
attribute data-href {`{$href-other}`}) else (),
|
||||
'en'
|
||||
})
|
||||
}
|
||||
|
@ -669,7 +669,7 @@ return
|
|||
<html>
|
||||
{page:head('HEDO – Index', <script src="/static/abaev-index.js"></script>)}
|
||||
<body>
|
||||
{page:header($lang,`../{page:invert-lang($lang)}/index`)}
|
||||
{page:header($lang, `../{page:invert-lang($lang)}/index`)}
|
||||
<main>
|
||||
<div class="index">
|
||||
<div class="langs">
|
||||
|
@ -702,7 +702,7 @@ return
|
|||
</div>
|
||||
</div>
|
||||
<div class="index-submit">
|
||||
<button id="btn-index-submit" hidden="1">Go to form</button>
|
||||
<button id="btn-index-submit" hidden="1">{if ($lang = 'ru') then 'К форме' else 'Go to form'}</button>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue