https://github.com/omergulcicek/change-title
:pencil: Başka sayfaya geçildiğinde sayfa title'ında sayaç başlatır.
https://github.com/omergulcicek/change-title
change-title
Last synced: 7 months ago
JSON representation
:pencil: Başka sayfaya geçildiğinde sayfa title'ında sayaç başlatır.
- Host: GitHub
- URL: https://github.com/omergulcicek/change-title
- Owner: omergulcicek
- Created: 2017-08-05T11:19:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T13:32:13.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T08:31:07.762Z (9 months ago)
- Topics: change-title
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changeTitle.js
Awesome Lists containing this project
README
Başlık Değiştirme (Change Title)
Tarayıcı üzerinde sayfa aktif ise varsayılan başlık görünür. Farklı sekmeye geçtiğinizde ise başlık değişir ve sayaç artmaya başlar.
If the page is active on the browser, the default title appears. When you move to the different tab, the title changes and the counter starts to increase.
Kullanımı (Use of)
Kodları sayfaya eklemeniz yeterlidir.
It is enough to add the codes to the page.
Özelleştirme (Customize)
Farklı sekmeye geçildiği zaman sayaç yerine belirlediğiniz bir metnin görünmesini istiyorsanız aşağıdaki kodlar yeterlidir.
The following codes are sufficient if you want to see a text that you specify instead of the counter when switching to a different tab.
var title = document.title;
var alttitle = "Sayfa değişti!"; // "Page changed !"window.onblur = function()
{
document.title = alttitle;
};window.onfocus = function()
{
document.title = title;
};