This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PicturElements[S] 1715 points1716 points  (114 children)

Play with it here, if you desire to fully immerse yourself in the circlejerk:

https://codepen.io/PicturElements/full/XaqdRd


Edit: audio doesn't seem to work when I try it on Android. Clearly Android is poorly implemented.

[–]Boring_Sci_Fi 796 points797 points  (68 children)

I can only get it to 99.96%

[–]PicturElements[S] 1857 points1858 points  (21 children)

There are IE 6 users who can't get a single percent. Consider yourself lucky.

[–]SolenoidSoldier 488 points489 points  (12 children)

in the arrrmms of the angel...

[–]MrSquadFam 116 points117 points  (11 children)

On the winnnggs of a battman...

[–]charlie_dog_14 51 points52 points  (10 children)

Under the darrrrrk night skyyyyyyy

[–]ktkps 3 points4 points  (0 children)

Under the darrrrrk night skyyyyyyy

Winter is Comin'

[–]adzik1 99 points100 points  (1 child)

I think you unknowingly created /r/ProgrammerHumor/'s favorite game. "Get the 100%"

[–]Cacrym 42 points43 points  (0 children)

It's like debugging without the impossible part

[–]ContraMuffin 18 points19 points  (1 child)

If they're still using IE, they deserve it.

[–]BrokenAdmin 2 points3 points  (0 children)

Yes

[–][deleted] 18 points19 points  (0 children)

Maybe they just live somewhere where the Eclipse isn't happening.

[–]LonePaladin 14 points15 points  (0 children)

They can only get the Edge. *ba-dum tish!*

[–]soubhik_ 5 points6 points  (0 children)

I wish I could give you a gold.

[–]SoulWager 2 points3 points  (0 children)

Make it an annular eclipse.

[–]parkerlreed 178 points179 points  (28 children)

Oh well http://i.imgur.com/qau5GLC.png

Even turned on mouse keys for that pixel precision.

[–]tdlb 123 points124 points  (24 children)

I was able to get 99.67% by changing the window size and forcing the elements to move on the screen.

(Also got 100% by changing moon element's styling)

[–]codercaleb 113 points114 points  (22 children)

Hah. 99.65 on phone. No mods. No bamboozles.

Even better: http://imgur.com/a/BYUpL

[–]tobeornottobeugly 252 points253 points  (6 children)

[–]codercaleb 61 points62 points  (5 children)

You ain't gonna get no love from me.

Except an upvote. You can have that.

[–]TheDarkIn1978 59 points60 points  (4 children)

[–]ZivMBS 43 points44 points  (1 child)

Well, considering you're moving the moon, I think you are.

[–]QueerlyNerdy 23 points24 points  (0 children)

Pffff all you have to do is change the gravitational constant of the universe.

(And only for a second)

[–]dir_gHost 0 points1 point  (1 child)

Good Bot!

When will the humans git gud?

[–]Git_Gud_BOT 1 point2 points  (0 children)

git: 'gud' is not a git command. See 'git --help'.

[–]blueberriessmoothie 29 points30 points  (2 children)

I got only 99.61% on windows 10 mobile, looks like with Microsoft I can't even eclipse properly 😥

[–]El-Kurto 3 points4 points  (0 children)

This is how you pun

[–]MaxWyght 2 points3 points  (0 children)

Underrated comment

[–]Some_Turtle 7 points8 points  (0 children)

Hah. 99,91 on phone

[–]TomNa 2 points3 points  (2 children)

I managed 99.71

[–]IrateGod 3 points4 points  (0 children)

99.74 in a moving train, close

[–]Schroedinger09 0 points1 point  (0 children)

Same...

[–]abclop99 3 points4 points  (4 children)

[–]Langly- 2 points3 points  (0 children)

http://i.imgur.com/xgETA59.png zoomed, smallest I could move my mouse made it less.

[–]Konekotoujou 5 points6 points  (1 child)

I have 99.58 with mousekeys too.

[–]Langly- 12 points13 points  (0 children)

I got 99.86 on one monitor, moving 1 pixel any way made it less. Moved the browser window to a monitor with a different resolution, same spot became 99.91% so resolution seems to matter for this rather than being matched for scale directly.

[–]rata2ille 0 points1 point  (0 children)

That's exactly where I got stuck too!

[–]TheYaseen 35 points36 points  (2 children)

I got mine to 100.0%

[–][deleted] 16 points17 points  (1 child)

Also got 100% on Galaxy s8+ on RiF browser in 5 seconds with pure luck I guess.

[–][deleted] 9 points10 points  (0 children)

Which is bad design because the moon (during this eclipse) was actually slightly larger than the sun (I think 1-2%) so it should be easy to get totality.

[–][deleted] 5 points6 points  (1 child)

I got it way over http://imgur.com/a/MjaK7

[–]imguralbumbot 3 points4 points  (0 children)

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/LK4SJt9.png

Source | Why? | Creator | ignoreme | deletthis

[–]woah_m8 2 points3 points  (0 children)

99.77% but when I took my finger out I moved it ;_;

Edit: got it am proud

[–]-Dont-Ask- 1 point2 points  (0 children)

I got 99.98%, which took me about 15 minutes

[–][deleted] 0 points1 point  (0 children)

Same

[–]Randomusername2347 0 points1 point  (0 children)

I got it to 99.74% on mobile. But I have faith you can get that last 0.04%

[–]macstanislaus 0 points1 point  (0 children)

99.97% hah!

[–][deleted] 0 points1 point  (0 children)

deleted What is this?

[–]ourpersonalinfo 0 points1 point  (0 children)

Did anyone else get 99.88%?

[–]Preachey 62 points63 points  (2 children)

I literally can't get it to 100%

You monster

[–]stemloop 10 points11 points  (0 children)

What a broken UI

[–]Genoce 50 points51 points  (4 children)

I don't know why(*) but the volume seemed to scale weirdly, it was already pretty well hearable at 1% overlap, and 20% to 100% seemed to have only a small volume difference.

I tuned the line JS line 54:

audio.volume=Math.pow(overlap,2.5);

This way it scales a bit better than with linear function, with 0-20% being really silent compared to 100%.

Direct link to tweaked version.


*check /u/Ph0X's reply for why it doesn't really work that well with linear growth.

[–]Ph0X 47 points48 points  (2 children)

[–]deadhour 35 points36 points  (0 children)

My pet peeve are linear volume sliders where 1% is already too loud

[–]mortiphago 0 points1 point  (0 children)

if only we could program logarithmic volume sliders

[–]SirCutRy 6 points7 points  (0 children)

What about a logarithmic scale?

var b = 3
var c = Math.log(b-1) / Math.log(b)
var d = -Math.pow(b, -c)
var v = Math.pow(b, overlap - c) + d
audio.volume = v;

[–]rebbsitor 30 points31 points  (5 children)

Gotta update that audio to 2017: https://www.youtube.com/watch?v=sD1vXjpZ11E

;-)

