by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 14 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:38
    @bjorno43 banned @real-action
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
Jefferson
@jeffersonnnn
@hansUno2 yes yes
shameem fairooz
@sfshameem5
hansUno2
@hansUno2
@jeffersonnnn you have to read the directions on the twitter page, no API needed
Jefferson
@jeffersonnnn
@sfshameem5 thanks man. i appreciate
CamperBot
@camperbot
jeffersonnnn sends brownie points to @sfshameem5 :sparkles: :thumbsup: :sparkles:
:cookie: 310 | @sfshameem5 |http://www.freecodecamp.org/sfshameem5
hansUno2
@hansUno2
@sfshameem5 how are you calculating you expression with your calc app?
I tried it but could no get an answer
Jefferson
@jeffersonnnn
@hansUno2 could you show me directions to this page?
shameem fairooz
@sfshameem5
@hansUno2 Used eval() but it ain't recommended. Might have to create a function to validate expressions
hansUno2
@hansUno2
@jeffersonnnn
Jefferson
@jeffersonnnn
@hansUno2 so i went to the link and i am going through the javascript api end. The problem however is that i am building my app in React, not pure js
hansUno2
@hansUno2
@jeffersonnnn read this section--> "How to add a Tweet button to your websit". the link posted by @sfshameem5
@jeffersonnnn not sure how you would do it with react
@sfshameem5 are the numbers being displayed in an input element?
Javier Pons
@JavierPons
Hi there!
<html>
  <h1>Type a number between 1 - 10</h1>
  <form action="" name="form1">
    <input type="text" name="text" width="20px">
    <button onClick="init()">Press</button>
  </form>

</html>
var numb = Math.floor(Math.random() * 10 +1);

function init() {
  var inicio = document.form1.text.value;
  console.log("coge");
}

function check() {
  var count = 0;
  var acept = init();


   if(acept == numb) {
     showWin();
     count++;
   } else if( acept !== numb) {
             showError();
     count++;
   } else if((acept !== numb) && (count == 5 )) {
     showLoss();
     count++;
   }

}

function showWin() {
  console.log("gano!");
}

function showError() {
  console.log("perdio");
}

function showLoss() {

  console.log("mas de cinco veces, perdio");
}
hansUno2
@hansUno2
Hi
shameem fairooz
@sfshameem5
@hansUno2 A <div> element
Javier Pons
@JavierPons
is it function init() taking the value of the input?
some vision, if you can ...
hansUno2
@hansUno2
No
Claudio Restifo
@Marmiz
@JavierPons it's onclick in vanilla JS, onClick is general for react, vue and the other frameworks
hansUno2
@hansUno2
Document.form1.text is not defined as far as i can see
Javier Pons
@JavierPons
ok!
Claudio Restifo
@Marmiz
@JavierPons then to get the input value it's probably way easier to use getElementByID().value
Javier Pons
@JavierPons
you are right!
hansUno2
@hansUno2
@JavierPons yes. Or querySelector
You have to specify the elemen name , class, or id
Javier Pons
@JavierPons
:+1:
Javier Pons
@JavierPons
@Marmiz @hansUno2 thanks!
CamperBot
@camperbot
javierpons sends brownie points to @marmiz and @hansuno2 :sparkles: :thumbsup: :sparkles:
:cookie: 17 | @hansuno2 |http://www.freecodecamp.org/hansuno2
:star2: 1214 | @marmiz |http://www.freecodecamp.org/marmiz
Sundeep
@pidugusundeep
@camperbot thanks
CamperBot
@camperbot
pidugusundeep sends brownie points to @camperbot :sparkles: :thumbsup: :sparkles:
:star2: 3428 | @camperbot |http://www.freecodecamp.org/camperbot
Jefferson
@jeffersonnnn
hi guys, i need to know if there is a React implementation for the TweetButton feature of Twitter?
shameem fairooz
@sfshameem5
@Masd925 Would the math.js library be okay to use ? It has the math.eval() function which makes it easy
Markus Kiili
@Masd925
@sfshameem5 I think that you can use libraries like that. I would still try to do it first on my own.
shameem fairooz
@sfshameem5
@Masd925 I feel it a lot more difficult to do on my own.
Markus Kiili
@Masd925
@sfshameem5 It is, but then the project has a lot more value to it.
shameem fairooz
@sfshameem5
@Masd925 I'll do it on my own.
Dmytro Holysh
@dmk1111
Hi, guys!
Did anyone read book JavaScript for Kids ? What's your thoughts? Is it a good reading for beginner?
shameem fairooz
@sfshameem5
mustimuu
@mustimuu
Can someone help me?
i want to give my own class to a element in wordpress. How do i add my own class?
Abdus Samad
@asamad123
hi everyone
so i have this issue. I've got a navbar its set as display block, and when user scrolls it gets class addnav added. But the transition does not occure?
mustimuu
@mustimuu
can someone help me