NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

var jQuery = unsafeWindow.jQuery,
$ = jQuery;
//yukarıdaki kısım, eodev içerisindeki jquery kütüphanesini, eklenti içerisinde yeniden eklemeden kullanmanı sağlıyor.


var close_event = $.Event("keypress");
// Bu ileride kullandığım eylem tetikleyicinin bir değişkeni

close_event.keyCode = 27;
// eylem tetikleyicinin ESC tuşu olduğunu belirtmişim


url = $(window.location.pathname.split('/')).slice(1);
//sayfanın url adresini parçalıyor. daha doğrusu pathname imiş. yani /messages/234234 gibi. Bunları dizi iççerisine url=[messages,234234]; şekline dönüştürüyor diyebilirim.

var f_sg_toplayer_close=function(e) {
// TD altında silim paneli açılıyor ya. onu kapatmada kullanılan fonksiyon
var prt = $('.sg-overlay:not(.sg-overlay--hidden)');
// sg-overlay classlı elementi seçiyor ama seçerken .sg-overlay--hidden class'ına sahip olmayan elementi seçiyor.

if(prt.length>0 && (e.type==='keypress' && e.keyCode === 27 || e.type==='click')) {
// prt değişkeninde seçilmiş element varsa, dizinin boyutu sıfırın üstünde olur. Bu yüzden boyut, sıfırın üstündeyse && ve element tetikleyicinin tipi tuşa basılma ve 27 yani ESC tuşu ile basılmışsa veya sg-overlay köşesindeki çarpı içeretine basılmış yani click ise, aşağıdakileri yap

if(prt.data('ext') === 'fastdelete')
// eğer seçilmiş olan sg-overlay elementi, data-ext="" özelliğine sahipse değeri de fastdelete ise aşağıdakileri yap

//eodev tarafına veri gönderimi yapıyorum. Veri gönderimi ise moderator eğer düzenleme paneli açarsa, ona bilet aldırıyorum. Yani düzenleme açıldığında bileti yoksa mdoeratorün, eylem gerçekleştiremez.
// aşağıda açılmış olan bileti sonlandırmaya yarıyan bağlantı var.
eodevpost('moderate_tickets/expire', {"schema":"","model_type_id":1,"model_id":prt.attr('id')}, function(response) {
// bağlantı açıldığında gelen cevap response değişkenine atılıyor.

if(!prt.is('.sg-overlay--hidden')) prt.addClass('sg-overlay--hidden');
// yine sg-overlay elementi sg-overlay--hidden içermiyorsa elemente sg-overlay--hidden classı ata.

clearTimeout(gerisay);
//ileride oluşturulmuş bir gerisay sayacı varsa, onu kapatıyor. durduruyor da dyebiliriz. teminate gibi

if(response.success === true) {
// bilet almak için açtığımız bağlantıdan gelen cevaplar yukarıda response değişkenine atıldığında success objesi true değerini yani bilet oluşturulmuş ise biletin sonlanmasının başarılı olduğunu ifade ediyor.

alert2('Düzenleme bitmiştir', 'info');
// alert2 fonksiyonu da, eodev içerisinde küçük alert şeritlerini oluşturan bir fonksiyon. ilk parametre mesajı, ikinci parametre de şeritin rengini belirtiyor. info sarı, error kırmızı, boş veya tanımlanmamış ise mavi, success ise yeşil
}
else
alert2(response.message, 'error');
// eğer response.success true değilse veya tanımlanmamışsa, cevapla gelen hata mesajını, error tipi ile alert2 fonksiyonuna gönderiyor.
});
}
};şeeşee
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.