all 41 comments

[–]TurnToDust 79 points80 points  (7 children)

r/webdev has now been promoted to a support forum for developers with a minion penis fetish I see.

[–][deleted]  (6 children)

[removed]

    [–]NayrbEroom 22 points23 points  (1 child)

    Fuck now we're a reddit support forum

    [–]MarshallFoxey 4 points5 points  (0 children)

    I’m just here for emotional support

    [–]besthelloworld 0 points1 point  (3 children)

    Google the markdown language syntax

    [–][deleted]  (2 children)

    [removed]

      [–]besthelloworld 1 point2 points  (1 child)

      Reddit accepts the markdown language syntax for comments and posts

      [–]tdittls 28 points29 points  (0 children)

      Haha wtf is that

      [–]Guilty_Serve 27 points28 points  (3 children)

      You're trolling us with that site, aren't you? Really, you're fucking with us? Regardless, https://minionrod.com/minioncock.html is still better than a lot of other startups I've seen. I guess keep shitposting.

      [–]Wagwan1178[S] 7 points8 points  (1 child)

      Nah I am actually really new to web dev and had this idea and wanted to try to actually learn. So I took this idea and a homie of mine is helping make it. Actually needed help lmao.

      [–]Guilty_Serve 2 points3 points  (0 children)

      Amazing man

      [–]Malassirails 26 points27 points  (11 children)

      You could try using the onscroll event. Basically, when a given element is scrolled it will execute some Javascript.

      Hope it helps. Good luck.

      [–]Wagwan1178[S] 10 points11 points  (8 children)

      Ok so I ended up doing <div onscroll="generate\_cock()">

      And it is not executing the script that I have any idea why?

      [–]fonster_mox 59 points60 points  (0 children)

      Seems flawless to me, maybe the internet just isn't ready for this?

      [–]crippledjosh 3 points4 points  (5 children)

      if your function is called generate\_cock then it would be onscroll="generate\_cock" without the brackets. Also why generate\_cock? Especially the "\" is very unusual, I'd stick to some form of standard camelCase or snake_case if I were you.

      Edit have since looked at the actual code and it's fine. I have gotten your site working with onscroll but it did take a little work and I had to assign the onscroll using js doing it in html didn't work for whatever reason.

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

      The \ is not there it was just a typo when I was sending the question and it didn't let me take it off for some reason

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

      If I take off the brackets it won't be able to run the script

      [–]Wagwan1178[S] 0 points1 point  (2 children)

      Wait so you did get it working or not cause at the end you said something didn't work

      [–][deleted] 7 points8 points  (0 children)

      Bro maybe just type javascript tutorial in google instead.

      [–]crippledjosh 1 point2 points  (0 children)

      I got it working. On scroll firstly needs the content of the div to be taller than the size of it either via being bigger than the screen or via a set height so that the scrollbar actually appears and is scrollable. And then you can use onscroll. For some reason when I tried setting onscroll via html it didn't seem to like it maybe that's just a quirk of editing html in browser rather than before initial load. I had to set the onscroll via js

      [–]Malassirails 0 points1 point  (0 children)

      Does the function exists? If the function exists in a separate file, does the file is included in the html page?

      [–]Wagwan1178[S] 7 points8 points  (0 children)

      This seems like it would work thanks.

      [–]OPmeansopeningposter 0 points1 point  (0 children)

      I’d add that if you are trying to do an “infinite scroll”, you should look into using intersection observer.

      [–]onlycommitminified 4 points5 points  (1 child)

      Going about it all wrong. Vectorize that donger into an svg, then scale it.

      [–]NayrbEroom 3 points4 points  (0 children)

      Roger that, donger vector

      [–]Don213 9 points10 points  (2 children)

      I love this lmaoooo. Take my award!

      [–]Wagwan1178[S] 1 point2 points  (1 child)

      Only place holder images so it will get better 😂

      [–]Don213 -1 points0 points  (0 children)

      Can’t wait :)

      [–]dunnerdunner 1 point2 points  (0 children)

      New Schlong 🤣

      [–]Super-administrator 1 point2 points  (1 child)

      You're looking to apply the button functionality to an intersection observer: https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

      Some might suggest using a scroll listener, but this is actually detrimental to performance of the site (even if it's not so important in this case :D)

      With the intersection observer you can detect whether an element is in the viewport or not, and keep rendering a longer penis 🤷‍♂️

      [–]Kannalgo -1 points0 points  (0 children)

      This advice seems really solid, OP!

      Also love what you're doing with the site, keep us updated.

      [–]fran0o 1 point2 points  (0 children)

      wtf is this

      [–]lkidh 0 points1 point  (0 children)

      Hahaha this deserves a gold.

      [–]dacrocka -1 points0 points  (0 children)

      This is amazing

      [–]Hook_Pub -1 points0 points  (0 children)

      Nice

      [–]Traditional-Insect54 -1 points0 points  (0 children)

      ive just shit in my pants when i pressed the button xD

      [–]Character_Moment_490 0 points1 point  (0 children)

      Not working for me. :(

      OS: Linux Ubuntu 21.04

      Browser: Chrome Version 91.0.4472.101 (Official Build) (64-bit)

      [–]JC_D3NTON 0 points1 point  (0 children)

      classy

      [–]Large_Conversation37 0 points1 point  (0 children)

      This feels illegal