Кто знает как добавить javascript-событие на кнопку в форме
Contact Form by Supsystic?
Куда это дело (onclick="yaCounter########.reachGoal('********'); return true;") вставить?
В плагине такой код.
<div [field_shell_classes] [field_shell_styles]>[field]</div>
CSS:
#[SHELL_ID] {
[if bg_type_0 == 'color']
background-color: [bg_color_0];
[elseif bg_type_0 == 'img']
background-image: url("[bg_img_0]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] label {
width: 100%;
}
/*Fields shell basic*/
#[SHELL_ID] .cfsFieldShell input:not([type="checkbox"]):not([type="radio"]),
#[SHELL_ID] .cfsFieldShell textarea,
#[SHELL_ID] .cfsFieldShell .cfsListSelect,
#[SHELL_ID] .cfsFieldShell .cfsCheck,
#[SHELL_ID] .cfsFieldShell button {
padding: 10px;
width: 100%;
font-size: 12px;
line-height: normal;
[if bg_type_1 == 'color']
border: 1px solid {{adjust_opacity("[bg_color_1]", 1)}};
background-color: {{adjust_brightness("[bg_color_1]", 196)}};
[elseif bg_type_1 == 'img']
background-image: url("[bg_img_1]");
background-repeat: no-repeat;
background-size: cover;
[endif]
hyphens: none;
border-radius: 4px;
margin: 0;
max-width: 100%;
vertical-align: baseline;
display: block;
color: #333;
height: auto;
}
#[SHELL_ID] input:not([type="checkbox"]):not([type="radio"]):focus,
#[SHELL_ID] textarea:focus,
#[SHELL_ID] .cfsListSelect:focus,
#[SHELL_ID] .cfsChec:focus {
[if bg_type_2 == 'color']
border: 1px solid [bg_color_2];
color: [bg_color_2];
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="submit"],
#[SHELL_ID] .cfsFieldShell input[type="reset"],
#[SHELL_ID] .cfsFieldShell input[type="button"],
#[SHELL_ID] .cfsFieldShell button {
cursor: pointer;
font-weight: 700;
border: 0 none;
color: #fff;
text-transform: uppercase;
-webkit-appearance: none;
}
#[SHELL_ID] .cfsFieldShell input[type="submit"],
#[SHELL_ID] .cfsFieldShell input[type="button"],
#[SHELL_ID] .cfsFieldShell button {
[if bg_type_2 == 'color']
background-color: [bg_color_2];
background-image: none;
[elseif bg_type_2 == 'img']
background-image: url("[bg_img_2]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="submit"]:hover,
#[SHELL_ID] .cfsFieldShell input[type="button"]:hover,
#[SHELL_ID] .cfsFieldShell button:hover {
[if bg_type_2 == 'color']
background-color: {{adjust_opacity("[bg_color_2]", 0.7)}};
[elseif bg_type_2 == 'img']
opacity: 0.7;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="reset"] {
[if bg_type_3 == 'color']
background-color: [bg_color_3];
background-image: none;
[elseif bg_type_3 == 'img']
background-image: url("[bg_img_3]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="reset"]:hover {
[if bg_type_3 == 'color']
background-color: {{adjust_opacity("[bg_color_3]", 0.7)}};
[elseif bg_type_3 == 'img']
opacity: 0.7;
[endif]
}
/* Placeholder text color -- selectors need to be separate to work. */
#[SHELL_ID] ::-webkit-input-placeholder {
color: rgba(51, 51, 51, 0.3);
}
#[SHELL_ID] :-moz-placeholder {
color: rgba(51, 51, 51, 0.3);
}
#[SHELL_ID] ::-moz-placeholder {
color: rgba(51, 51, 51, 0.3);
opacity: 1; /* Since FF19 lowers the opacity of the placeholder by default */
}
#[SHELL_ID] :-ms-input-placeholder {
color: rgba(51, 51, 51, 0.3);
}
HTML:
[form_start]
[fields]
[form_end]
Contact Form by Supsystic?
Куда это дело (onclick="yaCounter########.reachGoal('********'); return true;") вставить?
В плагине такой код.
<div [field_shell_classes] [field_shell_styles]>[field]</div>
CSS:
#[SHELL_ID] {
[if bg_type_0 == 'color']
background-color: [bg_color_0];
[elseif bg_type_0 == 'img']
background-image: url("[bg_img_0]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] label {
width: 100%;
}
/*Fields shell basic*/
#[SHELL_ID] .cfsFieldShell input:not([type="checkbox"]):not([type="radio"]),
#[SHELL_ID] .cfsFieldShell textarea,
#[SHELL_ID] .cfsFieldShell .cfsListSelect,
#[SHELL_ID] .cfsFieldShell .cfsCheck,
#[SHELL_ID] .cfsFieldShell button {
padding: 10px;
width: 100%;
font-size: 12px;
line-height: normal;
[if bg_type_1 == 'color']
border: 1px solid {{adjust_opacity("[bg_color_1]", 1)}};
background-color: {{adjust_brightness("[bg_color_1]", 196)}};
[elseif bg_type_1 == 'img']
background-image: url("[bg_img_1]");
background-repeat: no-repeat;
background-size: cover;
[endif]
hyphens: none;
border-radius: 4px;
margin: 0;
max-width: 100%;
vertical-align: baseline;
display: block;
color: #333;
height: auto;
}
#[SHELL_ID] input:not([type="checkbox"]):not([type="radio"]):focus,
#[SHELL_ID] textarea:focus,
#[SHELL_ID] .cfsListSelect:focus,
#[SHELL_ID] .cfsChec:focus {
[if bg_type_2 == 'color']
border: 1px solid [bg_color_2];
color: [bg_color_2];
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="submit"],
#[SHELL_ID] .cfsFieldShell input[type="reset"],
#[SHELL_ID] .cfsFieldShell input[type="button"],
#[SHELL_ID] .cfsFieldShell button {
cursor: pointer;
font-weight: 700;
border: 0 none;
color: #fff;
text-transform: uppercase;
-webkit-appearance: none;
}
#[SHELL_ID] .cfsFieldShell input[type="submit"],
#[SHELL_ID] .cfsFieldShell input[type="button"],
#[SHELL_ID] .cfsFieldShell button {
[if bg_type_2 == 'color']
background-color: [bg_color_2];
background-image: none;
[elseif bg_type_2 == 'img']
background-image: url("[bg_img_2]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="submit"]:hover,
#[SHELL_ID] .cfsFieldShell input[type="button"]:hover,
#[SHELL_ID] .cfsFieldShell button:hover {
[if bg_type_2 == 'color']
background-color: {{adjust_opacity("[bg_color_2]", 0.7)}};
[elseif bg_type_2 == 'img']
opacity: 0.7;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="reset"] {
[if bg_type_3 == 'color']
background-color: [bg_color_3];
background-image: none;
[elseif bg_type_3 == 'img']
background-image: url("[bg_img_3]");
background-repeat: no-repeat;
background-size: cover;
[endif]
}
#[SHELL_ID] .cfsFieldShell input[type="reset"]:hover {
[if bg_type_3 == 'color']
background-color: {{adjust_opacity("[bg_color_3]", 0.7)}};
[elseif bg_type_3 == 'img']
opacity: 0.7;
[endif]
}
/* Placeholder text color -- selectors need to be separate to work. */
#[SHELL_ID] ::-webkit-input-placeholder {
color: rgba(51, 51, 51, 0.3);
}
#[SHELL_ID] :-moz-placeholder {
color: rgba(51, 51, 51, 0.3);
}
#[SHELL_ID] ::-moz-placeholder {
color: rgba(51, 51, 51, 0.3);
opacity: 1; /* Since FF19 lowers the opacity of the placeholder by default */
}
#[SHELL_ID] :-ms-input-placeholder {
color: rgba(51, 51, 51, 0.3);
}
HTML:
[form_start]
[fields]
[form_end]
Изменено:
Александр Розанов - 26 Октября 2018 16:29