Screen Reader Access
-
Home
›
Screen Reader Access
The Embassy of India, Bucharest, Romania, website complies with World Wide Web Consortium (W3C) Web Content Accessibility Guidelines (WCAG) 2.0 level AA. This will enable people with visual impairments access the website using assistive technologies, such as screen readers. The information of the website is accessible with different screen readers.
Various Screen Readers to choose from
document.addEventListener("DOMContentLoaded", function() {
// Website ke sabhi PDF links ko target karein
var pdfLinks = document.querySelectorAll('a[href*=".pdf"]');
pdfLinks.forEach(function(link) {
var originalText = link.textContent.trim();
// Agar pehle se text mein PDF nahi likha hai
if (!originalText.toLowerCase().includes('pdf')) {
// 1. Screen readers aur WAVE tool ke liye aria-label set karein (Mandatory for IS 17802)
link.setAttribute('aria-label', originalText + ' (PDF Document)');
// 2. Normal users ko screen par saaf-saaf bold mein dikhane ke liye
link.innerHTML = link.innerHTML + '
(PDF)';
}
});
});
// External link click listener
document.querySelectorAll('a').forEach(function(link) {
if (link.hostname && link.hostname !== window.location.hostname) {
link.addEventListener('click', function(e) {
var confirmLeave = confirm("You are leaving the official website of Embassy of India and moving to an external link. Do you want to proceed?");
if (!confirmLeave) {
e.preventDefault();
}
});
}
});