File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
starter/09-Omnifood-Optimizations Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 26
26
src ="https://unpkg.com/ionicons@5.4.0/dist/ionicons/ionicons.js "
27
27
> </ script >
28
28
29
+ < script defer src ="js/script.js "> </ script >
30
+
29
31
< title > Omnifood</ title >
30
32
</ head >
31
33
< body >
@@ -646,7 +648,8 @@ <h2 class="heading-secondary">Get your first meal for free!</h2>
646
648
</ ul >
647
649
648
650
< p class ="copyright ">
649
- Copyright © 2027 by Omnifood, Inc. All rights reserved.
651
+ Copyright © < span class ="year "> 2027</ span > by Omnifood, Inc.
652
+ All rights reserved.
650
653
</ p >
651
654
</ div >
652
655
Original file line number Diff line number Diff line change
1
+ const yearEl = document . querySelector ( ".year" ) ;
2
+ const currentYear = new Date ( ) . getFullYear ( ) ;
3
+ yearEl . textContent = currentYear ;
4
+
1
5
///////////////////////////////////////////////////////////
2
6
// Fixing flexbox gap property missing in some Safari versions
3
7
function checkFlexGap ( ) {
You can’t perform that action at this time.
0 commit comments