Skip to content

Commit 3125d5a

Browse files
committed
Integrando código novo. osm-codes/WS#58
1 parent 7df6b72 commit 3125d5a

File tree

7 files changed

+81
-129
lines changed

7 files changed

+81
-129
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h2>Options</h2>
8888
and some countries are implementing it. <i>Logistic</i> and <i>Scientific</i> <abbr title="AddressForAll Codes">AFAcodes</abbr> applications are interoperable.
8989
</p>
9090

91-
<p><b><i>Logistic <abbr title="AddressForAll Codes">AFAcodes</abbr></i></b>, by jurisdiction:</p>
91+
<!--<p><b><i>Logistic <abbr title="AddressForAll Codes">AFAcodes</abbr></i></b>, by jurisdiction:</p>
9292
<ul>
9393
<li>Work cases:
9494
<select name="countries1" id="wrk_jurL1" onchange="sel_jurL1(this.value,'wrk')">
@@ -100,24 +100,24 @@ <h2>Options</h2>
100100
</li>
101101
<li>(draft) Full list, only for list-test:
102102
<select name="countries2" id="sel_jurL1" onchange="sel_jurL1(this.value,'sel')">
103-
<option value="">-- Country --</option>
103+
<option value="">-- Country --</option>-->
104104
<!-- <option value="BR">BR - Brazil</option> -->
105105
<!-- <option value="CM">CM - Cameroon</option> -->
106-
<option value="CO">CO - Colombia</option>
106+
<!-- <option value="CO">CO - Colombia</option>
107107
<option value="SV">SV - El Salvador</option>
108108
<option value="UY">UY - Uruguay</option>
109109
</select> &nbsp; <span id="sel_jurL2"></span> &nbsp; <span id="sel_jurL3"></span>
110110
</li>
111-
</ul>
111+
</ul>-->
112112

113113
<p><b><i>Scientific <abbr title="AddressForAll Codes">AFAcodes</abbr></i></b> and <i>scientific grid</i> (draft), by country:</p>
114114
<ul>
115115
<li><a href="./BR+A" title="View Scientific AFAcodes for Brazil">Brazil</a></li>
116116
<li><a href="./CM+9" title="View Scientific AFAcodes for Cameroon">Cameroon</a></li>
117117
<li><a href="./CO+C" title="View Scientific AFAcodes for Colombia">Colombia</a></li>
118118
<!-- <li><a href="./EC+08" title="View Scientific AFAcodes for Ecuador">Ecuador</a></li>-->
119-
<li><a href="./SV+A" title="View Scientific AFAcodes for El Salvador">El Salvador</a></li>
120-
<li><a href="./UY+B" title="View Scientific AFAcodes for Uruguay">Uruguay</a></li>
119+
<!-- <li><a href="./SV+A" title="View Scientific AFAcodes for El Salvador">El Salvador</a></li> -->
120+
<!-- <li><a href="./UY+B" title="View Scientific AFAcodes for Uruguay">Uruguay</a></li> -->
121121
</ul>
122122

123123
<section class="section-divider">
@@ -134,7 +134,7 @@ <h2>Options</h2>
134134
</div>
135135
</section>
136136

137-
<footer class="section-divider">
137+
<footer class="section-divider section-footer">
138138
<p class="font_small"><a href="https://wiki.addressforall.org/doc/osmc:Vers%C3%B5es" title="View available software versions">Software versions</a></p>
139139
<p class="font_small"><a href="./_talk/" title="Contact AFA.codes team">Contact us</a></p>
140140
</footer>

logistic/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ <h3>
4646
<p class="space-before">Scientific: <code id="sciCode">(click the map)</code></p>
4747
</section>
4848

49-
<footer>
50-
<p class="font_small">Back to <a href="." title="Homepage for AFA.codes">AFAcodes and other countries</a></p>
51-
<p class="font_small"><a href="#top" title="Go to the top page">Go to the top page</a></p>
49+
<footer class="section-footer">
50+
<p class="font_small">Back to <a href="." title="Go to the AFA.codes homepage">AFA.codes Homepage</a></p>
51+
<p class="font_small"><a href="#top" title="Go to the top page">Back to Top</a></p>
5252
<p class="font_small"><a href="https://wiki.addressforall.org/doc/osmc:Vers%C3%B5es" title="View available software versions">Software versions</a></p>
5353
<p class="font_small"><a href="./_talk/" title="Contact AFA.codes team">Contact us</a></p>
5454
</footer>

logistic/style.css

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,28 @@ h3 img {
4949
clear:both;
5050
}
5151

