Category "html"

how do i pass info.startStr into an html input inside a modal window?

I am calling a modal upon clicking/selecting a date (NOT EVENT) in FullCalendar: select: function(info) { var sdate = info.startStr; $('#fullCalModalAdd').

anchor jumping by using javascript

I have a question that will be found very often. The problem is that nowhere can be found an explicit solution. I have two problems regarding anchors. The mai

Specify default value for HTML5 Local Storage item?

In the case that you are trying to get a local storage item that doesn't exist, is it possible to set a default value for that item? For example, let's say tha

Bootstrap CSS for wide and boxed layouts

I am using Bootstrap and I need two layouts for wide and boxed. And I want to easly toggle (change) between layouts when needed. EDIT : How can I do like this

What does the HTML <title> tag do?

I have just started learning HTML from W3Schools. I tried my first code and even if I change my title in my HTML code, it doesn’t make any difference. The

TypeScript: problems with type system

I'm just testing typescript in VisualStudio 2012 and have a problem with its type system. My html site has a canvas tag with the id "mycanvas". I'm trying to dr

Tailwind and Alpine.js flicker

How do I fix flickering on tailwind and alpine.js? Already added x-cloak as per alpine.js . But still not fixed. If the "default" state of an x-show on page lo

How to style an HTML5 Progress Element as Circle/Pie with pure CSS

HTML5 introduced a new "progress" element that by default is rendered as a progress bar (thermometer). A very basic example is: <progress max="100" value

How can I change the size of bootstrap slider?

Jsfiddle link is https://jsfiddle.net/gzp0pcot/ I am using Bootstrap slider from https://github.com/seiyria/bootstrap-slider I tried to change it using css

data-offset in Bootstrap Scrollspy is not offseting at all

Any value I set to data-offset for scrollspy does not work at all. Here are the relevant html, css, and js code: HTML <nav class="navbar navbar-fixed-top

How to change the line cap in PIXI.js?

I'm trying to draw a line with rounded corners onto a Graphics object with PIXI.js. I use the moveTo() and lineTo() commands to draw the line, but that causes i

How to make a real "onchange" event in HTML (no jQuery)?

Please note: I do not want to use jQuery for this (otherwise I like it) Problem: I have come to situation where I need to do some javascript function after an u

<label> element splits to multiple lines

I have a <label> element in my ASP.NET core MVC project, that splits to multiple lines instead of showing in a single line. I've inspected the element in

HTML input type number JavaScript onchange fires twice?

I can't believe I couldn't find any discussion on this already... There have been questions of how to handle events from the HTML5 form element <input type="

wrapping sections with HTML tags in vim

I want to be able to quickly wrap entire sections of my HTML with other tags. I run into this a lot when I realize I need an outer div around my other divs, lik

How to close a dropdown on a mousedown

Frontend noob here, please be nice. I have a dropdown menu using ui.bootstrap.dropdown. The users of my website are used to copy-paste stuff from this dropdown.

How to minify Symfony / Twig generated HTML code to satisfy Google PageSpeed Insight?

When testing my Symfony 2.8 based webpage with Google PageSpeed Insights I am getting warned, that the HTML code is not minified. This is true, while Assetic

How to add script to Leadpages?

I have found a UTM Tracking code script that I like to use on my own websites. I will try and explain how it works. A visitor lands on the website: The Link

SVG Dynamic resizing

Does anyone know I can dynamically resize an svg image so it fits within a container?? I find that the images I have overflows. What I want is a way to resize i

Is it possible to access an SQLite database from JavaScript?

I have a set of HTML files and a SQLite database, which I would like to access from the browser, using the file:// scheme. Is it possible to access the database