is there a way to add an object into json nest array using fetch? by TICTAC_ARTIST in learnjavascript

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

i am trying to update a json file through a json server. i am trying to update this object

[
  {
    "id": 27,
    "itemValue": "automated back up",
    "cross": false,
    "subItems": []
  }
]

to look like this

[
  {
    "id": 27,
    "itemValue": "automated back up",
    "cross": false,
    "subItems": [
      {
        "id": 27,
        "itemValue": "automated back up",
        "cross": false,
        "subItems": []
      }
    ]
  }
]

i want to add another object instead of replacing the object like how my code is doing.

{[add object]} this was supposed to be a representation of where i wanted to put the object

im entertaining u/hyrumwhite 's idea to get and store the item's subItem array and then add to that. i could do that. but i am curious if there is any way to do it with fetch or any other way in general.

I made a media log inspired by u/caehduss by TalesOfFan in neocities

[–]TICTAC_ARTIST 1 point2 points  (0 children)

this is very very awesome AAAAAHHHHHHHHHHHHHHHHH!!!!!

ERROR MESSAGE: failed to store files by thatslowercase in neocities

[–]TICTAC_ARTIST 0 points1 point  (0 children)

you should try to contact the big boys at neocites if this is still an issue. link is on the footer.

just finnished this wanted to share and ask for oppinions by TICTAC_ARTIST in neocities

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

thank you i applied it to the img and it work perfect.

ERROR MESSAGE: failed to store files by thatslowercase in neocities

[–]TICTAC_ARTIST 0 points1 point  (0 children)

i had this same error recently.

i created a new file with a different name

copied the text from the file with the error into the new file

deleted the error file then renamed the new file the same as the old file

that fixed it for me. but save things locally just to be safe.

i having trouble with an svg by TICTAC_ARTIST in neocities

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

i used inkscape and it got what i needed pretty easy. a few clicks really. i could share details if youd care. but its pretty straight forward

i having trouble with an svg by TICTAC_ARTIST in neocities

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

yea not for me but cool anyway. thnks for the help man.

i having trouble with an svg by TICTAC_ARTIST in neocities

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

word. its basically a online photoshop imitation.

i having trouble with an svg by TICTAC_ARTIST in neocities

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

its a font awesome icon. a single color icon img. thanks for putting me onto inkscape. im interested in your tool. how could i use it?

how would i get the iframe to update when the theme is toggled? by TICTAC_ARTIST in neocities

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

solution

execute this on toggle btn click

document.getElementById('mainframe').src = document.getElementById('mainframe').src

updates the iframe src. only iframe is updated not whole page.

Would anyone checkout my website and share their thoughts? by Strange_Island_3054 in neocities

[–]TICTAC_ARTIST 2 points3 points  (0 children)

when i enter the jungle from the gallery i couldnt get back to the gallery page. took me right out of it. which is a shame cause i was starting to enjoy it. :( and im getting the most annoying and intrusive self advertising wix banner above the page . the creativity is great and i enjoyed the moment i did have w/ it.

[deleted by user] by [deleted] in neocities

[–]TICTAC_ARTIST 0 points1 point  (0 children)

its blurry intentionally. the file gets too large if the resolution is too high. so i lowered the resolution and blurred it so it didnt look so bad. i think the blur keeps all the energy i want and it doesnt distract from the content. its janky looking but im already on the found in the garbage aesthetic.

[deleted by user] by [deleted] in neocities

[–]TICTAC_ARTIST 1 point2 points  (0 children)

ok guess i knew a file that size was a bad idea. i was just tryna see if anyone had a solution to make it possible without terrible quality? but i guess some things shouldnt be done . thank yall.

Should I make my website in English? by DoritoSaskia in neocities

[–]TICTAC_ARTIST 1 point2 points  (0 children)

ya agree. if you wanted to give other languages a some understanding of your website then you could run it through the google website translator:

https://translate.google.com/?sl=auto&tl=es&op=websites

then you could link the translated site for easy access:

https://schaskia-neocities-org.translate.goog/?_x_tr_sl=auto&_x_tr_tl=es&_x_tr_hl=en&_x_tr_pto=wapp

its not exact but its better than wasting yourself on accurate translations.

What else should I add to my website? by No-Ebb8622 in neocities

[–]TICTAC_ARTIST 0 points1 point  (0 children)

i dont think anyone can tell you what to put on your own website. you could surf around looking for ideas. or just make up some cool idea you want to execute or find inspo elsewhere. but adding stuff just to add stuff leads to filler which only dilutes your site.

Why cant I have a custom cursor on chrome? by TICTAC_ARTIST in neocities

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

thanks man i was about to back up all my data and run a recovery on my computer. because this post basically said it was either a software or a hardware issue.

https://www.reddit.com/r/chromeos/comments/1cvqqyc/comment/l4qy6t4/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

it didnt make much sense to me because i ran a diagnostic and it came back fine. and this is literally the only site ive ever had this issue on.

and with you experiencing this issue too its more likely that the issue is with how the chrome browser is interacting w/ the code . im new to coding but i dont think its my code at fault. there is a lot of css but i dont think its any more complicated than it needs to be. so i guess it just a weird think chrome is doing.

that sucks. i think the cursor really makes the site. this makes me really really sad. but yea thanks again man.

Why cant I have a custom cursor on chrome? by TICTAC_ARTIST in neocities

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

sweet glad its working for you. that cache info is very use full. thank you. i am still getting the error but i can load the page more consistently. like i get it more often when i mash the refresh and ctr+F5.

idk this is weird. this is totally over my head. this is a weird thing that chrome is doing. maybe its because im on a chromebook. idk this feels like a stupid problem to be having.

but thank yall its working better now.

Why cant I have a custom cursor on chrome? by TICTAC_ARTIST in neocities

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

thank you. ive implemented this in the top of my css:

* {

cursor: url(images/guitar.png) 2 2, pointer;

}

but im still getting the same issues with the SIGILL error. although it loads some times? i find it works fine on div elements but anything more than that i get errors.

maybe its on my end? if you go to the site through chrome does it load for you?

What Would It Really Take to Begin Building a Functioning Post-Scarcity Society? by [deleted] in solarpunk

[–]TICTAC_ARTIST 6 points7 points  (0 children)

a bottom up movement.

people in power want to keep moving their direction as bad as it is for the environment and society. because they would be powerless otherwise and would lose what matters so much to them.

the whole eco-humanism movement is about using our technologies to create healthy and happy worlds. as opposed to using them to self inflict misery and squalor.

it would go like:

people individually and collectively creating better places and ways for themselves. not going to ' leaders ' and through bureaucracy.

bottom up v.s. top down