TLDR: Use for...of
instead of forEach()
in asynchronous code.
For legacy browsers, use for...i
or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
<?php | |
/* | |
* Author: Bekzod Najmiddinov | |
* Email: [email protected] | |
*/ | |
$moduleId = "module_id"; | |
$siteId = ""; |
Container( | |
margin: EdgeInsets.symmetric(horizontal: 10), | |
child: InkWell( | |
customBorder: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(10), | |
), | |
onTap: () {}, | |
child: Ink( | |
height: 100, | |
decoration: BoxDecoration( |
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Статистика тендеров</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<!-- <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>--> | |
<script src="apex-chart.js"></script> |
<?php | |
namespace App\Http\Livewire; | |
use App\Models\Account; | |
use Livewire\Component; | |
class AccountAutocomplete extends Component | |
{ | |
public $query= ''; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> |
<?php | |
if (ini_get('short_open_tag') == 0 && strtoupper(ini_get('short_open_tag')) != 'ON') | |
die('Error: short_open_tag parameter must be turned on in php.ini'); | |
?><? | |
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); | |
@ini_set('pcre.backtrack_limit', 1024*1024); | |
define('IP_LIMIT_DEFAULT', '#IP'.'_LIMIT_PLACEHOLDER#'); | |
define('IP_LIMIT', '#IP_LIMIT_PLACEHOLDER#'); |
<!-- Goes into viewer.html just before ending </body> --> | |
<script> | |
let pinchZoomEnabled = false; | |
function enablePinchZoom(pdfViewer) { | |
let startX = 0, startY = 0; | |
let initialPinchDistance = 0; | |
let pinchScale = 1; | |
const viewer = document.getElementById("viewer"); | |
const container = document.getElementById("viewerContainer"); | |
const reset = () => { startX = startY = initialPinchDistance = 0; pinchScale = 1; }; |
# Select one of the following options - Security decreases from top to bottom. | |
Header append X-FRAME-OPTIONS "DENY" | |
Header append X-FRAME-OPTIONS "SAMEORIGIN" | |
Header append X-FRAME-OPTIONS "ALLOW-FROM https://example.com/" |
<div id="my_container"></div> <!-- Form container --> | |
<!-- JS code from CRM Bitrix24 --> | |
<!-- Added "node" parametr --> | |
<script id="bx24_form_inline" data-skip-moving="true"> | |
(function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u; | |
(w[b].forms=w[b].forms||[]).push(arguments[0])}; | |
if(w[b]['forms']) return; | |
s=d.createElement('script');r=1*new Date();s.async=1;s.src=u+'?'+r; | |
h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); | |
})(window,document,'http://cp.silaev.bx/bitrix/js/crm/form_loader.js','b24form'); |