Changes to gstextract.scroll.pub

root
root
26 days ago
Initial commit
body.html
Changed around line 1
+
+
+
+
+
+
+
+
+
+
+

Extract GST Details Instantly

+

Upload your PDF documents or images and get structured GST information

+
+
+
+
+
+ Upload icon
+

Drop files here or click to upload

+

Supports PDF, JPG, PNG formats

+
+
+
+
+
+
+

Extracted Details

+
+
+
+
+
+

How It Works

+
+
+

Upload

+

Drag & drop or select your files

+
+
+

Process

+

Advanced scanning extracts GST details

+
+
+

Results

+

Get structured data instantly

+
+
+
+
+
+
+

GST Extract - Simplifying document processing

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://gstextract.scroll.pub
+ metaTags
+ title Extract GST Details | PDF & Image Scanner
+ description Upload PDFs and images to instantly extract GST details and line items. Fast, secure, and free to use.
+ keywords gst extraction, pdf scanner, invoice scanner, gst details, document processing
+ editButton /edit.html
+ title Extract GST Details | PDF & Image Scanner
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # gstextract.scroll.pub
+ Website generated by Claude from prompt: I want a website where user can upload pdf which are in text or image format or Images in jpg, and should extract all GST details , line items
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const dropZone = document.getElementById('dropZone');
+ const fileInput = document.getElementById('fileInput');
+ const fileList = document.getElementById('fileList');
+ const resultsContainer = document.getElementById('resultsContainer');
+
+ // Handle file selection via click
+ dropZone.addEventListener('click', () => {
+ fileInput.click();
+ });
+
+ // Handle drag and drop
+ dropZone.addEventListener('dragover', (e) => {
+ e.preventDefault();
+ dropZone.style.backgroundColor = 'rgba(108, 99, 255, 0.1)';
+ });
+
+ dropZone.addEventListener('dragleave', () => {
+ dropZone.style.backgroundColor = '';
+ });
+
+ dropZone.addEventListener('drop', (e) => {
+ e.preventDefault();
+ dropZone.style.backgroundColor = '';
+ handleFiles(e.dataTransfer.files);
+ });
+
+ fileInput.addEventListener('change', () => {
+ handleFiles(fileInput.files);
+ });
+
+ function handleFiles(files) {
+ fileList.innerHTML = '';
+ Array.from(files).forEach(file => {
+ if (validateFile(file)) {
+ const fileItem = createFileItem(file);
+ fileList.appendChild(fileItem);
+ processFile(file);
+ }
+ });
+ }
+
+ function validateFile(file) {
+ const validTypes = ['application/pdf', 'image/jpeg', 'image/png'];
+ if (!validTypes.includes(file.type)) {
+ alert('Please upload PDF, JPG, or PNG files only');
+ return false;
+ }
+ return true;
+ }
+
+ function createFileItem(file) {
+ const div = document.createElement('div');
+ div.className = 'file-item';
+ div.innerHTML = `
+ ${file.name}
+ ${formatFileSize(file.size)}
+ `;
+ return div;
+ }
+
+ function formatFileSize(bytes) {
+ if (bytes === 0) return '0 Bytes';
+ const k = 1024;
+ const sizes = ['Bytes', 'KB', 'MB', 'GB'];
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
+ }
+
+ function processFile(file) {
+ // Simulated processing - in real implementation, this would connect to a backend service
+ const reader = new FileReader();
+ reader.onload = () => {
+ // Simulate processing delay
+ setTimeout(() => {
+ displayResults({
+ gstNumber: 'XX' + Math.random().toString().slice(2, 11),
+ companyName: 'Sample Company Ltd.',
+ invoiceNumber: 'INV-' + Math.random().toString().slice(2, 8),
+ amount: '₹' + (Math.random() * 10000).toFixed(2),
+ date: new Date().toLocaleDateString()
+ });
+ }, 1500);
+ };
+ reader.readAsDataURL(file);
+ }
+
+ function displayResults(data) {
+ const resultsContent = resultsContainer.querySelector('.results-content');
+ resultsContent.innerHTML = `
+
+ GST Number: ${data.gstNumber}
+
+
+ Company Name: ${data.companyName}
+
+
+ Invoice Number: ${data.invoiceNumber}
+
+
+ Amount: ${data.amount}
+
+
+ Date: ${data.date}
+
+ `;
+ resultsContainer.style.display = 'block';
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #6c63ff;
+ --secondary-color: #2c3e50;
+ --background-color: #f8f9fa;
+ --text-color: #333;
+ --border-radius: 8px;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ }
+
+ header {
+ background: white;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 1000;
+ }
+
+ nav {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 1rem;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: var(--primary-color);
+ }
+
+ .nav-links a {
+ color: var(--secondary-color);
+ text-decoration: none;
+ margin-left: 2rem;
+ transition: color 0.3s;
+ }
+
+ .nav-links a:hover {
+ color: var(--primary-color);
+ }
+
+ main {
+ margin-top: 4rem;
+ }
+
+ .hero {
+ text-align: center;
+ padding: 4rem 1rem;
+ background: linear-gradient(135deg, #6c63ff0d 0%, #6c63ff1a 100%);
+ }
+
+ .hero h1 {
+ font-size: 2.5rem;
+ color: var(--secondary-color);
+ margin-bottom: 1rem;
+ }
+
+ .upload-section {
+ max-width: 1200px;
+ margin: 2rem auto;
+ padding: 2rem;
+ }
+
+ .upload-container {
+ background: white;
+ border-radius: var(--border-radius);
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ padding: 2rem;
+ }
+
+ .upload-area {
+ border: 2px dashed var(--primary-color);
+ border-radius: var(--border-radius);
+ padding: 3rem;
+ text-align: center;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ }
+
+ .upload-area:hover {
+ background-color: rgba(108, 99, 255, 0.05);
+ }
+
+ .upload-area h2 {
+ margin: 1rem 0;
+ color: var(--secondary-color);
+ }
+
+ .file-list {
+ margin-top: 2rem;
+ }
+
+ .file-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem;
+ background: #f8f9fa;
+ border-radius: var(--border-radius);
+ margin-bottom: 0.5rem;
+ }
+
+ .results-container {
+ margin-top: 2rem;
+ background: white;
+ border-radius: var(--border-radius);
+ padding: 2rem;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ }
+
+ .about-section {
+ background: white;
+ padding: 4rem 2rem;
+ text-align: center;
+ }
+
+ .features {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 2rem auto;
+ }
+
+ .feature {
+ padding: 2rem;
+ background: var(--background-color);
+ border-radius: var(--border-radius);
+ transition: transform 0.3s;
+ }
+
+ .feature:hover {
+ transform: translateY(-5px);
+ }
+
+ footer {
+ background: var(--secondary-color);
+ color: white;
+ text-align: center;
+ padding: 2rem;
+ margin-top: 4rem;
+ }
+
+ @media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+
+ .upload-section {
+ padding: 1rem;
+ }
+
+ .features {
+ grid-template-columns: 1fr;
+ }
+ }