Posts by patetico • 141 points
7 posts
-
1
votes1
answer662
viewsA: What attribute do I use to put closed captions in HTML (not CSS) for visually impaired?
The ARIA is a set of special attributes for accessibility, which can be added to any markup language, but is especially suitable for HTML. - MDN The attribute aria-label, in particular, it is used…
-
2
votes3
answers3149
viewsA: JSON does not return utf-8
Try to decode the answer manually: r = requests.get(location_url) texto = r.content.decode('utf8') Note: r.json() may also be useful in your case.…
-
1
votes2
answers90
viewsA: Zoom in out mousedown
You can get the desired result using css only if you use percentage measures within svg. svg { cursor: move; height: 100px; width: 100px; } svg:active { height: 200px; width: 200px; }…
-
1
votes2
answers687
viewsA: Atom text-editor, How to show line errors
The name of syntax check utilities is linter. One of the most popular php linters for Atom is linter-php and its installation can be done with the following command on your terminal: apm install…
-
3
votes1
answer453
viewsA: Zoom in to the selected image thumbnail in the Input file
Your error is in this command: $('[data-img="'+i+'"]').addEventListener("change", readImage, false); jQuery returns jQuery objects and does not have the addeventlistener method, but offers other…
-
0
votes4
answers12868
viewsA: How to print multiples of N in a range?
You need to ensure that the beginning of your range is divisible by N: A, B, N = [int(raw_input()) for _ in xrange(3)] multiplos = xrange(A + N - (A % N), B + 1, N) print '\n'.join(map(str,…
-
0
votes2
answers954
viewsA: Compound interest with switch and [preferably] no break in each case
switch (parcela) { default: System.out.println("Oops, digite um número entre 1 e 12!"); break case 12: valor *= taxa; case 11: valor *= taxa; case 10: valor *= taxa; case 9: valor *= taxa; case 8:…