import 'dart:html' show HttpRequest;
import 'package:html/parser.dart' show parse;
// Get the sitemap content
Future getSitemap() async {
const path = 'sitemap.html';
try {
return await HttpRequest.getString(path);
} catch (e) {
print('Couldn’t open $path');
}
return 'Error';
}
// This function returns a Map which contains all links to languages detected
// from the sitemap.
Future