great-website/src/index.js
Kumi 932f8f98b1
feat: set up webpack with Babel and SASS
This commit sets up webpack as the module bundler along with
configurations for transforming ES6+ code using Babel and compiling SASS
into CSS. It includes necessary dependencies such as `babel-loader`,
`sass-loader`, `css-loader`, `style-loader`, and plugins like
`mini-css-extract-plugin` to extract CSS into separate files. This setup
facilitates the development of a modern web application by enabling the
use of the latest JavaScript features and streamlined CSS
pre-processing.
2024-03-28 09:03:13 +01:00

17 lines
308 B
JavaScript

import "@ionic/core";
const Bowser = require("bowser");
const browser = Bowser.getParser(window.navigator.userAgent).parsedResult
.browser.name;
console.log(browser);
const spans = document.querySelectorAll(".browser");
console.log(spans);
spans.forEach((span) => {
span.textContent = browser;
});