Heeft Don Luxemburg al ingehaald?: verschil tussen versies
Uit WikiMeneer
(Versie 1905 van Davidjonrendiom wubwub wiewiewie (overleg) ongedaan gemaakt) |
|||
Regel 100: | Regel 100: | ||
</style> | </style> | ||
− | + | <script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <script> | + | |
function fix() { | function fix() { | ||
$.getJSON('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCU0TjDaglN5awRHKY_tThzA&key=AIzaSyA5yomMl6Eg6qV6BhjYBYQtqZTXnoreK0c', function(subs) { | $.getJSON('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCU0TjDaglN5awRHKY_tThzA&key=AIzaSyA5yomMl6Eg6qV6BhjYBYQtqZTXnoreK0c', function(subs) { | ||
− | document.getElementById("odometer").innerHTML = Intl.NumberFormat().format(subs.items[ 0 ].statistics.subscriberCount); | + | document.getElementById("odometer").innerHTML = Intl.NumberFormat().format(subs.items[0].statistics.subscriberCount); |
}); | }); | ||
} | } | ||
</script> | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | <div id="odometer" class="odometer">0</div> | ||
+ | <input id="getal" value=""> | ||
+ | <button type="button" onclick="fix()">toepas</button> | ||
</body> | </body> | ||
</html> | </html> |
Versie van 9 aug 2017 om 16:01
0