Skip to content

Instantly share code, notes, and snippets.

View slim-python's full-sized avatar
🐶
nOOb

Abhi Raj slim-python

🐶
nOOb
  • Parentune
  • Gurugram, Haryana
View GitHub Profile
@slim-python
slim-python / index.html
Last active June 11, 2024 17:48
Star rating system in html css javascript
<body>
<script type="module" src="/main.js"></script>
<div>
Toatal Rating:
<span id="totalCount"> 0/5</span>
</div>
<section id="ratings">
<div class="star">&#11088;</div>
<div class="star">&#11088;</div>
<div class="star">&#11088;</div>
<script>
new Vue({
el: '#app',
data: {
info: 'null',
author: 'null'
},
methods: {
},
@slim-python
slim-python / QuoteOfTheDay.css
Created August 20, 2020 21:09
this is the css part
<style>
body {
background-color: #111;
}
#app {
font-family: "Montserrat";
text-align: center;
color: #FFF;
@slim-python
slim-python / QuoteOfTheDay.html
Created August 20, 2020 18:02
Quote of the Day - Vue Js API integration example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Vue js CDN -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- Axios CDN -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
@slim-python
slim-python / var.js
Created July 31, 2020 18:03
Difference between var, let and const keyword in Javascript
var income = 550;
console.log(income);
//output : 550
var income = 560;
console.log(income);
//output : 560
var income = income + 1;
console.log(income);
@slim-python
slim-python / const.js
Created July 31, 2020 18:01
Difference between var, let and const keyword in Javascript
const password = '123456';
console.log(password);
//output: 123456
const apiKey = 45649465465;
console.log(apiKey);
//output: 45649465465
@slim-python
slim-python / let.js
Created July 31, 2020 18:00
Difference between var, let and const keyword in Javascript
if (1 != 2) {
let age = 35;
console.log(age);
//output: 35
}
console.log(age);
//output: ReferenceError: age is not defined