Category : inline

Our hosting company changed from Apache to nginx and inline/embedded PHP is not supported. Could someone tell me how to replace the following inline PHP code snippet (relating to the captcha) with JavaScript? <?php $cryptinstall="crypt/cryptographp.fct.php"; include_once $cryptinstall; dsp_crypt(0,1); ?> I assume I’d have to move the middle 3 lines to a function in a .js ..

Read more

youtube embaded video iframe full width and full heightNo css and only and inline js is needed to make youtube video 100% width and 100% height of the screen size, very simple solution.. just need to put onload="this.width=screen.width;this.height=screen.height;" it will be like this..<iframe src="https://www.youtube.com/embed/OFZ5TjvM9bk?&autoplay=1&mute=1&loop=1&playlist=OFZ5TjvM9bk" onload="this.width=screen.width;this.height=screen.height;"></iframe> with auto play and on load start.. very nice solution… ..

Read more

I am converting inline CSS for a JSX file into outer CSS as it apparently better for use. Originally my inLine CSS was: const iconHtmlHovered = `<div style="background: url(‘${iconUrl}’); width: 100%; height: 100%;background-repeat: round;"><p style="margin-bottom: 0;position: relative;left: 70px;width: max-content;top: 20px;font-size: 16px; font-weight: 600;"> ${steps?.length < 10 ? item.title : ”}</p></div>`; and was called here: const ..

Read more

I am attempting to animate an element increasing in size using JSX and inline CSS const iconHtml = `<div style="background: url(‘${iconUrl}’); width: 100%; height: 100%; transition: 0.5s; background-repeat: round; transform: scale(4);"onmouseover="this.style.scale=2;"onmouseout="this.style.scale=1;"" > <p style="margin-bottom: 0;position: relative;left: 70px;width: max-content;top: 20px;font-size: 16px; font-weight: 600;> ${steps?.length < 10 ? item.title : ”} </p> </div>`; const icon = L.divIcon({ ..

Read more

J’aimerai ajouter une fonction callback_query pour √©diter un message dans un canal group√© lorsqu’un utilisateur appuie sur un des boutons du Inline Keyboard. Je suppose que l’erreur vient de content.callback.quey_data ? Voici mon code : switch (content.callback_query.data) { case ‘data_inline_bouton1’ : let payload = { ‘message_id’: content.callback_query.message.message_id, ‘parse_mode’ : ‘html’, ‘text’: (content.callback_query.message.text + "n nouveau ..

Read more