Skip to content

Instantly share code, notes, and snippets.

View harshit1969's full-sized avatar

Harshit Tripathi harshit1969

View GitHub Profile
$(document).ready(function(){
$(window).scroll(function(){
// sticky navbar on scroll script
if(this.scrollY > 20){
$('.navbar').addClass("sticky");
}else{
$('.navbar').removeClass("sticky");
}
// scroll-up button show/hide script
<div class="login-box">
<h2>Login</h2>
<form>
<div class="user-box">
<input type="text" name="" required="">
<label>Username</label>
</div>
<div class="user-box">
<input type="password" name="" required="">
<label>Password</label>
body{
background-color:black;
}
h1::before {
transform: scaleX(0);
transform-origin: bottom right;
}
h1:hover::before {
<!DOCTYPE html>
<html>
<head>
<style>
html {
scroll-behavior: smooth;
}
#section1 {
height: 600px;
print('This program is created by Harshit Tripathi. ')
print('Copyright 2021 Harshit Tripathi. ')
import phonenumbers
from phonenumbers import geocoder
from phonenumbers import carrier
a=input('Enter Your Phone Numbers: ')
phone_numbers=phonenumbers.parse(a)
print(geocoder.description_for_number(phone_numbers,'en'))
print(carrier.name_for_number(phone_numbers,'en'))
print('hi,there')
print('This quiz is programmed by Harshit Tripathi')
print('copyright 2021 Harshit Tripathi')
print('Lets Start')
print('1. Who was the Indias First Prime Minister? ')
x=input('Your Answer ')
print('Correct Answer is Pt. Jawaharlal Nehru')
print('2. Who had won the 1983 World Cup?')
x=input('Your Answer ')
print('Correct Answer is India')
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="middle">
<a href="" class="btn btn1">Hover Me</a>
<button class="btn first">Button 1</button>
<button class="btn second">Button 2</button>
<button class="btn third">Button 3</button>
<button class="btn fourth">Button 4</button>
<p>Created by <a href="https://www.techindiaharshit.ga/" style="color:yellow" >Techindia Harshit</a></p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<center> <p>Techindia Harshit</p>
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://kit.fontawesome.com/8939954609.js" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>