« first day (3932 days earlier)      last day (1007 days later) » 

user6499132
12:08 AM
An issue I am having with this code is that absolute positioning is not working the .wrap div class.

jsfiddle.net/v3rn4tf0

.wrap {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  border: 3px solid red;
  box-sizing: border-box;
}

i.imgur.com/3mL8OE1.png
 
user6499132
You click on it and it opens up.
 
user6499132
Does anyone on here know what I am doing wrong, and how this is fixed?
 
user6499132
I am not really sure what I am doing wrong.
 
user6499132
It's supposed to be in the middle, not centered to the top.
 
12:45 AM
Have anyone accessed Zoom's API with JavaScript?
 
1:21 AM
 
 
2 hours later…
3:06 AM
react-hook-form is one of the most god damn annoying things i've used
how is error message an "advanced" feature for a freakin form library
 
 
7 hours later…
10:07 AM
hmm is anyone versed enough with Objection? To know how to print all queries it performs?
 
10:18 AM
hi friens
REACT question:
      createSlider(){

        this.slider = document.getElementById("test-slider");
        window.noUiSlider.create(this.slider, {
          start: [0],
          connect: true,
          step: 1,
          orientation: "horizontal", // 'horizontal' or 'vertical'
          range: {
            min: -100,
            max: 100,
          },
          format: window.wNumb({
            decimals: 0,
          }),
        });
}
in render() I have this:
      <div className="notVisible" id="test-slider"></div>
now when should I call the createSlider() so that it actually finds the #test-slider? because .notVisible class is setting display:none; and because of that the slider initialation does not work (no errors, but there is no slider)
 
uhhh createSlider sounds as if it directly creates a dom element?
declarative programming like react says you should never do that. You're basically sidestepping/getting out of react when you do that.
 
10:35 AM
hmm @paul23 yeah it feels bad what I am doing
but I have no idea how to do it otherwise
hmm I'm trying something maybe its solving it wait
 
10:57 AM
I'd have to look at the big picture
But generally it wis something declarative like:
<div className="notVisible" id="test-slider">
    <Slider
        start={[0]}
        connect={true}
        step={1}
        orientation={'horizontal'}
        range={{min: -100, max: 100}}
        format={window.wNumber({decimals: 0})}
    />
</div>
but then it expects `Slider to be a react (type/like) class
If you have that react will automatically (that's what react is for) rerender <Slider> component once the className changes - though obviously you have made it constant notVisible you could do something like:
function MySliderWithActivation(props) {
    const [isVisible, setIsVisible] = React.useState(false);
    return <div>
        <button onclick={() => setIsVisible(!isVisible)}>make visible</button>
        <div className={isVisible ? "" : "notVisible"} id="test-slider">
            <Slider
                start={[0]}
                connect={true}
                step={1}
                orientation={'horizontal'}
                range={{min: -100, max: 100}}
                format={window.wNumber({decimals: 0})}
But I have no idea what slider is and what it should do
 
 
4 hours later…
3:00 PM
o/
I am currently using the following method to count the values for the day Thursday in the current week and append it to the HTML below my table
 function updateTotThurCount(totalCountThur, Day, Date, Days){
                  if (moment(Day.Date).isSame(currThursday)) {
                    switch (Day.Status) {
                            case 'P': totalCountThur.P++; break;
                            case 'TW': totalCountThur.TW++; break;
                            case 'NR': totalCountThur.NR++; break;
                            case 'TRV': totalCountThur.TRV++; break;
                            case 'PTO': totalCountThur.PTO++; break;
I use the following for each day, but I have another function where if the user searches with the datepicker to a previous week, it will count all values for that week and display under the table.
function updateTotSearchCount(totalCountSearch, Day, Date, Days){
                  if (moment($('#dpicker').val()).isBetween(searchMon, searchFri)) {
                    switch (Day.Day) {
                            case 'Monday':
                            totalCountSearch.P++;
                            totalCountSearch.TW++;
														totalCountSearch.NR++;
                            totalCountSearch.TRV++;
                            totalCountSearch.PTO++;
                            totalCountSearch.H++;
This is the last piece of functionality I need for this table, and I am having the hardest time figuring it out
 
3:58 PM
yo
 
@mitsu 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.
 
someone has a method to filter an html table according to the name of a column (table> thead> th) x/
I started but I didn't know how to finish ><
 
 
1 hour later…
5:07 PM
@mitsu got a fiddle?
 
5:21 PM
How to propagate results of each promise to the next promise in Promise.all()?
 
@VishnuManikantan 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.
 
when i fill 'da' for 'dan' for example, and i check 'Département' i need to show the row concerned by 'Département' ie :
ZARTHAUD Nathalie twitter | Mark | Otto | @mdo | 1 | Dan | Otto | @mdo
@BeerusDev hope its clear ><
 
6:30 PM
morn o/
 
!!hi
 
Hello
 
6
Q: Print complete SQL for all queries made by objection.js

Eugene KimI'm looking for a way to capture the raw SQL for all the queries that the Objection.js library executes with the bindings interpolated into the SQL string. I realize that there's a Knex event handler that I can take advantage of but the second argument to the on('query', data) is an object contai...

 
7:22 PM
@JBis Hey man I am back. I whipped something that somewhat solves the problem that we were discussing yesterday. However it my fails for some edge cases(I have test cases that I constantly rerunning to see if these edge cases have been covered). It is little bit big so I placed it in a pastebin and would like for you to look over it if you can. pastebin.com/nxXkjNnR
 
7:35 PM
@LuisAverhoff what edge cases are failing?
 
One edge case is that it adds a comma at the end if we have a root node that has two child nodes with one of the child nodes being empty.
 
it's hard to help without an mcve
|| mcve
 
We have troubles to understand and/or reproduce your problem(s). Please create a Minimal, Reproducible example which allows us to understand it better.
 
Ok I'll try to create a jsfiddle
 
 
2 hours later…
9:41 PM
Hello, everybody1
 
@VadimOrlov212 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.
 
JamesBot, thanks your guid.
 
!!hi
 
Hello
 
Hello!
Nice to meet you.
I'll do best for you. Thanks.
How about Next.js?
 
9:50 PM
i don't use pre-determined stacks
 
hi I learn javascript - since 16 years. I am a beginner.
13
lost 10h today
0
Q: Why is my variable defined in useEffect elsewhere undefined in react?

SuisseI try to implement a modal from materializecss into my react app: const ModalCardMetrics = (props) => { let modalInstance; let modalBox = useRef(); useEffect(()=>{ modalInstance = window.M.Modal.init(modalBox.current, {})[0]; },[]) const openModal = ()=>{ modalInst...

 
10:52 PM
@VadimOrlov212 what about it? it's very good for what it does imo
@Suisse this is less about js and more about react
take a look at the docs
 
11:24 PM
@JBis gracias, I am learning by doing
haha
 

« first day (3932 days earlier)      last day (1007 days later) »