Discuss Scratch

MrSherlockHolmes
Scratcher
500+ posts

Inspect Element-ed ideas

cheeseeater wrote:

nathanprocks wrote:

kvackkvack wrote:

Hey, anyone know why this doesn't work:
var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(r, g, b)' }) }, 1000);
You put the variable names inside the quotes. It should be like this:
var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(' + r + ',' + g + ',' + b + ')' }) }, 1000);
Lol, that's pretty cool!

Centred signature.
MrSherlockHolmes
Scratcher
500+ posts

Inspect Element-ed ideas

Does anyone have 5000+ posts?

Centred signature.
CatsUnited
Scratcher
1000+ posts

Inspect Element-ed ideas

MrSherlockHolmes wrote:

Does anyone have 5000+ posts?
Not a good idea to question about - the does anyone have 1000+ posts topic was closed.

bottom text
TheHockeyist
Scratcher
1000+ posts

Inspect Element-ed ideas

MrSherlockHolmes wrote:

Does anyone have 5000+ posts?
Well, I do.


DigiTechs
Scratcher
500+ posts

Inspect Element-ed ideas

CatsUnited wrote:

MrSherlockHolmes wrote:

Does anyone have 5000+ posts?
Not a good idea to question about - the does anyone have 1000+ posts topic was closed.

I don't know about you but I definitely have:
$("dl").each(function(){$(this).html($(this).html().replace(/\d+\+ posts/, "9001+ posts"))});

I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
dude341
Scratcher
1000+ posts

Inspect Element-ed ideas

 <div class="unsupported-browser banner" data-cue="unsupported_browser">
<div class="container">
<span>Scratch 9.0 is out. We suggest you upgrade.
</div>
</div>
It travels to the future.

Placeholder
kvackkvack
Scratcher
500+ posts

Inspect Element-ed ideas

MrSherlockHolmes wrote:

cheeseeater wrote:

nathanprocks wrote:

kvackkvack wrote:

Hey, anyone know why this doesn't work:
var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(r, g, b)' }) }, 1000);
You put the variable names inside the quotes. It should be like this:
var r;
var g;
var b;
setInterval(function() { r = Math.round(Math.random()*255); g = Math.round(Math.random()*255); b = Math.round(Math.random()*255); $('*').css({ 'color': 'rgb(' + r + ',' + g + ',' + b + ')' }) }, 1000);
Lol, that's pretty cool!
Thanks!
iwotastic
Scratcher
100+ posts

Inspect Element-ed ideas

$("div").wrap("<marquee>"); // Looks like a mess to me
How to kill any website without using
$("*").wrap("<marquee>");
andrewjcole
Scratcher
500+ posts

Inspect Element-ed ideas


CatsUnited
Scratcher
1000+ posts

Inspect Element-ed ideas

andrewjcole wrote:

Okay!

NOOOOOOOO

bottom text
ev3commander
Scratcher
500+ posts

Inspect Element-ed ideas

LOL Anagram mess

(looks like a mess to me!)

You won't be unknown anymore
My browser / operating system: Windows 7, Chrome 32.XX.XXXX.XX, Flash 12.0 (release 0)
My alternative browser / operating system: OS X 10.9.5, Safari 7, Flash 15.0 (release 0)
Reached 500+ on April 8, 2015
ChocolatePi
Scratcher
1000+ posts

Inspect Element-ed ideas

ev3commander wrote:

LOL Anagram mess

(looks like a mess to me!)
Something is wrong with your fonts. I recommend uninstalling any fonts you downloaded from the net that have the words “Helvetica” in them.
CatsUnited
Scratcher
1000+ posts

Inspect Element-ed ideas

ChocolatePi wrote:

ev3commander wrote:

LOL Anagram mess

(looks like a mess to me!)
Something is wrong with your fonts. I recommend uninstalling any fonts you downloaded from the net that have the words “Helvetica” in them.
That gives me an idea - Helvetica Comic Sans!

bottom text
CatsUnited
Scratcher
1000+ posts

Inspect Element-ed ideas

Post removed. Oh well, have a link

Last edited by CatsUnited (March 29, 2015 02:59:08)


bottom text
Zro716
Scratcher
1000+ posts

Inspect Element-ed ideas

$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');

everything is a rickroll

oh oh oh
$("div.post_body_html").remove();
$("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');

Last edited by Zro716 (March 29, 2015 04:42:14)


As a long time Scratcher, I have found new meaning to the name “Scratch”: for me, it means to “scratch that itch”, to come back again and again to realize new ideas in this toy language, even when I'm capable of creating my projects in real programming languages years later. It's a friend that helped me to pursue programming and get me to enjoy its fruit. I'm certain many others who have walked this path as well have grown fond of its importance in their life.
kvackkvack
Scratcher
500+ posts

Inspect Element-ed ideas

Zro716 wrote:

$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');

everything is a rickroll

oh oh oh
$("div.post_body_html").remove();
$("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');
i r8 rickroll/11
kvackkvack
Scratcher
500+ posts

Inspect Element-ed ideas

Calm down there, Scratch!
$("div.post_body_html").wrap('<img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTFYS4PWnjh9Lqbi39VkYW_BgeUbGv3RDKkCHLlFVh2HFS2bvrXDA" />');
$("div.postsignature").wrap('<img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTFYS4PWnjh9Lqbi39VkYW_BgeUbGv3RDKkCHLlFVh2HFS2bvrXDA" />');
cheeseeater
Scratcher
1000+ posts

Inspect Element-ed ideas

Zro716 wrote:

$("body").wrap('<a href="https://www.youtube.com/embed/dQw4w9WgXcQ">');

everything is a rickroll

oh oh oh
$("div.post_body_html").remove();
$("div.postmsg").wrap('<iframe width="420" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen>');
I started all of them at the same time and burnt out my 1 Mbps connection.
MrSherlockHolmes
Scratcher
500+ posts

Inspect Element-ed ideas


Ok, not an inspect element, but still nice :P

Last edited by MrSherlockHolmes (March 29, 2015 08:27:55)


Centred signature.
ev3commander
Scratcher
500+ posts

Inspect Element-ed ideas

Ok chocolatepi. I mean that look at the words and stuff.

You won't be unknown anymore
My browser / operating system: Windows 7, Chrome 32.XX.XXXX.XX, Flash 12.0 (release 0)
My alternative browser / operating system: OS X 10.9.5, Safari 7, Flash 15.0 (release 0)
Reached 500+ on April 8, 2015

Powered by DjangoBB