Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dataCollection() {
- if ($) {
- clearInterval(checkJQuery);
- $(document).on('change', '.field.fname input[placeholder="Имя*"]', function() {
- carrotquest.identify([{op: 'update_or_create', key: '$name', value: $(this).val()}]);
- });
- $(document).on('change', '.field.fphone input[placeholder="Телефон*"]', function() {
- carrotquest.identify([{op: 'update_or_create', key: '$phone', value: $(this).val()}]);
- });
- /*$(document).on('change', '', function() {
- carrotquest.identify([{op: 'update_or_create', key: '', value: $(this).val()}]);
- });*/
- };
- };
- var checkJQuery = setInterval(dataCollection, 500);
- setTimeout(function() {
- clearInterval(checkJQuery);
- }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement