Browse Source

Remove language js

onryo
Duke Leto 2 years ago
parent
commit
1ccf79987d
  1. 33
      supply/index.html

33
supply/index.html

@ -298,37 +298,6 @@ $('.button-group').each( function( i, buttonGroup ) {
})(jQuery);
}
</script>
<script>
$(document).ready(function() {
if(localStorage.getItem('language') != null) {
language = localStorage.getItem('language');
$.ajax({
url: '/translations/' + language + '.xml',
success: function(xml) {
$(xml).find('translation').each(function(){
var id = $(this).attr('id');
var text = $(this).text();
$("." + id).html(text);
});
}
});
}
});
function testch(id) {
localStorage.setItem('language', id);
language = id
$.ajax({
url: '/translations/' + language + '.xml',
success: function(xml) {
$(xml).find('translation').each(function(){
var id = $(this).attr('id');
var text = $(this).text();
$("." + id).html(text);
});
}
});
};
</script>
</body>
</html>

Loading…
Cancel
Save