Vuetify — Button Groups

Vuetify is a popular UI framework for Vue apps.

In this article, we’ll look at how to work with the Vuetify framework.

Button Groups

The v-btn-toggle component is a wrapper for v-item-group that works with v-btn components.

We can use it to add a group of buttons that can be toggled.

For example, we can write:

  <v-container class="grey lighten-5">
        <v-card flat class="py-12">
            <v-row align="center" justify="center">
              <v-btn-toggle v-model="toggle" rounded>

#javascript #web-development #programming

What is GEEK

Buddha Community

Vuetify — Button Groups

Upload, Preview & Download Images using JavaScript & PHP

In this guide, you’ll learn how to Upload, Preview & Download Images using JavaScript & PHP.

To create Upload, Preview & Download Images using JavaScript & PHP. First, you need to create two Files one PHP File and another one is CSS File.

1: First, create a PHP file with the name of index.php


//if download button clicked
    //getting the user img url from input field
    $imgURL = $_POST['file']; //storing in variable
    $regPattern = '/\.(jpe?g|png|gif|bmp)$/i'; //pattern to validataing img extension
    if(preg_match($regPattern, $imgURL)){ //if pattern matched to user img url
        $initCURL = curl_init($imgURL); //intializing curl
        curl_setopt($initCURL, CURLOPT_RETURNTRANSFER, true);
        $downloadImgLink = curl_exec($initCURL); //executing curl
        curl_close($initCURL); //closing curl
        // now we convert the base 64 format to jpg to download
        header('Content-type: image/jpg'); //in which extension you want to save img
        header('Content-Disposition: attachment;filename="image.jpg"'); //in which name you want to save img
        echo $downloadImgLink;
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Image Download in PHP | Codequs</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href=""/>
    <script src=""></script>
    <div class="wrapper">
        <div class="preview-box">
            <div class="cancel-icon"><i class="fas fa-times"></i></div>
            <div class="img-preview"></div>
            <div class="content">
                <div class="img-icon"><i class="far fa-image"></i></div>
                <div class="text">Paste the image url below, <br/>to see a preview or download!</div>
        <form action="index.php" method="POST" class="input-data">
            <input id="field" type="text" name="file" placeholder="Paste the image url to download..." autocomplete="off">
            <input id="button" name="downloadBtn" type="submit" value="Download">
            //if user focus out from the input field
            $("#field").on("focusout", function(){
                //getting user entered img URL
                var imgURL = $("#field").val();
                if(imgURL != ""){ //if input field isn't blank
                    var regPattern = /\.(jpe?g|png|gif|bmp)$/i; //pattern to validataing img extension
                    if(regPattern.test(imgURL)){ //if pattern matched to image url
                        var imgTag = '<img src="'+ imgURL +'" alt="">'; //creating a new img tag to show img
                        $(".img-preview").append(imgTag); //appending img tag with user entered img url
                        // adding new class which i've created in css
                        $(".cancel-icon").on("click", function(){
                            //we'll remove all new added class on cancel icon click
                            $(".img-preview img").remove();
                            // that's all in javascript/jquery now the main part is PHP
                        alert("Invalid img URL - " + imgURL);
                        $("#field").val('');//if pattern not matched we'll leave the input field blank


2: Second, create a CSS file with the name of style.css


@import url(';300;400;500;600;700&display=swap');
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    display: grid;
    height: 100%;
    place-items: center;
   color: #fff;
   background: #4158d0;    
    height: 450px;
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
.wrapper .preview-box{
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 2px dashed #c2cdda;
    border: 2px solid transparent;
.preview-box .cancel-icon{
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 999;
    color: #4158d0;
    font-size: 20px;
    cursor: pointer;
    display: none;
.preview-box.imgActive:hover .cancel-icon{
    display: block;
.preview-box .cancel-icon:hover{
    color: #ff0000;
.preview-box .img-preview{
    height: 100%;
    width: 100%;
    position: absolute;
.preview-box .img-preview img{
    height: 100%;
    width: 100%;
    border-radius: 5px;
.wrapper .preview-box .img-icon{
    font-size: 100px;
    background: linear-gradient(-135deg, #c850c0, #4158d0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
.wrapper .preview-box .text{
    font-size: 18px;
    font-weight: 500;
    color: #5B5B7B;
.wrapper .input-data{
    height: 130px;
    width: 100%;;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
.wrapper .input-data #field{
    width: 100%;
    height: 50px;
    outline: none;
    font-size: 17px;
    padding: 0 15px;
    user-select: auto;
    border-radius: 5px;
    border: 2px solid lightgrey;
    transition: all 0.3s ease;
.input-data #field.disabled{
    color: #b3b3b3;
    pointer-events: none;
.wrapper .input-data #field:focus{
    border-color: #4158d0;
.input-data #field::placeholder{
    color: #b3b3b3;
.wrapper .input-data #button{
    height: 50px;
    width: 100%;
    border: none;
    outline: none;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.5;
    pointer-events: none;
    background: linear-gradient(-135deg, #c850c0, #4158d0);
    transition: all 0.3s ease;
    opacity: 1;
    pointer-events: auto;
.input-data #button:active{
    transform: scale(0.99);

Now you’ve successfully created a How to Upload, Preview & Download Image using JavaScript & PHP.

brian john

brian john


Eveything you need to know About Seo group buy: Choosing Your Seo tool

Seo can be a great headache without help of handy and nifty Seo tools

But did you ever think all these Seo Factors can't be performed without Seo tools

majority of Seo tools comes with Highest Prices

Like Ahrefs , Semrush, Majestic, kwfinder, Spyfu, Surfer Seo,, Article forge group buy, Moz pro, Grammarly, buzzsamo, Woorank, ubersuggest, Crazy egg and many more Seo tools that can cost you thousands of dollars every month

many Seo's left Seo due to high Prices of these Best Seo tools

Some freshers are barriered by high prices of these Seo tools

But don't worry if you are running out of money, or you're unable to pay thousands buck every month come with Group buy seo tools solution that can provide you 40+ Seo tools including above listed Seo tools and many other essential Seo tools that can move your Seo needle to 180 degree and reserve your website position on the of SERP. Aka Seo group buy is All in one Seo tool set serving more then a decade in Group buy Seo tools industry

it provides you All Digital marketing Plan Whether you're an Seo or amazon Seller.

it offers premium amazon Group buy which include helium 10, Jungle scout, Ecome, Salehoo, pexda, keepa Chrome, amz tracker, FreshDrop, Viral launch, merchant Words, Zik analytics

facebook competitive campaign Spying and PPC and Spying Seo tools Like Adplexity Group buy, Anstrex Group buy, Stm forum Group buy, Adbeat Spy, Adperiscope Group buy , Djisuniversity Forum, Dropispy Group buy , Madesociety group buy , ispionage Group buy

Seo Group buy Features that you have never heard before :

we are the #1 Group buy seo tools providers that provide best Seo group buy at a very Affordable price with highest uptime.

One click access(No Rdps & VNCs, No Extension, No Cookies, and no Portables)

instant access to Seo, Ecom, Affiliate and PPC account

24/7 responsive Support

legit Purchases with invoice proof

Champaigns and Projects Privacy

tools tracking and monitoring

we claim that we are the Best Seo group buy upon the Plan that standalone in the group buy tools industry from a decade for a reason. We made a point to let you buy all the Stuff with premium Quality of Seo tools on a saas based that provide one click Access to all premium accounts.




#ahrefs group buy 


#group seo tool 

#semrush group buy 

#adplexity group buy 

#group buy tools 

#buy seo tools 

#surfer Best For every Size of Business

Jerod  Mante

Jerod Mante


SQL Group By Example | Group By Clause In SQL

SQL GROUP BY clause in SQL is used to arrange the same data into groups with the help of some functions. The GROUP BY clause group rows that have the same values into summary rows, like “find the number of customers in each city.” The Group By statement allows you to arrange the rows of a  query in the groups. The groups are determined by the table columns that you specify in a GROUP BY clause.

SQL Group By Example

GROUP BY in SQL is also used with the aggregate functions ( COUNT, MAX, MIN, SUM, AVG) to group the result by one or more columns. Its main work is to summarize the data from the database.

If you want to build some kind of chart then the GROUP BY clause will be helpful to fetch the summarize the data and then draw the chart based on the fetched data.

The queries that contain the GROUP BY clause are called grouped queries and only return a single row for every grouped item.

#sql #sql group by #group by

Types, Effects and Attributes

HTML Button Tag – Types, Effects and Attributes

In this article, we are going to learn HTML Button Tags. So let’s start!!!

HTML Button

HTML Button


#html tutorials #html button #html button attributes #html button element #html button tags #html

How to Grow Your Facebook Group

Learn the practical techniques to grow your Facebook groups. We have also included research report data and statistics to help you understand the trends.

#facebook group promotion #grow facebook group #make facebook group popular #solutionsuggest #tips