diff --git a/xq/site/restx_main.xq b/xq/site/restx_main.xq index 8053f68..39c13e5 100644 --- a/xq/site/restx_main.xq +++ b/xq/site/restx_main.xq @@ -46,11 +46,15 @@ declare function site:header($lang as xs:string, $href-other as xs:string) { } β
  • { (element {if ($lang = 'ru') then 'mark' else 'a'}{ + attribute hx-on-click {"this.href = this.href + window.location.hash;"}, + attribute class {'abv-lang-link'}, if ($lang != 'ru') then (attribute href {`{$href-other}`}) else (), 'ru' }, ' / ', element {if ($lang = 'ru') then 'a' else 'mark'}{ + attribute hx-on-click {"this.href = this.href + window.location.hash;"}, + attribute class {'abv-lang-link'}, if ($lang = 'ru') then (attribute href {`{$href-other}`}) else (), 'en'