This repository contains a simple redirect page that automatically redirects visitors to the data.norge.no technical documentation.
This is a GitHub Pages site that provides a professional redirect experience with:
- Automatic redirect after 5 seconds to data.norge.no technical documentation
- Manual redirect button for immediate navigation
- Loading animation with countdown timer
- Professional styling matching data.norge.no design
- Responsive design that works on all devices
- Dark mode support for better accessibility
- Clean, professional layout matching data.norge.no branding
- Official data.norge.no logo and favicons
- Responsive design for mobile and desktop
- Dark mode support with
prefers-color-scheme
- 5-second countdown timer with visual feedback
- Spinning loading animation
- Clear messaging in Norwegian
- Accessible design with proper focus states
- HTML5 with semantic markup
- CSS3 with modern features (flexbox, grid, animations)
- Vanilla JavaScript for countdown and redirect
- GitHub Actions for automatic deployment
The site is automatically deployed to GitHub Pages when changes are pushed to the master branch.
- Push changes to
masterbranch - GitHub Actions automatically builds and deploys
- Site is available at the configured GitHub Pages URL
- GitHub Pages enabled in repository settings
- Source set to "GitHub Actions"
To run this project locally:
# Clone the repository
git clone https://github.com/Informasjonsforvaltning/docs.git
cd docs
# Open index.html in a web browser
# Or serve with a local server:
python -m http.server 8000
# Then visit http://localhost:8000docs/
├── index.html # Main redirect page
├── .github/
│ └── workflows/
│ └── main.yml # GitHub Actions deployment
├── .gitignore # Git ignore rules
└── README.md # This file
Update the target URL in index.html:
- Line 8:
<meta http-equiv="refresh" content="5; url=NEW_URL"> - Line 295:
window.location.href = "NEW_URL"; - Line 275:
<a href="NEW_URL" class="button">
Update the countdown duration:
- Line 8: Change
content="5;to desired seconds - Line 295: Change
5000to milliseconds (seconds × 1000) - Line 285: Change
let timeLeft = 5;to desired seconds
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally
- Submit a pull request
This project is part of the Informasjonsforvaltning organization and follows the same licensing as other data.norge.no projects.