This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <section class="grid grid-cols-2 gap-2 mb-6 text-center"> | |
| <div class="rounded-md shadow-md bg-gray-800 p-4 w-full"> | |
| <p class="uppercase font-bold">Weight</p> | |
| <p class="text-5xl font-bold">74</p> | |
| <div class="flex items-center justify-around"> | |
| <button class="rounded-full bg-gray-900 h-12 w-12 text-2xl">-</button> | |
| <button class="rounded-full bg-gray-900 h-12 w-12 text-2xl">+</button> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <section class="grid grid-cols-2 gap-2 mb-6"> | |
| <div | |
| class="rounded-md bg-gray-800 p-4 w-full transition-all duration-300 cursor-pointer" | |
| @click="toggle('male')" | |
| :class="gender == 'male' ? null : 'opacity-25 shadow-md'" | |
| > | |
| <svg | |
| class="w-16 h-16 mx-auto" | |
| fill="#fff" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <section class="rounded-md shadow-md bg-gray-800 p-4 text-center mb-6"> | |
| <p class="font-bold">HEIGHT</p> | |
| <p class="text-5xl font-bold"> | |
| {{ height }}<small class="text-sm">cm</small> | |
| </p> | |
| <input | |
| type="range" | |
| min="120" | |
| max="215" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| calculateBMI() { | |
| var met = this.height / 100; | |
| const bmi = this.weight / (met * met); | |
| this.$router.push({ | |
| query: { bmi: bmi.toFixed(2) }, | |
| path: "/result" | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="container mx-auto pt-6 px-4 max-w-lg"> | |
| <p class="text-4xl font-bold mb-4">Your Result</p> | |
| <div class="rounded bg-gray-700 p-6 text-center"> | |
| <p class="text-green-400 font-bold uppercase">Normal</p> | |
| <p class="text-6xl font-bold text">{{ $route.query.bmi }}</p> | |
| <p class="text-gray-400 font-bold">Normal BMI Range</p> | |
| <p>18.5 - 24.9</p> | |
| <p>You have a normal body weight. Good Job!</p> | |
| <button class="my-4 bg-gray-600 p-4 rounded w-full">SHARE</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('Hello there') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| const app = express(); | |
| const axios = require("axios"); | |
| app.get("/send-btc-price", async (request, response) => { | |
| try { | |
| const btc = await axios.get('https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT'); | |
| var str = `<b>Bitcoin Price</b>: $${parseInt(btc.data.price).toFixed(2)}`; | |
| var telegram_url = encodeURI( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| const app = express(); | |
| const axios = require("axios"); | |
| const cors = require("cors"); | |
| app.use(cors()); | |
| app.get("/", async (_, res) => { | |
| const api = `https://graph.instagram.com/me/media?fields=id,media_type,media_url,caption&access_token=${process.env.SECRET}`; | |
| const { data } = await axios.get(api); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| const app = express(); | |
| const axios = require("axios"); | |
| app.get("/", async (req, res) => { | |
| let BTC = "https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT"; | |
| let ETH = "https://api.binance.com/api/v3/ticker/price?symbol=ETHUSDT"; | |
| let LTC = "https://api.binance.com/api/v3/ticker/price?symbol=LTCUSDT"; | |
| let XRP = "https://api.binance.com/api/v3/ticker/price?symbol=XRPUSDT"; |