<form action="/ajax.php?form=callback" method=post>
...
<form action="/ajax.php?form=ticket" method=post>
...
if (isset($_POST['form'])) {
switch ($_POST['form']) {
case 'callback':
// bla-bla-bla;
break;
case 'ticket':
// bla-bla-bla;
break;
default:
echo 'Invalid form';
break;
}
}
How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. manual cannot be combined with any other trigger.
How to position the popover - top | bottom | left | right | auto.
When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.
When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The this context is set to the popover instance.
Насколько мне известно, в одной папке можно хранить ограниченное количество файлов, иначе могут быть проблемы (вплоть до полной потери данных).
(function() {
String.prototype.trimLines = function(){
return this.split("\n").map(line=>line.trim()).join("\n");
}
if ( true ) {
const str = `строка 1
строка 2
строка 3`;
console.log(str);
console.log(str.trimLines());
}
}())