Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Fernando
@lestairon

@Marmiz I don't anything of Back end yet

@lestairon yep :)
An API is different... you can create one for sure :)
How good are you at back end?

Markus Kiili
@Masd925
Browzniez are in space now?
Gersho
@Gersho
we're on forced diet
Fernando
@lestairon
Uh, i have a good idea for my Pen, but i don't know how can i do it
I'd like to have almost anything on the Html, and then add some things with Javascript, is that possible?
Ogundele Olumide
@Lumexralph
@Masd925 lol.... Good Morning
Fernando
@lestairon
Maybe using $(document)
Gersho
@Gersho
@lestairon you can give id to your html elements, and then modify them with $("#id").html("blabla") (or .append depending on your need)
but "when" do you want those changes to happen ? when the user clicks ? after some time ?
because if you simply put the code like that in your js it's gonna modify the content right away and the user will never how it looked before the modifications
Fernando
@lestairon
Can i put some empty html elements then modify it?
like <h1 id="number1"></h1>
Gersho
@Gersho
of course
that's often used
displaying result, stuff like that
Fernando
@lestairon
I have some ideas of how to do it, but i know many of them won't work
I'll try
Fernando
@lestairon
@Gersho I was talking about something like this
https://codepen.io/chriscoyier/pen/MwaXpq
Gersho
@Gersho
yeah, instad of "body" you use some element you gave an id
since you used append, you could (for exemple) have a button to get a new quote (by putting all that code inside a click event)
Fernando
@lestairon
Yeah, it's better to do it using ids, that way i can organize better my page, i think
Gersho
@Gersho
and it means you don't have do change everything, you can have your title in a <div>, and some other stuff in another
Fernando
@lestairon
I was thinking about either API or array, i think i'll use both
If the api is down i can get the quotes from the arrays
rafaelmonroy
@rafaelmonroy
hey guys just finished the JS part of my twitch api project but I am not sure if this user story is completed “I can click the status output and be sent directly to the Free Code Camp's Twitch.tv channel.” in the sample they give the user name is linked to the channel, I did the same in my app, but not sure if they wanted the the offline - online to be linked, which doesnt make too much sense now that I think about it but, just to be on the safe side, thought I’d ask one of you :wink: here is my pen (no design yet, just want to get a green light on the JS lol) https://codepen.io/rafaelmonroy/pen/xLewBM
Chris Cullen
@123xylem

$ heroku pg:promote postgresql-defined-86594
Ensuring an alternate alias for existing DATABASE_URL... !
! postgresql-defined-86594 is already promoted on
! quiet-depths-47005
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IM putting a WP site on HEROKU>

IM trying to promote a database on heroku... It tells me its already promoted... I wouldnt mind but last time i went with this the site kept giving me error 500 and i assumed it was because I didnt fix this part of the install.
Any Help?

Chris Juchtmans
@kjuchtmans
Goood mornin coders! :wave:

"JS Calculator" app :
Why is my JQuery not logging out an array with 1's when I click the 1 key of this calculator?
Here is my pen with html, css and JS

Any tips are welcome!
thanks, chris

Markus Kiili
@Masd925
@kjuchtmans Console.log is not inside the click callback.
console.log is only executed once after the document is ready.
Chris Juchtmans
@kjuchtmans

@Masd925 :hankey: beginners mistake, thanks Markus!
But then again, moving console.log() and my arr initalisation inside the callback fun still throws an undefined error in console:
'Uncaught ReferenceError: $ is not defined
at pen.js:243:1'

Code:

/* TAKE AWAY :
*/

$(function() {

    //array to hold all clicked values until result ( = ) is asked

    //add values of all clicked cells to an array
    $("#1").click(function(){
        var arr = [];
        arr.push(1);
        console.log(arr);
    });
});

modified pen here cheers

CamperBot
@camperbot
kjuchtmans sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
api offline
Markus Kiili
@Masd925
@kjuchtmans Initialization var arr = []; should be before the event handling code.
Markus Kiili
@Masd925
@kjuchtmans $ not defined, means that you have not enabled jQuery on codePen.
Chris Juchtmans
@kjuchtmans
haven't I?? let me look
@Masd925 Yaay ! the problem was me not using Codepen enough ; now I know one has to enable JQuery library from the external JS menu in Settings. Thanks again
CamperBot
@camperbot
kjuchtmans sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
api offline
Tiago Correia
@tiagocorreiaalmeida
For string s = "a(bc)de", the output should be
reverseParentheses(s) = "acbde". goodtime to user regex no?
a(bcdefghijkl(mno)p)q" but then I got this and no idea how im gonna do it :D

You have a string s that consists of English letters, punctuation marks, whitespace characters, and brackets. It is guaranteed that the parentheses in s form a regular bracket sequence.

Your task is to reverse the strings contained in each pair of matching parentheses, starting from the innermost pair. The results string should not contain any parentheses.

Example

For string s = "a(bc)de", the output should be
reverseParentheses(s) = "acbde".

Chris Juchtmans
@kjuchtmans

@tiagocorreiaalmeida Regex is mighty sweet and powerful to those who master it. I couldn't serve a solution to your q in a heartbeat, but may I refer you to this very meaty tutorial, written up by a compatriote of mine?

good luck!

Tiago Correia
@tiagocorreiaalmeida
thanks @kjuchtmans
CamperBot
@camperbot
tiagocorreiaalmeida sends brownie points to @kjuchtmans :sparkles: :thumbsup: :sparkles:
api offline
Chris Juchtmans
@kjuchtmans
...its the sort of reading material for long winter evenings, I admit
Simon Cordova
@gbsimon87
Hey all!
Gots a quick question...
I've got this website for which I can't seem to change the placeholder value at all for some reason, can anyone take a look?
Tiago Correia
@tiagocorreiaalmeida
sure