// ******************************************************************************************************************************************************
// * By Dr. Roy C. Davies, March 2023, roy.c.davies@ieee.org
// ******************************************************************************************************************************************************
const code = {
form : `
Form Values: {JSON.stringify(form1, null, '\t')}
Form Values: {JSON.stringify(form2, null, '\t')}
`,
field : `
`,
fields : `
`,
text_area : `
`,
checkbox : `
`,
radio_checkbox : `
`,
dropdown : `
Gender
Gender
- Male
- Female
`,
multiple_select : `
Country
{#each Object.keys(countries) as key}
{countries[key]}
{/each}
`,
html_select : `
Gender
Male
Female
`,
calendar : `
Date
`,
message : `
- Please enter your first name
- Please enter your last name
`,
loading : `
E-mail
Submit
E-mail
Submit
`,
success : `
E-mail
You're all signed up for the newsletter.
Submit
`,
error : `
E-mail
You can only sign up for an account once with a given e-mail address.
Submit
`,
warning : `
E-mail
Could you check something!
- That e-mail has been subscribed, but you have not yet clicked the verification link in your e-mail.
Submit
`,
info : `
E-mail
- Password must contain at least 8 characters
Submit
`,
field_error : `
First Name
Last Name
Gender
Select
- Male
- Female
`,
field_warning : `
First Name
Last Name
Gender
Select
- Male
- Female
`,
field_success : `
First Name
Last Name
Gender
Select
- Male
- Female
`,
field_info : `
First Name
Last Name
Gender
Select
- Male
- Female
`,
disabled_field : `
First Name
Last Name
`,
readonly_field : `
First Name
Last Name
`,
size : `
{#each ["mini", "tiny", "small", "large", "big", "huge", "massive"] as size}
First Name
Last Name
Submit
{/each}
`,
equal_width : `
Username
Password
First name
Middle name
Last name
`,
inverted : `
First Name
Last Name
Submit
`,
inline_field : `
Last name
`,
width : `
First name
Middle
Last name
`,
required : `
Full name
I agree to the terms and conditions
`,
transparent_textarea : `
Description
`,
evenly_divided : `
First name
Middle name
Last name
`,
grouped_fields : `
`,
equal_width_fields : `
Username
Password
First name
Middle name
Last name
`,
inline_fields : `
Phone Number
What's your favorite fruit?
`
}
export default code;