52+
.section-footer {
53+
display: flex;
54+
flex-wrap: wrap;
55+
gap: 1em;
56+
/* justify-content: center; */
57+
text-align: center;
58+
padding: 1em 0;
59+
}
60+
61+
.section-footer p {
62+
margin: 0;
63+
white-space: nowrap; /* opcional: impede quebra de linha dentro do <p> */
64+
}
65+
66+
/* Layout em coluna para telas pequenas */
67+
@media (max-width: 600px) {
68+
.section-footer {
69+
flex-direction: column;
70+
align-items: center;
71+
}
72+
}
73+
5274
#map {
5375
width: 99.4vw;
5476
height: 70vh;
@@ -149,5 +171,3 @@ and (min-width: 600px) and (max-width: 959px)
149171
.youtube-video-container{position:relative;overflow:hidden;width:100%;max-width:700px}
150172
.youtube-video-container:after{display:block;content:"";padding-top:56.25%}
151173
.youtube-video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}
152-
153-

resources/js/def.js

Lines changed: 24 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -19,56 +19,36 @@ var countries = {
1919
zoom: 4,
2020
current_zoom: 4,
2121
defaultBase: 'base32',
22-
scientificBase: 'base16h1c',
22+
scientificBase: 'base16h',
2323
postalcodeBase: 'base32',
2424
isocode: 'BR',
2525
isocoden: 76,
2626
jurisdictionPlaceholder: 'BR-SP-SaoPaulo',
27-
selectedBases: ['base32','base16h1c'],
27+
selectedBases: ['base32','base16h'],
2828
bases:
2929
{
30-
base32:
31-
{
32-
iniLevel: 0,
33-
endLevel: 40,
34-
modLevel: 5,
35-
iniDigit: 1,
36-
maxLength: 9,
37-
diffl0br: 0,
38-
levelDefault: 35,
39-
symbol: '~',
40-
placeholderDecode: '42',
41-
placeholderEncode: '-15.7,-47.8;u=10',
42-
placeholderList: '3,5,7,A',
43-
selectGrid: [32],
44-
},
4530
base16h:
4631
{
47-
iniLevel: 0,
4832
endLevel: 40,
49-
modLevel: 1,
50-
iniDigit: 2,
33+
iniDigit: 1,
5134
maxLength: 12,
52-
diffl0br: 0,
5335
symbol: '+',
5436
placeholderDecode: 'BR+3F',
5537
placeholderEncode: '-15.7,-47.8;u=10',
5638
placeholderList: '3,5,7,B',
5739
selectGrid: [2,4,8,16],
5840
},
59-
base16h1c:
41+
base32:
6042
{
61-
iniLevel: 0,
6243
endLevel: 40,
63-
modLevel: 1,
6444
iniDigit: 1,
65-
maxLength: 11,
66-
diffl0br: 0,
67-
symbol: '+',
68-
placeholderDecode: 'BR+hF',
45+
maxLength: 9,
46+
levelDefault: 35,
47+
symbol: '~',
48+
placeholderDecode: '42',
6949
placeholderEncode: '-15.7,-47.8;u=10',
70-
placeholderList: 'h,7,B',
71-
selectGrid: [2,4,8,16],
50+
placeholderList: '3,5,7,A',
51+
selectGrid: [32],
7252
}
7353
}
7454
},
@@ -89,12 +69,8 @@ var countries = {
8969
{
9070
base16h:
9171
{
92-
iniLevel: 4,
9372
endLevel: 36,
94-
modLevel: 1,
95-
iniDigit: 1,
9673
maxLength: 10,
97-
diffl0br: 4,
9874
symbol: '+',
9975
placeholderDecode: 'CM+a2',
10076
placeholderEncode: '4.8,11.9;u=10',
@@ -103,12 +79,8 @@ var countries = {
10379
},
10480
base32:
10581
{
106-
iniLevel: 5,
107-
endLevel: 40,
108-
modLevel: 5,
109-
iniDigit: 2,
82+
endLevel: 36,
11083
maxLength: 9,
111-
diffl0br: 4,
11284
levelDefault: 35,
11385
symbol: '~',
11486
placeholderDecode: '3D5',
@@ -133,34 +105,26 @@ var countries = {
133105
selectedBases: ['base32','base16h'],
134106
bases:
135107
{
108+
base16h:
109+
{
110+
endLevel: 38,
111+
maxLength: 11,
112+
symbol: '+',
113+
placeholderDecode: 'CO+0A2',
114+
placeholderEncode: '3.5,-72.3;u=10',
115+
placeholderList: '0A,0B,0C',
116+
selectGrid: [2,4,8,16],
117+
},
136118
base32:
137119
{
138-
iniLevel: 5,
139-
endLevel: 40,
140-
modLevel: 5,
141-
iniDigit: 2,
120+
endLevel: 38,
142121
maxLength: 9,
143-
diffl0br: 2,
144122
levelDefault: 40,
145123
symbol: '~',
146124
placeholderDecode: '3D5',
147125
placeholderEncode: '3.5,-72.3;u=10',
148126
placeholderList: '3D5,3D4,2',
149127
selectGrid: [32],
150-
},
151-
base16h:
152-
{
153-
iniLevel: 2,
154-
endLevel: 40,
155-
modLevel: 1,
156-
iniDigit: 1,
157-
maxLength: 11,
158-
diffl0br: 2,
159-
symbol: '+',
160-
placeholderDecode: 'CO+0A2',
161-
placeholderEncode: '3.5,-72.3;u=10',
162-
placeholderList: '0A,0B,0C',
163-
selectGrid: [2,4,8,16],
164128
}
165129
}
166130
},
@@ -181,12 +145,8 @@ var countries = {
181145
{
182146
base32:
183147
{
184-
iniLevel: 5,
185148
endLevel: 40,
186-
modLevel: 5,
187-
iniDigit: 1,
188149
maxLength: 8,
189-
diffl0br: 5,
190150
levelDefault: 30,
191151
symbol: '~',
192152
placeholderDecode: '5P',
@@ -196,12 +156,8 @@ var countries = {
196156
},
197157
base16h:
198158
{
199-
iniLevel: 5,
200159
endLevel: 40,
201-
modLevel: 1,
202-
iniDigit: 2,
203160
maxLength: 11,
204-
diffl0br: 5,
205161
symbol: '+',
206162
placeholderDecode: 'EC+0E',
207163
placeholderEncode: '-1.1,-78.4;u=10',
@@ -217,22 +173,18 @@ var countries = {
217173
zoom: 7,
218174
current_zoom: 7,
219175
defaultBase: 'base32',
220-
scientificBase: 'base16h1c',
176+
scientificBase: 'base16h',
221177
postalcodeBase: 'base32',
222178
isocode: 'UY',
223179
isocoden: 868,
224180
jurisdictionPlaceholder: 'UY-CA-LasPiedras',
225-
selectedBases: ['base32','base16h1c'],
181+
selectedBases: ['base32','base16h'],
226182
bases:
227183
{
228184
base32:
229185
{
230-
iniLevel: 6,
231186
endLevel: 36,
232-
modLevel: 5,
233-
iniDigit: 1,
234187
maxLength: 7,
235-
diffl0br: 6,
236188
levelDefault: 36,
237189
symbol: '~',
238190
placeholderDecode: '3',
@@ -242,31 +194,13 @@ var countries = {
242194
},
243195
base16h:
244196
{
245-
iniLevel: 6,
246197
endLevel: 40,
247-
modLevel: 1,
248-
iniDigit: 2,
249198
maxLength: 11,
250-
diffl0br: 6,
251199
symbol: '+',
252200
placeholderDecode: 'UY+2',
253201
placeholderEncode: '-32.9,-55.9;u=10',
254202
placeholderList: '2G,3A,01',
255203
selectGrid: [2,4,8,16],
256-
},
257-
base16h1c:
258-
{
259-
iniLevel: 6,
260-
endLevel: 38,
261-
modLevel: 1,
262-
iniDigit: 1,
263-
maxLength: 10,
264-
diffl0br: 6,
265-
symbol: '+',
266-
placeholderDecode: 'UY+gB',
267-
placeholderEncode: '-32.9,-55.9;u=10',
268-
placeholderList: '3B,g,hB',
269-
selectGrid: [2,4,8,16],
270204
}
271205
}
272206
},
@@ -287,12 +221,8 @@ var countries = {
287221
{
288222
base16h:
289223
{
290-
iniLevel: 8,
291224
endLevel: 40,
292-
modLevel: 1,
293-
iniDigit: 1,
294225
maxLength: 9,
295-
diffl0br: 8,
296226
symbol: '+',
297227
placeholderDecode: 'SV+a',
298228
placeholderEncode: '13,6,-89,1;u=10',
@@ -301,12 +231,8 @@ var countries = {
301231
},
302232
base16h2:
303233
{
304-
iniLevel: 8,
305234
endLevel: 40,
306-
modLevel: 1,
307-
iniDigit: 1,
308235
maxLength: 9,
309-
diffl0br: 8,
310236
levelDefault: 40,
311237
symbol: '+',
312238
placeholderDecode: 'SV+a',

scientific/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ <h3>Scientific AFAcode:
3232
<div class="leaflet-control-container" id="custom-map-controlsb"></div>
3333
</section>
3434

35-
<footer class="section-divider">
36-
<p class="font_small">Back to <a href="." title="Homepage for AFA.codes">AFAcodes and other countries</a></p>
37-
<p class="font_small"><a href="#top" title="Go to the top page">Go to the top page</a></p>
35+
<footer class="section-divider section-footer">
36+
<p class="font_small"><a href="." title="Go to the AFA.codes homepage">AFA.codes Homepage</a></p>
37+
<p class="font_small"><a href="#top" title="Go to the top page">Back to Top</a></p>
3838
<p class="font_small"><a href="https://wiki.addressforall.org/doc/osmc:Vers%C3%B5es" title="View available software versions">Software versions</a></p>
3939
<p class="font_small"><a href="./_talk/" title="Contact AFA.codes team">Contact us</a></p>
4040
</footer>

0 commit comments

Comments
 (0)