« first day (3792 days earlier)      last day (1150 days later) » 
00:00 - 17:0017:00 - 23:00

12:19 AM
 
 
4 hours later…
4:08 AM
@ShrekOverflow Congratulations? I hope you had some shares or something :D
 
woah @david!
haven't seen you around here in a while!
how's it going?
 
posted on March 04, 2021 by Geo Hsu

  The Beta channel has been updated to 89.0.4329.76 (Platform version: 13729.41.0) for most Chrome OS devices. This build contains a number of bug fixes, security updates and feature enhancements. Changes can be viewed here. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels? Find out how. You can sub

 
4:24 AM
please can someone help me embed the ddclick function inside this my jquery code
 
@KathrynBowner Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
hello is anybody in the house
 
trying ringing the doorbell
 
please are you good with jquery
hello
 
that's a weird doorbell
 
4:31 AM
where is the doorbell
 
|| welcome KathrynBowner
 
@KathrynBowner Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@JBis are you good in jquery?
 
Ask your question
 
am creating a project that deals with exchange, so i bulit a dropdown select option with image using the ddclick plugin now i cant blend the plugin into my jquery i dont know what am doingn wrong here is my jquery code
$(document).ready(function () {
  // some variables
$("#slick").ddslick({
width:"70%",
imagePosition:"left",
selectText:"Select your social network",
onSelected:function(data){
$("#selected").html(data.selectedData.value);
}
})

$("#slick2").ddslick({
width:"70%",
imagePosition:"left",
selectText:"Select your social network",
onSelected:function(data){
$("#selected").html(data.selectedData.value);
}
})
  var baseCurrency = 'BTC';

  var pay_amount = 1;

  var targetCurrency = 'ETH';

  var get_amount ;
 
4:34 AM
|| mcve
 
If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
jsfiddle.net and send
 
whats the issue? Seems to be working
 
is not the change function and the ddclick funtion is propagting properly
i want when the dropdown changes let the amount change as well
should i give you the right api key so that you can check and see what am saying
the ddslick function and the amount function isnt working properly
it works without the image in the dropdown but with image in the dropdown it seems not to work, kindly help me out
 
4:47 AM
Try the following
 onSelected: function(data) {
      $("#selected").html(data.selectedData.value);
      currencyConverter(baseCurrency, pay_amount, targetCurrency, get_amount) // add this for both
    }
 
@JBis it didnt work
 
what didn't work?
is it converting successfully when you change the number in the box?
 
@JBis the code didnt work , even the image in the dropdown didnt show up
 
well then you added it wrong
 
nope is not converting.. nothing even showed up
 
4:54 AM
add the currencyconverter line to each onSelected function
 
is this line of code wrongly placed in the code?
$("#crypto2").ddslick({
 
this is what your js should look like: jsfiddle.net/brek5mgy
 
should it be before or after the $("#crypto1").change(function () {
 
anyone i gtg, good luck o/
@KathrynBowner it should be in the onSelected callback of ddslick function
 
@JBis like this
$("#crypto1").ddslick({
    imagePosition: "left",
    selectText: "Bitcoin",
    onSelected: function(data) {
		$("#crypto1").change(function () {
      $("#selected").html(data.selectedData.value);
      currencyConverter(baseCurrency, pay_amount, targetCurrency, get_amount)
	  });
    }
  });
hello
 
5:38 AM
anybody home
is anybody here
 
@JBis going alright, stopped coming here cos it's pretty dead
how are you?
 
am good and you
 
i'm going well
 
@david are you good with javascript?
 
i'm okay
 
5:45 AM
can you help me get my code working
@david are you busy
 
hmm, your code is jquery... i haven't touched that in like 10 years
 
@david ok
 
i can't tell what your MVCE is trying to do
 
currency converter
 
 
1 hour later…
7:01 AM
@KathrynBowner Hi
 
@MRS1367 HI
 
Can I get your key to authenticate to your URL for checking?
 
key for ?
 
{"error":"Authentication failed."}
 
7:02 AM
https://coinlib.io/api/v1/coin?key=659b81f02b23b218&pref=ETH&symbol=BTC
 
I always face with the error I mentioned above...
 
https://coinlib.io/api/v1/coin?key=659b81f02b22b218&pref=ETH&symbol=BTC
that is the key
@MRS1367 use this key 659b81f02b22b218 at where you see 659b81f02b23b218
 
7:21 AM
@MRS1367 are you there
 
W8
I'm checking
 
7:37 AM
@KathrynBowner
Check this:
 
ok
let me check
 
//"#slick"
onSelected: function (data) {
  $("#selected").html((targetCurrency = data.selectedData.value));
  currencyConverter(
    baseCurrency,
    pay_amount,
    targetCurrency,
    get_amount
  );
},
//"#slick2"
onSelected: function (data) {
  $("#selected").html((baseCurrency = data.selectedData.value));
  currencyConverter2(
    baseCurrency,
    pay_amount,
    targetCurrency,
    get_amount
  );
},
You forgot to change variable after selection of dropdowns
So, your URL variables always had the initial data
@KathrynBowner It's OK?!
 
is not working
the .change( function() isnt in the corrected code you gave me
 
it didnt work
 
7:51 AM
error: "API rate limit reached. Limit will reset at the beginning of the next hour."
This is reason
 
did you test it to see if it was working
 
Yes
I tested it
 
ok
with image in the dropdown list it doesnt work but without image in the dropdown list is will work.. that is the problem am facing
i get it to work without image in the dropdown but with image in the dropdown it doesnt work, so my actual problem is that i need image to be in the dropdown list
thanks
 
You can change your key in URL and test it
The code works with Images too
 
8:11 AM
@MRS1367 is not working
 
you changed the key?
 
i used the main project key yet it is not working
 
w8 for 30 minutes
and I check it again
OK?
 
ok thanks
 
Till the rate limit for your test key expires.
 
8:15 AM
OK
@MRS1367 i think is working now, but it has changed all functioning code on my script, like i wanted the selected currency to be shown on the page like a summary and should always change whenever the dropdown value changes
 
@KathrynBowner It worked?
 
yes
but now i want the selected values to always change here Your BTC Balance
0 BTC
Your ETH Balance
0 ETH
 
8:31 AM
Ello!
 
Can you explain more?
 
i want if someone select LTC let it echo somewhere on the same page and it should alays change when something else is selected
 
Your code now change the amount each time the dropdowns is changed...
 
the amount is changing now.
but i need a summary where by every selected option should update on the summary invoice
 
You want to display a message to end-user when (s)he selects LTC option?
 
8:36 AM
yes
you see i have an invoice box by the side of the form , so i want everything the user select to update on the invoice which is somewhere on the same page
 
In the simplest way you can use alert()
Aha
 
i mean something like this
 $('#crypto1').change(function() {
               var baseCurrency = $("#selected").html((targetCurrency = data.selectedData.value));
			    var divobj2 = document.getElementById('crypto12');
                divobj2.value = baseCurrency;

           $("#crypto12").html($("#crypto12").val())
		  });
 
So, you must add a function for changing data and call it in onSelected events
 
is this correct
 
with passing needed parameters to it
 
8:39 AM
I have an odd question: when I post a question. How can I declare an experimental style setup and that shouldn't change, without the possibility of down votes?
 
@MRS1367 is this code correct
 
just create a sample in jsfiddle with your form, OK @KathrynBowner?
 
 $('#crypto1').change(function() {
               var baseCurrency = $("#selected").html((targetCurrency = data.selectedData.value));
			    var divobj2 = document.getElementById('crypto12');
                divobj2.value = baseCurrency;

           $("#crypto12").html($("#crypto12").val())
		  });
@MRS1367 ok
 
9:00 AM
@MRS1367 are u still with me
 
ok
on it
 
It worked?
@KathrynBowner
 
@MRS1367 the second crypto2 isnt updating
 
I write a sample for you
just check it and apply it on your code
 
9:14 AM
ok thanks
i love you so much for the help
 
I've added this codes:
$("#crypto13").html(baseCurrency);
            $("#crypto15").html(baseCurrency);
            $("#crypto15")
              .parent()
              .find("#result")
              .html($("#get_amount").val());
 
thanks
 
9:55 AM
Hey guys, quick question, Destructuring assignment with objects in javascript.
let { value } = .... object with value.

How do I reassign value once assigned from an object? it doesn't seem possible here
{ value } = .... object with value.
const obj = { value : 25 };
const obj2 = { value : 30 };
let = { value } = obj;
{ value } = obj2;
 
value = obj2.value
 
const obj = { value : 25 };
const obj2 = { value : 30 };
let = { value } = obj;
({ value } = obj2);
see developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… see the note, using destructuring without declaration needs additional paranthesis
 
Also, what's that first = doing in let = { value } = obj;?
 
@Cerbrus ¯\_(ツ)_/¯
it does work.. but can't find documentation why
 
The hell?
That's indeed weird.
Oh fuck...
It only works in sloppy mode. In strict mode it throws "SyntaxError: let is a reserved identifier"
|| function x () { const obj = {value: 42}; let = { value } = obj; console.log(value); console.log(let); } x();
|| status
 
10:11 AM
ah
 
makes sense
const obj = { value : 25 };
const obj2 = { value : 30 };
let { value } = obj;
({ value } = obj2);
 
I guess it makes as much sense as being able to use async and await as variables...
 
seems to be a compatibility thing with var (and similar sloppy mode, declaration without var)
var let = 42;
console.log(let);
works in firefox
let let = 42;
console.log(let);
does not
 
Syntactically var/let <assignmentName> = <assignmentValue>
Bet you can let a var, and var a let
 
10:17 AM
>> Error: unexpected token: keyword 'var'
javascript says no
 
you can only var a let for backwards compatibility. Otherwise if you have some code from 2000 with var let = 42 you'd get an error post ES6. But var var = 42 has always been an error, thus let var = 42 is also not accepted.
 
ahh backward compatibility, a blessing and a curse
 
Huh
Interesting
 
 
2 hours later…
12:10 PM
I think this is the lowest quality game Ive ever made: mistersircode.com/game
Thoughts?
I had to make a game in like 30 minutes
create improvised fake physics in that time limit
and this was the result
took 12 minutes to draw all the art, about 15 minutes to build the base game... and then spent the remaining minutes trying to revise and fix things
 
12:23 PM
@MisterSirCode it is something
@MisterSirCode The graphics are a little flat, I'm missing essential features like lootboxes, and I can't tell non-existent opponens that their mother <redacted> :D
 
@Cerbrus Well, I was originally going to make a snake clone, but I only had so much time
I didnt even have enough time to make a score function
if you apply #debug to the url, you can see the crappy fake physics
 
@MisterSirCode that was a joke
 
ah
Well, for a rushed game I only had half an hour to make
how is it?
People I asked the same question yesterday on discord rated 7/10
 
Considering you also created the graphics from nothing, pretty good for 30 min of work
 
yeah. Still wish I couldve fixed that issue with the ground and sky tiles with that little gap
I used exact math, but theres always a gap... so I was never able to solve that one
Thats why the player speed stays the same
because moveSpeed of 7 is as far as I could go without MASSIVE gaps in the ground floor
(Theres no gaps on some screen sizes, while there are on others... so oh well)
 
12:41 PM
@Cerbrus @makadev cheers guys. And thanks for the let var mindfuck
 
12:51 PM
@david Pretty good. Yeah we lost a couple more regulars but gained some other ones. Chats definitively dying a slow death.
@MisterSirCode its like the chrome dino one
 
@JBis burn it down
 
1:22 PM
@JBis That was the inspiration
 
1:42 PM
o/
 
2:32 PM
hello
 
Ellos
 
i want to use css to change the color of every other letter in an html element, any tips?
 
@LlamaButt do it with js
similir
8
A: How can I color specific letters in html element text?

dfsqYou can surely do it with javascript: var span = document.getElementById('phrase'), text = span.innerHTML.split('').map(function(el) { return '<span class="char-' + el.toLowerCase() + '">' + el + '</span>'; }).join(''); span.innerHTML = text; .char-e { color: re...

 
thx
how could i modify that code to make one class for every other character? I was thinking about using indexOf, but i realized that woulden't work.
 
2:51 PM
if index is even
 
ehh its too much trouble to have a cool every other letter animation on the h1, il just work on crap like that later
I'm working on a game in codeSandbox, anyone want to work with me on it?
 
3:47 PM
i would find such a feature annoying
 
4:15 PM
hey is there is a better way to create dynamic form using javascript than createing every single element like var div1 = document.createElement('div'); ?
than createing ever single element like var div1 = document.createElement('div');
then create and append every row , col , input, lable ... etc
to create 2 buttons in a single row i wrote a script of 50 lines
 
4:32 PM
@LoopingDev i mean you can abstract it by using a frontend library
 
4:53 PM
@LoopingDev Not to be blunt... but if it takes you 50 lines to draw two html buttons and a form... then youre doing something wrong
in 50 lines I can create an entire website boilerplate...
Could you share your code. Im curious as to why its so large
 
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ npm run dev
+ ~~~
    + CategoryInfo          : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
I installed npm but am getting this error when trying to run something
 
what distro / os?
 
Windows
Do I need to reboot after install? I thought with Chocoletey you didn't need to
 
Like a windows server? or just straight windows 10?
 
Windows 10
 
4:57 PM
@bigchungus That "you must restart to complete installation" crap mostly does nothing in most cases
Go to the search bar
search PATH
click on the "Edit system variables" thing that pops up
click "environment variables" in the window that comes up
tell me when youre there
 
00:00 - 17:0017:00 - 23:00

« first day (3792 days earlier)      last day (1150 days later) »