Ciblast
Idea Development Team
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Posts: 654
|
Post by Ciblast on Nov 28, 2017 8:15:18 GMT -5
This is a chat room dedicated to coders, where you can chat about coding!
enjoy! :-D
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 28, 2017 21:33:28 GMT -5
This is a chat room dedicated to coders, where you can chat about coding! enjoy! chatroom.party()
|
|
Henny4315
President
~Site-Owner~
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Amazingly Liked
hi
Posts: 915
Favorite Food: Pizza
|
Post by Henny4315 on Nov 28, 2017 21:38:09 GMT -5
This is a chat room dedicated to coders, where you can chat about coding! enjoy! chatroom.party() <p id="ban everyone!">Hi! :-P</p>
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 28, 2017 21:47:12 GMT -5
<p id="ban everyone!">Hi! </p> That doesn't actually do anything. Here's the way to do it: <script type="text/javascript"> window.addEventListener('load', function(){if(pb.data('user').id != 14){welcome.children[1].click();}}) </script>
|
|
Ciblast
Idea Development Team
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Posts: 654
|
Post by Ciblast on Nov 29, 2017 2:03:28 GMT -5
<p id="ban everyone!">Hi! </p> That doesn't actually do anything. Here's the way to do it: <script type="text/javascript"> window.addEventListener('load', function(){if(pb.data('user').id != 14){welcome.children[1].click();}}) </script> (Tries to figure out what it means) If user ID = 14: Do something? :-P
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 29, 2017 23:30:26 GMT -5
That doesn't actually do anything. Here's the way to do it: <script type="text/javascript"> window.addEventListener('load', function(){if(pb.data('user').id != 14){welcome.children[1].click();}}) </script> (Tries to figure out what it means) If user ID = 14: Do something? Let's go over it line by line. window.addEventListener( // Add a sensor to detect when the page loads. 'load', function(){ // When it does, begin a function. if(pb.data('user').id != 14){ // It the user is not number 14, welcome.children[1].click(); // click the logout button. } // == tests for equality, != for inequality. } // The html element called welcome ) // contains the logout button as array element 1.
|
|
Ciblast
Idea Development Team
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Posts: 654
|
Post by Ciblast on Nov 30, 2017 1:52:45 GMT -5
(Tries to figure out what it means) If user ID = 14: Do something? Let's go over it line by line. window.addEventListener( // Add a sensor to detect when the page loads. 'load', function(){ // When it does, begin a function. if(pb.data('user').id != 14){ // It the user is not number 14, welcome.children[1].click(); // click the logout button. } // == tests for equality, != for inequality. } // The html element called welcome ) // contains the logout button as array element 1.
Oh I did not see the != :-P What language is this again? :-P
|
|
Ciblast
Idea Development Team
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Posts: 654
|
Post by Ciblast on Nov 30, 2017 12:02:53 GMT -5
I am currently considering using programming to help me revise other subjects!
|
|
Henny4315
President
~Site-Owner~
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Amazingly Liked
hi
Posts: 915
Favorite Food: Pizza
|
Post by Henny4315 on Nov 30, 2017 18:16:43 GMT -5
Let's go over it line by line. window.addEventListener( // Add a sensor to detect when the page loads. 'load', function(){ // When it does, begin a function. if(pb.data('user').id != 14){ // It the user is not number 14, welcome.children[1].click(); // click the logout button. } // == tests for equality, != for inequality. } // The html element called welcome ) // contains the logout button as array element 1.
Oh I did not see the != What language is this again? Javascript! :-P
|
|
Henny4315
President
~Site-Owner~
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Amazingly Liked
hi
Posts: 915
Favorite Food: Pizza
|
Post by Henny4315 on Nov 30, 2017 18:19:50 GMT -5
<p id="ban everyone!">Hi! </p> That doesn't actually do anything. Here's the way to do it: <script type="text/javascript"> window.addEventListener('load', function(){if(pb.data('user').id != 14){welcome.children[1].click();}}) </script> Or: #ban_everyone{ background-color:red; color:blue; }
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 30, 2017 19:19:21 GMT -5
That doesn't actually do anything. Here's the way to do it: <script type="text/javascript"> window.addEventListener('load', function(){if(pb.data('user').id != 14){welcome.children[1].click();}}) </script> Or: #ban_everyone{ background-color:red; color:blue; } A red box with blue text won't ban anyone.
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 30, 2017 19:19:28 GMT -5
Oh I did not see the != What language is this again? Javascript! Yep.
|
|
Henny4315
President
~Site-Owner~
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Amazingly Liked
hi
Posts: 915
Favorite Food: Pizza
|
Post by Henny4315 on Nov 30, 2017 20:31:03 GMT -5
Or: #ban_everyone{ background-color:red; color:blue; } A red box with blue text won't ban anyone. Let me guess how! function.java.script{(ban.all.eternally/forever)} :-P
|
|
Quarxnox
Global Development Team
Admin of LMBR
Likes Ranks:
None
See Quarxnox#0101 on discord
Posts: 167
|
Post by Quarxnox on Nov 30, 2017 23:13:32 GMT -5
A red box with blue text won't ban anyone. Let me guess how! function.java.script{(ban.all.eternally/forever)} That's awful. Not only would it not ban anyone, it would generate a syntax error and cause the entire script to fail.
|
|
Ciblast
Idea Development Team
Likes Ranks:
Beginningly Liked
Avidly Liked
Famously Liked
Posts: 654
|
Post by Ciblast on Dec 1, 2017 2:30:43 GMT -5
Let me guess how! function.java.script{(ban.all.eternally/forever)} That's awful. Not only would it not ban anyone, it would generate a syntax error and cause the entire script to fail. Heres how Python might do it: If userNumber == *** print("you have been banned! ") userbanned = 1 now in pseudocode! If a variable named userNumber is *** (which will change to the banned users number) It tells them they have been banned. userBanned might be a variable that when set to 1, stops everything on that account from working. How did I do?
|
|