Giter Site home page Giter Site logo

gamerboytr / turkishspecialdays Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6 KB

Türkiye Cumhuriyetinin Özel Günlerini, Bayramlarını Html Sayfanızda Yeri Gelince Göstermeye Başlar

License: MIT License

JavaScript 84.61% HTML 15.39%
javascript javascript-library javascript-framework turkish turkey html tsd

turkishspecialdays's Introduction

TurkishSpecialDays

Türkiye Cumhuriyetinin Özel Günlerini, Bayramlarını Html Sayfanızda Yeri Gelince Göstermeye Başlar

Kurulum

Basir Bir HTML Sayfasıyla Örneğimize Başlıyalım

<html>
	<head>
		<title>TurkishSpecialDays - Test</title>
	</head>
	<body>
		<!-- TSD'i Dahil Edelim -->
		<script src="./TSD-1.0.js"></script>
		<!-- Scriptimizi Dahil Edelim -->
		<script src="./main.js"></script>
	</body>
</html>

HTML Sayfamıza TSD'ı Dahil Ettiğimize Göre JavaScript İşlerine Başlıyalım

const tsd = new TSD(); // TSD Sınıfımızı Başlatalım

// Consolumuza Bayramdaysak Bayrağı Çağırmadan Yazalım
console.log(tsd.testAvabileDays(false)); // 31 Ağustosda Bayram Yok O Yüzden False Döner

O Gün Bayramsa Türk Bayrağını Çağıralım

const tsd = new TSD(); // TSD Sınıfımızı Başlatalım

tsd.testAvabileDays(); // O Gün Bayramsa Bayrağı Çağırmış Olduk

Büyük İhtimalle Bayrak Bu Şekilde Gelicektir

O Zaman Hadi Ayarlara Bakalım

Ayarlar ( Options )

Ayarları Bir Obje Halinde Sınıfın Başlangıcında Göndermeniz Gerekir Göndermeniz gereken Değerler Altta Listelenmiştir

  • top - Bayrağın Üstten Yüksekliğini Belirler (Standart : "0")
  • bottom - Bayrağın Alttan Yüksekliğini Belirler (Standart : "unset")
  • left - Bayrağın Soldan Boşluğunu Belirler (Standart : "0")
  • right - Bayrağın Sağdan Boşluğunu Belirler (Standart : "unset")
  • imgTitlePrefix - Bayrağın Üzerine Gelince Çıkan Yazının Başını Belirler (Standart : "Türkiye Cumhuriyeti")
  • disabled - true Dönerse Sistem Kapanır (Standart : false)

Uygulama

// Config
const config = {
	top: "0",
	bottom: "unset",
	left: "0",
	right: "unset",
	imgTitlePrefix: "Türkiye Cumhuriyeti",
	disabled: false,
};

const tsd = new TSD(config); // Sınıfa  Configi Tanımlama

Author : GamerboyTR Mail : [email protected] Web : http://www.gamerboytr.ml

turkishspecialdays's People

Contributors

xielqs avatar

Watchers

 avatar  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.