File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11import { updateInputValue , addRssFeed , validateInput } from "./model" ;
22import { renderUIText } from "./view.js" ;
33
4- document . addEventListener ( "DOMContentLoaded" , ( ) => {
5- renderUIText ( ) ;
6- } ) ;
4+ renderUIText ( ) ;
75
86const input = document . querySelector ( "#url-input" ) ;
97const form = document . querySelector ( "#rss-form" ) ;
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ const addBtn = document.querySelector("#add-feed-btn");
77const example = document . querySelector ( "#example" ) ;
88const feedback = document . querySelector ( "#feedback" ) ;
99const fullBtn = document . querySelector ( "#btn-full" ) ;
10- const closeBtn = document . querySelector ( "btn-close" ) ;
10+ const closeBtn = document . querySelector ( "# btn-close" ) ;
1111
1212export const renderUIText = ( ) => {
1313 title . textContent = i18next . t ( "title" ) ;
1414 subtitle . textContent = i18next . t ( "subtitle" ) ;
1515 input . placeholder = i18next . t ( "form_placeholder" ) ;
16- label . textContent = i18next . t ( "" ) ;
16+ label . textContent = i18next . t ( "form_placeholder " ) ;
1717 addBtn . textContent = i18next . t ( "add_btn" ) ;
1818 fullBtn . textContent = i18next . t ( "full_btn" ) ;
1919 closeBtn . textContent = i18next . t ( "close_btn" ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default {
55 form_placeholder : "RSS Link" ,
66 add_btn : "Add" ,
77 full_btn : "Full" ,
8- close : "Close" ,
8+ close_btn : "Close" ,
99 example : "Example" ,
1010 invalid_url : "Link must be a valid URL" ,
1111 required_field : "Required field" ,
You can’t perform that action at this time.
0 commit comments