Ganz allgemein geht es darum einen Wert, von einer offiziellen Webseite zu entnehmen und auf meiner eigenen Webseite wieder auszugeben.
Speziell geht es mir um den aktuellen Kurs einer Kryptowährung.
Code
<style>
body{
width:100;
}
#k_update{
font-size:70%;
opacity:0.6;
padding-top:10px;
padding-left:10px;
}
.k_column{
border-bottom: 1px solid #CCCCCC;
padding:10px;
font-size:90%;
font-weight:300;
}
.k_up{
color:green;
}
.k_down{
color:red;
}
#output{
border-radius: 4px;
background: transparent;
width:100%;
border: 3px solid #CCCCCC;
font-family: Arial;
font-size: 150%;
color: #000000;
}
.k_column.small{
font-size:10px;
}
</style>
<div id="kryp" style="display:flex">
<div id="kryptoapp"></div>
<div id="output"></div>
<script>
var alles=["1IN (1IN)","1INCH (1INCH)","1ST (1ST)","20B (20B)","20D (20D)","20E (20E)","20U (20U)","256 (256)","1337 (1337)","2015 (2015)","2BT (2BT)","404 (404)","4ART (4ART)","8Bit (8BIT)","9BT (9BT)","9ET (9ET)","9US (9US)","AAA (AAA)","AAB (AAB)","AAPL (AAPL)","AAV (AAV)","AAVE (AAVE)","ABBC (ABBC)","ABT (ABT)","ABYSS (ABYSS)","ACA (ACA)","ACD (ACD)","ACES (ACES)","ACID (ACID)","ACM (ACM)","ACT (ACT)","ACXT (ACXT)","ADAF0 (ADAF0)","ADAUP (ADAUP)","ADC (ADC)","ADD (ADD)","ADEL (ADEL)","ADK (ADK)","ADT (ADT)","ADX (ADX)","AE (AE)","AEB (AEB)","AECC (AECC)","AEO (AEO)","AER (AER)","AERGO (AERGO)","AET (AET)","AGI (AGI)","AGRI (AGRI)","AI (AI)","AIB (AIB)","AID (AID)","AIM (AIM)","AION (AION)","AKN (AKN)","AKR (AKR)","AKRO (AKRO)","AL (AL)","ALBT (ALBT)","ALG (ALG)","ALGO (ALGO)","ALI (ALI)","ALICE (ALICE)","ALL (ALL)","ALP (ALP)","ALPHA (ALPHA)","ALTC (ALTC)","AMB (AMB)","AMC (AMC)","AMM (AMM)","AMPF0 (AMPF0)","AMS (AMS)","AMZN (AMZN)","ANA (ANA)","ANAL (ANAL)","ANK (ANK)","ANKR (ANKR)","ANO (ANO)","ANU (ANU)","API3 (API3)","APM (APM)","APP (APP)","APPC (APPC)","APT (APT)","AR (AR)","ARCO (ARCO)","ARD (ARD)","ARDR (ARDR)","ARE (ARE)","ARK (ARK)","ARM (ARM)","ARN (ARN)","ARP (ARP)","ARPA (ARPA)","ARR (ARR)","ART (ART)","ARTA (ARTA)","ASAFE (ASAFE)","ASP (ASP)","ASR (ASR)","AST (AST)","AT (AT)","ATB (ATB)","ATM (ATM)","ATO (ATO)","ATOM (ATOM)","ATR (ATR)","ATU (ATU)","AUC (AUC)","AUDIO (AUDIO)","AUM (AUM)","AUS (AUS)","AUT (AUT)","AUTO (AUTO)","AV (AV)","AVA (AVA)","AVAX (AVAX)","AVE (AVE)","AVT (AVT)","AXG (AXG)","AXIOM (AXIOM)","AXP (AXP)","AXS (AXS)","AYA (AYA)","AZ (AZ)","Adzcoin (ADZ)","Aeon (AEON)","Agoras Tokens (AGRS)","Aragon (ANT)","ArtByte (ABY)","Augur (REP)","Australian Dollar (AUD)","B2 (B2)","B21X (B21X)","B3 (B3)","BA (BA)","BAB (BAB)","BABA (BABA)","BAC (BAC)","BAKE (BAKE)","BAL (BAL)","BAN (BAN)","BAND (BAND)","BASH (BASH)","BAT (BAT)","BATL (BATL)","BBB (BBB)","BBC (BBC)","BBH (BBH)","BBT (BBT)","BCD (BCD)","BCHA (BCHA)","BCHC (BCHC)","BCHN (BCHN)","BCHSV (BCHSV)","BCHUP (BCHUP)","BCP (BCP)","BCPT (BCPT)","BDC (BDC)","BDG (BDG)","BDP (BDP)","BEAM (BEAM)","BEAR (BEAR)","BEE (BEE)","BEEP (BEEP)","BEEZ (BEEZ)","BEL (BEL)","BER (BER)","BERNcash (BERN)","BES (BES)","BEST (BEST)","BET (BET)","BETH (BETH)","BF (BF)","BFT (BFT)","BGBP (BGBP)","BID (BID)","BIDR (BIDR)","BIFI (BIFI)","BILI (BILI)","BIRD (BIRD)","BIT (BIT)","BITON (BITON)","BIZ (BIZ)","BKRW (BKRW)","BLRY (BLRY)","BLU (BLU)","BLY (BLY)","BLZ (BLZ)","BM (BM)","BMC (BMC)","BMH (BMH)","BMI (BMI)","BNB (BNB)","BNBUP (BNBUP)","BNK (BNK)","BNT (BNT)","BNTX (BNTX)","BOA (BOA)","BOMB (BOMB)","BOND (BOND)","BORA (BORA)","BOS (BOS)","BOSS (BOSS)","BOT (BOT)","BOX (BOX)","BQX (BQX)","BRAIN (BRAIN)","BRAT (BRAT)","BRDD (BRDD)","BRG (BRG)","BRZ (BRZ)","BS (BS)","BSC (BSC)","BST (BST)","BSTK (BSTK)","BTCB (BTCB)","BTCF0 (BTCF0)","BTCO (BTCO)","BTCR (BTCR)","BTCRY (BTCRY)","BTCST (BTCST)","BTCU (BTCU)","BTCUP (BTCUP)","BTCV (BTCV)","BTD (BTD)","BTE (BTE)","BTN (BTN)","BTP (BTP)","BTSE (BTSE)","BTT (BTT)","BTX (BTX)","BTZ (BTZ)","BUB (BUB)","BULL (BULL)","BUS (BUS)","BUSD (BUSD)","BUZZ (BUZZ)","BVC (BVC)","BVND (BVND)","BVOL (BVOL)","BWF (BWF)","BWX (BWX)","BXT (BXT)","BYND (BYND)","BYT (BYT)","BZR (BZR)","BZRX (BZRX)","Bata (BTA)","BigUp (BIGUP)","BitBar (BTB)","BitBean (BITB)","BitShares (BTS)","Bitcoin (BTC)","Bitcoin Cash (BCH)","Bitcoin Gold (BTG)","Bitcoin Plus (XBC)","Bitcoin SV (BSV)","Bitcoin Unlimited (BTU)","Bitmark (BTM)","BlackJack (JACK)","Blackcoin (BLK)","Blocknet (BLOCK)","Bolivarcoin (BOLI)","Brazilian Real (BRL)","British Pound Sterling (GBP)","Burst (BURST)","Byteball (GBYTE)","Bytecoin (BCN)","C0C0 (C0C0)","C20 (C20)","CAE (CAE)","CAID (CAID)","CAK (CAK)","CAKE (CAKE)","CAMP (CAMP)","CAU (CAU)","CB (CB)","CBC (CBC)","CBT (CBT)","CC (CC)","CCB (CCB)","CCE (CCE)","CD (CD)","CDT (CDT)","CEA (CEA)","CEB (CEB)","CEL (CEL)","CELO (CELO)","CELR (CELR)","CEN (CEN)","CET (CET)","CEU (CEU)","CF (CF)","CFC (CFC)","CFX (CFX)","CGLD (CGLD)","CGT (CGT)","CH (CH)","CHA (CHA)","CHAT (CHAT)","CHB (CHB)","CHE (CHE)","CHESS (CHESS)","CHOOF (CHOOF)","CHP (CHP)","CHR (CHR)","CHRG (CHRG)","CHS (CHS)","CHU (CHU)","CHZ (CHZ)","CKB (CKB)","CLO (CLO)","CLR (CLR)","CLT (CLT)","CLUB (CLUB)","CLUD (CLUD)","CMC (CMC)","CMT (CMT)","CND (CND)","CNH (CNH)","CNHT (CNHT)","CNN (CNN)","CNNC (CNNC)","CNS (CNS)","CNTM (CNTM)","CNX (CNX)","COC (COC)","COCOS (COCOS)","COIN (COIN)","COM (COM)","COMBO (COMBO)","COMP (COMP)","CONX (CONX)","CORN (CORN)","COS (COS)","COSM (COSM)","COT (COT)","COTI (COTI)","COV (COV)","COVER (COVER)","CPA (CPA)","CPT (CPT)","CRAVE (CRAVE)","CRC (CRC)","CRD (CRD)","CREAM (CREAM)","CRIME (CRIME)","CRM (CRM)","CRNK (CRNK)","CRO (CRO)","CRON (CRON)","CRP (CRP)","CRV (CRV)","CRW (CRW)","CRX (CRX)","CRY (CRY)","CS (CS)","CTC (CTC)","CTK (CTK)","CTSI (CTSI)","CTXC (CTXC)","CUDOS (CUDOS)","CUR (CUR)","CUS (CUS)","CUSD (CUSD)","CUSDT (CUSDT)","CUT (CUT)","CVC (CVC)","CVP (CVP)","CVT (CVT)","CX (CX)","CYC (CYC)","CZECO (CZECO)","Cabbage Unit (CAB)","Canadian Dollar (CAD)","CannabisCoin (CANN)","Capricoin (CPC)","Cardano (ADA)","Clams (CLAM)","ClearingHouse (XCH)","Cloakcoin (CLOAK)","Coin2.1 (C2)","CrevaCoin (CREVA)","Curecoin (CURE)","DA (DA)","DADI (DADI)","DAG (DAG)","DAI (DAI)","DAP (DAP)","DAPP (DAPP)","DAS (DAS)","DASHS (DASHS)","DAT (DAT)","DATA (DATA)","DAV (DAV)","DAWN (DAWN)","DAY (DAY)","DBG (DBG)","DBI (DBI)","DBLK (DBLK)","DBT (DBT)","DBTC (DBTC)","DC (DC)","DCK (DCK)","DCN (DCN)","DCRE (DCRE)","DCT (DCT)","DCYP (DCYP)","DDA (DDA)","DDR (DDR)","DEA (DEA)","DEC (DEC)","DECR (DECR)","DEGO (DEGO)","DEN (DEN)","DENT (DENT)","DEO (DEO)","DEP (DEP)","DET (DET)","DETH (DETH)","DEXE (DEXE)","DEXT (DEXT)","DF (DF)","DFI (DFI)","DFT (DFT)","DGCS (DGCS)","DGMS (DGMS)","DGORE (DGORE)","DGT (DGT)","DGX (DGX)","DHT (DHT)","DIA (DIA)","DIC (DIC)","DICE (DICE)","DIRT (DIRT)","DISK (DISK)","DIT (DIT)","DKC (DKC)","DLISK (DLISK)","DLT (DLT)","DMT (DMT)","DNA (DNA)","DNT (DNT)","DOCK (DOCK)","DOD (DOD)","DODO (DODO)","DOG (DOG)","DOS (DOS)","DOT (DOT)","DOTF0 (DOTF0)","DOTUP (DOTUP)","DOV (DOV)","DOX (DOX)","DPAY (DPAY)","DRACO (DRACO)","DRB (DRB)","DREP (DREP)","DRG (DRG)","DRGN (DRGN)","DRM (DRM)","DROP (DROP)","DRT (DRT)","DRU (DRU)","DRZ (DRZ)","DTA (DTA)","DUO (DUO)","DUS (DUS)","DUSK (DUSK)","DUST (DUST)","DXC (DXC)","DXT (DXT)","DarkGoldCoin (DGD)","Dash (DASH)","Decred (DCR)","Destiny (DES)","Deutsche eMark (DEM)","DigiCube (CUBE)","Digibyte (DGB)","DigitalNote (XDN)","Dimecoin (DIME)","Dogecoin (DOGE)","DubaiCoin (DBIC)","EA (EA)","EAGS (EAGS)","EAS (EAS)","EASY (EASY)","EBT (EBT)","ECB (ECB)","ECELL (ECELL)","ECN (ECN)","ECOC (ECOC)","ECU (ECU)","EDG (EDG)","EDIT (EDIT)","EDO (EDO)","EDRC (EDRC)","EDRCoin (EDR)","EEO (EEO)","EEP (EEP)","EET (EET)","EEX (EEX)","EGLD (EGLD)","EGO (EGO)","EKO (EKO)","ELA (ELA)","ELAMA (ELAMA)","ELE (ELE)","ELF (ELF)","EMB (EMB)","EMPC (EMPC)","EMR (EMR)","EMT (EMT)","ENG (ENG)","ENJ (ENJ)","ENT (ENT)","EOS (EOS)","EOSDT (EOSDT)","EOSF0 (EOSF0)","EOSUP (EOSUP)","EPC (EPC)","EPS (EPS)","EPV (EPV)","EQUAL (EQUAL)","ERB (ERB)","ERD (ERD)","ERK (ERK)","ERT (ERT)","ERU (ERU)","ESB (ESB)","ESD (ESD)","ESP (ESP)","ESS (ESS)","ESU (ESU)","ETH2X (ETH2X)","ETHF0 (ETHF0)","ETHUP (ETHUP)","ETN (ETN)","ETP (ETP)","ETZ (ETZ)","EUC (EUC)","EURC (EURC)","EURF0 (EURF0)","EUS (EUS)","EUT (EUT)","EVA (EVA)","EVIL (EVIL)","EVO (EVO)","EVX (EVX)","EXCL (EXCL)","EXM (EXM)","EXRD (EXRD)","Einsteinium (EMC2)","Emercoin (EMC)","Ethereum (ETH)","Ethereum Classic (ETC)","Euro (EUR)","EverGreenCoin (EGC)","Execoin (EXE)","Expanse (EXP)","FAR (FAR)","FARM (FARM)","FB (FB)","FBT (FBT)","FC (FC)","FCASH (FCASH)","FCT2 (FCT2)","FDZ (FDZ)","FET (FET)","FFC (FFC)","FI (FI)","FIL (FIL)","FILUP (FILUP)","FIO (FIO)","FIR (FIR)","FIRO (FIRO)","FIS (FIS)","FIT (FIT)","FLE (FLE)","FLETA (FLETA)","FLM (FLM)","FLP (FLP)","FLVR (FLVR)","FME (FME)","FNB (FNB)","FOAM (FOAM)","FONZ (FONZ)","FOR (FOR)","FOREX (FOREX)","FOT (FOT)","FRE (FRE)","FRO (FRO)","FROG (FROG)","FRONT (FRONT)","FRSP (FRSP)","FRST (FRST)","FRWC (FRWC)","FSN (FSN)","FSW (FSW)","FTM (FTM)","FTO (FTO)","FTT (FTT)","FTX (FTX)","FUEL (FUEL)","FUN (FUN)","FUND (FUND)","FUNK (FUNK)","FUS (FUS)","FX (FX)","FXS (FXS)","FXT (FXT)","FYP (FYP)","Factom (FCT)","Faircoin (FAIR)","Feathercoin (FTC)","Florincoin (FLO)","Flycoin (FLY)","G99 (G99)","GAKH (GAKH)","GAS (GAS)","GB (GB)","GBPF0 (GBPF0)","GBX (GBX)","GCC (GCC)","GEEQ (GEEQ)","GET (GET)","GHS (GHS)","GHST (GHST)","GIFT (GIFT)","GIG (GIG)","GIZ (GIZ)","GLC (GLC)","GLE (GLE)","GLEEC (GLEEC)","GLM (GLM)","GLO (GLO)","GME (GME)","GML (GML)","GNC (GNC)","GNO (GNO)","GNY (GNY)","GO (GO)","GOB (GOB)","GOC (GOC)","GOF (GOF)","GOL (GOL)","GOLD (GOLD)","GOOGL (GOOGL)","GOT (GOT)","GP (GP)","GRAV (GRAV)","GRE (GRE)","GRI (GRI)","GRIN (GRIN)","GSB (GSB)","GST (GST)","GSX (GSX)","GSY (GSY)","GT (GT)","GTB (GTB)","GTO (GTO)","GTX (GTX)","GUM (GUM)","GUS (GUS)","GUSD (GUSD)","GVT (GVT)","GXB (GXB)","GXC (GXC)","GXS (GXS)","GameBet Coin (GBT)","GameCredits (GAME)","GeoCoin (GEO)","GlobalBoost-Y (BSTY)","GoCoineR (GCR)","Golem (GNT)","Graffiti (GRF)","Grantcoin (GRT)","Groestlcoin (GRS)","GrowCoin (GROW)","Gulden (NLG)","HAB (HAB)","HAC (HAC)","HAI (HAI)","HALLO (HALLO)","HARD (HARD)","HAU (HAU)","HAZE (HAZE)","HB (HB)","HBA (HBA)","HBAR (HBAR)","HBC (HBC)","HBD (HBD)","HBT (HBT)","HC (HC)","HCC (HCC)","HDAC (HDAC)","HDAO (HDAO)","HED (HED)","HEDG (HEDG)","HEEL (HEEL)","HEGIC (HEGIC)","HEO (HEO)","HET (HET)","HEU (HEU)","HEX (HEX)","HEZ (HEZ)","HF (HF)","HGET (HGET)","HGT (HGT)","HIB (HIB)","HIFUN (HIFUN)","HIRE (HIRE)","HIU (HIU)","HIVE (HIVE)","HMQ (HMQ)","HNS (HNS)","HNT (HNT)","HOT (HOT)","HP (HP)","HPC (HPC)","HQX (HQX)","HSP (HSP)","HSR (HSR)","HTB (HTB)","HTC (HTC)","HTM (HTM)","HTMLCOIN (HTML5)","HTU (HTU)","HUB (HUB)","HUS (HUS)","HVCO (HVCO)","HVN (HVN)","HXRO (HXRO)","HYD (HYD)","HYDRO (HYDRO)","HZT (HZT)","HempCoin (HMP)","Hempcoin (THC)","HiCoin (XHI)","IBANK (IBANK)","IBITS (IBITS)","IBT (IBT)","IBVOL (IBVOL)","ICB (ICB)","ICX (ICX)","IDEX (IDEX)","IDH (IDH)","IDRT (IDRT)","IEC (IEC)","IET (IET)","IFLT (IFLT)","IFT (IFT)","IGN (IGN)","IGNIS (IGNIS)","IHF (IHF)","IHT (IHT)","IL (IL)","IMS (IMS)","IND (IND)","INJ (INJ)","INK (INK)","INS (INS)","INV (INV)","INX (INX)","INXT (INXT)","IO Coin (IOC)","IONX (IONX)","IOS (IOS)","IOST (IOST)","IOT (IOT)","IOTA (IOTA)","IOTF0 (IOTF0)","IOTX (IOTX)","IOU (IOU)","IPL (IPL)","IPX (IPX)","IQ (IQ)","IQB (IQB)","IQN (IQN)","IQQ (IQQ)","IQU (IQU)","IQX (IQX)","IRIS (IRIS)","ISB (ISB)","ISE (ISE)","IUS (IUS)","IXT (IXT)","Iconomi (ICN)","Indonesian Rupiah (IDR)","JFI (JFI)","JOB (JOB)","JOBS (JOBS)","JPC (JPC)","JPYF0 (JPYF0)","JST (JST)","JUL (JUL)","JUV (JUV)","JWL (JWL)","Japanese Yen (JPY)","KAI (KAI)","KAN (KAN)","KARMC (KARMC)","KAT (KAT)","KAV (KAV)","KAVA (KAVA)","KBC (KBC)","KBT (KBT)","KDA (KDA)","KDAG (KDAG)","KEE (KEE)","KET (KET)","KEY (KEY)","KGC (KGC)","KIC (KIC)","KIDS (KIDS)","KIM (KIM)","KIN (KIN)","KLAY (KLAY)","KLV (KLV)","KMD (KMD)","KOBO (KOBO)","KOK (KOK)","KP3R (KP3R)","KRAK (KRAK)","KRL (KRL)","KRT (KRT)","KSM (KSM)","KTK (KTK)","KTON (KTON)","KUBO (KUBO)","KUS (KUS)","KUSH (KUSH)","KZT (KZT)","Karma (KARMA)","KhanCoin (KNC)","L7S (L7S)","LAE (LAE)","LAM (LAM)","LAMB (LAMB)","LANA (LANA)","LAS (LAS)","LBA (LBA)","LBC (LBC)","LBT (LBT)","LC (LC)","LCC (LCC)","LCS (LCS)","LCX (LCX)","LEAF (LEAF)","LEB (LEB)","LEND (LEND)","LEO (LEO)","LET (LET)","LEU (LEU)","LEV (LEV)","LGO (LGO)","LGR (LGR)","LIMX (LIMX)","LIN (LIN)","LINA (LINA)","LINK (LINK)","LIT (LIT)","LITE (LITE)","LKC (LKC)","LMCH (LMCH)","LNC (LNC)","LND (LND)","LOC (LOC)","LON (LON)","LOO (LOO)","LOOM (LOOM)","LOON (LOON)","LOOT (LOOT)","LOW (LOW)","LPT (LPT)","LRC (LRC)","LSB (LSB)","LTCF0 (LTCF0)","LTCU (LTCU)","LTCUP (LTCUP)","LTD (LTD)","LTH (LTH)","LTO (LTO)","LTS (LTS)","LUCKY (LUCKY)","LUCY (LUCY)","LUNA (LUNA)","LUNYR (LUNYR)","LUS (LUS)","LUX (LUX)","LVG (LVG)","LYM (LYM)","LeaCoin (LEA)","Lisk (LSK)","LiteDoge (LDOGE)","Litecoin (LTC)","Litecred (LTCR)","Lunyr (LUN)","M1 (M1)","MAD (MAD)","MAI (MAI)","MAN (MAN)","MANA (MANA)","MARO (MARO)","MAT (MAT)","MATIC (MATIC)","MBC (MBC)","MBIT (MBIT)","MBL (MBL)","MBT (MBT)","MCAR (MCAR)","MCB (MCB)","MCH (MCH)","MCO (MCO)","MDA (MDA)","MDT (MDT)","ME (ME)","MER (MER)","MES (MES)","MET (MET)","META (META)","MFA (MFA)","MFT (MFT)","MG (MG)","MGB (MGB)","MGE (MGE)","MGO (MGO)","MGU (MGU)","MICRO (MICRO)","MIN (MIN)","MINH (MINH)","MIS (MIS)","MIT (MIT)","MITH (MITH)","MKR (MKR)","MLN (MLN)","MLNC (MLNC)","MM (MM)","MMT (MMT)","MMXVI (MMXVI)","MNA (MNA)","MNC (MNC)","MNM (MNM)","MOB (MOB)","MOC (MOC)","MOD (MOD)","MOF (MOF)","MOOND (MOOND)","MORE (MORE)","MOTO (MOTO)","MPH (MPH)","MRB (MRB)","MRPH (MRPH)","MST (MST)","MSTR (MSTR)","MTA (MTA)","MTC (MTC)","MTH (MTH)","MTL (MTL)","MTX (MTX)","MUS (MUS)","MYS (MYS)","MYST (MYST)","MaidSafeCoin (MAID)","MarteXcoin (MXT)","MediterraneanCoin (MED)","Memetic (MEME)","MindCoin (MND)","MonaCoin (MONA)","Monero (XMR)","MonetaryUnit (MUE)","N7 (N7)","NAN (NAN)","NANO (NANO)","NANOX (NANOX)","NAS (NAS)","NAV Coin (NAV)","NBS (NBS)","NC (NC)","NCASH (NCASH)","NCT (NCT)","NDOGE (NDOGE)","NEA (NEA)","NEAR (NEAR)","NEB (NEB)","NEBL (NEBL)","NEBU (NEBU)","NEC (NEC)","NEM (XEM)","NEO (NEO)","NETKO (NETKO)","NEX (NEX)","NFLX (NFLX)","NGC (NGC)","NGN (NGN)","NI (NI)","NIM (NIM)","NKA (NKA)","NKC (NKC)","NKN (NKN)","NKT (NKT)","NLC (NLC)","NLC2 (NLC2)","NMR (NMR)","NO (NO)","NOC (NOC)","NODES (NODES)","NOK (NOK)","NPC (NPC)","NPL (NPL)","NPX (NPX)","NPXS (NPXS)","NRC (NRC)","NRG (NRG)","NT (NT)","NTB (NTB)","NTE (NTE)","NTK (NTK)","NTM (NTM)","NU (NU)","NUB (NUB)","NUBIS (NUBIS)","NULS (NULS)","NUM (NUM)","NUS (NUS)","NUT (NUT)","NVT (NVT)","NWC (NWC)","NX (NX)","NXT (NXT)","NZB (NZB)","NZC (NZC)","NZE (NZE)","NZU (NZU)","Namecoin (NMC)","NetCoin (NET)","NeuCoin (NEU)","Neutron (NTRN)","NevaCoin (NEVA)","Nexus (NXS)","Novacoin (NVC)","NuBits (NBT)","OAX (OAX)","OBT (OBT)","OCE (OCE)","OCEAN (OCEAN)","OCN (OCN)","OCOW (OCOW)","ODE (ODE)","OET (OET)","OG (OG)","OGN (OGN)","OGT (OGT)","OIN (OIN)","OKB (OKB)","OKCash (OK)","OLDGR (OLDGR)","OM (OM)","OMA (OMA)","OMB (OMB)","OMC (OMC)","OMG (OMG)","OMN (OMN)","OMP (OMP)","OMU (OMU)","ONE (ONE)","ONG (ONG)","ONT (ONT)","OP (OP)","OPAL (OPAL)","OPES (OPES)","OPT (OPT)","ORBS (ORBS)","ORM (ORM)","ORN (ORN)","ORS (ORS)","OS (OS)","OS76 (OS76)","OST (OST)","OT (OT)","OUS (OUS)","OWB (OWB)","OXEN (OXEN)","OXT (OXT)","OZC (OZC)","Orlycoin (ORLY)","P7C (P7C)","PAI (PAI)","PAK (PAK)","PAN (PAN)","PANDA (PANDA)","PANDO (PANDO)","PAR (PAR)","PARA (PARA)","PART (PART)","PARTY (PARTY)","PAS (PAS)","PAX (PAX)","PAXG (PAXG)","PAY (PAY)","PAYP (PAYP)","PBT (PBT)","PCM (PCM)","PEA (PEA)","PEARL (PEARL)","PEO (PEO)","PER (PER)","PERL (PERL)","PERP (PERP)","PERX (PERX)","PET (PET)","PEXT (PEXT)","PFE (PFE)","PHA (PHA)","PHB (PHB)","PHNX (PHNX)","PHX (PHX)","PI (PI)","PING (PING)","PINKX (PINKX)","PIT (PIT)","PIVX (PIVX)","PKB (PKB)","PKT (PKT)","PLA (PLA)","PLB (PLB)","PLBT (PLBT)","PLC (PLC)","PLN (PLN)","PLR (PLR)","PLT (PLT)","PLU (PLU)","PMA (PMA)","PNC (PNC)","PNK (PNK)","PNT (PNT)","POA (POA)","POE (POE)","POKE (POKE)","POL (POL)","POLS (POLS)","POLY (POLY)","PON (PON)","POND (POND)","PONZ2 (PONZ2)","PONZI (PONZI)","POS (POS)","POST (POST)","POW (POW)","POWER (POWER)","POWR (POWR)","PPT (PPT)","PRE (PRE)","PRO (PRO)","PROM (PROM)","PROS (PROS)","PRQ (PRQ)","PSG (PSG)","PSL (PSL)","PTA (PTA)","PTI (PTI)","PTO (PTO)","PTON (PTON)","PTOY (PTOY)","PUS (PUS)","PUTIN (PUTIN)","PX (PX)","PXL (PXL)","Paycoin (XPY)","Peercoin (PPC)","Pinkcoin (PC)","PosEx (PEX)","Potcoin (POT)","Prime-XI (PXI)","QASH (QASH)","QBC (QBC)","QKC (QKC)","QLC (QLC)","QNT (QNT)","QRL (QRL)","QSH (QSH)","QSP (QSP)","QTM (QTM)","QTU (QTU)","QTUM (QTUM)","QTZ (QTZ)","RAI (RAI)","RAM (RAM)","RAMP (RAMP)","RARI (RARI)","RATIO (RATIO)","RAU (RAU)","RBC (RBC)","RBIT (RBIT)","RCN (RCN)","RCX (RCX)","RDN (RDN)","REC (REC)","REE (REE)","REEF (REEF)","REM (REM)","REN (REN)","REPV2 (REPV2)","REQ (REQ)","RET (RET)","REVV (REVV)","REX (REX)","RFR (RFR)","RFUEL (RFUEL)","RICE (RICE)","RID (RID)","RIF (RIF)","RING (RING)","RINGX (RINGX)","RIO (RIO)","RISE (RISE)","RJB (RJB)","RJE (RJE)","RJU (RJU)","RLB (RLB)","RLC (RLC)","RLU (RLU)","RNC (RNC)","ROO (ROO)","ROOK (ROOK)","ROOM (ROOM)","ROSE (ROSE)","ROX (ROX)","RPX (RPX)","RPZ (RPZ)","RRB (RRB)","RRT (RRT)","RSR (RSR)","RT (RT)","RTB (RTB)","RTE (RTE)","RTH (RTH)","RTU (RTU)","RUBIT (RUBIT)","RUC (RUC)","RUN (RUN)","RUNE (RUNE)","RUS (RUS)","RUST (RUST)","RV (RV)","RVC (RVC)","RVN (RVN)","RX (RX)","RYB (RYB)","RYE (RYE)","RYU (RYU)","RateCoin (XRA)","Reddcoin (RDD)","Revenu (REV)","Rimbit (RBT)","Ripple (XRP)","RosCoin (ROS)","Rubies (RBIES)","Ruble (RUR)","SAK (SAK)","SAL (SAL)","SALT (SALT)","SAN (SAN)","SAND (SAND)","SAT (SAT)","SBD (SBD)","SBIT (SBIT)","SBT (SBT)","SCAN (SCAN)","SCB (SCB)","SCC (SCC)","SCITW (SCITW)","SCL (SCL)","SCRT (SCRT)","SCS (SCS)","SD (SD)","SDA (SDA)","SDT (SDT)","SEB (SEB)","SED (SED)","SEE (SEE)","SEN (SEN)","SENSO (SENSO)","SEO (SEO)","SET (SET)","SEV (SEV)","SFE (SFE)","SFP (SFP)","SG (SG)","SGR (SGR)","SHDW (SHDW)","SHELL (SHELL)","SHI (SHI)","SHR (SHR)","SHRM (SHRM)","SIG (SIG)","SIL (SIL)","SIX (SIX)","SK (SK)","SKB (SKB)","SKL (SKL)","SKM (SKM)","SKY (SKY)","SLEEP (SLEEP)","SLICE (SLICE)","SLP (SLP)","SLS (SLS)","SLV (SLV)","SM (SM)","SMA (SMA)","SMART (SMART)","SMC (SMC)","SMT (SMT)","SNC (SNC)","SNG (SNG)","SNGLS (SNGLS)","SNM (SNM)","SNRG (SNRG)","SNX (SNX)","SOC (SOC)","SOL (SOL)","SOLVE (SOLVE)","SOU (SOU)","SOUL (SOUL)","SPC (SPC)","SPEX (SPEX)","SPI (SPI)","SPIN (SPIN)","SPORT (SPORT)","SPT (SPT)","SPY (SPY)","SQ (SQ)","SRM (SRM)","SRN (SRN)","SSB (SSB)","SSC (SSC)","SSE (SSE)","SSTC (SSTC)","STA (STA)","STAKE (STAKE)","STAR (STAR)","STC (STC)","STE (STE)","STHR (STHR)","STJ (STJ)","STM (STM)","STMX (STMX)","STO (STO)","STORJ (STORJ)","STORM (STORM)","STP (STP)","STPT (STPT)","STRAT (STRAT)","STRAX (STRAX)","STRB (STRB)","STRK (STRK)","STU (STU)","STV (STV)","STX (STX)","SUKU (SUKU)","SUN (SUN)","SUP (SUP)","SUPER (SUPER)","SUR (SUR)","SUS (SUS)","SUSD (SUSD)","SUSHI (SUSHI)","SUTER (SUTER)","SWAP (SWAP)","SWF (SWF)","SWFTC (SWFTC)","SWING (SWING)","SWM (SWM)","SWR (SWR)","SWRV (SWRV)","SWT (SWT)","SXP (SXP)","SXPUP (SXPUP)","SYB (SYB)","Sexcoin (SXC)","ShadowCash (SDC)","Siacoin (SC)","Sibcoin (SIB)","Sphere (SPHR)","SpreadCoin (SPR)","Startcoin (START)","Status (SNT)","Stealthcoin (XST)","Steem (STEEM)","Stellar (STR)","Stellar (XLM)","Steps (STEPS)","Stress (STS)","Subcriptio (SUB)","SydPak Coin (SDP)","Synereo (AMP)","Syscoin (SYS)","TAB (TAB)","TAGR (TAGR)","TAI (TAI)","TAK (TAK)","TAO (TAO)","TAU (TAU)","TBCX (TBCX)","TBT (TBT)","TC (TC)","TCB (TCB)","TCE (TCE)","TCR (TCR)","TCT (TCT)","TCU (TCU)","TCX (TCX)","TDFB (TDFB)","TDP (TDP)","TDS (TDS)","TEA (TEA)","TECH (TECH)","TEKcoin (TEK)","TEL (TEL)","TELL (TELL)","TEMCO (TEMCO)","TEND (TEND)","TET (TET)","TFC (TFC)","TFD (TFD)","TFUEL (TFUEL)","TGU (TGU)","TH (TH)","TH2 (TH2)","THE (THE)","THETA (THETA)","THOM (THOM)","TIDE (TIDE)","TIM (TIM)","TIME (TIME)","TKN (TKN)","TKY (TKY)","TLE (TLE)","TLEX (TLEX)","TLX (TLX)","TNB (TNB)","TNC (TNC)","TNT (TNT)","TODAY (TODAY)","TOM (TOM)","TOMO (TOMO)","TON (TON)","TOOL (TOOL)","TOR (TOR)","TORN (TORN)","TOT (TOT)","TRA (TRA)","TRAC (TRAC)","TRADE (TRADE)","TRB (TRB)","TRI (TRI)","TRIG (TRIG)","TRNC (TRNC)","TRON (TRON)","TRON (TRX)","TROY (TROY)","TRS (TRS)","TRU (TRU)","TRV (TRV)","TRXUP (TRXUP)","TRY (TRY)","TRYB (TRYB)","TSD (TSD)","TSHP (TSHP)","TSLA (TSLA)","TUBE (TUBE)","TUDA (TUDA)","TUM (TUM)","TUS (TUS)","TUSD (TUSD)","TUSDB (TUSDB)","TVB (TVB)","TVE (TVE)","TVK (TVK)","TVU (TVU)","TWO (TWO)","TWT (TWT)","TZ (TZ)","TeslaCoin (TES)","Tether (USDT)","Titcoin (TIT)","TittieCoin (TTC)","Transfercoin (TX)","TrumpCoin (TRUMP)","Turron (TUR)","UBQ (UBQ)","UBT (UBT)","UCT (UCT)","UDC (UDC)","UEB (UEB)","UEU (UEU)","UFT (UFT)","UIS (UIS)","UMA (UMA)","UNFI (UNFI)","UNI (UNI)","UNIF0 (UNIF0)","UNITS (UNITS)","UNIUP (UNIUP)","UOP (UOP)","UOS (UOS)","UPCO2 (UPCO2)","UPEUR (UPEUR)","UPP (UPP)","UPT (UPT)","UPUSD (UPUSD)","UPXAU (UPXAU)","UQC (UQC)","URAC (URAC)","URC (URC)","US Dollar (USD)","USC (USC)","USDC (USDC)","USDE (USDE)","USDJ (USDJ)","USDN (USDN)","USDS (USDS)","USDSB (USDSB)","USE (USE)","USG (USG)","USK (USK)","UST (UST)","USTF0 (USTF0)","UTI (UTI)","UTK (UTK)","UTLE (UTLE)","UTT (UTT)","UUU (UUU)","Ubiquoin (UBIQ)","Ukrainian Hryvnia (UAH)","Unfed (UNF)","Universal Currency (UNIT)","Unobtanium (UNO)","Uro (URO)","VAI (VAI)","VAL (VAL)","VALUE (VALUE)","VANY (VANY)","VBK (VBK)","VBT (VBT)","VCOIN (VCOIN)","VDX (VDX)","VEB (VEB)","VEE (VEE)","VEG (VEG)","VEN (VEN)","VEO (VEO)","VET (VET)","VIB (VIB)","VIBE (VIBE)","VID (VID)","VIDT (VIDT)","VIL (VIL)","VIP Tokens (VIP)","VIT (VIT)","VITAE (VITAE)","VITE (VITE)","VK (VK)","VLT (VLT)","VLX (VLX)","VNTX (VNTX)","VOL (VOL)","VOLT (VOLT)","VPNCoin (VPN)","VPRC (VPRC)","VRA (VRA)","VSP (VSP)","VSY (VSY)","VTHO (VTHO)","VTL (VTL)","VUS (VUS)","Verge (XVG)","VeriCoin (VRC)","Vertcoin (VTC)","Viacoin (VIA)","WABI (WABI)","WAN (WAN)","WASH (WASH)","WAV (WAV)","WAVES (WAVES)","WAX (WAX)","WAXP (WAXP)","WAY (WAY)","WBT (WBT)","WBTC (WBTC)","WETH (WETH)","WGO (WGO)","WGP (WGP)","WICC (WICC)","WIK (WIK)","WIN (WIN)","WINE (WINE)","WING (WING)","WINGS (WINGS)","WINK (WINK)","WISH (WISH)","WMC (WMC)","WNXM (WNXM)","WPR (WPR)","WRX (WRX)","WT (WT)","WTC (WTC)","WUS (WUS)","WXBTC (WXBTC)","WXT (WXT)","Whitecoin (XWC)","Wild Beast Block (WBB)","X2 (X2)","XAGF0 (XAGF0)","XAUT (XAUT)","XAV (XAV)","XBP (XBP)","XBS (XBS)","XBTS (XBTS)","XBY (XBY)","XCO (XCO)","XDB (XDB)","XDC (XDC)","XDE (XDE)","XET (XET)","XFCX (XFCX)","XFIL (XFIL)","XFLR (XFLR)","XHV (XHV)","XIN (XIN)","XLMF0 (XLMF0)","XLMUP (XLMUP)","XMC (XMC)","XMINE (XMINE)","XMS (XMS)","XMY (XMY)","XNX (XNX)","XOC (XOC)","XPC (XPC)","XPD (XPD)","XPN (XPN)","XPO (XPO)","XPR (XPR)","XPRO (XPRO)","XPTX (XPTX)","XRC (XRC)","XRPUP (XRPUP)","XSN (XSN)","XSP (XSP)","XSSX (XSSX)","XSY (XSY)","XT (XT)","XTALK (XTALK)","XTP (XTP)","XTZ (XTZ)","XTZUP (XTZUP)","XUC (XUC)","XUS (XUS)","XVS (XVS)","XYM (XYM)","Xaurum (XAU)","YBT (YBT)","YCC (YCC)","YEC (YEC)","YET (YET)","YFI (YFI)","YFII (YFII)","YFIUP (YFIUP)","YFL (YFL)","YGG (YGG)","YO (YO)","YOU (YOU)","YOVI (YOVI)","YOY (YOY)","YOYO (YOYO)","YXB (YXB)","YYW (YYW)","ZAG (ZAG)","ZAP (ZAP)","ZAR (ZAR)","ZBT (ZBT)","ZCN (ZCN)","ZEN (ZEN)","ZENI (ZENI)","ZET2 (ZET2)","ZIL (ZIL)","ZKS (ZKS)","ZLOT (ZLOT)","ZRX (ZRX)","ZSC (ZSC)","ZUS (ZUS)","ZayedCoin (ZYD)","Zcash (ZEC)","Zcoin (XZC)","Zeitcoin (ZEIT)","ZiftrCOIN (ZRC)","iCash (ICASH)"];
var sam='';
//x=0;
alles.forEach(function(g){
sam+=`<label>${g}</label>
<input type="checkbox" class="was" value="${g}"><br>`;
// eval('crypt_base_cur_'+x+' = g');
// eval('crypt_target_cur_'+x+' = "Euro (EUR)"');
//x++;
})
document.getElementById('kryptoapp').innerHTML=`<h3>Auswahl von Währung</h3>${sam}`;
var xheck=document.querySelectorAll('.was');
xheck.forEach(function(g){
g.addEventListener('click',function(){
var new_array=[];
xheck.forEach(function(g){
if(g.checked==true){
new_array.push(g.value);
var menge=new_array.length;
weiter(new_array,menge)
}
})
})
})
var out=document.getElementById('output');
function httpGet(theUrl){
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
function FormatNumberLength(num, length) {
var r = "" + num;
while (r.length < length) {
r = "0" + r;
}
return r;
}
function weiter(arra,menge){
var n2='Euro (EUR)';
out.innerHTML='';
for (var i = 0; i < menge; ++i) {
n1=arra[i];
// n2 =eval("crypt_target_cur_" + i);
getPar = eval('(' + httpGet("https://api.cryptonator.com/api/ticker/" +
n1.toLowerCase().match(/.*?\(([0-9a-z]+)\)/i)[1] + "-" + n2.toLowerCase().match(/.*?\(([0-9a-z]+)\)/i)[1])+ ')');
if (getPar.success != false) {
if (getPar.ticker.price > 1){
price = Math.round(getPar.ticker.price * 100) / 100;
}else{
price = getPar.ticker.price;
}
var text_style = '<span class="k_down"><b>↓</b></span>';
if (getPar.ticker.change >= 0) {
text_style = '<span class="k_up"><b>↑</b></span>';
}
out.innerHTML+=`<div class="k_column">${n1}
<b>${price}</b> ${ n2.match(/.*?\(([0-9a-z]+)\)/i)[1]} ${text_style}</div>`;
}
else {
out.innerHTML+=`<div class="k_column small">${n1} keine Daten</div>`;
}
}
const time = new Date(Date.now());
const timeStr = time.toLocaleString('de-DE', {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
});
out.innerHTML+=`<div id="k_update">Updated ${timeStr} </div>`;
out.innerHTML+=`</div>`;
}
weiter(alles,13)
</script>