How to use the md5 hash?

Okay, so I'm learning php, html, and mysql to learn website development (for fun). One thing I still don't get is how to use md5 or sha1 hashes. I know how to hash the plain text, but say I want...

How does inline Javascript (in HTML) work?

I know this is bad practice. Don't write code like this if at all possible. Of course, we'll always find ourselves in situations where a clever snippet of inline Javascript can address an issue...

Missing variable in post PHP Javascript

***EDIT @alditis TY, tried your suggestion but the Javascript doesn't work after it. This one doesn't need to be that secure as there's no sensitive data involved and I'm kinda learning it as I go...

Create markup styling in a string based on given hex color codes

Trivia As you know, colors inside CSS can be represented with RGB model (rgb(255, 255, 255)) or with hex codes (#ffffff or #fff), which is generally shorter. Both examples represent white...

How am I supposed to use index.html?

Is index.html meant to be just the first page among many separate HTML pages, or is it supposed to be the only page, and the other pages are just snippets put inside of it? And by supposed to, I...

Can I Extend an Existing Colorizer or Language in VS Code

What I'd like to do is create an extension that extends HTML support - that is it does everything that HTML support does and more, which includes the following: Syntax Highlighting...

Vue-router redirect on page not found (404)

I'm trying to redirect to 404.html on page not found using the router.beforeEach global hook, without much success (using Vueand Vue-Router 1.0): router.beforeEach(function (transition) { if...

Issue with Opera browser: center a table and text-align on left

On opera browser, I get an issue about a table that I would like to center and in which the text should be aligned on left. I have the CSS: div.center table{ text-align: left; margin: 0...

Create a guestbook application in HTML with some conditions in the input fields

I want to create a guestbook application page in HTML which has 3 fields for the user to input: Name E-mail Message I wanna make the client check in JavaScript, so below are my snippets of...

PhantomJS open() too slow

I'm having a problem with web scraping in NodeJS, i want to take some data from the remote webpage but the data is inserted into html from the javascript. I started to use PhantomJS and it works...

Live reload/refresh solution for HTML/CSS in 2017

So it's 2017 and whilst coding websites we still have to edit, save, switch windows, then hit refresh. Make a small change and do it all over again. And again. And again etc etc. Am I missing...

Align code line numbers with CSS

I'm trying to insert line numbers in code snippets on my website (https://qscintilla.com/custom-lexer-example/), using a pure CSS approach (no javascript): As you can see on the screenshot above,...

Visual Studio Code: How to make a snippet for inserting <?php ?>

In TextMate one could type php<tab> to insert <?php | ?> (with the | here marking cursor position). I'm trying to recreate it in VSC like this in the php.json snippets file: "php tag":...

Endless scroll kotlin recycling view/ListView

I am desperately trying to implement endless scrolling on an android app using kotlin. All the tutorials are either useless since they dont explain things properly. So for...

Hexo: How to retrieve post asset folder inside a custom tag

I'm creating a custom tag to insert a more advanced image html code in a post. I cannot find a way to refer to the post asset folder inside the custom tag. In markdown we have the snippet {%...

Cannot access public sheet with Sheets API

For over a year I've used the Google Sheets APIv4 on a web page to present data from a publicly shared Google Spreadsheet. Even though nothing has changed on our end, the sheets API is now...

How to handle duplicate IDs for inline SVGs?

I am using the same SVG multiple times on a webpage. The SVGs are inserted on the server side with PHP like this: <?php echo file_get_contents("myimage.svg"); ?> The SVG contains a gradient, which...

Click OK button within alert window in an embedded hellosign region using Selenium

I need to click the 'Ok' button inside an alert window with a Selenium command. The alert window comes from a hellosign.com page which is embedded in the html page. Please find the html snippet...

Automatic Date Calculator without button

This is my HTML code: HTML Code <div class="input-field col s12"> <label for="PMDate">PM Date</label></br> <input type="Date" name="PMDate" id="date" value="<?php echo date('Y-m-d'); ?>"...

Failed to register a ServiceWorker for scope ('https://.xxx.net/firebase-cloud-messaging-push-scope')

I want to send Firebase web notifications from FCM to PWA app. I tried doing that and ended up with the below error. I've gone through sever links in StackOverflow but no...

How to insert amazon associate ad widget into website

Github Repo (With dummy id(which works)) Update: It looks like the problem may be that the ad widget I am trying to use requires flash. There are other Amazon ads I am able to display(view github...

Plotly graph shows up blank in a HTML page

I'm attempting to embed a graph into a HTML page using Python Plotly and Pandas, in Linux. I found this answer from user @Fermin Silva, which suggests using plotly.offline.plot to convert a plotly...

Images inserted via HTML into blog posts not rendered by Hugo

I'm using HTML snippets such as <img src="site.jpg" style="width:100px; float:left; margin: 0px 5px 5px 0px" border="0" /> to insert scaled and offset images into blog posts in Hugo....

How to perform looping and iteration of a script in R?

I am running an R script to analyze some biological data. Example of the snippet data and script is provided below. This data file has many columns (but I would like to focus on 5th column-...

How to customize Strapi WYIWYG content editor?

Strapi uses a rich text editor called Draftjs in its content editor which by default doesn't have anyway of embedding HTML snippets. to add the ability to embed HTML inside a post, I found this...

How to stop Chrome throw unresponsive error?

I have a JavaScript + HTML program which includes a function taking long time to execute. The problem is, when I run this program on Chrome, Chrome throws unresponsive alert about 20 seconds after...

How to make div occupy 100% of viewport height in browser

I have a div tag and I realized that it is not filling 100% of the height as it should. My code: #container { width: 100vw; height: 100vh; background: purple; } body { margin:...

htmx: onLoad: "on full page load" and "on after swap"

I would like to initialize a select element like in the tom-select Example with my own method: <select id="select-repo" placeholder="Pick a repository..." multiple></select> function...

How can I insert CSS styles inside <body> independent of specific elements?

Traditionally, you can add CSS in three ways: External CSS via <link rel="stylesheet" href="foo.css"> Internal CSS via <style> h1 { ... } in the <head> element Inline CSS via the style="..."...

How to manually embed an Instagram post in vue.js in 2021

I want to insert the publicly available embed code, provided by Instagram for one post, into my vue.js app. Instagram provides an embed snippet for any post in the 3 dots at the top right of any...