forked from SymfonyCasts/symfony-ux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidgets-expand-widget-code.diff
21 lines (20 loc) · 1.05 KB
/
widgets-expand-widget-code.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/templates/base.html.twig b/templates/base.html.twig
index c2bf797..591403a 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -83,7 +83,15 @@
<a class="weatherwidget-io" href="https://forecast7.com/en/40d71n74d01/new-york/" data-label_1="NEW YORK" data-label_2="WEATHER" data-theme="original" >NEW YORK WEATHER</a>
<script>
- !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
+ !function (d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (!d.getElementById(id)) {
+ js = d.createElement(s);
+ js.id = id;
+ js.src = 'https://weatherwidget.io/js/widget.min.js';
+ fjs.parentNode.insertBefore(js, fjs);
+ }
+ }(document, 'script', 'weatherwidget-io-js');
</script>
</body>
</html>