Heeft Don Luxemburg al ingehaald?: verschil tussen versies
Uit WikiMeneer
Regel 101: | Regel 101: | ||
</style> | </style> | ||
<script> | <script> | ||
− | |||
− | |||
− | |||
function fix() { | function fix() { | ||
− | var som = document.getElementById("getal").value; | + | $.getJSON('https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCU0TjDaglN5awRHKY_tThzA&key=AIzaSyA5yomMl6Eg6qV6BhjYBYQtqZTXnoreK0c', function(subs) { |
− | document.getElementById("odometer").innerHTML = som; | + | document.getElementById("odometer").innerHTML = Intl.NumberFormat().format(subs.items[ 0 ].statistics.subscriberCount); |
+ | }); | ||
+ | //var som = document.getElementById("getal").value; | ||
+ | //document.getElementById("odometer").innerHTML = som; | ||
} | } | ||
</script> | </script> |
Versie van 9 aug 2017 om 16:43
0