skip to Main Content

How do I change the brightness of an image? – Javascript

I want to make a simple web photo editor. I need to change the brightness, contrast. Here's the code. <script setup lang="ts"> import { ref } from 'vue' import { getFromDB } from './db.ts' const data=ref(getFromDB()) const img=ref<HTMLImageElement>() const onLighter=()=>img.value.style['filter']='brightness(120%)';…

VIEW QUESTION

Primevue dialog modal cant show in vue 3? – Javascript

I use [email protected] and [email protected] main.js import { createApp } from 'vue' import App from './App.vue' import router from './router' import PrimeVue from 'primevue/config'; import './assets/main.css' // primevue-css import "primevue/resources/themes/lara-light-indigo/theme.css"; import "primevue/resources/primevue.min.css"; import 'primeicons/primeicons.css'; import '/node_modules/primeflex/primeflex.css'; const app = createApp(App)…

VIEW QUESTION

Filtering a laravel api response with vue3?

I have the vue component below: <template> <div class="container"> <div class="row"> <div class="col-md-4" v-for="product in products" :key="product.id"> <div class="card mb-4"> <!-- <img :src="product.image" class="card-img-top" alt="..."> --> <div class="card-body"> <h5 class="card-title">{{ product.name }}</h5> <p class="card-text">{{ product.description }}</p> <a href="#" class="btn btn-primary">Buy</a>…

VIEW QUESTION
Back To Top
Search