Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_fdsu_theme_resp
Commits
2b2ae187
Commit
2b2ae187
authored
Jan 19, 2022
by
Martin Leblanc
Browse files
ISTWCMS-5309: attempt to pass no_js into twig
parent
3ea31348
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/page/html.html.twig
View file @
2b2ae187
...
...
@@ -36,6 +36,16 @@
<link
rel=
"preload"
as=
"style"
href=
"https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap"
/>
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap"
media=
"print"
onload=
"this.media='all'"
/>
<noscript>
{%
set
no_js
=
'yes'
%}
{{
no_js
}}
</noscript>
<script>
{%
set
no_js
=
'no'
%}
var
varTest
=
"
{{
-
no_js
-
}}
"
;
alert
(
varTest
);
{{
no_js
}}
</script>
<noscript>
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Barlow:wght@400;500;700&display=swap"
/>
</noscript>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment