-
Notifications
You must be signed in to change notification settings - Fork 8
/
update_equivalencies.html
43 lines (36 loc) · 1.19 KB
/
update_equivalencies.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<meta http-equiv="Expires" content="0">
<meta http-equiv="Last-Modified" content="0">
<meta http-equiv="Cache-Control" content="no-cache, mustrevalidate">
<meta http-equiv="Pragma" content="no-cache">
<title>Actualización de equivalencias</title>
<!-- scripts -->
<script src="./js/config.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/equivalency.js"></script>
<script src="./js/jquery-3.3.1.min.js"></script>
</head>
<body>
Al actualizar el archivo equivalencias.json, usar este código para actualizar
las nuevas equivalencias irreversibemente
<script>
function updateEquiv(file){
Equivalency.init(function(st){
if (st!="success") return;
$.ajaxSetup({ cache: false });
$.get(file, function(data){
dataNew = (data.split(",").map(x => Equivalency.getEquivalent(x))).join()
$("body").html(dataNew);
});
})
}
$(function(){
console.log("use updateEquiv('http://dollyfiuba.com/gente.txt')");
})
</script>
</body>
</html>