Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
157 votes
25 answers
215k views

H14 error in heroku - "no web processes running"

error H14 happen while deploying to heroku this is my procfile: web: gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent main:app log on heroku: 2017-01-23T10:42:58.904480+00:00 heroku[router]: at=error code=...
Ron Miles's user avatar
  • 1,593
81 votes
5 answers
95k views

How to make index.html not to cache when the site contents are changes in AngularJS website?

Normally for .js and .css file we will append a version during build like xx.js?v=123, and then after website deploy, we can get the new version of js and CSS. But I don't see a place talking about ...
Rongyan Xia's user avatar
76 votes
6 answers
154k views

jQuery - Sticky header that shrinks when scrolling down

I wonder how to make a sticky header shrink(with animation) when you scroll down the page and goes back to normal state when the page is scrolled up to the top. Here are two examples to clearify: ...
user2362529's user avatar
19 votes
1 answer
41k views

How to simulate 'position:fixed' behavior on Flexbox-aligned sidebar

As it was already answered (How can I have a position: fixed; behaviour for a flexbox sized element?) absolutely/fixed positioned boxes are taken out of the normal flow of Flexbox-aligned elements. ...
user3576508's user avatar
17 votes
6 answers
81k views

Disable Drop Down Option using jQuery

I need to disable options with value "- Sold Out -" in a list of dynamic drop down menus. How can I do this easily with jQuery? Below is the HTML <select id="field_0_1" class="text_select" name="...
nasty's user avatar
  • 7,027
17 votes
1 answer
2k views

What's the reason behind not allowing self-closing tag in custom element in spec?

<self-closing /> tag are not allowed in HTML custom element. Why is that? Many cases just need void tag, I guess by that, code would be more readable. On the other hand, it implies semantic ...
Mehdi Raash's user avatar
  • 8,877
14 votes
6 answers
17k views

Pack an HTML5 app and deploy it on the desktop

I have read tons of articles and stackoverflow questions but I seem not get it to work. I want to distribute some product information for a customer which will be send out on a CD or USB stick. Back ...
server info's user avatar
  • 1,335
11 votes
2 answers
16k views

Difference between read & execute, file permission

This may sound like a pretty basic question, but I'm a bit stumped on what constitutes as "reading" a file, and "executing" a file. For example: User 1 buys a ticket from an online website, and ...
arsenalftw067's user avatar
11 votes
1 answer
5k views

Can I Create Chrome Application Shortcuts Programmatically from a Web Page?

I've thought about using Chrome and HTML5 local storage to create a useful app and sell it. The problem I think I would have, however, is the delivery mechanism to get this installed on one's computer....
Volomike's user avatar
  • 24.7k
10 votes
1 answer
3k views

ECONNREFUSED error with WSL 2 with Chrome Debugger on VSCode

I'm on a Windows 10 machine, VS Code with WSL 2 (Ubuntu 18.04) trying to use the Chrome debugger extension, but to no avail. The following is my launch.json: { "version": "0.2.0", "...
Khai Yi's user avatar
  • 101
8 votes
5 answers
42k views

strict mime type checking is enabled, refused to execute script from '<url>' its mime type ('text/plain') is not executable, and

