Posts by Lucas Simao • 112 points
13 posts
-
0
votes1
answer87
viewsA: Error while creating user
After a lot of headache I started reading the documentation of Mongoose and the error was in the model where I have to change: const UserSchema = new Schema({ email: { type: String, required: true,…
-
-1
votes1
answer87
viewsQ: Error while creating user
I am having the following error when trying to create a user in my api Validationerror: address.0.status: Path estado is required. , Address.0.city: Path cidade is required. ,…
-
-1
votes1
answer43
viewsA: How to load HTML pages in the bootstrap modal?
You can use an iframe inside the modal, I’ll leave the link of how to do this. As much as possible, I do not recommend the use of iframes, it would be better to put pure html inside the modal.…
htmlanswered Lucas Simao 112 -
1
votes1
answer189
viewsQ: Problem with routes
When trying to access konic.com.br the site is loaded normally, but when I enter another route that in the case of konic.com.br/contact it returns 404 app js.: const express = require("express");…
-
0
votes1
answer283
viewsA: Css does not load
For css and js files to be loaded by Nginx and nodejs, it is necessary to add the following line in the code: app.use(express.static('html')); Where html is the folder that contains all the files;…
-
0
votes1
answer283
viewsQ: Css does not load
I am running several servers using Nginx + nodejs, but css does not load from the following message: Refused to apply style from 'https://konic.com.br/css/style.css' because its MIME type…
-
0
votes0
answers128
viewsQ: Error while doing query
I am building a Rest api with Node, but when trying to get a pass parameters returns all the data. app js. const express = require('express'); const app = express(); const mongoose =…
-
1
votes1
answer1024
viewsQ: Change Icone Javafx
I’m trying to change the icon but I’m not getting it. Code: package olamundojavafx; import com.sun.javafx.scene.SceneHelper; import javafx.application.Application; import javafx.fxml.FXMLLoader;…
-
2
votes1
answer181
viewsQ: When scrolling the page and arriving in a certain DIV the background color of the same changes
I would like when someone scrolls the page and arrive at a certain DIV the background color of the same seedlingif I tried to do so: Jsfiddle but it didn’t work out. What would be the right way to…
-
2
votes1
answer82
viewsQ: How can I optimize my code?
I would like to optimize my code but I don’t know how to do it. It has to produce a result just like the one in the table above. Code: function calcular() { abiscissa =…
-
0
votes4
answers182
viewsA: Adjustable design for mobile
Inside the tag <head> You have to put the following code: <meta name="viewport" content="width=device-width" initial-scale="1.0"> You can also use Bootstrap to make websites responsive.…
-
1
votes3
answers24888
viewsA: Are the accents on my page missing?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>ÁÀÃÂ</h1> <body> </html> Upshot: ÀÂ…
htmlanswered Lucas Simao 112 -
2
votes1
answer73
viewsQ: Increase text size by scrolling the page
How do I when scrolling the page increase the size of the text? I would like each 50px the text increased in 10px to scroll the page to a total of 1000px top-down. Below is Fiddle and Snippet:…