JS проверки битых картинок
На входе скрипта даем массив с именами картинок на внешнем ресурсе.
Вам нужно пройтись по всем элементам массива и проверить код ответа картинки
'http://site1.ru/upload' + arr[$i] + '.gif'
если код ответа НЕ равен 200, то увеличиваем счетчик на 1.
в конце прогона элементу <div id='count'></div> присвоить подсчитанное количество битых.
Важно, чтобы скрипт был написан на нативном JS
Желательно, чтобы скрипт состоял из трех строчек и его легко было подключить перед закрывающимся <body>
в результате данной работы с Вас пример из трех картинок, и скрипт который проверяет их доступность
-
1142 39 0 1 Добрый день
Уже есть готовое решение. Обращайтесь, буду рад с Вами работать
-
1172 21 0 Здравствуйте, готов взяться прямо сейчас. До конца дня справлюсь.
Обращайтесь
UPD:
Можно уложиться в три строчки но будет страдать читабельность кода, советую разбить на 5-7 строчек хотя бы
-
46 1 1 Здраствуйте,
готов взяться за вашу роботу.
telegram : lagemeet
-
1450 31 0 1 Добрый день Буду рад сотрудничеству.
Готов обсудить детали в личной переписке.
Опыт работы 4 года.
Большой опыт, ответственный и качественный подход.
С уважением John!
Пишите, чтобы обсудить:
-
560 21 1 День добрый, сделаю.
Немного о себе:
HTML5 + CSS3 (adaptive layouts, sprites, css animations, retina, flexbox), Less / Sass / SCSS, Bootstrap 4;
JavaScript, jQuery, Angular 2+, Angular Material; Grunt, Gulp, npm;
PHP, Regular Expressions, cURL, memcached, Smarty, Twig, Blade, Composer;
MySQL, Percona Server;
nginx, Apache, mod_rewrite, Sphinx, mozjpeg;
… Linux (CentOS, Ubuntu, Debian), AWS, Azure, Git (Github, Bitbucket), Docker;
Symfony, Laravel, WordPress, OpenCart, Prestashop, Drupal;
Payment APIs, OAuth2 (Google, Okta Auth), Google Maps APIs.
Доступен в онлайне с 12-00 до 23-00
Оплата по-проектно или почасовая ставка ($15/час)
-
272 4 0 Обращайтесь, сделаю в течении двух часов.
Обращайтесь, сделаю в течении двух часов.
Обращайтесь, сделаю в течении двух часов.
-
3124 88 3 4 Здравствуйте, Дмитрий.
Готов написать скрипт проверки картинок на внешнем ресурсе.
С уважением, Юрий
-
Уже сделал, обращайтесь в ЛС
-
Есть готовое решение в одну строчку) Обращайтесь, предоставлю
-
Current freelance projects in the category JavaScript
Exchange service
510 USD
There are working exchangers, it is necessary to rely on the example, make a cryptocurrency exchanger: Design and code can be taken completely from a working website, that is - make a copy. The exchange rate and other data for the exchange - what I could set manually. The… JavaScript, Web programming ∙ 15 proposals |
Writing software for creating an Open Book on the Solana network
107 USD
During the creation of interchangeable tokens (SPL token) on the Solana network, it is necessary to automate the process of creating an Open Book for the token and speed it up by increasing transaction fees. Software functions: - Create Open Book - Set a "tea" limit on the… Java, JavaScript |
Website layout according to the design.
510 USD
Good day. There is a layout in Figma: https://www.figma.com/file/RGVIymprYc4QaiJ5qp3iwL/LayerGame?type=design&node-id=0-1&mode=design There is a UI kit and a ready-made layout of the Main page, implemented in React, animations are done using GSAP. It is necessary to layout 2… HTML and CSS, JavaScript ∙ 36 proposals |
ParallaxIt is necessary to make such a parallax as here https://www.bangbangforever.com/#artists, that is, a video block video (everything is already laid out) and also part of the parallax is ready, stack Next.js JavaScript ∙ 2 proposals |
Set up Facebook Pixel and Google Analytics events on the websiteSet up Facebook Pixel and Google Analytics events on the website. Do this through the website admin panel, simply add scripts there or through GTM. JavaScript, Web programming ∙ 7 proposals |