GithubHelp home page GithubHelp logo

keazon / functions.js Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 55 KB

I made a few commands that people can define and use the function file in their file. I hope it will be useful. It will be updated daily.

HTML 32.86% CSS 17.52% JavaScript 49.62%
javascript functions html5 css3

functions.js's Introduction

Hello My Friend

I made a few commands that people can define and use the function file in their file. I hope it will be useful. It will be updated daily.


Infrastructure

This infrastructure is prepared with JavaScript. You can use these functions with basic JavaScript knowledge.


How To Use?

1. Install function.js

Download the function.js file, put it in the source file in your project.

2. Include in the page

Include in your page with import or script and access all commands, WoW


Sample

	function darkAndLight(){
		document.body.classList.toggle("dark-mode");
	}
	<button onClick="darkAndLight()">Dark Mode and Light Mode</button>
	<script src="source/function.js"></script>
	body{
		background-color: #fff;
	}
	.dark-mode{
		background-color: #111;
	}

Functions, Ids and Classes

  • Function:

    • darkAndLight() = It is added with onClick. The result of styling with CSS on the page will be dark theme and light theme. You can also use CSS with ".dark-mode".
  • Ids

    • stickNav = The ID of the nav tag. Using this ID the navbar will break the barrier above and stay above with "top 0".
    • writeSecond = You can call the currently found second by giving an ID value to a tag you want.
    • writeMinute = You can call the currently found minute by giving an ID value to a tag you want.
    • writeHour = You can call the currently found hour by giving an ID value to a tag you want.
    • writeDay = You can call the currently found day by giving an ID value to a tag you want.
    • writeMonth = You can call the currently found month by giving an ID value to a tag you want.
    • writeYear = You can call the currently found year by giving an ID value to a tag you want.

functions.js's People

Contributors

keazon avatar

Stargazers

Ahmet İlboga avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.