Giter VIP home page Giter VIP logo

progresscirclebar's Introduction

ProgressCircle

Saf Css ve Javascript ile geliştirilen dairesel ilerleme çubuğu. / Pure Css and Javascript Circle Progress Bar.

İstenirse tek javascript dosyası ile çalışabilir. (css olmadan) / If desired, it can work with a single javascript file. (without css)

Progress Circle Bar Screenshot

Usage (recommended usage) / Kullanım

const obj = {
		selector: "body" , 
		css: true , //without css file : true
		data: [ {	text : "1.<br/>44%<br/>Exam." ,
				percent : 44 ,
				lines : [ { text: "Line 1", click: function() { console.log("Line 1 Click!"); } }
					, { text: "Line 2", click: function() { console.log("Line 2 Click!"); } } ] ,
				color : "red" ,
				textColor: "grey" ,
				click: function() {
					console.log("Container Click!");
				}
			},
			{
				text : "63%",
				percent : 63,
				lines : [{text:"Line 1"}, {text:"Line 2"}],
				color : "green",
				textColor: "blue"
			},
			{
				text : "3.<br/>75%<br/>Exam.",
				percent : 75,
				lines : [{text:"Single Line"}],
				color : "blue",
				textColor: "red"
			},
			{
				text : "4.<br/>32%<br/>Exam.",
				percent : 32,
				color : "pink",
				textColor: "brown"
			},
			{
				text : "95",
				percent : 95
			},
			{
			//empty
			} ]
		};


const pc = new ProgressCircle(obj);
const pc = new ProgressCircle({ selector: "body", css: true });

let obj = [
	{
		text : "1.<br/>44%<br/>Exam.",
		percent : 44,
		lines : [{text:"Line 1"}, {text:"Line 2"}],
		color : "red",
		textColor: "grey"
	},
	{
		text : "63%",
		percent : 63,
		lines : [{text:"Line 1"}, {text:"Line 2"}],
		color : "green",
		textColor: "blue"
	}
];

For display of data / Verilerin gösterimi için...

//obj -> Array or Object
pc.load(obj);

Tekrar veri ekle / Add data again

// Send object
let obj2 = {
	text : "55%",
	percent : 55,
	lines : [{text:"Line 1"}, {text:"Line 2"}, {text:"Line 3"}, {text:"Line 4"}],
	color : "brown",
	textColor: "red"
};

pc.load(obj2);

pc.load({text:"Ahaa", percent: 15, color: "purple"});
// add empty - circle bar
pc.load({});

Ekrana duyarlı çalışması için ekleyiniz.(responsive)

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="assets/js/progresscircle.js"></script>
<link rel="stylesheet" href="assets/css/progresscircle.css">

Css buradaki projeden alınmıştır:

Css Fork-> https://github.com/tiagobalmeida/purecss-circular-progress-bar

progresscirclebar's People

Contributors

cengizbesir avatar

Stargazers

 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.