I am having an issue trying to remove some auto-generated anchor tags in a mobile menu for a customer’s website. For the time being I have them "covered up" and "hidden" with CSS, but this is an obtuse solution and I’d like something eventually more refined. I am using the Divi Theme in WordPress. Images ..
Category : javascript
I’m trying to POST to a database an image in the form of a base64 string. Up to now, I’m able to turn it into an object inside a tag in HTML. There are two methods which I’m trying to implement, none of them I’ve had success. I think I’m misunderstanding how to perform a ..
I’ve been trying to use a php variable inside a JS script to no avail, I’ve read three threads including: how to use PHP variable in Javascript Access PHP variable in JavaScript How to access PHP variables in JavaScript or jQuery rather than <?php echo $variable ?> But I still cannot manage to make it ..
body { vertical-align: center; margin: auto ; width: 90%; } div { display: inline-block; margin-top: 30px; margin-right: 50px; width: 300px ; border-radius: 15px; border: 1px solid rgb(218, 218, 218) ; background-color: rgb(218, 218, 218) ; padding: 8px ; text-align: center; } input { float: right; } div:hover { background-color: rgb(190, 180, 180); } <!doctype html ..
I’m not sure if or how I need to use ajax in this situation. I have a php page (info.php) written mostly in html that is a form with at least 20 inputs, select menus and a variable number of dynamic inputs. From main.php I’m passing data to it by info.php?user=Jayden which will grab the ..
I have currently have a php file doing some string replacement: langfr.php <?php $filecontent = file_get_contents(‘file.php’); $filecontent = preg_replace(‘/benglishb/’, ‘french’, $filecontent); file_put_contents(‘file.php’, $filecontent); ?> I have a on another page a javascript listener for a button that is trying to simple call the php function and have it run the code, I then refresh to ..
I have two navbars : one is included on login and another in guest situation. the if condition in javascript works well if user logged in or not but the condition in php dosen’t.. it always gives the first condition whatever im logged in or not and gives me the logged in navbar. what seems ..
Hi there fellow programmers, I want to create an login portal ran on your device that is encrypted. Can someone help me create one? I don’t mind if it is in PHP, JavaScript or HTML. Thanks! -Sam Sourc..
At Calculating the script hash we can see how to calculate the JavaScript hash in case of AMP: const crypto = require(‘crypto’); const hash = crypto.createHash(‘sha384’); function generateCSPHash(script) { const data = hash.update(script, ‘utf-8’); return ( ‘sha384-‘ + data .digest(‘base64’) .replace(/=/g, ”) .replace(/+/g, ‘-‘) .replace(///g, ‘_’) ); } How can I do the same in ..
I’ve tried to host my website to a provider but it looks like it doesn’t want to login there.. On the localhost it works just fine, but uploaded at a provider it looks like it doesn’t want to perform the login operation…I can successfully sign-up, change password, so basically I have database connection, but I ..