-
Notifications
You must be signed in to change notification settings - Fork 0
/
score.js
executable file
·54 lines (39 loc) · 959 Bytes
/
score.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
function toggle_node(x, untoggle_elements) {
if(untoggle_elements)
{
node = document.getElementById(untoggle_elements)
cnodes = node.childNodes
for(i=0; i < cnodes.length; i++)
{
node = cnodes.item(i)
if(node.nodeType == 1)
node.style.display = 'none'
}
}
var node = document.getElementById('city_info_' + x)
var img = document.getElementById('city_image_' + x)
// now that we know what the file name is
/*
if(img.getAttribute("loaded") == "false")
{
*/
LoadImage = new Image()
LoadImage.src = img.getAttribute("url")
img.src = LoadImage.src + '?nocache=' + Number.random
// img.setAttribute("loaded", 'true')
//}
if (node.style.display == '') {
node.style.display = 'none'
} else {
node.style.display = ''
}
}
function js_confirm($message) {
return (confirm($message));
}
function refresh_city_img(id)
{
}
function refresh_region_img()
{
}