Adblock — a new component for hunting on the ads blockers in Metro 4

Hello, my friends! In version 4.3.7 I'm added new component Adblocker. This component is intended for hunting/fishing for ad blockers. Setup The component works automatically. To configure it, you can create a settings object names metroAdblockSetup and put it before Metro 4 js file: <script> var metroAdblockSetup = { checkInterval: 5000, fireOnce: 3, onBite: function(){... » read more

Codelobster IDE — Free PHP, HTML, CSS, JavaScript editor

In this article, we suggest you to get acquainted with the free editor of web languages - Codelobster IDE. It is presented on the software market for a long time already, and it wins a lot of fans. Codelobster IDE allows you to edit PHP, HTML, CSS and JavaScript files, it highlights the syntax and... » read more

Metro 4 — Changes for animate function in 4.3.7

In 4.3.7 will be changed arguments for the animate function. Version <= 4.3.6 animate format: $(selector).animate(draw, dur, easing, callback); Version >= 4.3.7. Function animate receive one argument as plain object or array of objects. $.animate({ el: object | HTMLElement, draw: {} | function, dur: 1000, ease: "linear", loop: 0, pause: 0, dir: "normal", defer: 0,... » read more

Animate audio volume with AnimationJS

Hello, my friends! In this example, I want to show how you can animate the volume of an audio element using the AnimationJS module. Example: https://pimenov.com.ua/demo/animationjs/sound.html HTML <div class="wrapper" id="field" data-title=""> <button data-role="fadeIn">Sound fade In</button> <button data-role="fadeOut">Sound fade Out</button> <audio autoplay loop> <source src="sound.mp3" type="audio/wav"> </audio> </div> JavaScript import {animate} from "@olton/animationjs"; const audio =... » read more

Play sound on button click in Metro 4

Hello, my friends! In 4.3.7 I'm added new component AudioButton and method Metro.playSound. With method Metro.playSound, you can play any sounds on your request. var btn = document.querySelector(...); car sound = 'https://website.com/sound.mp3'; btn.addEventListener('click', e => { Metro.playSound(sound, (src) => { console.log('sound '+src+' done') }) }) or, You can create button (or other element) with role... » read more