@@ -16,7 +16,7 @@ html(lang=lang, dir=dir)
1616 p.subtitle = t .hero .subtitle
1717
1818 //- Progressive Disclosure Section
19- + section(t .sections .disclosure .title )
19+ + section(t .sections .disclosure .title , t . sections . disclosure . code )
2020 .comparison-grid
2121 + badColumn(t .sections .disclosure .js_title , t .sections .disclosure .js_badge , t .sections .disclosure .js_warning )
2222 + jsCollapsible("content1" , "Custom Collapsible Architecture" , t .sections .disclosure .js_content1 )
@@ -39,7 +39,7 @@ html(lang=lang, dir=dir)
3939 + prosList(t .sections .disclosure .native_pros_title , t .sections .disclosure .native_pros )
4040
4141 //- Modal Section
42- + section(t .sections .modals .title )
42+ + section(t .sections .modals .title , t . sections . modals . code )
4343 .comparison-grid
4444 + badColumn(t .sections .modals .js_title , t .sections .modals .js_badge , t .sections .modals .js_warning )
4545 button( onclick ="openJSModal()" ) = t .sections .modals .js_button
@@ -67,7 +67,7 @@ html(lang=lang, dir=dir)
6767 + prosList(t .sections .modals .native_pros_title , t .sections .modals .native_pros )
6868
6969 //- Form Validation Section
70- + section(t .sections .validation .title )
70+ + section(t .sections .validation .title , t . sections . validation . code )
7171 .comparison-grid
7272 + badColumn(t .sections .validation .js_title , t .sections .validation .js_badge , t .sections .validation .js_warning )
7373 form( onsubmit ="return validateJSForm(event)" )
@@ -106,7 +106,7 @@ html(lang=lang, dir=dir)
106106 + prosList(t .sections .validation .native_pros_title , t .sections .validation .native_pros )
107107
108108 //- Progress Section
109- + section(t .sections .progress .title )
109+ + section(t .sections .progress .title , t . sections . progress . code )
110110 .comparison-grid
111111 + badColumn(t .sections .progress .js_title , t .sections .progress .js_badge , t .sections .progress .js_warning )
112112 .js-progress-container
@@ -133,7 +133,7 @@ html(lang=lang, dir=dir)
133133 + prosList(t .sections .progress .native_pros_title , t .sections .progress .native_pros )
134134
135135 //- Temporal Input Section
136- + section(t .sections .temporal .title )
136+ + section(t .sections .temporal .title , t . sections . temporal . code )
137137 .comparison-grid
138138 + badColumn(t .sections .temporal .js_title , t .sections .temporal .js_badge , t .sections .temporal .js_warning )
139139 + formGroup(t .sections .temporal .js_label )
@@ -156,7 +156,7 @@ html(lang=lang, dir=dir)
156156 + prosList(t .sections .temporal .native_pros_title , t .sections .temporal .native_pros )
157157
158158 //- Fieldset Section
159- + section(t .sections .fieldset .title )
159+ + section(t .sections .fieldset .title , t . sections . fieldset . code )
160160 .comparison-grid
161161 + badColumn(t .sections .fieldset .js_title , t .sections .fieldset .js_badge , t .sections .fieldset .js_warning )
162162 .js-form-section
@@ -187,35 +187,35 @@ html(lang=lang, dir=dir)
187187 + prosList(t .sections .fieldset .native_pros_title , t .sections .fieldset .native_pros )
188188
189189 //- Output Section
190- + section(t .sections .output .title )
190+ + section(t .sections .output .title , t . sections . output . code )
191191 .comparison-grid
192192 + badColumn(t .sections .output .js_title , t .sections .output .js_badge , t .sections .output .js_warning )
193193 .js-calculator
194194 label Quantity:
195195 input#js-qty ( type ="number" , value ="1" , min ="1" , oninput ="updateJsTotal()" )
196196 span ×
197- label Price: $
198- input#js-price ( type ="number" , value ="29. 99" , step ="0.01" , oninput ="updateJsTotal()" )
197+ label Price: €
198+ input#js-price ( type ="number" , value ="29, 99" , step ="0.01" , oninput ="updateJsTotal()" )
199199 .js-result
200- span Total: $
201- span#js-total 29. 99
200+ span Total: €
201+ span#js-total 29, 99
202202
203203 + consList(t .sections .output .js_cons_title , t .sections .output .js_cons )
204204
205205 + goodColumn(t .sections .output .native_title , t .sections .output .native_badge , t .sections .output .native_note )
206- form.native-calculator ( oninput ="nativeTotal.value = (nativeQty.valueAsNumber * nativePrice.valueAsNumber).toFixed(2 )" )
206+ form.native-calculator ( oninput ="nativeTotal.value = (nativeQty.valueAsNumber * nativePrice.valueAsNumber).toLocaleString('de-DE', {minimumFractionDigits: 2} )" )
207207 + formGroup("Quantity" )
208208 input#nativeQty ( type ="number" , value ="1" , min ="1" )
209- + formGroup("Price ($ )" )
209+ + formGroup("Price (€ )" )
210210 input#nativePrice ( type ="number" , value ="29.99" , step ="0.01" )
211211 .output-display
212- label( for ="nativeTotal" ) Total: $
213- output#nativeTotal ( for ="nativeQty nativePrice" ) 29. 99
212+ label( for ="nativeTotal" ) Total: €
213+ output#nativeTotal ( for ="nativeQty nativePrice" ) 29, 99
214214
215215 + prosList(t .sections .output .native_pros_title , t .sections .output .native_pros )
216216
217217 //- Meter Section
218- + section(t .sections .meter .title )
218+ + section(t .sections .meter .title , t . sections . meter . code )
219219 .comparison-grid
220220 + badColumn(t .sections .meter .js_title , t .sections .meter .js_badge , t .sections .meter .js_warning )
221221 .js-gauge-container
@@ -238,7 +238,7 @@ html(lang=lang, dir=dir)
238238 + prosList(t .sections .meter .native_pros_title , t .sections .meter .native_pros )
239239
240240 //- Figure Section
241- + section(t .sections .figure .title )
241+ + section(t .sections .figure .title , t . sections . figure . code )
242242 .comparison-grid
243243 + badColumn(t .sections .figure .js_title , t .sections .figure .js_badge , t .sections .figure .js_warning )
244244 .js-image-container
@@ -260,7 +260,7 @@ html(lang=lang, dir=dir)
260260 + prosList(t .sections .figure .native_pros_title , t .sections .figure .native_pros )
261261
262262 //- Popover Section
263- + section(t .sections .popover .title )
263+ + section(t .sections .popover .title , t . sections . popover . code )
264264 .comparison-grid
265265 + badColumn(t .sections .popover .js_title , t .sections .popover .js_badge , t .sections .popover .js_warning )
266266 button( onclick ="toggleJsPopover()" ) = t .sections .popover .js_button
@@ -278,7 +278,7 @@ html(lang=lang, dir=dir)
278278 + prosList(t .sections .popover .native_pros_title , t .sections .popover .native_pros )
279279
280280 //- Color Picker Section
281- + section(t .sections .color .title )
281+ + section(t .sections .color .title , t . sections . color . code )
282282 .comparison-grid
283283 + badColumn(t .sections .color .js_title , t .sections .color .js_badge , t .sections .color .js_warning )
284284 + formGroup(t .sections .color .js_label )
@@ -301,7 +301,7 @@ html(lang=lang, dir=dir)
301301 + prosList(t .sections .color .native_pros_title , t .sections .color .native_pros )
302302
303303 //- Range Slider Section
304- + section(t .sections .range .title )
304+ + section(t .sections .range .title , t . sections . range . code )
305305 .comparison-grid
306306 + badColumn(t .sections .range .js_title , t .sections .range .js_badge , t .sections .range .js_warning )
307307 + formGroup(t .sections .range .js_label )
@@ -331,7 +331,7 @@ html(lang=lang, dir=dir)
331331 + prosList(t .sections .range .native_pros_title , t .sections .range .native_pros )
332332
333333 //- Autocomplete Section
334- + section(t .sections .autocomplete .title )
334+ + section(t .sections .autocomplete .title , t . sections . autocomplete . code )
335335 .comparison-grid
336336 + badColumn(t .sections .autocomplete .js_title , t .sections .autocomplete .js_badge , t .sections .autocomplete .js_warning )
337337 + formGroup(t .sections .autocomplete .js_label )
@@ -509,5 +509,5 @@ html(lang=lang, dir=dir)
509509 function updateJsTotal () {
510510 const qty = document .getElementById (' js-qty' ).value || 0 ;
511511 const price = document .getElementById (' js-price' ).value || 0 ;
512- document .getElementById (' js-total' ).textContent = (qty * price).toFixed ( 2 );
512+ document .getElementById (' js-total' ).textContent = (qty * price).toLocaleString ( ' de-DE ' , {minimumFractionDigits : 2 } );
513513 }
0 commit comments