Skip to main content

All Questions

0 votes
0 answers
424 views

Static Website Folder Structure - Reusability

I'm creating a static site built with HTML and Javascript. I'd like to maintain a reusable html structure for the site for a subset of the pages. Similar to how Yelp organizes their file structure. ...
tariq anees's user avatar
1 vote
2 answers
680 views

Making a folder with html and node.js

I wanted to make a website that takes an input and, using node.js for the backend, makes a folder using mkdirSync(input.value). I have the fs module installed locally and I got it to work when using ...
Konstei's user avatar
  • 59
-2 votes
2 answers
1k views

Importing a JS library installed as a Node module

I want to set up a project using the Britecharts library. Having installed Britecharts with npm install --save britecharts d3-selection I'm trying to verify that the imports are working by displaying ...
fullstackplus's user avatar
0 votes
1 answer
77 views

Heading in javascript or html in a component-based design for website

I like the component based method of creating different folders for different components. So I currently have: - components/ - heading/ - heading.css - heading.js - heading.html I want ...
M Code's user avatar
  • 79
0 votes
4 answers
3k views

Angular's main html file can't use the styles.scss file inside the src/styles folder

I'm new to Angular. In order to use the 7-1 scss pattern in my project, I created a styles folder inside the src folder "src/styles", and linked the components to the src/styles/style.scss ...
Ismail's user avatar
  • 1
0 votes
1 answer
126 views

Failed to load resource: the server responded with a status of 404 (Not Found) but image shows up

trying to to justify my content using flexbox and this code shows up: Failed to load resource: the server responded with a status of 404 (Not Found) The image does show up though. but the image does ...
ss5592's user avatar
  • 9
1 vote
2 answers
618 views

Html directory link not working if the directory is not from the beginning

My problem is that I have a bunch of HTML files but in simple I have public_html/pages folder + index.html/under pages folder a dmca.html is located. So when I want to locate the file using href = &...
Aritra 's user avatar
0 votes
1 answer
413 views

Rest api: having trouble with root path directory

I am pretty sure Im writing the directory wrong. This is the error Im getting on Postman: Warning: require_once(./includes/functions.php): failed to open stream: No such file or directory in /var/...
Bruna Piloto's user avatar
2 votes
1 answer
404 views

Where to put video content in website project?

It's advised to put images for website in images folder both for good structure and SEO perspective. And where should I put local video content? A folder called videos?
user3132457's user avatar
  • 1,009
0 votes
1 answer
413 views

How to use a media file located outside of public folder on a website? (PHP, HTML)

I'm curious about this, and I think I'm half way to a "no", but I'm not an expert. Having a directory structure like the following, and being public the public root of a website: . Every .php file ...
Fahed's user avatar
  • 205
0 votes
0 answers
307 views

Created nested / child pages HTML

I'm building a fairly simple HTML/PHP website with about 40 pages, and I am using an htaccess rewrite to create a "faux" subdirectory folder named /support, so that url's for the "child" pages look ...
Jennevieve's user avatar
0 votes
1 answer
35 views

.htaccss Rewrite Rules

I currently have a folder structure of root/page1.html root/page2.html root/page3.html root/page3/subpage1.html and am trying to use the rewrite rules to hide the .html part when displayed in ...
Cogorlopez's user avatar
-2 votes
1 answer
360 views

How to integrate Nodejs with Angular js?

Im using express framework in nodejs. My Nodejs folder structure is given below: public css js routes files.js views htmlfiles.html app.js package.json I havent worked in ...
sasi's user avatar
  • 838
0 votes
2 answers
2k views

ReferenceError: Can't find variable: io

I have the following folder structure html directory: index.html, index.html, public/js directory: main.js, socket.js, and in the root directory I have server.js In server.js I set up the socket.io ...
July333's user avatar
  • 251
0 votes
2 answers
4k views

File Directory - Replace Backward Slash "\" with Forward Slash "/"

On a daily basis, I save my web pages files on a public drive. I then have to send a direct link of the html file to the client. To do so, I tend to manually convert all the backslashes "\" from the ...
SlayerCat's user avatar
  • 146

15 30 50 per page