Skip to content

Instantly share code, notes, and snippets.

🕯️
Light a candle than to curse the darkness.

Madhav Paudel poudelmadhav

🕯️
Light a candle than to curse the darkness.
View GitHub Profile
@poudelmadhav
poudelmadhav / nav-color-change.html
Created Sep 22, 2018
Background color of navbar change on scroll
View nav-color-change.html
<div class="nav"></div>
<script>
window.onscroll = () => {
const nav = document.querySelector('.nav');
if(this.scrollY <= 500)
nav.style.backgroundColor = 'rgba(0,0,0,0)';
else
nav.style.backgroundColor = 'rgba(0,0,0,0.9)';
}
</script>
@poudelmadhav
poudelmadhav / calculator.html
Created Sep 13, 2018
A simple calculator using javascript
View calculator.html
<!DOCTYPE html>
<html>
<head>
<title>JS Calculator</title>
</head>
<body>
<div id="calc-box">
<h3 align="center">Calculator</h3>
<hr>
<table border="0" width="400">
View javaScript.html
<!DOCTYPE html>
<html>
<head>
<title>JavaScript</title>
</head>
<body>
<script>
let d = document;
// d.querySelector("body").style.backgroundColor = "#f7f7f7";
// d.querySelector("body").style.backgroundImage = "url('images/background.jpg')";
@poudelmadhav
poudelmadhav / cplus_program_to_transfer_balance.cpp
Last active Jan 12, 2019
C++ program to transfer money from one account to another
View cplus_program_to_transfer_balance.cpp
/******************************************************************************
Balance Transfer
//Author Madhav Paudel
*******************************************************************************/
#include <iostream>
#include<iomanip>
using namespace std;
@poudelmadhav
poudelmadhav / index.html
Last active Nov 29, 2016
Personal Resume Page
View index.html
<html>
<head>
<title>Madhav Paudel</title>
<link rel="stylesheet" type="text/css" href="css/master.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body>
<div class="prof-box">
You can’t perform that action at this time.