Line: 406
Function: _error_handler
File: /home/elherfa/public_html/application/controllers/Profile.php
Line: 82
Function: view
File: /home/elherfa/public_html/index.php
Line: 315
Function: require_once
" ; var tab =result.split(","); for (var i = 0 ; i < tab.length; i++) { addTag(tab[i]); } function addTag (text) { let tag = { text: text, element: document.createElement('span'), }; tag.element.classList.add('tag'); tag.element.textContent = tag.text; let closeBtn = document.createElement('span'); closeBtn.classList.add('close'); closeBtn.addEventListener('click', function () { removeTag(tags.indexOf(tag)); }); tag.element.appendChild(closeBtn); tags.push(tag); el.insertBefore(tag.element, mainInput); refreshTags(); } function refreshTags () { let tagsList = []; tags.forEach(function (t) { tagsList.push(t.text); }); hiddenInput.value = tagsList.join(','); } function filterTag (tag) { return tag.replace(/[^\w -]/g, '').trim().replace(/\W+/g, '-'); }
});