Skip to content

Instantly share code, notes, and snippets.

@akshayvinchurkar1
akshayvinchurkar1 / vanilla-js-cheatsheet.md
Created November 22, 2017 06:51 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@akshayvinchurkar1
akshayvinchurkar1 / dynamicid.js
Last active November 22, 2017 05:48
dynamic id for collapse panels
// dynamic id and href generation
function buildidtree() {
var count = 0;
var elements = document.querySelectorAll(".add-sub-agenda");
var createnewagenda = document.querySelectorAll(".createnewagenda");
var id = [];
var href = [];
@akshayvinchurkar1
akshayvinchurkar1 / node-grunt-sass.md
Created November 6, 2017 10:45 — forked from anotheruiguy/node-grunt-sass.md
Set up Node.js, Grunt and Node-Sass from scratch

Run the following steps inside a clean directory

Not sure if you are in the same boat as I, but I could not find any good resource out there that pulled this all together. So here is a step-by-step tutorial for creating a Node.js app from scratch, adding in Grunt and then Node-Sass. Yeah, try and find good docs on Node-Sass alone :(

Hope this is of help!

Create your Node.js project

  • npm init - create a clean node project
  • NOTE: be sure to add "private": true, to the package.json so that your project is not globally distributed as a npm app
@akshayvinchurkar1
akshayvinchurkar1 / panelstates.js
Created October 10, 2017 06:57
remember the panel states my solution
/*
this code is vanilla javascript with zero dependency
this code is required for panels show and hide functionality
localstorage is use for remember the state of the panels.
*/
"use strict";
const togglePanel = document.querySelector(".togglepanel");
const clashpanel = document.querySelector('.clashData');