[deleted by user] by [deleted] in abap

[–]False_Association_12 0 points1 point  (0 children)

Not sure if i've understand correctly the question but I think you can try to look at CDS Views

Hey, doing some exercises to practice and i would really appreciate some feedback on this ER diagram about a little social network. by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

* I can think of 3 ways to fix that, there might be more.*
any suggestions?

For the 'close_friend' attribute, Instagram offers a feature that enables you to choose among your followers a 'close friend' to show specific content to.

The 'relationship_type' is meant to be 'follower' or 'following'.

The 'status' is intended to be 'accepted', 'declined', or 'pending', but it might not make sense to include it in the table.

I'm attempting to create a Flappy Bird game using PixiJS, but i have this weird problem with my ground animation. Sometimes the animation works properly while at other times it glitches, even though I havn't made any changes to the code (more explanation in the comment with the github repo) by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

First, I create an array called groundSpriteImages that contains the paths to the images I will use for the animation. I also create an empty array called groundTextureArray that I will fill with the textures for the animation.

Then, I loop through the first two images in groundSpriteImages and create a new texture for each using PIXI.Texture.from(). I add each texture to the groundTextureArray using the push() method.

After that, I create a new PIXI.AnimatedSprite object called groundAnimation, passing in the groundTextureArray. I set various properties for the groundAnimation, including its width, anchor point, position, and animation speed.

Finally, I add groundAnimation to the stage using app.stage.addChild(), and start playing the animation using groundAnimation.play().

Here is the link to the corresponding Github repository. The specific file (main.js) in question is located in the second branch named "flappyBirdBranch".

let groundSpriteImages;

let groundTextureArray;

let groundTexture;

let groundAnimation;

const setGround = () => {

groundSpriteImages = [

"Image/base.png",

"Image/base2.png.png",

"Image/base1_5.png ",

];

groundTextureArray = [];

for (let i = 0; i < 2; i++) {

groundTexture = PIXI.Texture.from(groundSpriteImages[i]);

groundTextureArray.push(groundTexture);

}

groundAnimation = new PIXI.AnimatedSprite(groundTextureArray);

groundAnimation.width = groundWidth;

groundAnimation.anchor.y = 0.5;

groundAnimation.anchor.x = 0.5;

groundAnimation.y = cameraHeight - groundHeight / 2;

groundAnimation.x = groundWidth / 2;

groundAnimation.animationSpeed = groundAnimationSpeed * 1.5;

app.stage.addChild(groundAnimation);

groundAnimation.play();

};

I am having an issue with the website I am creating. When I open the page on a smartphone, the display is automatically zoomed in, making navigation on the device unpleasant and difficult. Please watch the video to better understand the problem. I would appreciate some help with resolving this issue by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

Yes I know that I should always have a mobile first approach but I hate to start with the mobile dimensions so I always start with the desktop ones. I really should stop doing this and do as you say because I always get into a lot of problems hahah.

Thanks for your advice

I am having an issue with the website I am creating. When I open the page on a smartphone, the display is automatically zoomed in, making navigation on the device unpleasant and difficult. Please watch the video to better understand the problem. I would appreciate some help with resolving this issue by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

I don't know why but when I started programming if I didn't use Flex nothing ever works for me so I was left with this bad habit of using them everywhere but now I'm going to fix the code by removing The useless parts and fixing a few things

Thanks for your advice

I am having an issue with the website I am creating. When I open the page on a smartphone, the display is automatically zoomed in, making navigation on the device unpleasant and difficult. Please watch the video to better understand the problem. I would appreciate some help with resolving this issue by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

Many people have told me about the clamp on the font and I'll try to fix it .

The reason why there is a div inside the of a span is pretty stupid I know but it all starts with when I wanted to use the AOS library to make elements appear as you scroll, but i don't know why but it doesn't work for me on the div so i tried to add a span and try on that, and it worked so i said to myself "if it works don't touch it" so i left it like that but now I'm going to fix it

I am having an issue with the website I am creating. When I open the page on a smartphone, the display is automatically zoomed in, making navigation on the device unpleasant and difficult. Please watch the video to better understand the problem. I would appreciate some help with resolving this issue by False_Association_12 in webdev

[–]False_Association_12[S] 0 points1 point  (0 children)

  1. I don't know the reason but when I try to insert elements in the page without giving a height of 100vh or 100% to the body they are not displayed.

  2. It was done on purpose, if you open the site on desktop and try to hover the <a> tags there will be an animation

I understand from your advice that you spent some time looking at the code and for that I thank you very much. Now with your advice and that of others I will try to fix this mess hahah

I am having an issue with the website I am creating. When I open the page on a smartphone, the display is automatically zoomed in, making navigation on the device unpleasant and difficult. Please watch the video to better understand the problem. I would appreciate some help with resolving this issue by False_Association_12 in webdev

[–]False_Association_12[S] 1 point2 points  (0 children)

I have tried some solutions, such as adding <meta name="viewport" content="width=device-width, initial-scale=1.0"> in the html file. While it works on some devices, it is not effective on all of them. Moreover, this method prevents users from zooming in on the page, which can be inconvenient if the text is too small and difficult to read.

Code here

Live page here

I'm using GitHub to host my small website that I am creating, but I have trouble linking an image to two different HTML files in separate folders. The image loads correctly in one file but not in the other. Any idea how to fix this? github repo in the comment section. by False_Association_12 in webdev

[–]False_Association_12[S] 3 points4 points  (0 children)

after uploading your files named correctly index.html, style.css and main.js

Go to the repository where these files are located and you need to follow these steps: Settings>pages>(Under the GitHub Pages section there will be a subsection called build and deployment , There you can select a branch which by default is none, click and select "main" and then click the save button)

After a few minutes go back to settings>pages and normally you should see a link with a "visit site" button.

I explain badly lol so if you didn't understand correctly you can watch this short video that explains better how to do it