Click here to Skip to main content
15,125,273 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: sytax error unexcepted token Pin
OriginalGriff5-Oct-21 22:20
mveOriginalGriff5-Oct-21 22:20 
GeneralRe: sytax error unexcepted token Pin
Richard Deeming5-Oct-21 22:44
mveRichard Deeming5-Oct-21 22:44 
GeneralRe: sytax error unexcepted token Pin
OriginalGriff5-Oct-21 22:52
mveOriginalGriff5-Oct-21 22:52 
Questiondata import via API Pin
Francesco Reboldi23-Sep-21 20:28
MemberFrancesco Reboldi23-Sep-21 20:28 
AnswerRe: data import via API Pin
Afzaal Ahmad Zeeshan24-Sep-21 0:47
mveAfzaal Ahmad Zeeshan24-Sep-21 0:47 
GeneralRe: data import via API Pin
Afzaal Ahmad Zeeshan24-Sep-21 5:11
mveAfzaal Ahmad Zeeshan24-Sep-21 5:11 
GeneralRe: data import via API Pin
Francesco Reboldi24-Sep-21 6:13
MemberFrancesco Reboldi24-Sep-21 6:13 
GeneralRe: data import via API Pin
Francesco Reboldi25-Sep-21 7:26
MemberFrancesco Reboldi25-Sep-21 7:26 
hello, why the number that I recover in the object is not written in H1 ??? I do not understand, I do not understand even why the number I recover in object I cannot round it with .toFixed (3) and then write it in H1


HTML
<pre><!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
    <script>
      const intervalTime = 10 * 1000;
     const container = document.getElementsByClassName("u-text u-text-palette-3-base u-title u-text-3");
    const endpoint =
      "https://api.adalo.com/v0/apps/3c14481f-42d8-4944-b7a8-80ca77c16b91/collections/t_e0fz278ravbshx11g4iq7w1j0?offset=0&limit=unlikely";
    function onInterval() {
      fetch(endpoint, {
        method: "GET",
        headers: { Authorization: "Bearer cbqm69e5q48tl8v3gava0fjv6" }
      })
        .then((res) => res.json())
        .then((data) => {
          const candleData = data.records.map((a) => {
            return{
              close: (a.close)

            };
          });

          const lastClose = candleData[candleData.length - 1];
        console.log(lastClose);
        });

      }

      onInterval();
      window.setInterval(onInterval, intervalTime);
  </script>

  </head>
  <body>
    <h2><p class="u-text u-text-palette-3-base u-title u-text-3"></p>
    </h2>


  </body>
</html>


QuestionRegex not keeping the . or decimal with currency value with keydown event. Pin
jkirkerx23-Sep-21 10:06
professionaljkirkerx23-Sep-21 10:06 
AnswerRe: Regex not keeping the . or decimal with currency value with keydown event. Pin
Member 1532961323-Sep-21 10:32
MemberMember 1532961323-Sep-21 10:32 
GeneralRe: Regex not keeping the . or decimal with currency value with keydown event. Pin
jkirkerx23-Sep-21 10:39
professionaljkirkerx23-Sep-21 10:39 
GeneralRe: Regex not keeping the . or decimal with currency value with keydown event. Pin
Member 1532961324-Sep-21 2:07
MemberMember 1532961324-Sep-21 2:07 
AnswerRe: Regex not keeping the . or decimal with currency value with keydown event. Pin
jkirkerx29-Sep-21 13:19
professionaljkirkerx29-Sep-21 13:19 
GeneralRe: Regex not keeping the . or decimal with currency value with keydown event. [Perhaps Solved] Pin
jkirkerx29-Sep-21 14:18
professionaljkirkerx29-Sep-21 14:18 
QuestionHow does the compare function work with numerical sort? Pin
Ryan Blake 202126-Aug-21 16:51
MemberRyan Blake 202126-Aug-21 16:51 
AnswerRe: How does the compare function work with numerical sort? Pin
Peter_in_278026-Aug-21 19:22
professionalPeter_in_278026-Aug-21 19:22 
GeneralRe: How does the compare function work with numerical sort? Pin
Ryan Blake 202128-Aug-21 14:45
MemberRyan Blake 202128-Aug-21 14:45 
QuestionBrowser Side Recovery Pin
milo-xml3-Aug-21 10:06
professionalmilo-xml3-Aug-21 10:06 
AnswerRe: Browser Side Recovery Pin
Richard Deeming4-Aug-21 0:48
mveRichard Deeming4-Aug-21 0:48 
GeneralRe: Browser Side Recovery Pin
milo-xml4-Aug-21 4:20
professionalmilo-xml4-Aug-21 4:20 
Questioni have been learning javascript for a long time now but still dont know what to build Pin
samuel unachukwu23-Jul-21 23:47
Membersamuel unachukwu23-Jul-21 23:47 
AnswerRe: i have been learning javascript for a long time now but still dont know what to build Pin
SeeSharp226-Jul-21 9:51
MemberSeeSharp226-Jul-21 9:51 
AnswerRe: i have been learning javascript for a long time now but still dont know what to build Pin
Bohdan Stupak30-Jul-21 5:10
professionalBohdan Stupak30-Jul-21 5:10 
AnswerRe: i have been learning javascript for a long time now but still dont know what to build Pin
Mate Peric5-Aug-21 15:35
MemberMate Peric5-Aug-21 15:35 
Questionwhat to study after javascript? Pin
E-FANIE Rh19-Jul-21 10:16
MemberE-FANIE Rh19-Jul-21 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.