First
This commit is contained in:
110
index.php
Normal file
110
index.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Prajwal's Astro Analysis</title>
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container py-5">
|
||||
<div class="text-center mb-5">
|
||||
<h1 class="fw-bold text-warning">Prajwal's Astro Analysis</h1>
|
||||
<p class="text-light">Analyze planetary positioning, nakshatra, and horoscope from selected date, time, and location.</p>
|
||||
</div>
|
||||
|
||||
<div class="main-card p-4 p-md-5">
|
||||
<div class="row g-4 align-items-start">
|
||||
<div class="col-lg-12">
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<label class="form-label">Select Date</label>
|
||||
<input type="date" class="form-control" id="datePicker">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label class="form-label">Select Time</label>
|
||||
<input type="time" class="form-control" id="timePicker">
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<label class="form-label">Select Location</label>
|
||||
<select class="form-select" id="locationSelector">
|
||||
<option selected disabled>Choose location</option>
|
||||
<option>Kathmandu</option>
|
||||
<option>Pokhara</option>
|
||||
<option>Lalitpur</option>
|
||||
<option>Bhaktapur</option>
|
||||
<option>Biratnagar</option>
|
||||
<option>Chitwan</option>
|
||||
<option>Butwal</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<button class="btn btn-custom w-100 mt-2">Analyze</button>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="row g-3 mb-4">
|
||||
<div class="info-box">
|
||||
<div class="section-title">Geocentric Positioning of Planets</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="chart-wrapper">
|
||||
<div class="astro-circle" id="astroCircle">
|
||||
<div class="earth-center">
|
||||
<img src="https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg" alt="Earth">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const astroCircle = document.getElementById("astroCircle");
|
||||
|
||||
const centerX = 260;
|
||||
const centerY = 260;
|
||||
const radius = 220;
|
||||
|
||||
for (let i = 0; i < 12; i++) {
|
||||
const angleDeg = i * 30;
|
||||
const angleRad = (angleDeg - 90) * Math.PI / 180;
|
||||
|
||||
// segment lines
|
||||
const line = document.createElement("div");
|
||||
line.classList.add("segment-line");
|
||||
line.style.transform = `translateX(-50%) rotate(${angleDeg}deg)`;
|
||||
astroCircle.appendChild(line);
|
||||
|
||||
// segment number positions
|
||||
const number = document.createElement("div");
|
||||
number.classList.add("segment-number");
|
||||
number.innerText = i + 1;
|
||||
|
||||
const numberRadius = radius - 25;
|
||||
const x = centerX + numberRadius * Math.cos(angleRad);
|
||||
const y = centerY + numberRadius * Math.sin(angleRad);
|
||||
|
||||
number.style.left = `${x}px`;
|
||||
number.style.top = `${y}px`;
|
||||
|
||||
astroCircle.appendChild(number);
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user