line to add an accordion bar. -->
Action Taken Report -2023-2024
Action Taken Report -2024-2025
Action Taken Report -2025-2026
IQAC Initatives -2023-2024
IQAC Initatives -2024-2025
IQAC Initatives -2025-2026
IQAC Initatives -2023-2024- April
IQAC Initatives -2023-2024- January
IQAC Initatives -2024-2025- January
IQAC Initatives -2025-2026 -December
IQAC Initatives -2023-2024- August
IQAC Initatives -2024-2025- August
IQAC Initatives -2024-2025- May
IQAC Initatives -2025-2026 -February
(function () {
/* ✏️ SETTINGS */
var PROXY = "/pdf-proxy.php?u="; /* optional: path to pdf-proxy.php on your site ("" = not used) */
var WATERMARK = "St. Paul’s College"; /* text stamped on every page ("" = none) */
var IFRAME_FALLBACK = true; /* if a PDF cannot be drawn, show the share link in a frame instead */
/* ---- code below needs no changes ---- */
if (window.pdfjsLib) pdfjsLib.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";
function ic(p) { return '' + p + ""; }
var ICONS = {
file: ic(''),
bulb: ic(''),
eye: ic(''),
book: ic(''),
star: ic('')
};
var ARROW = '';
function stamp(x, w, h, d) {
if (!WATERMARK) return;
x.save(); x.globalAlpha = .13; x.fillStyle = "#b91c27"; x.textAlign = "center"; x.font = "600 " + 26 * d + "px Arial";
x.translate(w / 2, h / 2); x.rotate(-Math.PI / 6);
var s = Math.max(w, h);
for (var i = -s, r = 0; i <= s; i += 190 * d, r++) for (var j = -s; j <= s; j += 340 * d) x.fillText(WATERMARK, j + (r % 2 ? 170 * d : 0), i);
x.restore();
}
async function draw(c) {
var w = c.clientWidth;
if (!w || c._w === w) return;
c._w = w;
var d = Math.min(window.devicePixelRatio || 1, 2), v = c._p.getViewport({ scale: 1 });
v = c._p.getViewport({ scale: w / v.width * d });
c.width = v.width; c.height = v.height;
var x = c.getContext("2d");
await c._p.render({ canvasContext: x, viewport: v }).promise;
stamp(x, v.width, v.height, d);
}
function direct(u) { return /^https:\/\/docserve\.stpaulscollege\.edu\.in\/s\/[A-Za-z0-9]+\/?$/.test(u) ? u.replace(/\/$/, "") + "/download" : u; }
function frame(box, url) {
if (!IFRAME_FALLBACK) { box.innerHTML = '
This document could not be loaded. Please try again later.
'; return; }
var f = document.createElement("iframe");
f.src = url; f.title = "Document"; f.style.cssText = "display:block;width:100%;height:100%;border:0;border-radius:6px;background:#fff";
box.innerHTML = ""; box.style.padding = "0"; box.appendChild(f);
}
async function load(box, url) {
var srcs = [], pdf = null, k;
if (PROXY) srcs.push(PROXY + encodeURIComponent(url));
srcs.push(direct(url));
if (window.pdfjsLib) for (k = 0; k < srcs.length && !pdf; k++) { try { pdf = await pdfjsLib.getDocument({ url: srcs[k] }).promise; } catch (e) {} }
if (!pdf) return frame(box, url);
try {
box.innerHTML = "";
var io = new IntersectionObserver(function (es) { es.forEach(function (e) { if (e.isIntersecting) draw(e.target); }); }, { root: box, rootMargin: "600px 0px" });
for (var n = 1; n <= pdf.numPages; n++) {
var p = await pdf.getPage(n), v = p.getViewport({ scale: 1 }), c = document.createElement("canvas");
c.width = v.width; c.height = v.height; c._p = p; c.style.aspectRatio = v.width + "/" + v.height;
box.appendChild(c); io.observe(c);
}
var t; new ResizeObserver(function () { clearTimeout(t); t = setTimeout(function () {
box.querySelectorAll("canvas").forEach(function (c) { c._w = 0; io.unobserve(c); io.observe(c); });
}, 200); }).observe(box);
} catch (e) { box.innerHTML = '
This document could not be loaded. Please try again later.
'; }
}
function buildItem(it) {
var el = document.createElement("div"), bar = document.createElement("button"), body = document.createElement("div"), sp = document.createElement("span"), loaded = false, label = it.textContent.trim();
el.className = "item"; bar.type = "button"; bar.className = "bar"; bar.setAttribute("aria-expanded", "false");
bar.innerHTML = '
' + ARROW + ""; sp.textContent = label; bar.appendChild(sp);
body.className = "body"; body.hidden = true; el.appendChild(bar); el.appendChild(body);
bar.onclick = function () {
var open = body.hidden;
body.hidden = !open; bar.setAttribute("aria-expanded", open); el.classList.toggle("open", open);
if (open && !loaded) {
loaded = true;
body.innerHTML = '
';
load(body.firstChild, it.getAttribute("data-pdf"));
}
};
return el;
}
document.addEventListener("keydown", function (e) { if ((e.ctrlKey || e.metaKey) && "ps".indexOf(e.key.toLowerCase()) > -1) e.preventDefault(); });
document.querySelectorAll(".pdfacc").forEach(function (root) {
["contextmenu", "dragstart", "copy", "cut"].forEach(function (ev) { root.addEventListener(ev, function (e) { e.preventDefault(); }); });
var groups = [].slice.call(root.querySelectorAll(".group")), list = [], cur = null;
var tabs = document.createElement("div"), stage = document.createElement("div"), mq = window.matchMedia("(min-width:769px)");
tabs.className = "tabs"; stage.className = "stage";
groups.forEach(function (g, i) {
var wrap = document.createElement("div"), tab = document.createElement("button"), panel = document.createElement("div"), label = document.createElement("span");
wrap.className = "wrap"; tab.type = "button"; tab.className = "tab"; tab.setAttribute("aria-selected", "false");
tab.innerHTML = '
' + (ICONS[g.getAttribute("data-icon")] || ICONS.file) + "";
label.textContent = g.getAttribute("data-title"); tab.appendChild(label);
panel.className = "panel"; panel.hidden = true;
[].slice.call(g.querySelectorAll(".item")).forEach(function (it) { panel.appendChild(buildItem(it)); });
wrap.appendChild(tab); tabs.appendChild(wrap);
list.push({ wrap: wrap, tab: tab, panel: panel });
tab.onclick = function () { select(i); };
g.remove();
});
function select(i) {
var open = !(cur === i && !mq.matches);
if (cur !== null) { list[cur].tab.setAttribute("aria-selected", "false"); list[cur].panel.hidden = true; }
cur = null;
if (!open) return;
cur = i; list[i].tab.setAttribute("aria-selected", "true"); list[i].panel.hidden = false;
}
function place() { list.forEach(function (d) { (mq.matches ? stage : d.wrap).appendChild(d.panel); }); }
root.appendChild(tabs); root.appendChild(stage); place();
mq.addEventListener("change", function () { place(); if (mq.matches && cur === null) select(0); });
if (mq.matches && list.length) select(0);
});
})();