I am newbie in Django, and i was working on a Django app. And i used "media" folder to keep my css and javascript files (i know it's not a good practice) but it was working. Some lines of code <...
Abhishek Pratap Singh's user avatar
7 votes
1 answer
26k views

Why is my modal not showing? Bootstrap 4 [closed]

<head> <meta charset="utf-8" /> {% load staticfiles %} <link rel='stylesheet' href="{% static 'homepage/css/bootstrap.min.css' %}"> <link rel='stylesheet' href="{% ...
jskrtsth's user avatar
  • 151
7 votes
2 answers
7k views

Regex replace from number type input

I have a number type input that I want to prevent people from entering anything but numbers. The examples I found work well with input type text fields but don't work well with number fields. Works ...
Karl Stulik's user avatar
6 votes
1 answer
11k views

Failed to load resources error 404 while deploying create-react-app

Any help would be GREATLY appreciated. Thank you! I can run my website fine locally, but am having problems when deploying it in production. When I run npm run deploy, it should automatically build ...
patrickhuang94's user avatar
6 votes
6 answers
16k views

Deploy failed Netlify

I'm getting the following error npm ERR! enoent ENOENT: no such file or directory, open '/opt/build/repo/package.json' Here's the full build log: 2:27:28 PM: Waiting for other deploys from your team ...
Eithar Alatoom's user avatar
6 votes
0 answers
2k views

Why does my React app layout and site appearance change when I deploy it through github pages but it looks normal when I run it locally?

I made a react-app that works and looks fine when I run it locally (http://localhost:3000/). I tried deploying it through GitHub Pages, and the layout was all messed up (extra spacing, tag looks ...
deenchac's user avatar
5 votes
5 answers
1k views

How do I make sure the newest version of a static website is being displayed?

I know that as a user myself, I can just hit 'F5' to make sure, or clear my cache, etc. I'm just wondering if there's anything from a web designer standpoint that can make this more "automatic," as ...
CodeFinity's user avatar
  • 1,290
5 votes
4 answers
10k views

libgdx HTML5 deployment

I've been working with libgdx for 2 days, and I'm starting to get the hang of it. I'm comfortable with deployment on Android and desktop, but I've got no clue about how to run/debug or deploy the ...
Rishav Guha's user avatar
5 votes
3 answers
22k views

Grid item won't take full height of parent container

I am trying to create three items inside of a nested grid item. As you can see from the code, I've put the 'panels' div in-between the 'jumbo' and 'content' divs. I also nested three divs inside. In ...
sirryankennedy's user avatar
4 votes
6 answers
7k views

Electron deployed app not running, can't find module 'electron-reload'

I'm learning Electron, so I'm using it for the first time ever by following this tutorial by DesignCourse. I constantly checked to make sure my code worked properly before proceeding. I can confirm ...
Chris H.'s user avatar
4 votes
1 answer
10k views

Maxlength and Minlength ignored for input type=“number”

The maxlength attribute is not working with <input type="number" maxlength="5" maxlength="10" />
Himanshu Raj's user avatar
4 votes
2 answers
919 views

Pure Javascript and HTML app & deployment via CDN ... good idea?

A big and general question, though NOT a discussion Me and a friend are discussing a web application being developed. Currently it uses PHP, but the PHP doesn't store anything and it is all OAuth ...
Aiden Bell's user avatar
  • 28.3k
4 votes
3 answers
23k views

Fetch in React.js not working

I am trying to do a fetch request in react.js and I don't seem to be fetching anything. I feel as though it is a stupid mistake and I am not noticing it. Any help would be appreciated. import ...
Zubair Amjad's user avatar
4 votes
1 answer
163 views

Portfolio with Stack Exchange Basic Info

I am currently wanting to develop a webpage that displays my achievements in Stack Exchange. Just the basic info... Badges earned, and reputation. I am a beginner in Javascript. I reviewed the ...
jsetting32's user avatar
  • 1,632
4 votes
4 answers
4k views

How can I view a part of an other website on my website?

I want to show a specific part of an external website on my website. How do I do this? Can this action be illegal in some way? **no embed available on this website. It looks pretty old too.
Imnotapotato's user avatar
  • 5,648
4 votes
3 answers
877 views

Is there a tool to automatically minify all javascript files referenced in an html file at deployment time?

Is there a tool that will do the following at deployment time? Find all javascript files referenced in <script> tags of an html document. Minify the javascript files into 1 file. Replace the &...
Curyous's user avatar
  • 8,796
3 votes
6 answers
1k views

Web Design; Same Object on Multiple Pages?

I apologize of this question has been asked before. I tried searching around, but was unable to find a relevant answer (probably due to my relatively small "web-design vocabulary"). I've noticed that ...
Jaclyn Brockschmidt's user avatar
3 votes
1 answer
24k views

Add a preview to html link tag

When we share some links it displays a link preview an image and some texts. How do we add to our http links? Hope my question is clear.
margherita pizza's user avatar
3 votes
2 answers
1k views

Where do default fonts come from?

I have a front-end question about web development. I have a project in Django and in it I use JavaScript lib to draw charts on the web pages. The font on the chart is different from this on the web ...
Kq11's user avatar
  • 87
3 votes
1 answer
2k views

import third-party library from cdn using inline JavaScript

I am trying to import the interactjs library from a cdn. It works if you add a script tag from the head. However I want to be able to load this library using JavaScript and bring it to scope. example ...
ta32's user avatar
  • 149
3 votes
1 answer
1k views

why @media only screen and (min-width: 768px) also apply for screen width less than 768px

The css for min-width 768 is not working properly in mobile. But same css is working properly in inpect mode for width less than 768 in chrome desktop browser. @media only screen and (min-width: ...
beginner's user avatar
  • 341
3 votes
2 answers
5k views

Django FileNotFoundError in a view when returning HTML using codecs [duplicate]

I am creating a view in Django that returns a static HTML page, and my code for that view is as follows: from django.shortcuts import render from django.http import HttpResponse from django.shortcuts ...
Vinayak G.'s user avatar
3 votes
2 answers
15k views

Run normal Jar file in web page with the help of applet

I have a Jar file created in Java which contains external libraries along with class files (to make it more complicated). Our mission is to somehow run this program on web. Applets are used to run ...
Ujju's user avatar
  • 2,743
3 votes
1 answer
3k views

How to Change the Label Strike-Through with light gray on a ChartJS Doughnut?

I have this ChartJS Doughnut and added an extra Label which will show another value without displaying it on the doughnut. The problem is, ChartJS strikes through labels which are "hidden". Is there a ...
sharpnado's user avatar
3 votes
1 answer
5k views

Nginx setup with multiple html files

I have got a website with multiple html files which I want to serve with Nginx. server { listen 80; root /var/www; location / { index index.html; } ...
user avatar
3 votes
1 answer
325 views

How can I know in JavaScript which <li> tag is clicked on a page? [duplicate]

I am new in web development. I want to add .active in <li> when it is clicked and remove it from the previous <li>. I also want to know how to determine which <li> has been clicked. ...
MKRNaqeebi's user avatar
3 votes
1 answer
5k views

How can I create navbar drop-down with multiple columns in Bootstrap?

I want to know how to create a navbar drop-down containing multiple vertical columns using Bootstrap. In my case, my links are categorized and I want one column for each category type. Here is an ...
Vaibhav Singh's user avatar
3 votes
1 answer
375 views

replace styles.less with styles.css via git post-receive

I have a local development web with an index.html which is using: <!-- LESS --> <link rel="stylesheet/less" type="text/css" href="css/styles.less" /> <script src="js/lib/less-1.1.3.min....
Riebel's user avatar
  • 789
3 votes
8 answers
770 views

Absolute Path for Deployment in a Non-Root Location

I typically refer to any assets on my site using absolute path so that I don't have to worry about the location of the assets relative to current file. <!-- Using a absolute path. --> <img ...
moey's user avatar
  • 10.8k
3 votes
1 answer
385 views

Is it safe to use iframe to prevent malicious files

I am making a web based chatting platform where people can chat and also they can share files. If any hacker inject a malicious file then there is a risk my website maybe got hacked. I am just ...
Rejaul Islam's user avatar
3 votes
0 answers
2k views

How to stop swiper slider autoplay immediately on hover with speed attribute without take a long time when stop autoplay?

When I use speed attribute with swiper slider It's take more time to stop swiper autoplay on hover var SwiperTop = new Swiper('.swiper--top', { spaceBetween: 0, speed: 10000, autoplay: { ...
Nada Hanash's user avatar
3 votes
1 answer
81 views

Postioning text and button in a specific position over an image

i wanted to postion a text in (h1) on the image but it affected by the opacity of the image so how can i make it not to get affected by it, i want also to position the button directly under the text ...
Sengo's user avatar
  • 53
3 votes
1 answer
591 views

Avoid browser cache loading if website updated

How to avoid website loading from cache if i have done changes in html or css file. While browsing i gone through this question How to avoid browser caching issues by renaming css file But it give ...
Monicka Akilan's user avatar
3 votes
1 answer
909 views

Can I pass parameters from Grunt to Javascript?

I have an HTML5+JS code that is being built by Grunt. I'm currently setting up both a development and a production environment. Is there a way to pass parameters from Grunt to the JS code? This way I ...
user2581095's user avatar
2 votes
5 answers
238 views

Html/css Div wont align beside each other

This is what my page looks like right now: I want the red part to be beside the Last bets box or grey area. I am using bootstrap and I tried pull-left, but that only sets it too far away. I want it ...
Andreas Moldskred's user avatar
2 votes
2 answers
3k views

why is safari the only browser flagging my https website as not secure

I recently created a website for my client's business. We bought and setup an OV SSL certificate from GoDaddy, the same platform we're hosting on. But for some reason, Safari is flagging the whole ...
Russellg's user avatar
  • 111
2 votes
1 answer
3k views

Internet connectivity status by navigator.onLine is not working correctly, and showing the wrong status while internet is not connected

I'm creating a web-based application which can work offline as well as online. Therefor, I have need to check if internet is working properly or not. Currently I'm using navigator.onLine in ...
Arsman Ahmad's user avatar
  • 2,154
2 votes
2 answers
6k views

"Property is nonstandard. Avoid using it." for '-webkit-mask-image' & '-webkit-mask-size'. What should I use instead?

When I use '-webkit-mask-image' & '-webkit-mask-size', VsCode says "Property is nonstandard. Avoid using it.". I have no idea what should I use instead. My code is below: a.effect-shine:...
Shimanto's user avatar
  • 283
2 votes
3 answers
5k views

Blank screen after deploying react app on Vercel

My package.json file where I also tried including the previous solutions "homepage"... in this Any syntax mistakes or references I mistakenly added here in here ? My build was successful but ...
Ryuzaki's user avatar
  • 144

1
2 3 4 5
12