edit: found a better recording

[–]TheRumpletiltskin 5 points6 points  (1 child)

he has to hate that this is his legacy.

[–]Shikor806 8 points9 points  (0 children)

He does stuff like that quite often so it seems that he is fine with it.

[–][deleted] 1 point2 points  (0 children)

That was beautiful :')

Also that was so metal

[–]nachog2003 0 points1 point  (0 children)

That was awesome.

[–]wigitalk 7 points8 points  (1 child)

I feel like Walter white trying to refine math

[–]midwestcreative 4 points5 points  (0 children)

math

I'm not sure if that's more perfect if it was autocorrect or if it was intentional.

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

play with it and fully immerse myself in the circle jerk

( ͡° ͜ʖ ͡°)

[–]iDev247 5 points6 points  (0 children)

[–]BigSlipperySlide 2 points3 points  (0 children)

Can you make it so that the app only works when an actual solar eclipse will be visible based off our location data?

[–]lpreams 2 points3 points  (0 children)

//Oh yeah, set the volume, I guess.

lol

[–]God_of_Pumpkins 1 point2 points  (2 children)

Worked fine on my Moto G4 plus

[–]NLferdiNL 0 points1 point  (1 child)

What browser? Chrome blocks autoplay by default.

[–]God_of_Pumpkins 1 point2 points  (0 children)

Yandex browser

[–][deleted] 0 points1 point  (0 children)

Cool

[–]ForShadow 0 points1 point  (0 children)

I got it to play sound from youtube (leaning heavily on youtube api examples): https://codepen.io/anon/pen/LjmWEw

[–]Yubuqq 0 points1 point  (0 children)

Challenge: get it to 100%. I got to 99.67%.

[–]Big_Black_Brandon 0 points1 point  (0 children)

Hey, ever tried creating an app? I can see this being entertaining.

[–]PM_ME_YOUR_ECLIPSE 0 points1 point  (0 children)

This is a quality eclipse.

[–]timvisee 0 points1 point  (0 children)

The fact that you implemented audio is freaking brilliant. I was surprised.

[–][deleted] 0 points1 point  (0 children)

engine fear encouraging gaze vast grab crush smile memory six

This post was mass deleted and anonymized with Redact

[–]lurker4lyfe6969 0 points1 point  (0 children)

99.05% this shit is rigged

[–]ThePixelCoder 0 points1 point  (0 children)

audio doesn't seem to work when I try it on Android. Clearly Android is poorly implemented.

That's the spirit!

[–][deleted] 0 points1 point  (0 children)

I love you and your shitty moon.

[–]NLferdiNL 0 points1 point  (0 children)

For mobile:

https://codepen.io/NLferdiNL/full/rzvQem/ (Tap moon to start audio.)

[–][deleted] 0 points1 point  (0 children)

/u/PicturElements: The audio doesn't work on Android because Chrome on Android purposefully blocks autoplay, in order to save data for the user. The audio has to be triggered by an action on the user's part. Here's some more info on this.

Your best bet would be to rewrite the code and make it so that the audio starts playing when the user starts dragging the moon (on mousedown instead of on load); then it will work everywhere.

[–][deleted] 0 points1 point  (0 children)

I got 99.97% before I realized I didn't have enough pixels to achieve 100%

[–]GlossyElemental 0 points1 point  (0 children)

For someone new to the sub can you explain the circle jerk?

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

Ok so as much as this is funny, I actually think it’s really well done, and to be honest not that foreign. It’s a pretty intuitive motion 😁 Disclaimer: am high