-
67 |
68 |
- 69 | 70 | 71 | 72 |
- 73 | 74 | 75 | 76 |
- 77 | 78 | 79 | 80 |
- 81 | 82 | 83 | 84 |
- 85 | 86 | 87 | 88 |
- 89 | 90 | 91 | 92 |
- 93 | 94 | 95 | 96 |
- 97 | 98 | 99 | 100 |
- 101 | 102 | 103 | 104 |
-
107 |
108 |
-
109 | 110 | 111 |128 |112 |118 | 119 | USD 46,168.95 120 | 121 |
113 | 114 | 115 | Bitcoin BTC/USD 116 | 117 |
122 | 36,641.20 123 | 124 |126 | 127 |-0.79%125 |
129 |
130 | -
131 | 132 | 133 |150 |134 |140 | 141 | USD 3,480.04 142 | 143 |
135 | 136 | 137 | Ethereum ETH/USD 138 | 139 |
144 | 36,641.20 145 | 146 |148 | 149 |+10.55%147 |
151 |
152 | -
153 | 154 | 155 |172 |156 |162 | 163 | USD 1.00 164 | 165 |
157 | 158 | 159 | Tether USDT/USD 160 | 161 |
166 | 36,641.20 167 | 168 |170 | 171 |-0.01%169 |
173 |
174 | -
175 | 176 | 177 |194 |178 |184 | 185 | USD 443.56 186 | 187 |
179 | 180 | 181 | BNB BNB/USD 182 | 183 |
188 | 36,641.20 189 | 190 |192 | 193 |-1.24%191 |
195 |
196 |
44 |
45 |
46 | ## You may also like...
47 |
48 | - https://github.com/taisprestes01/iq-option-data-analysis - IQ Option api
49 |
50 |
--------------------------------------------------------------------------------
/assets/images/coin-8.svg:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/assets/images/coin-5.svg:
--------------------------------------------------------------------------------
1 |
25 |
--------------------------------------------------------------------------------
/favicon.svg:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/assets/js/script.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const navbar = document.querySelector("[data-navbar]");
4 | const navbarLinks = document.querySelectorAll("[data-nav-link]");
5 | const navToggler = document.querySelector("[data-nav-toggler]");
6 |
7 | const toggleNavbar = function () {
8 | navbar.classList.toggle("active");
9 | navToggler.classList.toggle("active");
10 | document.body.classList.toggle("active");
11 | }
12 |
13 | navToggler.addEventListener("click", toggleNavbar);
14 |
15 | const closeNavbar = function () {
16 | navbar.classList.remove("active");
17 | navToggler.classList.remove("active");
18 | document.body.classList.remove("active");
19 | }
20 |
21 | navbarLinks.forEach(link => {
22 | link.addEventListener("click", closeNavbar);
23 | });
24 |
25 | const header = document.querySelector("[data-header]");
26 |
27 | const activeHeader = function () {
28 | if (window.scrollY > 300) {
29 | header.classList.add("active");
30 | } else {
31 | header.classList.remove("active");
32 | }
33 | }
34 |
35 | window.addEventListener("scroll", activeHeader);
36 |
37 | const addToFavBtns = document.querySelectorAll("[data-add-to-fav]");
38 |
39 | const toggleActive = function () {
40 | this.classList.toggle("active");
41 | }
42 |
43 | addToFavBtns.forEach(btn => {
44 | btn.addEventListener("click", toggleActive);
45 | });
46 |
47 | document.addEventListener('DOMContentLoaded', function() {
48 | const link = document.querySelector('[data-nav-link]');
49 |
50 | const section = document.querySelector('.market');
51 |
52 | link.addEventListener('click', function(event) {
53 | event.preventDefault();
54 |
55 | const sectionPosition = section.offsetTop;
56 |
57 | window.scrollTo({
58 | top: sectionPosition,
59 | behavior: 'smooth'
60 | });
61 | });
62 | });
63 |
64 | const sections = document.querySelectorAll("[data-section]");
65 |
66 | const scrollReveal = function () {
67 | for (let i = 0; i < sections.length; i++) {
68 | if (sections[i].getBoundingClientRect().top < window.innerHeight / 1.5) {
69 | sections[i].classList.add("active");
70 | } else {
71 | sections[i].classList.remove("active");
72 | }
73 | }
74 | }
75 |
76 | scrollReveal();
77 |
78 | window.addEventListener("scroll", scrollReveal);
79 |
--------------------------------------------------------------------------------
/assets/js/company.js:
--------------------------------------------------------------------------------
1 | const company = fetchData();
2 |
3 | async function fetchData() {
4 | try {
5 | const response = await fetch('https://api.coingecko.com/api/v3/companies/public_treasury/bitcoin');
6 | const data = await response.json();
7 | return data;
8 | } catch (error) {
9 | console.error('Erro ao buscar dados da API:', error);
10 | return null;
11 | }
12 | }
13 |
14 | company.then(data => {
15 | data.companies.slice(0, 4).forEach(company => addCompanyToTab(company));
16 | });
17 | function addCompanyToTab(company) {
18 | var tabContent = document.querySelector('.tab-content');
19 |
20 | var li = document.createElement("li");
21 |
22 | var trendCard = document.createElement("div");
23 | trendCard.classList.add("trend-card");
24 |
25 | var cardTitleWrapper = document.createElement("div");
26 | cardTitleWrapper.classList.add("card-title-wrapper");
27 |
28 | var a = document.createElement("a");
29 | a.href = "#";
30 | a.classList.add("card-title");
31 | a.innerHTML = company.name + '
75 |
171 |