apostrophecms-plugin-all-in-one-accessibility 1.0.7 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -168
- package/app/config.js +134 -0
- package/app/helpers.js +62 -0
- package/app/skynet-widget.js +509 -0
- package/assets/css/banners.css +77 -0
- package/assets/css/base.css +50 -0
- package/assets/css/components.css +91 -0
- package/assets/css/paid.css +53 -0
- package/assets/css/responsive.css +70 -0
- package/assets/css/score.css +42 -0
- package/assets/css/settings.css +154 -0
- package/assets/css/tabs.css +52 -0
- package/assets/css/tokens.css +53 -0
- package/assets/images/icons/aioa-icon-type-1.svg +1 -0
- package/assets/images/icons/aioa-icon-type-10.svg +1 -0
- package/assets/images/icons/aioa-icon-type-11.svg +1 -0
- package/assets/images/icons/aioa-icon-type-12.svg +1 -0
- package/assets/images/icons/aioa-icon-type-13.svg +1 -0
- package/assets/images/icons/aioa-icon-type-14.svg +29 -0
- package/assets/images/icons/aioa-icon-type-15.svg +26 -0
- package/assets/images/icons/aioa-icon-type-16.svg +17 -0
- package/assets/images/icons/aioa-icon-type-17.svg +24 -0
- package/assets/images/icons/aioa-icon-type-18.svg +20 -0
- package/assets/images/icons/aioa-icon-type-19.svg +25 -0
- package/assets/images/icons/aioa-icon-type-2.svg +1 -0
- package/assets/images/icons/aioa-icon-type-20.svg +24 -0
- package/assets/images/icons/aioa-icon-type-21.svg +28 -0
- package/assets/images/icons/aioa-icon-type-22.svg +21 -0
- package/assets/images/icons/aioa-icon-type-23.svg +21 -0
- package/assets/images/icons/aioa-icon-type-24.svg +21 -0
- package/assets/images/icons/aioa-icon-type-25.svg +15 -0
- package/assets/images/icons/aioa-icon-type-26.svg +23 -0
- package/assets/images/icons/aioa-icon-type-27.svg +21 -0
- package/assets/images/icons/aioa-icon-type-28.svg +27 -0
- package/assets/images/icons/aioa-icon-type-29.svg +25 -0
- package/assets/images/icons/aioa-icon-type-3.svg +1 -0
- package/assets/images/icons/aioa-icon-type-4.svg +16 -0
- package/assets/images/icons/aioa-icon-type-5.svg +1 -0
- package/assets/images/icons/aioa-icon-type-6.svg +1 -0
- package/assets/images/icons/aioa-icon-type-7.svg +1 -0
- package/assets/images/icons/aioa-icon-type-8.svg +1 -0
- package/assets/images/icons/aioa-icon-type-9.svg +1 -0
- package/assets/js/app.js +152 -0
- package/assets/js/core.js +249 -0
- package/assets/js/dashboard.js +97 -0
- package/assets/js/paid-features.js +237 -0
- package/assets/js/plan.js +65 -0
- package/assets/js/save.js +35 -0
- package/assets/js/score.js +130 -0
- package/assets/js/settings-form.js +371 -0
- package/assets/js/tabs.js +108 -0
- package/assets/js/ui.js +90 -0
- package/index.js +301 -15
- package/package.json +19 -9
- package/ui/apos/components/AllInOneAccessibilitySettings.vue +126 -679
- package/views/layout.ejs +97 -0
- package/views/partials/accessibility-score.ejs +37 -0
- package/views/partials/header.ejs +13 -0
- package/views/partials/lock.ejs +20 -0
- package/views/partials/paid/links.ejs +33 -0
- package/views/partials/paid/mobile-position.ejs +80 -0
- package/views/partials/paid/toggles.ejs +20 -0
- package/views/partials/paid-banner.ejs +19 -0
- package/views/partials/paid-features.ejs +14 -0
- package/views/partials/score/card.ejs +61 -0
- package/views/partials/settings/color.ejs +37 -0
- package/views/partials/settings/icon-size.ejs +43 -0
- package/views/partials/settings/icon-type.ejs +24 -0
- package/views/partials/settings/position.ejs +70 -0
- package/views/partials/settings/save-bar.ejs +9 -0
- package/views/partials/settings/widget-size.ejs +38 -0
- package/views/partials/settings-form.ejs +39 -0
- package/views/partials/site-strip.ejs +5 -0
- package/views/partials/status.ejs +16 -0
- package/views/partials/tabs.ejs +32 -0
- package/views/partials/upgrade-banner.ejs +34 -0
- package/views/scriptTag.html +7 -1
- package/ui/apos/apps/AllInOneAccessibilitySettings.js +0 -8
package/views/layout.ejs
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
---------------------------------------------------------------------------
|
|
3
|
+
Page layout
|
|
4
|
+
---------------------------------------------------------------------------
|
|
5
|
+
<head>, stylesheets, the page sections (views/partials) and the scripts.
|
|
6
|
+
|
|
7
|
+
page: set by index.js (domain, name, email). Always the light theme.
|
|
8
|
+
-%>
|
|
9
|
+
<%
|
|
10
|
+
// Data handed to the JavaScript; read by assets/js/core.js
|
|
11
|
+
const boot = {
|
|
12
|
+
domain: page.domain,
|
|
13
|
+
name: page.name,
|
|
14
|
+
email: page.email,
|
|
15
|
+
iconBase: cfg.AIOA_ICON_BASE,
|
|
16
|
+
defaultColor: cfg.AIOA_DEFAULT_COLOR,
|
|
17
|
+
routeUrl: 'route',
|
|
18
|
+
apiUpdateUrl: cfg.AIOA_API_BASE + 'widget-setting-update-platform',
|
|
19
|
+
geoApiUrl: cfg.AIOA_GEO_API,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// Stylesheets in cascade order (assets/css)
|
|
23
|
+
const styles = [
|
|
24
|
+
'tokens.css', // colors and sizes (light theme)
|
|
25
|
+
'base.css', // reset, typography, page layout, header
|
|
26
|
+
'components.css', // buttons, cards, fields, toasts, loader
|
|
27
|
+
'banners.css', // plan notices (free / paid) and the site line
|
|
28
|
+
'settings.css', // color, widget size, position, icon type / size, save bar
|
|
29
|
+
'tabs.css', // tabs and the free plan lock overlay
|
|
30
|
+
'paid.css', // Paid Features tab: links, switches, mobile position
|
|
31
|
+
'score.css', // Accessibility Score tab
|
|
32
|
+
'responsive.css', // phone overrides
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
// Scripts in dependency order (assets/js). All are deferred, so they run in
|
|
36
|
+
// this order once the HTML has been parsed.
|
|
37
|
+
const scripts = [
|
|
38
|
+
'core.js', // namespace, config, state, helpers, API calls
|
|
39
|
+
'ui.js', // toasts, busy buttons, view switching
|
|
40
|
+
'tabs.js', // Appearance Design / Paid Features / Accessibility Score tabs, order and locks by plan
|
|
41
|
+
'plan.js', // free / paid notices, site line, tabs for the plan
|
|
42
|
+
'paid-features.js', // Paid Features tab: links, switches, widget position for mobile
|
|
43
|
+
'score.js', // Accessibility Score tab (scan results)
|
|
44
|
+
'settings-form.js', // read and fill the settings form, color picker
|
|
45
|
+
'save.js', // "Save Changes"
|
|
46
|
+
'dashboard.js', // paid plan "Dashboard" button (sign-in link from check-website)
|
|
47
|
+
'app.js', // loads the website (registers it once when new) and starts the page
|
|
48
|
+
];
|
|
49
|
+
-%>
|
|
50
|
+
<!doctype html>
|
|
51
|
+
<html lang="en" data-theme="light">
|
|
52
|
+
|
|
53
|
+
<head>
|
|
54
|
+
<meta charset="utf-8">
|
|
55
|
+
<meta name="robots" content="noindex, nofollow">
|
|
56
|
+
<meta name="googlebot" content="noindex, nofollow">
|
|
57
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
58
|
+
<meta name="description" content="All in One Accessibility widget settings" />
|
|
59
|
+
<title>All in One Accessibility Settings</title>
|
|
60
|
+
|
|
61
|
+
<% styles.forEach((style) => { %>
|
|
62
|
+
<link rel="stylesheet" href="<%= asset('css/' + style) %>">
|
|
63
|
+
<% }); %>
|
|
64
|
+
</head>
|
|
65
|
+
|
|
66
|
+
<body>
|
|
67
|
+
|
|
68
|
+
<div class="aioa-page">
|
|
69
|
+
|
|
70
|
+
<%- include('partials/header') %>
|
|
71
|
+
|
|
72
|
+
<main>
|
|
73
|
+
<%- include('partials/status') %>
|
|
74
|
+
|
|
75
|
+
<!-- Settings (shown once loading has finished) -->
|
|
76
|
+
<div id="settings_block" hidden>
|
|
77
|
+
<%- include('partials/upgrade-banner') %>
|
|
78
|
+
<%- include('partials/paid-banner') %>
|
|
79
|
+
<%- include('partials/site-strip') %>
|
|
80
|
+
<%- include('partials/settings-form') %>
|
|
81
|
+
</div>
|
|
82
|
+
</main>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<!-- Toast notifications (assets/js/ui.js) -->
|
|
86
|
+
<div class="aioa-toasts" id="toasts" aria-live="polite"></div>
|
|
87
|
+
|
|
88
|
+
<!-- Boot data for the scripts -->
|
|
89
|
+
<script id="aioa-boot" type="application/json"><%- jsonForScript(boot) %></script>
|
|
90
|
+
|
|
91
|
+
<% scripts.forEach((script) => { %>
|
|
92
|
+
<script src="<%= asset('js/' + script) %>" defer></script>
|
|
93
|
+
<% }); %>
|
|
94
|
+
|
|
95
|
+
</body>
|
|
96
|
+
|
|
97
|
+
</html>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Accessibility Score tab (assets/js/score.js).
|
|
3
|
+
Paid plan: the scan results load the first time the tab opens, and show as
|
|
4
|
+
loading, error, "scanning in progress" (no results yet) or the score card.
|
|
5
|
+
Free plan: a sample card, blurred, with the upgrade overlay.
|
|
6
|
+
-%>
|
|
7
|
+
<div class="aioa-lockable">
|
|
8
|
+
|
|
9
|
+
<!-- Free plan: example card behind the blur -->
|
|
10
|
+
<div class="aioa-lock-content" id="score-sample" aria-hidden="true" hidden>
|
|
11
|
+
<%- include('score/card', { sample: true }) %>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<!-- Paid plan -->
|
|
15
|
+
<div id="score-live">
|
|
16
|
+
<div class="aioa-loading aioa-card" id="score-loading" role="status" hidden>
|
|
17
|
+
<span class="aioa-spinner" aria-hidden="true"></span>
|
|
18
|
+
<span>Loading your accessibility score…</span>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<section class="aioa-card aioa-error-card" id="score-error" hidden>
|
|
22
|
+
<h2>We couldn't load your accessibility score</h2>
|
|
23
|
+
<p id="score-error-text">Please check your connection and try again.</p>
|
|
24
|
+
<button type="button" class="aioa-btn aioa-btn-primary" id="score-retry">Try again</button>
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
<!-- No scan results yet (the scanner answered no_scan) -->
|
|
28
|
+
<section class="aioa-card aioa-error-card" id="score-empty" hidden>
|
|
29
|
+
<h2>Scanning in progress</h2>
|
|
30
|
+
<p>Website scanning is in progress. It may take a few days, depending on the number of web pages and other factors. Once it is complete, the system will send a confirmation to your registered email.</p>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<%- include('score/card', { sample: false }) %>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<%- include('lock', { lockId: 'score-lock', lockMod: 'is-center' }) %>
|
|
37
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<%# Page header: logo and page title. The page is always shown in the light theme. %>
|
|
2
|
+
<header class="aioa-header">
|
|
3
|
+
<div class="aioa-brand">
|
|
4
|
+
<svg class="aioa-logo" viewBox="0 0 81.296 81.296" aria-hidden="true" focusable="false">
|
|
5
|
+
<circle class="aioa-logo-circle" cx="40.648" cy="40.648" r="40.648" />
|
|
6
|
+
<path fill="#fff" transform="translate(6.249 6.244)" d="<%= cfg.AIOA_LOGO_PATH %>" />
|
|
7
|
+
</svg>
|
|
8
|
+
<div>
|
|
9
|
+
<h1>All in One Accessibility<sup>®</sup></h1>
|
|
10
|
+
<p>Powered by Skynet Technologies</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Free plan overlay for a paid tab: centered card over the blurred tab content,
|
|
3
|
+
with the free trial text and the "Upgrade to Paid Plan" button.
|
|
4
|
+
Shown / hidden by AIOA.tabs.setPlan (assets/js/tabs.js).
|
|
5
|
+
|
|
6
|
+
lockId id prefix for the card text (aria-labelledby), e.g. "paid-lock"
|
|
7
|
+
lockMod extra class: "" (card near the top) or "is-center" (short content)
|
|
8
|
+
-%>
|
|
9
|
+
<div class="aioa-lock <%= lockMod %>" hidden>
|
|
10
|
+
<div class="aioa-lock-card" role="group" aria-labelledby="<%= lockId %>-text">
|
|
11
|
+
<span class="aioa-lock-icon" aria-hidden="true">
|
|
12
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><rect x="5" y="11" width="14" height="10" rx="2" /><path d="M8 11V8a4 4 0 0 1 8 0v3" /></svg>
|
|
13
|
+
</span>
|
|
14
|
+
<p class="aioa-lock-text" id="<%= lockId %>-text">Try a 10-day free trial to view all 100+ features.</p>
|
|
15
|
+
<a href="<%= cfg.AIOA_UPGRADE_URL %>" data-upgrade-link target="_blank" rel="noopener" class="aioa-btn aioa-btn-primary">
|
|
16
|
+
Upgrade to Paid Plan
|
|
17
|
+
<span class="visually-hidden">(opens in a new tab)</span>
|
|
18
|
+
</a>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Paid Features > custom links shown in the widget
|
|
3
|
+
statement_link custom accessibility statement page
|
|
4
|
+
report_problem_link custom "report a problem" page
|
|
5
|
+
Empty is allowed; otherwise a full http(s) link (assets/js/paid-features.js).
|
|
6
|
+
-%>
|
|
7
|
+
<%
|
|
8
|
+
// [field name, title, placeholder, icon (SVG inner markup, 24 x 24)]
|
|
9
|
+
const links = [
|
|
10
|
+
['statement_link', 'Enter custom accessibility statement link', 'https://www.yourwebsite.com/accessibility-statement',
|
|
11
|
+
'<path d="M9 7h8M9 12h8M9 17h8" /><circle cx="5.5" cy="7" r=".6" fill="currentColor" /><circle cx="5.5" cy="12" r=".6" fill="currentColor" /><circle cx="5.5" cy="17" r=".6" fill="currentColor" />'],
|
|
12
|
+
['report_problem_link', 'Enter custom report a problem link', 'https://www.yourwebsite.com/report-a-problem',
|
|
13
|
+
'<path d="M12 4l9 16H3z" /><path d="M12 10v4M12 17v.5" />'],
|
|
14
|
+
];
|
|
15
|
+
-%>
|
|
16
|
+
<% links.forEach((link) => { %>
|
|
17
|
+
<section class="aioa-card" aria-labelledby="<%= link[0] %>-title">
|
|
18
|
+
<h2 class="aioa-feature-title" id="<%= link[0] %>-title">
|
|
19
|
+
<span class="aioa-feature-icon" aria-hidden="true">
|
|
20
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><%- link[3] %></svg>
|
|
21
|
+
</span>
|
|
22
|
+
<label for="<%= link[0] %>"><%= link[1] %></label>
|
|
23
|
+
</h2>
|
|
24
|
+
<div class="aioa-affix aioa-link-input" data-for="<%= link[0] %>">
|
|
25
|
+
<span class="aioa-affix-icon" aria-hidden="true">
|
|
26
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1" /><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1" /></svg>
|
|
27
|
+
</span>
|
|
28
|
+
<input type="url" id="<%= link[0] %>" name="<%= link[0] %>" inputmode="url" autocomplete="off" spellcheck="false"
|
|
29
|
+
placeholder="<%= link[2] %>" aria-describedby="<%= link[0] %>-error" />
|
|
30
|
+
</div>
|
|
31
|
+
<p class="aioa-error" id="<%= link[0] %>-error" hidden></p>
|
|
32
|
+
</section>
|
|
33
|
+
<% }); %>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Paid Features > Widget position for mobile
|
|
3
|
+
Same layout as Appearance Design > Widget position (views/partials/settings/position.ejs),
|
|
4
|
+
with phone-shaped glyphs and a "Mobile view" preview in the center cell.
|
|
5
|
+
is_mobile_position switch: use a separate position on phones
|
|
6
|
+
is_widget_custom_position_mobile "Set an exact position in pixels": 0 = presets, 1 = offsets
|
|
7
|
+
widget_position_mobile preset (AIOA_POSITIONS in app/config.js)
|
|
8
|
+
Exact position (0 - 500 px):
|
|
9
|
+
horizontal To the left / To the right / Center -> widget_position_{left,right}_mobile,
|
|
10
|
+
widget_position_horizontal_center_offset_mobile (the widget puts the icon at left: 50% + offset)
|
|
11
|
+
vertical To the top / To the bottom -> widget_position_{top,bottom}_mobile
|
|
12
|
+
-%>
|
|
13
|
+
<section class="aioa-card" aria-labelledby="mobile-position-title">
|
|
14
|
+
<div class="aioa-switch-head">
|
|
15
|
+
<input type="checkbox" role="switch" class="aioa-switch" id="is_mobile_position" name="is_mobile_position" value="1" aria-controls="mobile-position-body" />
|
|
16
|
+
<h2 id="mobile-position-title"><label for="is_mobile_position">Widget position for mobile</label></h2>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div id="mobile-position-body" hidden>
|
|
20
|
+
|
|
21
|
+
<!-- Preset grid <-> exact offsets -->
|
|
22
|
+
<label class="aioa-check">
|
|
23
|
+
<input type="checkbox" id="custom-position-mobile-switcher" aria-controls="mobile-custom mobile-preset" />
|
|
24
|
+
Set an exact position in pixels
|
|
25
|
+
</label>
|
|
26
|
+
|
|
27
|
+
<!-- Preset positions -->
|
|
28
|
+
<fieldset class="aioa-fieldset widget-position" id="mobile-preset">
|
|
29
|
+
<legend class="visually-hidden">Widget icon position on mobile</legend>
|
|
30
|
+
<div class="aioa-pos-grid">
|
|
31
|
+
<% cfg.AIOA_POSITIONS.forEach((pos) => { %>
|
|
32
|
+
<% if (pos === null) { %>
|
|
33
|
+
<!-- Center cell: mini website with the icon at the selected mobile position -->
|
|
34
|
+
<div class="aioa-pos-center" aria-hidden="true">
|
|
35
|
+
<span class="aioa-mini-label">Mobile view</span>
|
|
36
|
+
<span class="aioa-mini-widget" id="mini-widget-mobile" style="--gx:1;--gy:1"><img class="iconimg" src="<%= cfg.AIOA_ICON_BASE %>aioa-icon-type-1.svg" alt="" /></span>
|
|
37
|
+
</div>
|
|
38
|
+
<% } else { %>
|
|
39
|
+
<div class="aioa-pos-option">
|
|
40
|
+
<input type="radio" class="aioa-radio" id="mobile-position-<%= slug(pos[0]) %>" name="position_mobile" value="<%= pos[0] %>" data-gx="<%= pos[2] %>" data-gy="<%= pos[3] %>" <%= pos[0] === 'bottom_right' ? 'checked' : '' %> />
|
|
41
|
+
<label for="mobile-position-<%= slug(pos[0]) %>" class="aioa-pos-label">
|
|
42
|
+
<span class="aioa-glyph is-phone" style="--gx:<%= pos[2] %>;--gy:<%= pos[3] %>" aria-hidden="true"><i></i></span>
|
|
43
|
+
<%= pos[1] %>
|
|
44
|
+
</label>
|
|
45
|
+
</div>
|
|
46
|
+
<% } %>
|
|
47
|
+
<% }); %>
|
|
48
|
+
</div>
|
|
49
|
+
</fieldset>
|
|
50
|
+
|
|
51
|
+
<!-- Exact offsets -->
|
|
52
|
+
<div class="aioa-subpanel" id="mobile-custom" hidden>
|
|
53
|
+
<div class="aioa-offset-row">
|
|
54
|
+
<label class="aioa-label" for="mobile_x_value">Horizontal</label>
|
|
55
|
+
<div class="aioa-affix" data-for="mobile_x_value">
|
|
56
|
+
<input type="number" min="0" max="500" step="1" inputmode="numeric" id="mobile_x_value" value="0" aria-describedby="mobile-range-hint mobile-pos-error" />
|
|
57
|
+
<span class="aioa-affix-text" aria-hidden="true">px</span>
|
|
58
|
+
</div>
|
|
59
|
+
<select class="aioa-select" id="mobile_x_dir" aria-label="Horizontal direction (mobile)">
|
|
60
|
+
<option value="left">To the left</option>
|
|
61
|
+
<option value="right" selected>To the right</option>
|
|
62
|
+
<option value="center">Center</option>
|
|
63
|
+
</select>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="aioa-offset-row">
|
|
66
|
+
<label class="aioa-label" for="mobile_y_value">Vertical</label>
|
|
67
|
+
<div class="aioa-affix" data-for="mobile_y_value">
|
|
68
|
+
<input type="number" min="0" max="500" step="1" inputmode="numeric" id="mobile_y_value" value="0" aria-describedby="mobile-range-hint mobile-pos-error" />
|
|
69
|
+
<span class="aioa-affix-text" aria-hidden="true">px</span>
|
|
70
|
+
</div>
|
|
71
|
+
<select class="aioa-select" id="mobile_y_dir" aria-label="Vertical direction (mobile)">
|
|
72
|
+
<option value="top">To the top</option>
|
|
73
|
+
<option value="bottom" selected>To the bottom</option>
|
|
74
|
+
</select>
|
|
75
|
+
</div>
|
|
76
|
+
<p class="aioa-hint" id="mobile-range-hint">0 - 500px are permitted values</p>
|
|
77
|
+
<p class="aioa-error" id="mobile-pos-error" hidden></p>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</section>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Paid Features > widget behavior switches (sent as 1 / 0)
|
|
3
|
+
widget_leave_page Enable External Link Navigation On Widget
|
|
4
|
+
is_sound_disabled Disable Open Close sound on Widget
|
|
5
|
+
-%>
|
|
6
|
+
<%
|
|
7
|
+
// [field name, label]
|
|
8
|
+
const toggles = [
|
|
9
|
+
['widget_leave_page', 'Enable External Link Navigation On Widget'],
|
|
10
|
+
['is_sound_disabled', 'Disable Open Close sound on Widget'],
|
|
11
|
+
];
|
|
12
|
+
-%>
|
|
13
|
+
<div class="aioa-pair">
|
|
14
|
+
<% toggles.forEach((toggle) => { %>
|
|
15
|
+
<label class="aioa-card aioa-toggle-card" for="<%= toggle[0] %>">
|
|
16
|
+
<input type="checkbox" role="switch" class="aioa-switch" id="<%= toggle[0] %>" name="<%= toggle[0] %>" value="1" />
|
|
17
|
+
<span><%= toggle[1] %></span>
|
|
18
|
+
</label>
|
|
19
|
+
<% }); %>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Paid plan notice with the "Dashboard" button.
|
|
3
|
+
Shown instead of the upgrade notice when is_free_widget = 0. The button
|
|
4
|
+
opens the dashboard with the sign-in link (manage_domain from check-website)
|
|
5
|
+
that assets/js/dashboard.js loads as soon as the plan is known to be paid.
|
|
6
|
+
%>
|
|
7
|
+
<section id="paid_plan_block" class="aioa-notice" aria-labelledby="paid-title" hidden>
|
|
8
|
+
<div class="aioa-notice-body">
|
|
9
|
+
<p class="aioa-tag is-success">Paid plan active</p>
|
|
10
|
+
<h2 id="paid-title">All pro features are unlocked</h2>
|
|
11
|
+
<p>Manage features, accessibility reports and widget analytics from your dashboard.</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="aioa-notice-action">
|
|
14
|
+
<button type="button" class="aioa-btn aioa-btn-primary" data-aioa-dashboard>
|
|
15
|
+
Dashboard
|
|
16
|
+
<span class="visually-hidden">(opens in a new tab)</span>
|
|
17
|
+
</button>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Paid Features tab. Read, filled and checked by assets/js/paid-features.js and
|
|
3
|
+
saved together with the Appearance Design settings (paid plans only).
|
|
4
|
+
Free plan: the content is blurred and inert, with the
|
|
5
|
+
upgrade overlay on top (views/partials/lock.ejs).
|
|
6
|
+
-%>
|
|
7
|
+
<div class="aioa-lockable">
|
|
8
|
+
<div class="aioa-lock-content aioa-stack">
|
|
9
|
+
<%- include('paid/mobile-position') %>
|
|
10
|
+
<%- include('paid/links') %>
|
|
11
|
+
<%- include('paid/toggles') %>
|
|
12
|
+
</div>
|
|
13
|
+
<%- include('lock', { lockId: 'paid-lock', lockMod: '' }) %>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Accessibility Score card: status, score ring and three figures.
|
|
3
|
+
Included twice by views/partials/accessibility-score.ejs:
|
|
4
|
+
live - filled by assets/js/score.js from /route?action=fetchScanDetails ([data-field] elements)
|
|
5
|
+
sample - fixed example values behind the free plan blur (no ids)
|
|
6
|
+
|
|
7
|
+
sample: true / false
|
|
8
|
+
-%>
|
|
9
|
+
<%
|
|
10
|
+
// Example values for the sample card
|
|
11
|
+
const values = sample ? {
|
|
12
|
+
'status': 'Compliant', 'score': 98,
|
|
13
|
+
'violations-pct': '86.36%', 'violations-count': '38 / 44',
|
|
14
|
+
'alt-pct': '0%', 'alt-count': '0 / 0',
|
|
15
|
+
'pages': '13', 'pages-count': '13 / 13',
|
|
16
|
+
} : Object.fromEntries(['status', 'score', 'violations-pct', 'violations-count', 'alt-pct', 'alt-count', 'pages', 'pages-count'].map((key) => [key, '']));
|
|
17
|
+
|
|
18
|
+
// [value field, count field, label]
|
|
19
|
+
const stats = [
|
|
20
|
+
['violations-pct', 'violations-count', 'Violations Remediated'],
|
|
21
|
+
['alt-pct', 'alt-count', 'Alt Text Remediated'],
|
|
22
|
+
['pages', 'pages-count', 'Web Pages Scanned'],
|
|
23
|
+
];
|
|
24
|
+
const scoreNumber = Math.trunc(Number(values.score)) || 0;
|
|
25
|
+
-%>
|
|
26
|
+
<section class="aioa-card aioa-score" data-level="compliant"
|
|
27
|
+
<%- sample ? '' : 'id="score-card" aria-labelledby="score-title" hidden' %>>
|
|
28
|
+
<div class="aioa-score-head">
|
|
29
|
+
<h2 <%- sample ? '' : 'id="score-title"' %>>Accessibility Score</h2>
|
|
30
|
+
<p class="aioa-score-status" data-field="status"><%= values.status %></p>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="aioa-score-body">
|
|
34
|
+
<!-- Score ring: --p is the score in percent -->
|
|
35
|
+
<div class="aioa-donut" style="--p:<%= scoreNumber %>" role="img" aria-label="Accessibility score <%= scoreNumber %>%">
|
|
36
|
+
<svg viewBox="0 0 120 120" aria-hidden="true">
|
|
37
|
+
<circle class="aioa-donut-track" cx="60" cy="60" r="52" />
|
|
38
|
+
<circle class="aioa-donut-bar" cx="60" cy="60" r="52" pathLength="100" />
|
|
39
|
+
</svg>
|
|
40
|
+
<span class="aioa-donut-value" aria-hidden="true"><b data-field="score"><%= values.score %></b><small>%</small></span>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="aioa-score-stats">
|
|
44
|
+
<% stats.forEach((stat) => { %>
|
|
45
|
+
<div class="aioa-stat">
|
|
46
|
+
<p class="aioa-stat-value" data-field="<%= stat[0] %>"><%= values[stat[0]] %></p>
|
|
47
|
+
<p class="aioa-stat-label"><%= stat[2] %></p>
|
|
48
|
+
<p class="aioa-stat-count" data-field="<%= stat[1] %>"><%= values[stat[1]] %></p>
|
|
49
|
+
</div>
|
|
50
|
+
<% }); %>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<% if (!sample) { %>
|
|
55
|
+
<!-- Last scan date and PDF report (when the API has one) -->
|
|
56
|
+
<p class="aioa-score-foot">
|
|
57
|
+
<span data-field="last-scan"></span>
|
|
58
|
+
<a data-field="report" href="#" target="_blank" rel="noopener" hidden>Download PDF report<span class="visually-hidden"> (opens in a new tab)</span></a>
|
|
59
|
+
</p>
|
|
60
|
+
<% } %>
|
|
61
|
+
</section>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Settings > Widget color
|
|
3
|
+
Native color picker + hex field + preset colors. The "Live preview" chip and
|
|
4
|
+
the icon previews further down the page take the chosen color (--widget-color).
|
|
5
|
+
-%>
|
|
6
|
+
<section class="aioa-card" aria-labelledby="color-title">
|
|
7
|
+
<div class="aioa-card-head">
|
|
8
|
+
<div>
|
|
9
|
+
<h2 id="color-title">Widget color</h2>
|
|
10
|
+
<p class="aioa-desc">Pick a color or enter a hex code.</p>
|
|
11
|
+
</div>
|
|
12
|
+
<!-- Live preview: the widget button in the chosen color and icon type -->
|
|
13
|
+
<div class="aioa-live" aria-hidden="true">
|
|
14
|
+
<span class="aioa-live-icon"><img class="iconimg" src="<%= cfg.AIOA_ICON_BASE %>aioa-icon-type-1.svg" alt="" /></span>
|
|
15
|
+
<span class="aioa-live-text">Live<br>preview</span>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Picker + hex code + reset -->
|
|
20
|
+
<div class="aioa-color-row">
|
|
21
|
+
<input type="color" class="aioa-swatch" id="colorpicker" value="#<%= cfg.AIOA_DEFAULT_COLOR.toLowerCase() %>" aria-label="Open color picker" />
|
|
22
|
+
<div class="aioa-affix aioa-hex" data-for="colorcode">
|
|
23
|
+
<span class="aioa-affix-text" aria-hidden="true">#</span>
|
|
24
|
+
<input type="text" name="colorcode" id="colorcode" value="<%= cfg.AIOA_DEFAULT_COLOR %>" maxlength="7" spellcheck="false" autocomplete="off" aria-label="Hex color code" aria-describedby="colorcode-hint colorcode-error" />
|
|
25
|
+
</div>
|
|
26
|
+
<button type="button" class="aioa-btn" id="color-reset">Reset</button>
|
|
27
|
+
</div>
|
|
28
|
+
<p class="aioa-hint" id="colorcode-hint">For example: FF5733</p>
|
|
29
|
+
<p class="aioa-error" id="colorcode-error" hidden>Enter a valid hex color code, for example FF5733.</p>
|
|
30
|
+
|
|
31
|
+
<!-- Presets -->
|
|
32
|
+
<div class="aioa-presets" role="group" aria-label="Preset colors">
|
|
33
|
+
<% cfg.AIOA_PRESET_COLORS.forEach(([hex, name]) => { %>
|
|
34
|
+
<button type="button" class="aioa-preset" style="--c:#<%= hex %>" data-color="<%= hex %>" aria-pressed="false" aria-label="<%= name + ' #' + hex %>" title="<%= name %>"></button>
|
|
35
|
+
<% }); %>
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Settings > Icon size for desktop
|
|
3
|
+
Preset sizes (AIOA_ICON_SIZES in app/config.js) or an exact size in pixels
|
|
4
|
+
when "Set an exact size" is checked. Each preview is drawn at its own size
|
|
5
|
+
(--d), from Big down to Extra small, and uses the selected icon type.
|
|
6
|
+
-%>
|
|
7
|
+
<section class="aioa-card" aria-labelledby="icon-size-title">
|
|
8
|
+
<h2 id="icon-size-title">Icon size for desktop</h2>
|
|
9
|
+
<p class="aioa-desc">Pick a preset size or set an exact size in pixels.</p>
|
|
10
|
+
|
|
11
|
+
<!-- Preset sizes <-> exact size -->
|
|
12
|
+
<label class="aioa-check">
|
|
13
|
+
<input type="checkbox" id="custom-size-switcher" aria-controls="custom-size-controls select_icon_size" />
|
|
14
|
+
Set an exact size in pixels
|
|
15
|
+
</label>
|
|
16
|
+
|
|
17
|
+
<!-- Preset sizes -->
|
|
18
|
+
<fieldset class="aioa-fieldset widget-icon" id="select_icon_size">
|
|
19
|
+
<legend class="visually-hidden">Select icon size for desktop</legend>
|
|
20
|
+
<div class="aioa-size-row">
|
|
21
|
+
<% cfg.AIOA_ICON_SIZES.forEach((size) => { %>
|
|
22
|
+
<div class="aioa-icon-option">
|
|
23
|
+
<input type="radio" class="aioa-radio" id="edit-size-<%= slug(size[0]) %>" name="aioa_icon_size" value="<%= size[0] %>" <%= size[0] === 'aioa-medium-icon' ? 'checked' : '' %> />
|
|
24
|
+
<label for="edit-size-<%= slug(size[0]) %>" class="aioa-icon-label">
|
|
25
|
+
<span class="aioa-icon" style="--d:<%= Math.trunc(size[2]) %>px"><img src="<%= cfg.AIOA_ICON_BASE %>aioa-icon-type-1.svg" class="iconimg" alt="" /></span>
|
|
26
|
+
<span class="aioa-icon-caption"><%= size[1] %></span>
|
|
27
|
+
</label>
|
|
28
|
+
</div>
|
|
29
|
+
<% }); %>
|
|
30
|
+
</div>
|
|
31
|
+
</fieldset>
|
|
32
|
+
|
|
33
|
+
<!-- Exact size (24 - 150 px) -->
|
|
34
|
+
<div class="aioa-subpanel custom-size-controls" id="custom-size-controls" hidden>
|
|
35
|
+
<label class="aioa-label" for="widget_icon_size_custom">Exact icon size</label>
|
|
36
|
+
<div class="aioa-affix aioa-size-input" data-for="widget_icon_size_custom">
|
|
37
|
+
<input type="number" id="widget_icon_size_custom" name="widget_icon_size_custom" min="24" max="150" step="1" inputmode="numeric" value="" aria-describedby="size-range-hint size-error" />
|
|
38
|
+
<span class="aioa-affix-text" aria-hidden="true">px</span>
|
|
39
|
+
</div>
|
|
40
|
+
<p class="aioa-hint" id="size-range-hint">24 - 150px are permitted values</p>
|
|
41
|
+
<p class="aioa-error" id="size-error" hidden></p>
|
|
42
|
+
</div>
|
|
43
|
+
</section>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Settings > Icon type
|
|
3
|
+
The icon visitors click to open the widget (aioa-icon-type-1 ... AIOA_ICON_TYPE_COUNT),
|
|
4
|
+
shown in the chosen widget color. Icons are bundled in assets/images/icons.
|
|
5
|
+
-%>
|
|
6
|
+
<section class="aioa-card" aria-labelledby="icon-type-title">
|
|
7
|
+
<h2 id="icon-type-title">Icon type</h2>
|
|
8
|
+
<p class="aioa-desc">The icon visitors click to open the widget.</p>
|
|
9
|
+
|
|
10
|
+
<fieldset class="aioa-fieldset">
|
|
11
|
+
<legend class="visually-hidden">Select icon type</legend>
|
|
12
|
+
<div class="aioa-icon-grid">
|
|
13
|
+
<% for (let i = 1; i <= cfg.AIOA_ICON_TYPE_COUNT; i++) { %>
|
|
14
|
+
<div class="aioa-icon-option">
|
|
15
|
+
<input type="radio" class="aioa-radio" id="edit-type-<%= i %>" name="aioa_icon_type" value="aioa-icon-type-<%= i %>" <%= i === 1 ? 'checked' : '' %> />
|
|
16
|
+
<label for="edit-type-<%= i %>" class="aioa-icon-label">
|
|
17
|
+
<span class="aioa-icon"><img src="<%= cfg.AIOA_ICON_BASE %>aioa-icon-type-<%= i %>.svg" alt="" width="32" height="32" loading="lazy" /></span>
|
|
18
|
+
<span class="visually-hidden">Type <%= i %></span>
|
|
19
|
+
</label>
|
|
20
|
+
</div>
|
|
21
|
+
<% } %>
|
|
22
|
+
</div>
|
|
23
|
+
</fieldset>
|
|
24
|
+
</section>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Settings > Widget position
|
|
3
|
+
A 3 x 3 grid of preset positions (AIOA_POSITIONS in app/config.js). Each
|
|
4
|
+
option has a small screen glyph with a dot where the icon goes; the center
|
|
5
|
+
cell is a mini website whose icon moves to the selected position
|
|
6
|
+
(updateMiniWidget in assets/js/settings-form.js, using data-gx / data-gy).
|
|
7
|
+
With "Set an exact position" checked, exact offsets in pixels are used instead.
|
|
8
|
+
-%>
|
|
9
|
+
<section class="aioa-card" aria-labelledby="position-title">
|
|
10
|
+
<h2 id="position-title">Widget position</h2>
|
|
11
|
+
<p class="aioa-desc">Where the accessibility icon appears on your website.</p>
|
|
12
|
+
|
|
13
|
+
<!-- Preset grid <-> exact offsets -->
|
|
14
|
+
<label class="aioa-check">
|
|
15
|
+
<input type="checkbox" id="custom-position-switcher" aria-controls="custom-position-controls position_html" />
|
|
16
|
+
Set an exact position in pixels
|
|
17
|
+
</label>
|
|
18
|
+
|
|
19
|
+
<!-- Preset positions -->
|
|
20
|
+
<fieldset class="aioa-fieldset widget-position" id="position_html">
|
|
21
|
+
<legend class="visually-hidden">Widget icon position</legend>
|
|
22
|
+
<div class="aioa-pos-grid">
|
|
23
|
+
<% cfg.AIOA_POSITIONS.forEach((pos) => { %>
|
|
24
|
+
<% if (pos === null) { %>
|
|
25
|
+
<!-- Center cell: mini website with the icon at the selected position -->
|
|
26
|
+
<div class="aioa-pos-center" aria-hidden="true">
|
|
27
|
+
<span class="aioa-mini-label">Your website</span>
|
|
28
|
+
<span class="aioa-mini-widget" id="mini-widget" style="--gx:1;--gy:1"><img class="iconimg" src="<%= cfg.AIOA_ICON_BASE %>aioa-icon-type-1.svg" alt="" /></span>
|
|
29
|
+
</div>
|
|
30
|
+
<% } else { %>
|
|
31
|
+
<div class="aioa-pos-option">
|
|
32
|
+
<input type="radio" class="aioa-radio" id="edit-position-<%= slug(pos[0]) %>" name="position" value="<%= pos[0] %>" data-gx="<%= pos[2] %>" data-gy="<%= pos[3] %>" <%= pos[0] === 'bottom_right' ? 'checked' : '' %> />
|
|
33
|
+
<label for="edit-position-<%= slug(pos[0]) %>" class="aioa-pos-label">
|
|
34
|
+
<span class="aioa-glyph" style="--gx:<%= pos[2] %>;--gy:<%= pos[3] %>" aria-hidden="true"><i></i></span>
|
|
35
|
+
<%= pos[1] %>
|
|
36
|
+
</label>
|
|
37
|
+
</div>
|
|
38
|
+
<% } %>
|
|
39
|
+
<% }); %>
|
|
40
|
+
</div>
|
|
41
|
+
</fieldset>
|
|
42
|
+
|
|
43
|
+
<!-- Exact offsets (0 - 500 px) -->
|
|
44
|
+
<div class="aioa-subpanel custom-position-controls" id="custom-position-controls" hidden>
|
|
45
|
+
<div class="aioa-offset-row">
|
|
46
|
+
<label class="aioa-label" for="custom_position_x_value">Horizontal</label>
|
|
47
|
+
<div class="aioa-affix" data-for="custom_position_x_value">
|
|
48
|
+
<input type="number" min="0" max="500" step="1" inputmode="numeric" id="custom_position_x_value" value="0" aria-describedby="pos-range-hint pos-error" />
|
|
49
|
+
<span class="aioa-affix-text" aria-hidden="true">px</span>
|
|
50
|
+
</div>
|
|
51
|
+
<select class="aioa-select" id="custom_position_x_dir" aria-label="Horizontal direction">
|
|
52
|
+
<option selected value="cust-pos-to-the-right">To the right</option>
|
|
53
|
+
<option value="cust-pos-to-the-left">To the left</option>
|
|
54
|
+
</select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="aioa-offset-row">
|
|
57
|
+
<label class="aioa-label" for="custom_position_y_value">Vertical</label>
|
|
58
|
+
<div class="aioa-affix" data-for="custom_position_y_value">
|
|
59
|
+
<input type="number" min="0" max="500" step="1" inputmode="numeric" id="custom_position_y_value" value="0" aria-describedby="pos-range-hint pos-error" />
|
|
60
|
+
<span class="aioa-affix-text" aria-hidden="true">px</span>
|
|
61
|
+
</div>
|
|
62
|
+
<select class="aioa-select" id="custom_position_y_dir" aria-label="Vertical direction">
|
|
63
|
+
<option selected value="cust-pos-to-the-lower">To the bottom</option>
|
|
64
|
+
<option value="cust-pos-to-the-upper">To the top</option>
|
|
65
|
+
</select>
|
|
66
|
+
</div>
|
|
67
|
+
<p class="aioa-hint" id="pos-range-hint">0 - 500px are permitted values</p>
|
|
68
|
+
<p class="aioa-error" id="pos-error" hidden></p>
|
|
69
|
+
</div>
|
|
70
|
+
</section>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Save bar at the bottom of the form: "Save Changes" (assets/js/save.js) and the
|
|
3
|
+
unsaved changes indicator (AIOA.form.setDirty in assets/js/settings-form.js).
|
|
4
|
+
%>
|
|
5
|
+
<div class="aioa-savebar" id="savebar">
|
|
6
|
+
<p class="aioa-save-state"><i aria-hidden="true"></i><span id="save-state-text">All changes saved</span></p>
|
|
7
|
+
<button type="button" id="submit" class="aioa-btn aioa-btn-primary">Save Changes</button>
|
|
8
|
+
</div>
|
|
9
|
+
<p class="aioa-after-note">It may take a few seconds for changes to appear on your website. If you don't see them, clear your browser cache or check in a private window.</p>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
Settings > Widget size
|
|
3
|
+
Size of the panel that opens when visitors click the widget icon:
|
|
4
|
+
Regular Size (widget_size = 0) - narrower panel, 2 columns of feature tiles
|
|
5
|
+
Oversize (widget_size = 1) - wider panel, 3 columns of feature tiles
|
|
6
|
+
Each option shows a small outline of that open panel.
|
|
7
|
+
-%>
|
|
8
|
+
<%
|
|
9
|
+
// [value, id, label, css modifier, number of feature tiles in the outline]
|
|
10
|
+
const widgetSizes = [
|
|
11
|
+
['0', 'edit-widget-size-regularsize', 'Regular Size', 'is-regular', 6],
|
|
12
|
+
['1', 'edit-widget-size-oversize', 'Oversize', 'is-over', 9],
|
|
13
|
+
];
|
|
14
|
+
-%>
|
|
15
|
+
<section class="aioa-card" aria-labelledby="widget-size-title">
|
|
16
|
+
<h2 id="widget-size-title">Widget size</h2>
|
|
17
|
+
<p class="aioa-desc">Size of the panel that opens on your website.</p>
|
|
18
|
+
|
|
19
|
+
<fieldset class="aioa-fieldset">
|
|
20
|
+
<legend class="visually-hidden">Select widget size</legend>
|
|
21
|
+
<div class="aioa-size-options">
|
|
22
|
+
<% widgetSizes.forEach((size) => { %>
|
|
23
|
+
<label class="aioa-choice aioa-size-choice" for="<%= size[1] %>">
|
|
24
|
+
<!-- Outline of the open widget panel: header, statement bar, feature tiles -->
|
|
25
|
+
<span class="aioa-panel <%= size[3] %>" aria-hidden="true">
|
|
26
|
+
<span class="aioa-panel-head"></span>
|
|
27
|
+
<span class="aioa-panel-grid"><%- '<i></i>'.repeat(size[4]) %></span>
|
|
28
|
+
</span>
|
|
29
|
+
<span class="aioa-choice-text">
|
|
30
|
+
<input type="radio" id="<%= size[1] %>" name="widget_size" value="<%= size[0] %>" <%- size[0] === '0' ? 'checked' : 'aria-describedby="widget-size-note"' %> />
|
|
31
|
+
<%= size[2] %>
|
|
32
|
+
</span>
|
|
33
|
+
</label>
|
|
34
|
+
<% }); %>
|
|
35
|
+
</div>
|
|
36
|
+
</fieldset>
|
|
37
|
+
<p class="aioa-hint" id="widget-size-note">Oversize only works on desktop view.</p>
|
|
38
|
+
</section>
|