Skip to content

Instantly share code, notes, and snippets.

View khatrinitesh's full-sized avatar
🎯
Focusing

Nitesh Khatri khatrinitesh

🎯
Focusing
  • Mumbai
  • 19:47 (UTC +05:30)
View GitHub Profile
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Created January 2, 2023 22:07
Code from video about attributes vs properties
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Attributes vs Properties</title>
<style>
* {
box-sizing: border-box;
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Last active January 28, 2023 03:59
Code for Media Query Ranges video
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Media Query Ranges</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
@prof3ssorSt3v3
prof3ssorSt3v3 / files.js
Created June 26, 2022 16:30
Code from Video about Uploading Multiple Files with Fetch
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('inputFile').addEventListener('change', filesPicked);
// document.getElementById('btnToggle').addEventListener('click', toggleInput);
// document.getElementById('btnPick').addEventListener('click', askForFiles);
// document.getElementById('btnInfo').addEventListener('click', showFileInfo);
});
function filesPicked(ev) {
//any time one or more files are picked in the file picker dialog
@onedebos
onedebos / App.jsx
Last active July 21, 2023 10:47
How to implement a load more button in React
import React, { useState, useEffect } from "react";
import Posts from "./Posts";
import posts from "./postsArray";
const postsPerPage = 3;
let arrayForHoldingPosts = [];
const App = () => {
const [postsToShow, setPostsToShow] = useState([]);
const [next, setNext] = useState(3);
@agragregra
agragregra / scroll-next.js
Created August 5, 2016 09:01
jQuery Scroll To Next Section
$(".scroll-next").click(function() {
var cls = $(this).closest(".section").next().offset().top;
$("html, body").animate({scrollTop: cls}, "slow");
});
@AminulBD
AminulBD / swiperinit.html
Last active September 4, 2021 08:53
Swiper Initialization with data attribute and Animate.css integrate
<div id="content-carousel" class="content-carousel-widget" data-carousel="swiper">
<!--
You can use: data-items="5" for total items display in single page
data-autoplay="true" or "false" for autoplay.
data-loop="true" or "false" for looping the carousel
data-effect="fade" or "cube" for slide changing effects
data-direction="horizontal" or "vertical" for sliding direction
data-initlal="3" for for first active slide
data-center="true" or "false" for centerize slider
-->
@cuongpx
cuongpx / Animate on scroll with wow.js.markdown
Created November 14, 2015 02:04
Animate on scroll with wow.js
@needim
needim / mediaqueries.css
Last active April 4, 2024 23:23
Device Specific CSS Media Queries Collection
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone X in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
@AdamMarsden
AdamMarsden / sassas.md
Last active September 18, 2024 17:12
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@lrobeson
lrobeson / SassMeister-input.scss
Created February 7, 2014 00:15
Example of Sass mixins. Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@mixin buttonstyle {
background: red;
border: 1px solid black;
color: #fff;
}