Posts by Fernando Munhoz • 163 points
17 posts
-
-1
votes2
answers73
viewsQ: How to access a variable from another function?
Talk guys, found a difficulty, beginner in JS. I have 2 functions: function getHeight() { var tdHeight = document.querySelector(".info-altura").textContent; console.log(tdHeight); } function…
-
-1
votes1
answer234
viewsQ: Resize DIV according to menu size
I put html + css code inside a Jsfiddle to help visualize the problem. What I need to do is that the div named "kk" resizes according to the menu size, for example: if the menu is minimized it…
-
-1
votes1
answer665
viewsQ: How can a div not overlap another div?
I have a div that is my vertical menu, next to it I want to put a div that fills all the remaining space that will be where will load my content, but what happens is that one div is overwriting the…
-
-1
votes1
answer66
viewsQ: Margin does not push content to the center
I recently asked a question because my margin top did not push my div down, following the example in the previous question I was able to solve, but now, using the same explanation of the previous…
cssasked Fernando Munhoz 163 -
0
votes2
answers234
viewsQ: Margin-top does not push div down
I am trying to apply a margin on a div and in no way works. I have my HTML: <div class="side-menu-user-infos"> <div class="side-menu-user-photo"> <img…
-
3
votes2
answers1765
viewsQ: Position an image correctly within a div
Good morning, I’m trying to solve a problem: I have a circular div and when I insert an image it gets cropped: html <div class="side-menu-user-info"> <div class="side-menu-user-photo">…
-
0
votes1
answer85
viewsQ: CSS does not apply 100%
Good evening, I’m using CSS to style a menu vertically, but when I try to apply 100% height it doesn’t match html code <div class="menu-principal"> <ul class="nav flex-column"> <li…
-
0
votes1
answer200
viewsQ: Authguard doesn’t work, what to do?
If my user is logged in, he can access any route of my application and if he tries to access the route ' ' (empty) will be redirected to Dashboard, if it is unattended will only be redirected to ' '…
-
1
votes0
answers153
viewsQ: How do I get my token in the header?
Guys, I’m 'stuck' in this part of the code, I’m generating my token pro browser but I can’t access it to save in my localStorage. I can’t, in any way access my header this way, every time returns…
-
1
votes2
answers1211
viewsA: How to Create a Reusable Component in Angular
André, I advise you to create a module (Shared) and within this module you create all the components that will be shared with all or most of the system, for example, in my application I use the…
-
1
votes0
answers427
viewsQ: How to extract Header Token to store in Local Storage?
Good night, you guys! I’m in a battle to get back the token I send from my backend to my browser. Follow my Back code in Python: class Login(Resource): def post(self):…
-
1
votes0
answers187
viewsQ: How to authenticate with token (JWT)?
Good night, you guys! I have tried 3 different ways, but the closest I got was the code I will post below, I am developing an application as a study using Angular and Python and currently I already…
-
3
votes1
answer79
viewsQ: Is it correct to make a user authentication by the backend return message?
Good afternoon, you guys! Earlier I took a question regarding user authentication in my application and after some good tips I was able to authenticate my user, the doubt now is whether the method…
-
1
votes3
answers155
viewsA: How do I catch a backend error and not log into the application?
Guys, I got it this way, but I don’t know if it’s the right way: this.authService .authenticate(username, password) .subscribe((res) => { if(res ["message"] == 'user valido') {…
-
1
votes3
answers155
viewsQ: How do I catch a backend error and not log into the application?
Guys, good night, I researched several topics and tried several solutions and unfortunately I could not adjust the error. I am developing an application with Angular and my Python backend, at the…
-
0
votes1
answer919
viewsQ: How to make a DIV occupy the right space?
Good evening, I’m mounting the layout of a learning project of mine, I need to make the div occupy the space equal to blue image below My code is this:: My HTML and CSS are below: @import…
-
0
votes2
answers1534
viewsQ: Convert a JSON to OBJECT with Angular
I have a problem, I need to transform a JSON object that I receive from my backend to an object. I’m getting this JSON {"content": [{"id": 1, "nomebd": "teste", "email": "[email protected]"}, {"id": 2,…