`;
li.addEventListener("click", () => handleNavClick(idx));
syllabusNav.appendChild(li);
});
// Load the first syllabus by default
if (allData.length > 0) {
handleNavClick(0);
}
});
// enroll with confidance
document.addEventListener("DOMContentLoaded", () => {
const data = [
{
img: "https://thepilot.in/wp-content/uploads/2025/06/2-ewc-meteorology.jpg",
title: "Meteorology",
videoUrl: "https://www.youtube.com/embed/ppA3xhDhW38?si=O1kLnthTVlx85iUz",
desc: "Air meteorology is the study of the Earth's atmosphere and its impact on aviation, equipping pilots with essential knowledge to navigate safely through changing weather conditions and optimize flight operations.",
},
{
img: "https://thepilot.in/wp-content/uploads/2025/06/2-ewc-reg.jpg",
title: "Regulations",
videoUrl: "https://www.youtube.com/embed/DxFsMTB05hs?si=JnwGkF4VgEgA3JQa",
desc: "Air regulations, a critical component of pilot training, encompass the rules and guidelines governing aviation operations to ensure safety, compliance, and efficient air travel, enabling pilots to operate aircraft in accordance with legal and safety standards.",
},
{
img: "https://thepilot.in/wp-content/uploads/2025/06/2-ewc-nav.jpg",
title: "Navigation",
videoUrl: "https://www.youtube.com/embed/iDfBFG4wKcY?si=64751-7RjOFwvYTI",
desc: "Air navigation, a fundamental aspect of pilot training, involves mastering the skills and techniques needed to plan routes, navigate in the sky, and safely guide aircraft to their destinations, ensuring precise and efficient flight operations.",
},
{
img: "https://thepilot.in/wp-content/uploads/2025/06/2-ewc-rtr.jpg",
title: "RTR",
videoUrl: "https://www.youtube.com/embed/Cvg1M7BnQGM?si=wR4ay2vqg5cyhWIg",
desc: "Radio telephony encompasses the communication techniques and protocols essential for effective and safe air-to-ground and air-to-air communication, ensuring seamless interactions between pilots and air traffic control for safe and efficient flights.",
},
{
img: "https://thepilot.in/wp-content/uploads/2024/03/enroll5-1.png.webp",
title: "Technical General",
videoUrl: "https://www.youtube.com/embed/rQRVGH3aXqc?si=ZvlpQb8AblzBfKWW",
desc: "Technical general, a vital subject in pilot training, covers essential aspects of aircraft systems and engines providing pilots with the knowledge and expertise to operate and troubleshoot aircraft systems effectively, ensuring the safety of passengers and crew. ",
},
];
const carousel = document.getElementById("enrollCardCarousel");
// Inject cards
data.forEach((item) => {
const card = document.createElement("div");
card.className =
"w-[260px] md:w-[300px] lg:w-[350px] shrink-0 bg-[#CAE7F666] overflow-hidden rounded-xl flex flex-col gap-1";
// card.innerHTML = `
//
//
// //
// //
// //
//
//
//
//
// ${item.title}
//
//
// ${item.desc}
//
//
//
//
//
//
//
// Online & Offline Classes
//
//
// `;
card.innerHTML = `
${item.title}
${item.desc}
Online & Offline Classes
`;
carousel.appendChild(card);
});
});
// ewc script
document.addEventListener("DOMContentLoaded", function () {
const videoContainers = document.querySelectorAll(".video-container");
videoContainers.forEach(function (videoContainer) {
const bgUrl = videoContainer.getAttribute("bg-url");
const videoUrl = videoContainer.getAttribute("video-url");
const videoPlayer = videoContainer.querySelector(".video-player");
function loadYouTubeVideo() {
videoContainer.innerHTML =
'';
}
try {
// Auto-scroll every 100ms
setInterval(() => {
scrollGalleryCards("right");
}, 1000);
} catch(e) {
console.log(e)
}
// Use when video on click is required
// videoPlayer.addEventListener("click", loadYouTubeVideo);
});
});
function scrollEnrollCards(direction) {
const container = document.getElementById("enrollCardCarousel");
const scrollAmount = 200;
if (direction === "left") {
container.scrollBy({ left: -scrollAmount, behavior: "smooth" });
} else if (direction === "right") {
container.scrollBy({ left: scrollAmount, behavior: "smooth" });
}
}
function scrollGalleryCards(direction) {
const container = document.getElementById("galleryCardCarousel");
if (!container) return;
const scrollAmount = 200;
const maxScrollLeft = container.scrollWidth - container.clientWidth; // <- correct max
if (direction === "left") {
if (container.scrollLeft <= 0) {
container.scrollLeft = maxScrollLeft; // jump to end
} else {
container.scrollBy({ left: -scrollAmount, behavior: "smooth" });
}
} else if (direction === "right") {
if (container.scrollLeft >= maxScrollLeft - 1) {
container.scrollLeft = 0; // jump to start
} else {
container.scrollBy({ left: scrollAmount, behavior: "smooth" });
}
}
}
// syllabus mobile
document.addEventListener("DOMContentLoaded", function () {
const syllabusItems = [
{
title: "Air Meteorology",
isMultiple: false,
chunks: [
{
chunk: [
"Atmosphere",
"Atmospheric Pressure",
"Temperature",
"Air Density",
"Humidity",
"Winds",
"Visibility & Fog",
"Vertical Motion & Clouds",
],
},
{
chunk: [
"Stability and Instability of Atmosphere",
"Optical Phenomena",
"Precipitation",
"Ice Accretion",
"Thunderstorm",
"Air Masses Fronts & Western Disturbances",
"Jet Streams",
"Clear Air Turbulence",
"Mountain Waves",
],
},
{
chunk: [
"Tropical Systems",
"Climatology of India",
"General Circulation",
"Met Services for Aviation",
"Weather Radar & Met Satellites",
"Met Instruments",
"Station Model",
"Aerodrome Met Reports and Codes of METAR & SPECI",
"Aviation Weather Forecasts",
],
},
{
chunk: [
"Tropical Systems",
"Climatology of India",
"Radar Report, Sigmet Message and Satellite Bulletin",
"Met Documentation and Briefing",
"Flight Forecast",
],
},
],
},
{
title: "Air Regulations",
isMultiple: false,
chunks: [
{
chunk: [
"Definitions & Abbreviations",
"International Organisations and Conventions",
"Aircraft Nationality and Registration Marks",
"Rules of Air",
"Air Traffic Services",
"Area Control Services",
"Approach Control Service",
],
},
{
chunk: [
"Procedures for Aerodrome Control Service",
"Use of Air Traffic Services Surveillance System",
"Aeronautical Information Services",
"Search and Rescue",
"Visual Aids for Navigation",
"Procedures for Air Navigation Services Aircraft Operations",
"National Law",
],
},
{
chunk: [
"Personnel Licensing",
"Airworthiness of Aircraft",
"Operational Procedures",
"Special Operational Procedures and Hazards",
"Communications",
"Aircraft Accident and Incident",
"Facilitation",
],
},
{
chunk: [
"Security - Safeguarding International Civil Aviation against Acts of Unlawful Interference",
"Human Performance and Limitations",
"Revision",
],
},
],
},
{
title: "Air Navigation",
isMultiple: true,
titles: [
{
title: "General Navigation",
chunks: [
{
chunk: [
"Direction, Latitude and Longitude",
"Great Circles, Rhumb Lines & Directions on the Earth",
"Earth Magnetism",
"The Direct Indicating Compass",
"Aircraft Magnetism",
"Navigation Computer Functions",
"The 1 in 60 rule and Application of the same",
],
},
{
chunk: [
"General Navigation Problems",
"Convergency and Conversion Angle",
"Departure",
"Scale",
"General Chart Properties",
"Mercator Charts",
"Lambert's Conformal Chart-1",
],
},
{
chunk: [
"The Polar Stereographic Chart",
"Gridded Charts",
"Plotting",
"Topographical Maps and Map Reading",
],
},
],
},
{
title: "Radio Navigation",
chunks: [
{
chunk: [
"Radio Propagation Theory",
"Properties of Radio Waves",
"Modulation",
"Antennae",
"Doppler Radar Systems",
"VHF Direction Finder (VDF)",
"Automatic Direction Finder (ADF)",
],
},
{
chunk: [
"VHF Omni-directional Range (VOR)",
"Instrument Landing System (ILS)",
"Microwave Landing System (MLS)",
"Ground Radar & Principles",
"Airborne Weather Radar",
"Secondary Surveillance Radar (SSR)",
"Distance Measuring Equipment (DME)",
],
},
{
chunk: [
"Area Navigation Systems (RNAV)",
"Electronic Flight Information System (EFIS) & Global Navigation Satellite System (GNSS)",
],
},
],
},
{
title: "Flight Planning",
chunks: [
{
chunk: [
"Air Information Publications",
"Fuel Policy and Fuel Monitoring",
"Nautical Air Miles",
"Single-engine Piston Aeroplane (SEP)",
"Multi-engine Piston Aeroplane (MEP)",
"Simplified Flight Planning",
"Detailed Flight Planning, En Route Climb Table, Cruise/Integrated Range Tables, Descent Tables",
],
},
{
chunk: [
"Topographical Chart",
"Airways - Miscellaneous Charts",
"ATC Flight Plan",
"Point of Equal Time (PET)",
"Point of Safe Return (PSR)",
],
},
],
},
{
title: "Instruments",
chunks: [
{
chunk: [
"Air data instruments",
"Gyroscopic instruments",
"Magnetic Compass",
"Radio Altimeter",
"Power Plant and System Monitoring Instruments",
],
},
],
},
],
},
{
title: "Technical General",
isMultiple: false,
chunks: [
{
chunk: [
"Introduction to Technical General",
"Powerplant - Piston Engines",
"Power plant -Gas Turbines",
"Landing Gear",
"Flight Controls",
"Hydraulics",
"Air Systems & Air Conditioning",
],
},
{
chunk: [
"Anti-icing & De-icing",
"Fuel Systems",
"Emergency Equipment",
"Electrics – Electronics Direct Current",
"Electrics – Electronics Alternating Current",
"Airframes & Systems",
"Fuselage, Wings & Stabilising Surfaces",
],
},
{
chunk: [
"Instrumentation - Flight Instruments",
"Instrumentation-Warning & Recording",
"Instrumentation-Automatic Flight Control",
"Instrumentation-Power Plant & System Monitoring Instruments",
"Principles of Flight- Overview and Definitions",
"Principles of Flight- Basic Aerodynamic Theory",
"Principles of Flight-Subsonic Airflow",
],
},
{
chunk: [
"Principles of Flight- Lift",
"Principles of Flight- Drag",
"Principles of Flight- Stalling",
"Principles of Flight-High Lift Devices",
"Principles of Flight-Airframe Contamination",
"Principles of Flight- Stability and Control",
"Principles of Flight-Controls",
],
},
{
chunk: [
"Principles of Flight- Flight Mechanics",
"Principles of Flight-High Speed Flight",
"Principles of Flight- Limitations",
"Principles of Flight-Propellers",
"Principles of Flight- The Atmosphere",
],
},
],
},
{
title: "RTR",
isMultiple: true,
titles: [
{
title: "Part 1",
chunks: [
{
chunk: [
"Introduction, RTR Exam Syllabus and Information on How to crack RTR Exam",
"Organisations",
"Aeronautical Services",
],
},
],
},
{
title: "Part 2 (Radio Telephony Procedures)",
chunks: [
{
chunk: [
"Glossary",
"General Operating Procedures",
"General RT Phraseology",
],
},
{
chunk: [
"Aerodrome Control of Aircraft Traffic",
"Aerodrome Control of Vehicular Traffic",
"General ATS Surveillance Service Phraseology",
"Approach Control",
"Area Control",
"Distress and Urgency Procedures and Communications failure procedures",
],
},
{
chunk: [
"Transmission of Meteorological and other Aerodrome Information",
"Miscellaneous Flight Handling Phraseology",
"HF Communications",
"Visual Signals, Runway/Taxiway Markings/Lightings",
"Miscellaneous",
],
},
],
},
{
title: "Part 3 (Principles And Practice Chapter)",
chunks: [
{
chunk: [
"Electricity and Magnetism",
"Radio Theory",
"Aircraft Communication and Voice Systems",
"Aircraft Navigation Systems",
],
},
],
},
],
},
];
const syllabusContainer = document.getElementById("syllabus-item-container");
syllabusItems.forEach((item) => {
if (!item.isMultiple) {
let curTile = 0;
const syllabusItem = document.createElement("div");
syllabusItem.classList = "syllabus-item w-full flex flex-col";
syllabusItem.innerHTML = `