cetera-labs / plugin-special
视力障碍者版本
dev-master
2023-12-13 10:45 UTC
This package is auto-updated.
Last update: 2024-09-13 12:24:59 UTC
README
使用说明
<body>
<!-- place after open body tag -->
{% widget 'Special.Panel' with {} %}
<!-- some html code -->
小部件参数
对于子域使用
配置子域 special.site.name
{% widget 'Special.Panel' with { url_normal: "site.name", css: "path_to_additional_css"} %}
对于cookie模式,而不是额外的子域
不需要额外的域名;
<body>
<!-- Button, link or another html tag with data attribute for activation required -->
<a data-action="widget-special-toggler" class="some_class">Enable special version</a>
{% widget 'Special.Panel' with { cookie_mode: true, css: "path_to_additional_css"} %}