This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let urlParams = new URLSearchParams(window.location.search.substring(1)); | |
let value = urlParams.get("query"); | |
/* | |
Example URL - https://example.com?name=John | |
console.log(urlParams.get("name")); | |
"John will be printed in log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[1-9][0-9]{9}$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
theme: { | |
darkSelector: '.dark-mode', | |
}, | |
variants: { | |
backgroundColor: ['dark', 'dark-hover', 'dark-group-hover', 'dark-even', 'dark-odd', 'hover', 'responsive'], | |
borderColor: ['dark', 'dark-focus', 'dark-focus-within', 'hover', 'responsive'], | |
textColor: ['dark', 'dark-hover', 'dark-active', 'hover', 'responsive'] | |
}, | |
plugins: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "nuxt.config.js", | |
"use": "@nuxtjs/now-builder", | |
"config": { | |
"serverFiles": [ | |
"package.json" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
order() { | |
const rzp_options = { | |
key: "YOUR_RAZORPAY_KEY", | |
amount: this.product.price * 100, | |
name: "The Bollywood Store", | |
description: this.product.title, | |
handler: function(response) { | |
alert(`Payment Succesful ${response.razorpay_payment_id}`) | |
}, | |
modal: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section class="grid grid-cols-2 gap-4"> | |
<div class="rounded-md shadow-md bg-gray-800 h-48"></div> | |
<div class="rounded-md shadow-md bg-gray-800 h-48"></div> | |
</section> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section class="grid grid-cols-2 gap-2 mb-6"> | |
<div class="rounded-md shadow-md bg-gray-800 p-4 w-full"> | |
<svg | |
class="w-16 h-16 mx-auto" | |
fill="currentColor" | |
stroke="currentColor" | |
viewBox="0 0 384 384" | |
> | |
<path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section class="rounded-md shadow-md bg-gray-800 p-4 text-center"> | |
<p>HEIGHT</p> | |
<p class="text-5xl font-bold"> | |
{{ height }}<small class="text-sm">cm</small> | |
</p> | |
<input | |
type="range" | |
min="120" | |
max="215" |
OlderNewer