Bitcoin price is displaying in HTLM with Javascript!

This commit is contained in:
0ceanSlim 2023-07-29 07:57:33 -04:00
parent 1243596392
commit 37c20e9bf7
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">
<!-- Add the internet permission here -->
<uses-permission android:name="android.permission.INTERNET" />
<application <application
android:allowBackup="true" android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules" android:dataExtractionRules="@xml/data_extraction_rules"
@ -23,4 +25,4 @@
</activity> </activity>
</application> </application>
</manifest> </manifest>

View File

@ -53,6 +53,7 @@ class MainActivity : AppCompatActivity() {
<body> <body>
<div class="bitcointodollars"> <div class="bitcointodollars">
<h1>Bitcoin Price Tracker.</h1> <h1>Bitcoin Price Tracker.</h1>
<p> this is a p </p>
<div id="bitcoin-price"></div> <div id="bitcoin-price"></div>
<script> <script>
// Fetch the Bitcoin price from the CoinGecko API // Fetch the Bitcoin price from the CoinGecko API