code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','nb',{devTools:{title:'Elementinformasjon',dialogName:'Navn på dialogvindu',tabName:'Navn på fane',elementId:'Element-ID',elementType:'Elementtype'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','ug',{devTools:{title:'ئېلېمېنت ئۇچۇرى',dialogName:'سۆزلەشكۈ كۆزنەك ئاتى',tabName:'Tab ئاتى',elementId:'ئېلېمېنت كىملىكى',elementType:'ئېلېمېنت تىپى'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','el',{devTools:{title:'Πληροφορίες Στοιχείου',dialogName:'Όνομα παραθύρου διαλόγου',tabName:'Όνομα καρτέλας',elementId:'ID Στοιχείου',elementType:'Τύπος στοιχείου'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'fa', { devTools : { title : 'اطلاعات عنصر', dialogName : 'نام پنجره محاوره‌ای', tabName : 'نام برگه', elementId : 'ID عنصر', elementType : 'نوع عنصر' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','no',{devTools:{title:'Elementinformasjon',dialogName:'Navn på dialogvindu',tabName:'Navn på fane',elementId:'Element-ID',elementType:'Elementtype'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'devtools', 'ku', { devTools : { title : 'زانیاری توخم', dialogName : 'ناوی په‌نجه‌ره‌ی دیالۆگ', tabName : 'ناوی بازده‌ر تاب', elementId : 'ناسنامه‌ی توخم', elementType : 'جۆری توخم' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'Element type'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','hr',{devTools:{title:'Informacije elementa',dialogName:'Naziv prozora za dijalog',tabName:'Naziva jahača',elementId:'ID elementa',elementType:'Vrsta elementa'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','uk',{devTools:{title:'Відомості про Елемент',dialogName:'Заголовок діалогового вікна',tabName:'Назва вкладки',elementId:'Ідентифікатор Елемента',elementType:'Тип Елемента'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','it',{devTools:{title:'Informazioni elemento',dialogName:'Nome finestra di dialogo',tabName:'Nome Tab',elementId:'ID Elemento',elementType:'Tipo elemento'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','gu',{devTools:{title:'પ્રાથમિક માહિતી',dialogName:'વિન્ડોનું નામ',tabName:'ટેબનું નામ',elementId:'પ્રાથમિક આઈડી',elementType:'પ્રાથમિક પ્રકાર'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','he',{devTools:{title:'מידע על האלמנט',dialogName:'שם הדיאלוג',tabName:'שם הטאב',elementId:'ID של האלמנט',elementType:'סוג האלמנט'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','et',{devTools:{title:'Elemendi andmed',dialogName:'Dialoogiakna nimi',tabName:'Saki nimi',elementId:'Elemendi ID',elementType:'Elemendi liik'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','pt-br',{devTools:{title:'Informação do Elemento',dialogName:'Nome da janela de diálogo',tabName:'Nome da aba',elementId:'ID do elemento',elementType:'Tipo do elemento'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','fr',{devTools:{title:"Information sur l'élément",dialogName:'Nom de la fenêtre de dialogue',tabName:"Nom de l'onglet",elementId:"ID de l'élément",elementType:"Type de l'élément"}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','lv',{devTools:{title:'Elementa informācija',dialogName:'Dialoga loga nosaukums',tabName:'Cilnes nosaukums',elementId:'Elementa ID',elementType:'Elementa tips'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','zh-cn',{devTools:{title:'元素信息',dialogName:'对话框窗口名称',tabName:'Tab 名称',elementId:'元素 ID',elementType:'元素类型'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','cs',{placeholder:{title:'Vlastnosti vyhrazeného prostoru',toolbar:'Vytvořit vyhrazený prostor',text:'Vyhrazený text',edit:'Upravit vyhrazený prostor',textMissing:'Vyhrazený prostor musí obsahovat text.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','eo',{placeholder:{title:'Atributoj de la rezervita spaco',toolbar:'Krei la rezervitan spacon',text:'Texto de la rezervita spaco',edit:'Modifi la rezervitan spacon',textMissing:'La rezervita spaco devas enteni tekston.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','bg',{placeholder:{title:'Настройки на контейнера',toolbar:'Нов контейнер',text:'Текст за контейнера',edit:'Промяна на контейнер',textMissing:'Контейнера трябва да съдържа текст.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','sk',{placeholder:{title:'Vlastnosti placeholdera',toolbar:'Vytvoriť placeholder',text:'Text placeholdera',edit:'Upraviť placeholder',textMissing:'Placeholder musí obsahovať text.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','pl',{placeholder:{title:'Właściwości wypełniacza',toolbar:'Utwórz wypełniacz',text:'Tekst wypełnienia',edit:'Edytuj wypełnienie',textMissing:'Wypełnienie musi posiadać jakiś tekst.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','nl',{placeholder:{title:'Eigenschappen placeholder',toolbar:'Placeholder aanmaken',text:'Placeholder tekst',edit:'Placeholder wijzigen',textMissing:'De placeholder moet tekst bevatten.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','da',{placeholder:{title:'Egenskaber for pladsholder',toolbar:'Opret pladsholder',text:'Tekst til pladsholder',edit:'Redigér pladsholder',textMissing:'Pladsholder skal indeholde tekst'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','tr',{placeholder:{title:'Yer tutucu özellikleri',toolbar:'Yer tutucu oluşturun',text:'Yer tutucu metini',edit:'Yer tutucuyu düzenle',textMissing:'Yer tutucu metin içermelidir.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','de',{placeholder:{title:'Platzhalter Einstellungen',toolbar:'Platzhalter erstellen',text:'Platzhalter Text',edit:'Platzhalter bearbeiten',textMissing:'Der Platzhalter muss einen Text beinhalten.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','fi',{placeholder:{title:'Paikkamerkin ominaisuudet',toolbar:'Luo paikkamerkki',text:'Paikkamerkin teksti',edit:'Muokkaa paikkamerkkiä',textMissing:'Paikkamerkin täytyy sisältää tekstiä'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','vi',{placeholder:{title:'Thuộc tính đặt chỗ',toolbar:'Tạo đặt chỗ',text:'Văn bản đặt chỗ',edit:'Chỉnh sửa ',textMissing:'The placeholder must contain text.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','cy',{placeholder:{title:"Priodweddau'r Daliwr Geiriau",toolbar:'Creu Daliwr Geiriau',text:'Testun y Daliwr Geiriau',edit:"Golygu'r Dailwr Geiriau",textMissing:"Mae'n rhaid i'r daliwr geiriau gynnwys testun."}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','nb',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','ug',{placeholder:{title:'ئورۇن بەلگە خاسلىقى',toolbar:'ئورۇن بەلگە قۇر',text:'ئورۇن بەلگە تېكىستى',edit:'ئورۇن بەلگە تەھرىر',textMissing:'ئورۇن بەلگىسىدە چوقۇم تېكىست بولۇشى لازىم'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','el',{placeholder:{title:'Ιδιότητες Υποκατάστατου Κειμένου',toolbar:'Δημιουργία Υποκατάσταστου Κειμένου',text:'Υποκαθιστόμενο Κείμενο',edit:'Επεξεργασία Υποκατάσταστου Κειμένου',textMissing:'Πρέπει να υπάρχει υποκαθιστόμενο κείμενο.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'placeholder', 'fa', { placeholder : { title : 'ویژگی‌های محل نگهداری', toolbar : 'ایجاد یک محل نگهداری', text : 'متن محل نگهداری', edit : 'ویرایش محل نگهداری', textMissing : 'محل نگهداری باید محتوی متن باشد.' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','no',{placeholder:{title:'Egenskaper for plassholder',toolbar:'Opprett plassholder',text:'Tekst for plassholder',edit:'Rediger plassholder',textMissing:'Plassholderen må inneholde tekst.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'placeholder', 'ku', { placeholder : { title : 'خاسیه‌تی شوێن هه‌ڵگر', toolbar : 'درووستکردنی شوێن هه‌ڵگر', text : 'ده‌ق بۆ شوێن هه‌ڵگڕ', edit : 'چاکسازی شوێن هه‌ڵگڕ', textMissing : 'شوێن هه‌ڵگڕ ده‌بێت له‌ده‌ق پێکهاتبێت.' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',textMissing:'The placeholder must contain text.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','hr',{placeholder:{title:'Svojstva rezerviranog mjesta',toolbar:'Napravi rezervirano mjesto',text:'Tekst rezerviranog mjesta',edit:'Uredi rezervirano mjesto',textMissing:'Rezervirano mjesto mora sadržavati tekst.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','uk',{placeholder:{title:'Налаштування Заповнювача',toolbar:'Створити Заповнювач',text:'Текст Заповнювача',edit:'Редагувати Заповнювач',textMissing:'Заповнювач повинен містити текст.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','it',{placeholder:{title:'Proprietà segnaposto',toolbar:'Crea segnaposto',text:'Testo segnaposto',edit:'Modifica segnaposto',textMissing:'Il segnaposto deve contenere del testo.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שומר המקום חייב להכיל טקסט.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','et',{placeholder:{title:'Kohahoidja omadused',toolbar:'Kohahoidja loomine',text:'Kohahoidja tekst',edit:'Kohahoidja muutmine',textMissing:'Kohahoidja peab sisaldama teksti.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','pt-br',{placeholder:{title:'Propriedades do Espaço Reservado',toolbar:'Criar Espaço Reservado',text:'Texto do Espaço Reservado',edit:'Editar Espaço Reservado',textMissing:'O espaço reservado deve conter texto.'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','fr',{placeholder:{title:"Propriétés de l'Espace réservé",toolbar:"Créer l'Espace réservé",text:"Texte de l'Espace réservé",edit:"Modifier l'Espace réservé",textMissing:"L'Espace réservé doit contenir du texte."}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','lv',{placeholder:{title:'Viettura uzstādījumi',toolbar:'Izveidot vietturi',text:'Viettura teksts',edit:'Labot vietturi',textMissing:'Vietturim jāsatur tekstu'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','zh-cn',{placeholder:{title:'占位符属性',toolbar:'创建占位符',text:'占位符文字',edit:'编辑占位符',textMissing:'占位符必须包含文字。'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','cs',{uicolor:{title:'Výběr barvy rozhraní',preview:'Živý náhled',config:'Vložte tento řetězec do Vašeho souboru config.js',predefined:'Přednastavené sady barev'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','eo',{uicolor:{title:'UI Kolorselektilo',preview:'Vidigi la aspekton',config:'Gluu tiun signoĉenon en vian dosieron config.js',predefined:'Antaŭdifinita koloraro'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','bg',{uicolor:{title:'ПИ избор на цвят',preview:'Преглед',config:'Вмъкнете този низ във Вашия config.js fajl',predefined:'Предефинирани цветови палитри'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','sk',{uicolor:{title:'UI výber farby',preview:'Živý náhľad',config:'Vložte tento reťazec do vášho config.js súboru',predefined:'Preddefinované sady farieb'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','pl',{uicolor:{title:'Wybór koloru interfejsu',preview:'Podgląd na żywo',config:'Wklej poniższy łańcuch znaków do pliku config.js:',predefined:'Predefiniowane zestawy kolorów'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','nl',{uicolor:{title:'UI Kleurenkiezer',preview:'Live voorbeeld',config:'Plak deze tekst in jouw config.js bestand',predefined:'Voorgedefinieerde kleurensets'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','da',{uicolor:{title:'Brugerflade på farvevælger',preview:'Vis liveeksempel',config:'Indsæt denne streng i din config.js fil',predefined:'Prædefinerede farveskemaer'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','tr',{uicolor:{title:'UI Renk Seçicisi',preview:'Canlı önizleme',config:'Bu dizeyi config.js dosyasının içine yapıştırın',predefined:'Önceden tanımlanmış renk kümeleri'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','de',{uicolor:{title:'UI Pipette',preview:'Live-Vorschau',config:"Fügen Sie diese Zeichenfolge in die 'config.js' Datei.",predefined:'Vordefinierte Farbsätze'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','fi',{uicolor:{title:'Käyttöliittymän värivalitsin',preview:'Esikatsele',config:'Liitä tämä merkkijono config.js tiedostoosi',predefined:'Esimääritellyt värijoukot'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','vi',{uicolor:{title:'Giao diện người dùng Color Picker',preview:'Xem trước trực tiếp',config:'Dán chuỗi này vào tập tin config.js của bạn',predefined:'Tập màu định nghĩa sẵn'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','cy',{uicolor:{title:"Dewisydd Lliwiau'r UI",preview:'Rhagolwg Byw',config:"Gludwch y llinyn hwn i'ch ffeil config.js",predefined:"Setiau lliw wedi'u cyn-ddiffinio"}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','nb',{uicolor:{title:'Fargevelger for brukergrensesnitt',preview:'Forhåndsvisning i sanntid',config:'Lim inn følgende tekst i din config.js-fil',predefined:'Forhåndsdefinerte fargesett'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','ug',{uicolor:{title:'ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ',preview:'شۇئان ئالدىن كۆزىتىش',config:'بۇ ھەرپ تىزىقىنى config.js ھۆججەتكە چاپلايدۇ',predefined:'ئالدىن بەلگىلەنگەن رەڭلەر'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','el',{uicolor:{title:'Διεπαφή Επιλογέα Χρωμάτων',preview:'Ζωντανή Προεπισκόπηση',config:'Επικολλήστε αυτό το κείμενο στο αρχείο config.js',predefined:'Προκαθορισμένα σύνολα χρωμάτων'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'fa', { uicolor : { title : 'انتخاب رنگ UI', preview : 'پیش‌نمایش زنده', config : 'این رشته را در فایل config.js خود بچسبانید.', predefined : 'مجموعه رنگ از پیش تعریف شده' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','no',{uicolor:{title:'Fargevelger for brukergrensesnitt',preview:'Forhåndsvisning i sanntid',config:'Lim inn følgende tekst i din config.js-fil',predefined:'Forhåndsdefinerte fargesett'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'ku', { uicolor : { title : 'هه‌ڵگری ڕه‌نگ بۆ ڕووکاری به‌کارهێنه‌ر', preview : 'پێشبینین به‌ زیندوویی', config : 'ئه‌م ده‌قانه‌ بلکێنه‌ به‌ په‌ڕگه‌ی config.js-fil', predefined : 'کۆمه‌ڵه‌ ڕه‌نگه‌ دیاریکراوه‌کانی پێشوو' } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefined color sets'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','hr',{uicolor:{title:'UI odabir boja',preview:'Pregled uživo',config:'Zalijepite ovaj tekst u Vašu config.js datoteku.',predefined:'Već postavljeni setovi boja'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','uk',{uicolor:{title:'Color Picker Інтерфейс',preview:'Перегляд наживо',config:'Вставте цей рядок у файл config.js',predefined:'Стандартний набір кольорів'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','it',{uicolor:{title:'Selettore Colore UI',preview:'Anteprima Live',config:'Incolla questa stringa nel tuo file config.js',predefined:'Set di colori predefiniti'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות צבעים מוגדרות מראש'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','et',{uicolor:{title:'Värvivalija kasutajaliides',preview:'Automaatne eelvaade',config:'Aseta see sõne oma config.js faili.',predefined:'Eelmääratud värvikomplektid'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','pt-br',{uicolor:{title:'Paleta de Cores',preview:'Visualização ao vivo',config:'Cole o texto no seu arquivo config.js',predefined:'Conjuntos de cores predefinidos'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','fr',{uicolor:{title:'UI Sélecteur de couleur',preview:'Aperçu',config:'Collez cette chaîne de caractères dans votre fichier config.js',predefined:'Palettes de couleurs prédéfinies'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','lv',{uicolor:{title:'UI krāsas izvēle',preview:'Priekšskatījums',config:'Ielīmējiet šo rindu jūsu config.js failā',predefined:'Predefinēti krāsu komplekti'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','mk',{uicolor:{title:'Палета со бои',preview:'Преглед',config:'Залепи го овој текст во config.js датотеката',predefined:'Предефинирани множества на бои'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','zh-cn',{uicolor:{title:'用户界面颜色选择器',preview:'即时预览',config:'粘贴此字符串到您的 config.js 文件',predefined:'预定义颜色集'}});
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'fa', { euro: 'نشان یورو', lsquo: 'علامت نقل قول تکی چپ', rsquo: 'علامت نقل قول تکی راست', ldquo: 'علامت دوتایی نقل قول چپ', rdquo: 'علامت دوتایی نقل قول راست', ndash: 'En dash', // MISSING mdash: 'Em dash', // MISSING iexcl: 'علامت گذاری به عنوان علامت تعجب وارونه', cent: 'نشان سنت', pound: 'نشان پوند', curren: 'نشان ارز', yen: 'نشان ین', brvbar: 'نوار شکسته', sect: 'نشان بخش', uml: 'Diaeresis', // MISSING copy: 'نشان کپی رایت', ordf: 'Feminine ordinal indicator', // MISSING laquo: 'Left-pointing double angle quotation mark', // MISSING not: 'علامت ثبت نشده', reg: 'علامت ثبت شده', macr: 'Macron', // MISSING deg: 'نشان درجه', sup2: 'بالانویس دو', sup3: 'بالانویس سه', acute: 'لهجه غلیظ', micro: 'نشان مایکرو', para: 'Pilcrow sign', // MISSING middot: 'نقطه میانی', cedil: 'Cedilla', // MISSING sup1: 'Superscript one', // MISSING ordm: 'Masculine ordinal indicator', // MISSING raquo: 'نشان زاویه‌دار دوتایی نقل قول راست چین', frac14: 'Vulgar fraction one quarter', // MISSING frac12: 'Vulgar fraction one half', // MISSING frac34: 'Vulgar fraction three quarters', // MISSING iquest: 'Inverted question mark', // MISSING Agrave: 'Latin capital letter A with grave accent', // MISSING Aacute: 'Latin capital letter A with acute accent', // MISSING Acirc: 'Latin capital letter A with circumflex', // MISSING Atilde: 'Latin capital letter A with tilde', // MISSING Auml: 'Latin capital letter A with diaeresis', // MISSING Aring: 'Latin capital letter A with ring above', // MISSING AElig: 'Latin Capital letter Æ', // MISSING Ccedil: 'Latin capital letter C with cedilla', // MISSING Egrave: 'Latin capital letter E with grave accent', // MISSING Eacute: 'Latin capital letter E with acute accent', // MISSING Ecirc: 'Latin capital letter E with circumflex', // MISSING Euml: 'Latin capital letter E with diaeresis', // MISSING Igrave: 'Latin capital letter I with grave accent', // MISSING Iacute: 'Latin capital letter I with acute accent', // MISSING Icirc: 'Latin capital letter I with circumflex', // MISSING Iuml: 'Latin capital letter I with diaeresis', // MISSING ETH: 'Latin capital letter Eth', // MISSING Ntilde: 'Latin capital letter N with tilde', // MISSING Ograve: 'Latin capital letter O with grave accent', // MISSING Oacute: 'Latin capital letter O with acute accent', // MISSING Ocirc: 'Latin capital letter O with circumflex', // MISSING Otilde: 'Latin capital letter O with tilde', // MISSING Ouml: 'Latin capital letter O with diaeresis', // MISSING times: 'Multiplication sign', // MISSING Oslash: 'Latin capital letter O with stroke', // MISSING Ugrave: 'Latin capital letter U with grave accent', // MISSING Uacute: 'Latin capital letter U with acute accent', // MISSING Ucirc: 'Latin capital letter U with circumflex', // MISSING Uuml: 'Latin capital letter U with diaeresis', // MISSING Yacute: 'Latin capital letter Y with acute accent', // MISSING THORN: 'Latin capital letter Thorn', // MISSING szlig: 'Latin small letter sharp s', // MISSING agrave: 'Latin small letter a with grave accent', // MISSING aacute: 'Latin small letter a with acute accent', // MISSING acirc: 'Latin small letter a with circumflex', // MISSING atilde: 'Latin small letter a with tilde', // MISSING auml: 'Latin small letter a with diaeresis', // MISSING aring: 'Latin small letter a with ring above', // MISSING aelig: 'Latin small letter æ', // MISSING ccedil: 'Latin small letter c with cedilla', // MISSING egrave: 'Latin small letter e with grave accent', // MISSING eacute: 'Latin small letter e with acute accent', // MISSING ecirc: 'Latin small letter e with circumflex', // MISSING euml: 'Latin small letter e with diaeresis', // MISSING igrave: 'Latin small letter i with grave accent', // MISSING iacute: 'Latin small letter i with acute accent', // MISSING icirc: 'Latin small letter i with circumflex', // MISSING iuml: 'Latin small letter i with diaeresis', // MISSING eth: 'Latin small letter eth', // MISSING ntilde: 'Latin small letter n with tilde', // MISSING ograve: 'Latin small letter o with grave accent', // MISSING oacute: 'Latin small letter o with acute accent', // MISSING ocirc: 'Latin small letter o with circumflex', // MISSING otilde: 'Latin small letter o with tilde', // MISSING ouml: 'Latin small letter o with diaeresis', // MISSING divide: 'Division sign', // MISSING oslash: 'Latin small letter o with stroke', // MISSING ugrave: 'Latin small letter u with grave accent', // MISSING uacute: 'Latin small letter u with acute accent', // MISSING ucirc: 'Latin small letter u with circumflex', // MISSING uuml: 'Latin small letter u with diaeresis', // MISSING yacute: 'Latin small letter y with acute accent', // MISSING thorn: 'Latin small letter thorn', // MISSING yuml: 'Latin small letter y with diaeresis', // MISSING OElig: 'Latin capital ligature OE', // MISSING oelig: 'Latin small ligature oe', // MISSING '372': 'Latin capital letter W with circumflex', // MISSING '374': 'Latin capital letter Y with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'Horizontal ellipsis', // MISSING trade: 'Trade mark sign', // MISSING '9658': 'Black right-pointing pointer', // MISSING bull: 'Bullet', // MISSING rarr: 'Rightwards arrow', // MISSING rArr: 'Rightwards double arrow', // MISSING hArr: 'جهت‌نمای دوتایی چپ به راست', diams: 'Black diamond suit', // MISSING asymp: 'تقریبا برابر با' });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'ku', { euro: 'نیشانه‌ی یۆرۆ', lsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی چه‌پ', rsquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری تاکی ڕاست', ldquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی چه‌پ', rdquo: 'نیشانه‌ی فاریزه‌ی سه‌رووژێری دووهێنده‌ی ڕاست', ndash: 'ته‌قه‌ڵی کورت', mdash: 'ته‌قه‌ڵی درێژ', iexcl: 'نیشانه‌ی هه‌ڵه‌وگێڕی سه‌رسوڕمێنه‌ر', cent: 'نیشانه‌ی سه‌نت', pound: 'نیشانه‌ی پاوه‌ند', curren: 'نیشانه‌ی دراو', yen: 'نیشانه‌ی یه‌نی ژاپۆنی', brvbar: 'شریتی ئه‌ستوونی پچڕاو', sect: 'نیشانه‌ی دوو s له‌سه‌ریه‌ك', uml: 'خاڵ', copy: 'نیشانه‌ی مافی چاپ', ordf: 'هێڵ له‌سه‌ر پیتی a', laquo: 'دوو تیری به‌دووایه‌کی چه‌پ', not: 'نیشانه‌ی نه‌خێر', reg: 'نیشانه‌ی R له‌ناو بازنه‌دا', macr: 'ماکڕوون', deg: 'نیشانه‌ی پله', sup2: 'سه‌رنووسی دوو', sup3: 'سه‌رنووسی سێ', acute: 'لاری تیژ', micro: 'نیشانه‌ی u لق درێژی چه‌پی خواروو', para: 'نیشانه‌یپه‌ڕه‌گراف', middot: 'ناوه‌ڕاستی خاڵ', cedil: 'نیشانه‌ی c ژێر چووکره‌', sup1: 'سه‌رنووسی یه‌ك', ordm: 'هێڵ له‌ژێر پیتی o', raquo: 'دوو تیری به‌دووایه‌کی ڕاست', frac14: 'یه‌ك له‌سه‌ر چووار', frac12: 'یه‌ك له‌سه‌ر دوو', frac34: 'سێ له‌سه‌ر چووار', iquest: 'هێمای هه‌ڵه‌وگێری پرسیار', Agrave: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Aacute: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Acirc: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Atilde: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Auml: 'پیتی لاتینی A-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Aring: 'پیتی لاتینی گه‌وره‌ی Å', AElig: 'پیتی لاتینی گه‌وره‌ی Æ', Ccedil: 'پیتی لاتینی C-ی گه‌وره‌ له‌گه‌ڵ ژێر چووکره‌', Egrave: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Eacute: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ecirc: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Euml: 'پیتی لاتینی E-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Igrave: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Iacute: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Icirc: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Iuml: 'پیتی لاتینی I-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', ETH: 'پیتی لاتینی E-ی گه‌وره‌ی', Ntilde: 'پیتی لاتینی N-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ograve: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Oacute: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ocirc: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Otilde: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ زه‌ڕه‌', Ouml: 'پیتی لاتینی O-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', times: 'نیشانه‌ی لێکدان', Oslash: 'پیتی لاتینی گه‌وره‌ی Ø له‌گه‌ڵ هێمای دڵ وه‌ستان', Ugrave: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری لار', Uacute: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', Ucirc: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Uuml: 'پیتی لاتینی U-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', Yacute: 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ ڕوومه‌تداری تیژ', THORN: 'پیتی لاتینی دڕکی گه‌وره', szlig: 'پیتی لاتنی نووك تیژی s', agrave: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', aacute: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', acirc: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', atilde: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ زه‌ڕه‌', auml: 'پیتی لاتینی a-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', aring: 'پیتی لاتینی å-ی بچووك', aelig: 'پیتی لاتینی æ-ی بچووك', ccedil: 'پیتی لاتینی c-ی بچووك له‌گه‌ڵ ژێر چووکره‌', egrave: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', eacute: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ecirc: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', euml: 'پیتی لاتینی e-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', igrave: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', iacute: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', icirc: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', iuml: 'پیتی لاتینی i-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', eth: 'پیتی لاتینی e-ی بچووك', ntilde: 'پیتی لاتینی n-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ograve: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', oacute: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ocirc: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', otilde: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ زه‌ڕه‌', ouml: 'پیتی لاتینی o-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', divide: 'نیشانه‌ی دابه‌ش', oslash: 'پیتی لاتینی گه‌وره‌ی ø له‌گه‌ڵ هێمای دڵ وه‌ستان', ugrave: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری لار', uacute: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', ucirc: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', uuml: 'پیتی لاتینی u-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', yacute: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ ڕوومه‌تداری تیژ', thorn: 'پیتی لاتینی دڕکی بچووك', yuml: 'پیتی لاتینی y-ی بچووك له‌گه‌ڵ نیشانه‌ له‌سه‌ری', OElig: 'پیتی لاتینی گه‌وره‌ی پێکه‌وه‌نووسراوی OE', oelig: 'پیتی لاتینی بچووکی پێکه‌وه‌نووسراوی oe', '372': 'پیتی لاتینی W-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '374': 'پیتی لاتینی Y-ی گه‌وره‌ له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '373': 'پیتی لاتینی w-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', '375': 'پیتی لاتینی y-ی بچووکی له‌گه‌ڵ نیشانه‌ له‌سه‌ری', sbquo: 'نیشانه‌ی فاریزه‌ی نزم', '8219': 'نیشانه‌ی فاریزه‌ی به‌رزی پێچه‌وانه', bdquo: 'دوو فاریزه‌ی ته‌نیش یه‌ك', hellip: 'ئاسۆیی بازنه', trade: 'نیشانه‌ی بازرگانی', '9658': 'ئاراسته‌ی ڕه‌شی ده‌ستی ڕاست', bull: 'فیشه‌ك', rarr: 'تیری ده‌ستی ڕاست', rArr: 'دووتیری ده‌ستی ڕاست', hArr: 'دوو تیری ڕاست و چه‌پ', diams: 'ڕه‌شی پاقڵاوه‌یی', asymp: 'نیشانه‌ی یه‌کسانه' });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.dialog.add('docProps',this.path+'dialogs/docprops.js');a.ui.addButton('DocProps',{label:a.lang.docprops.label,command:'docProps'});}});
JavaScript
/* * @example An iframe-based dialog with custom button handling logics. */ ( function() { CKEDITOR.plugins.add( 'MediaEmbed', { requires: [ 'iframedialog' ], init: function( editor ) { var me = this; CKEDITOR.dialog.add( 'MediaEmbedDialog', function () { return { title : 'Embed Media Dialog', minWidth : 550, minHeight : 200, contents : [ { id : 'iframe', label : 'Embed Media', expand : true, elements : [ { type : 'html', id : 'pageMediaEmbed', label : 'Embed Media', style : 'width : 100%;', html : '<iframe src="'+me.path+'dialogs/mediaembed.html" frameborder="0" name="iframeMediaEmbed" id="iframeMediaEmbed" allowtransparency="1" style="width:100%;margin:0;padding:0;"></iframe>' } ] } ], onOk : function() { for (var i=0; i<window.frames.length; i++) { if(window.frames[i].name == 'iframeMediaEmbed') { var content = window.frames[i].document.getElementById("embed").value; } } final_html = 'MediaEmbedInsertData|---' + escape('<div class="media_embed">'+content+'</div>') + '---|MediaEmbedInsertData'; editor.insertHtml(final_html); updated_editor_data = editor.getData(); clean_editor_data = updated_editor_data.replace(final_html,'<div class="media_embed">'+content+'</div>'); editor.setData(clean_editor_data); } }; } ); editor.addCommand( 'MediaEmbed', new CKEDITOR.dialogCommand( 'MediaEmbedDialog' ) ); editor.ui.addButton( 'MediaEmbed', { label: 'Embed Media', command: 'MediaEmbed', icon: this.path + 'images/icon.gif' } ); } } ); } )();
JavaScript
 var yuiAjaxObject = { JSONParse:function(o) { var messages = []; try { messages = YAHOO.lang.JSON.parse(o.responseText); return messages; } catch (x) { return null; } }, startRequest:function(method, url, params, success, failure, scope) { var callback = { success:success, failure:failure, scope: scope }; if (params != null && params != "") { url += "?" + params; } YAHOO.util.Connect.asyncRequest(method, url, callback); } }; window.loadingPanel = function() { if (window._loadingPanel) { return window._loadingPanel; } window._loadingPanel = new YAHOO.widget.Panel("wait", { width:"240px", fixedcenter:true, close:false, draggable:false, zindex:11110, modal:true, visible:false } ); window._loadingPanel.setHeader("Loading, please wait..."); window._loadingPanel.setBody('<img src="/admin/resources/images/loading.gif" />'); window._loadingPanel.render(document.body); return window._loadingPanel; }; String.prototype.startsWith = function(str) { return (this.match("^"+str)==str); } String.prototype.endsWith = function(str) { return (this.match(str+"$")==str); } String.prototype.trimLeftStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.startsWith(trm)) { str = str.substring(str.indexOf(trm) + 1); } return str; } String.prototype.trimRightStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.endsWith(trm)) { str = str.substring(0, str.lastIndexOf(trm)); } return str; } var mapPath = function(path1, path2) { path1 = path1.trimRightStr("/"); path2 = path2.trimLeftStr("/").trimRightStr("/"); if (path2.startsWith("..")) { path1 = path1.substring(0, path1.lastIndexOf("/")); path2 = path2.trimLeftStr(".").trimLeftStr("/"); } return path1 + "/" + path2 + "/"; } var appendFolder = function(i, absolute_folder, related_folder, folder_name, cont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = cont.id + '_f_img_' + (i+1); imgi.src = "resources/images/folder.jpg"; imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.alt = folder_name; var divi = document.createElement( 'div' ); divi.id = cont.id + '_f_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = folder_name; var linki = document.createElement( 'a' ); linki.id = cont.id + '_f_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = folder_name; linki.appendChild(imgi); linki.appendChild(divi); linki.onclick = function() { loadImages(mapPath(related_folder, this.title), this.parentDialog, this.parentEditor); }; cont.appendChild(linki); } var appendImage = function(i, absolute_folder, related_folder, imgSrc, imgCont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = imgCont.id + '_i_img_' + (i+1); imgi.src = absolute_folder + imgSrc; //imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.style.position = "absolute"; imgi.style.top = "0"; imgi.style.bottom = "0"; imgi.style.left = "0"; imgi.style.right = "0"; imgi.style.margin = "auto"; imgi.alt = imgSrc; var imgci = document.createElement( 'div' ); imgci.id = imgCont.id + '_i_imgc_' + (i+1); imgci.style.width = "100px"; imgci.style.height = "100px"; imgci.style.cursor = 'pointer'; imgci.style.position = 'relative'; imgci.style.backgroundColor = "#fff"; imgci.appendChild(imgi); var divi = document.createElement( 'div' ); divi.id = imgCont.id + '_i_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = imgSrc; var linki = document.createElement( 'a' ); linki.id = imgCont.id + '_i_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = imgSrc; linki.appendChild(imgci); linki.appendChild(divi); linki.onclick = function() { var imgUrl = this.firstChild.firstChild.getAttribute("src"); this.parentDialog.getContentElement('general', 'url').setValue(imgUrl); this.parentDialog.click('ok'); }; imgCont.appendChild(linki); } var bindResult = function(result, dialog, editor) { var imgCont = document.getElementById(editor.id + '_imgc'); var absolute_folder = result.absolute_folder; var related_folder = result.related_folder; dialog.related_folder = related_folder; if (related_folder === "/") { } else { appendFolder(-1, absolute_folder, related_folder, "..", imgCont, dialog); } if (result.folders) { for (var i = 0; i < result.folders.length; i++) { var imgSrc = result.folders[i].src; appendFolder(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } if (result.images) { for (var i = 0; i < result.images.length; i++) { var imgSrc = result.images[i].src; appendImage(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } } var loadImages = function(path, dialog, editor) { var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); imgCont.innerHTML = ''; var callback = { success:function(o) { var imgCont = document.getElementById(editor.id + '_imgc'); imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, editor); } }, failure:function(o) { } }; yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'file=' + encodeURIComponent(path) + '&id='+editor.id, callback.success, callback.failure, this); } CKEDITOR.plugins.add( 'selectImage', { init: function( editor ) { editor.addCommand( 'selectImageDialog', new CKEDITOR.dialogCommand( 'selectImageDialog' ) ); editor.ui.addButton( 'SelectImage', { label: 'Insert an image by select it.', command: 'selectImageDialog', icon: this.path + 'images/selectimage.gif' }); } }); CKEDITOR.dialog.add( 'selectImageDialog', function( editor ) { return { title : 'Select an image to insert', minWidth : 684, minHeight : 508, contents : [ { id : 'general', label : 'Settings', elements : [ { type : 'html', html : 'This dialog window lets you create simple image for your website, by browser and select it.' }, { type : 'text', id : 'url', label : 'URL', validate : CKEDITOR.dialog.validate.notEmpty( 'The link must have an URL.' ), required : true, commit : function( data ) { data.url = this.getValue(); } }, { type : 'text', id : 'title', label : 'Title', required : false, commit : function( data ) { data.title = this.getValue(); } }, { type : 'file', id : 'fuImg', label : '<b style="font-weight: bold;">Or select an image to upload</b>', required : false, html : '<div id="' + editor.id + '_fuImg" style="width: 684px; height: 395px; overflow: auto;"><div>' }, { type : 'checkbox', id : 'chkLayerMask', label : 'Đính kèm logo (đối với file ảnh *.jpg)', 'default' : false, commit : function( data ) { data.addLayerMask = this.getValue(); } }, { type : 'html', id : 'imgc', html : '<div id="' + editor.id + '_imgc" style="width: 684px; height: 395px; overflow: auto;"><div>' } ] } ],onShow : function(o) { var imgCont = document.getElementById(this.getParentEditor().id + '_imgc'); if (!imgCont || imgCont.innerHTML.trimLeftStr(' ') == '' || imgCont.innerHTML.trimLeftStr(' ').trimRightStr(' ') == '<div></div>') { loadImages('/', this, this.getParentEditor()); } this._.contents.general.fuImg.getInputElement().$.dialog = this; this._.contents.general.fuImg.getInputElement().$.onchange = function() { var fuImg = this; if (fuImg.files != null && fuImg.files.length > 0) { if (NTTHAO.util.isImageFile(fuImg.value)) { // is image file var data = {}; this.dialog.commitContent( data ); window.loadingPanel().show(); var fd = new FormData(); fd.append('fuImg', fuImg.files[0]); fd.append('path', this.dialog.related_folder); fd.append('addLayerMask', data.addLayerMask ? "1" : "0"); var xhr = null; if (window.XMLHttpRequest) { xhr = new XMLHttpRequest(); } else { // for older IE 5/6 xhr = new ActiveXObject("Microsoft.XMLHTTP"); } xhr.dialog = this.dialog; xhr.addEventListener("load", function(e) { this.dialog.getContentElement('general', 'url').setValue(e.target.responseText); }, false); xhr.addEventListener("error", function(e) { alert('Có lỗi xảy ra trong quá trình upload file.\n Vui lòng đăng nhập lại.'); window.loadingPanel().hide(); }, false); xhr.open("POST", '/admin/EditorFileUploader.aspx', false); xhr.send(fd); xhr.open('GET', '/admin/RefreshSessionState.aspx', false); this.value = ''; loadImages(this.dialog.related_folder, this.dialog, this.dialog.getParentEditor()); window.loadingPanel().hide(); } else { fuImg.value = ''; alert('Chức năng này chỉ hỗ trợ file ảnh với các định dạng: *.jpg, *.jpeg, *.jpe, *.png, *.gif, *.bmp'); } } }; /* document[this.getParentEditor().id] = this.getParentEditor(); var callback = { success:function(o) { var dialog = this; var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); document[dialog.getParentEditor().id + '_imgc'] = imgCont; imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, dialog.getParentEditor()); } }, failure:function(o) { } }; //yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'id='+this.getParentEditor().id, callback.success, callback.failure, this); */ }, onOk : function() { var dialog = this, data = {}, img = editor.document.createElement( 'img' ); this.commitContent( data ); img.setAttribute( 'src', data.url ); if ( data.title ) img.setAttribute( 'title', data.title ); editor.insertElement( img ); } }; });
JavaScript
 var yuiAjaxObject = { JSONParse:function(o) { var messages = []; try { messages = YAHOO.lang.JSON.parse(o.responseText); return messages; } catch (x) { return null; } }, startRequest:function(method, url, params, success, failure, scope) { var callback = { success:success, failure:failure, scope: scope }; if (params != null && params != "") { url += "?" + params; } YAHOO.util.Connect.asyncRequest(method, url, callback); } }; String.prototype.startsWith = function(str) { return (this.match("^"+str)==str); } String.prototype.endsWith = function(str) { return (this.match(str+"$")==str); } String.prototype.trimLeftStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.startsWith(trm)) { str = str.substring(str.indexOf(trm) + 1); } return str; } String.prototype.trimRightStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.endsWith(trm)) { str = str.substring(0, str.lastIndexOf(trm)); } return str; } var mapPath = function(path1, path2) { path1 = path1.trimRightStr("/"); path2 = path2.trimLeftStr("/").trimRightStr("/"); if (path2.startsWith("..")) { path1 = path1.substring(0, path1.lastIndexOf("/")); path2 = path2.trimLeftStr(".").trimLeftStr("/"); } return path1 + "/" + path2 + "/"; } var appendFolder = function(i, absolute_folder, related_folder, folder_name, cont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = cont.id + '_f_img_' + (i+1); imgi.src = "resources/images/folder.jpg"; imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.alt = folder_name; var divi = document.createElement( 'div' ); divi.id = cont.id + '_f_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = folder_name; var linki = document.createElement( 'a' ); linki.id = cont.id + '_f_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = folder_name; linki.appendChild(imgi); linki.appendChild(divi); linki.onclick = function() { loadImages(mapPath(related_folder, this.title), this.parentDialog, this.parentEditor); }; cont.appendChild(linki); } var appendImage = function(i, absolute_folder, related_folder, imgSrc, imgCont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = imgCont.id + '_i_img_' + (i+1); imgi.src = absolute_folder + imgSrc; //imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.style.position = "absolute"; imgi.style.top = "0"; imgi.style.bottom = "0"; imgi.style.left = "0"; imgi.style.right = "0"; imgi.style.margin = "auto"; imgi.alt = imgSrc; var imgci = document.createElement( 'div' ); imgci.id = imgCont.id + '_i_imgc_' + (i+1); imgci.style.width = "100px"; imgci.style.height = "100px"; imgci.style.cursor = 'pointer'; imgci.style.position = 'relative'; imgci.style.backgroundColor = "#fff"; imgci.appendChild(imgi); var divi = document.createElement( 'div' ); divi.id = imgCont.id + '_i_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = imgSrc; var linki = document.createElement( 'a' ); linki.id = imgCont.id + '_i_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = imgSrc; linki.appendChild(imgci); linki.appendChild(divi); linki.onclick = function() { var imgUrl = this.firstChild.firstChild.getAttribute("src"); this.parentDialog.getContentElement('general', 'url').setValue(imgUrl); this.parentDialog.click('ok'); }; imgCont.appendChild(linki); } var bindResult = function(result, dialog, editor) { var imgCont = document.getElementById(editor.id + '_imgc'); var absolute_folder = result.absolute_folder; var related_folder = result.related_folder; if (related_folder === "/") { } else { appendFolder(-1, absolute_folder, related_folder, "..", imgCont, dialog); } if (result.folders) { for (var i = 0; i < result.folders.length; i++) { var imgSrc = result.folders[i].src; appendFolder(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } if (result.images) { for (var i = 0; i < result.images.length; i++) { var imgSrc = result.images[i].src; appendImage(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } } var loadImages = function(path, dialog, editor) { var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); imgCont.innerHTML = ''; var callback = { success:function(o) { var imgCont = document.getElementById(editor.id + '_imgc'); imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, editor); } }, failure:function(o) { } }; yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'file=' + encodeURIComponent(path) + '&id='+editor.id, callback.success, callback.failure, this); } CKEDITOR.plugins.add( 'selectImage', { init: function( editor ) { editor.addCommand( 'selectImageDialog', new CKEDITOR.dialogCommand( 'selectImageDialog' ) ); editor.ui.addButton( 'SelectImage', { label: 'Insert an image by select it.', command: 'selectImageDialog', icon: this.path + 'images/selectimage.gif' }); } }); CKEDITOR.dialog.add( 'selectImageDialog', function( editor ) { return { title : 'Select an image to insert', minWidth : 684, minHeight : 508, contents : [ { id : 'general', label : 'Settings', elements : [ { type : 'html', html : 'This dialog window lets you create simple image for your website, by browser and select it.' }, { type : 'text', id : 'url', label : 'URL', validate : CKEDITOR.dialog.validate.notEmpty( 'The link must have a URL.' ), required : true, commit : function( data ) { data.url = this.getValue(); } }, { type : 'text', id : 'title', label : 'Title', required : false, commit : function( data ) { data.title = this.getValue(); } }, { type : 'html', id : 'imgc', html : '<div id="' + editor.id + '_imgc" style="width: 684px; height: 395px; overflow: auto;"><div>' } ] } ],onShow : function(o) { var imgCont = document.getElementById(this.getParentEditor().id + '_imgc'); if (!imgCont || imgCont.innerHTML.trimLeftStr(' ') == '' || imgCont.innerHTML.trimLeftStr(' ').trimRightStr(' ') == '<div></div>') { loadImages('/', this, this.getParentEditor()); } /* document[this.getParentEditor().id] = this.getParentEditor(); var callback = { success:function(o) { var dialog = this; var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); document[dialog.getParentEditor().id + '_imgc'] = imgCont; imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, dialog.getParentEditor()); } }, failure:function(o) { } }; //yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'id='+this.getParentEditor().id, callback.success, callback.failure, this); */ }, onOk : function() { var dialog = this, data = {}, img = editor.document.createElement( 'img' ); this.commitContent( data ); img.setAttribute( 'src', data.url ); if ( data.title ) img.setAttribute( 'title', data.title ); editor.insertElement( img ); } }; });
JavaScript
 var yuiAjaxObject = { JSONParse:function(o) { var messages = []; try { messages = YAHOO.lang.JSON.parse(o.responseText); return messages; } catch (x) { return null; } }, startRequest:function(method, url, params, success, failure, scope) { var callback = { success:success, failure:failure, scope: scope }; YAHOO.util.Connect.asyncRequest(method, url, callback, params); } }; CKEDITOR.plugins.add( 'selectImage', { init: function( editor ) { editor.addCommand( 'selectImageDialog', new CKEDITOR.dialogCommand( 'selectImageDialog' ) ); editor.ui.addButton( 'SelectImage', { label: 'Insert an image by select it.', command: 'selectImageDialog', icon: this.path + 'images/selectimage.gif' }); } }); CKEDITOR.dialog.add( 'selectImageDialog', function( editor ) { return { title : 'Select an image to insert', minWidth : 600, minHeight : 300, contents : [ { id : 'general', label : 'Settings', elements : [ { type : 'html', html : 'This dialog window lets you create simple links for your website.' }, { type : 'text', id : 'url', label : 'URL', validate : CKEDITOR.dialog.validate.notEmpty( 'The link must have a URL.' ), required : true, commit : function( data ) { data.url = this.getValue(); } }, { type : 'text', id : 'title', label : 'Title', required : false, commit : function( data ) { data.title = this.getValue(); } }, { type : 'html', id : 'imgc', html : '<div id="' + editor.id + '_imgc" style="width: 580px; height: 300px; overflow: auto;"><div>' } ] } ],onShow : function(o) { document[this.getParentEditor().id] = this.getParentEditor(); var callback = { success:function(o) { var dialog = this; var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); document[dialog.getParentEditor().id + '_imgc'] = imgCont; imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result && result.images) { for (var i = 0; i < result.images.length; i++) { var imgSrc = result.images[i].src; var imgi = document.createElement( 'img' ); imgi.id = imgCont.id + '_img' + (i+1); imgi.src = imgSrc; imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.alt = imgSrc; var linki = document.createElement( 'a' ); linki.id = imgCont.id + '_a' + (i+1); linki.appendChild(imgi); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "100px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = imgSrc; linki.onclick = function() { this.parentDialog.getContentElement('general', 'url').setValue(this.firstChild.src); this.parentDialog.click('ok'); }; imgCont.appendChild(linki); } } }, failure:function(o) { } }; yuiAjaxObject.startRequest('GET', 'ImgListProvider.aspx', 'id='+this.getParentEditor().id, callback.success, callback.failure, this); }, onOk : function() { var dialog = this, data = {}, img = editor.document.createElement( 'img' ); this.commitContent( data ); img.setAttribute( 'src', data.url ); if ( data.title ) img.setAttribute( 'title', data.title ); editor.insertElement( img ); } }; });
JavaScript
 var yuiAjaxObject = { JSONParse:function(o) { var messages = []; try { messages = YAHOO.lang.JSON.parse(o.responseText); return messages; } catch (x) { return null; } }, startRequest:function(method, url, params, success, failure, scope) { var callback = { success:success, failure:failure, scope: scope }; if (params != null && params != "") { url += "?" + params; } YAHOO.util.Connect.asyncRequest(method, url, callback); } }; window.loadingPanel = function() { if (window._loadingPanel) { return window._loadingPanel; } window._loadingPanel = new YAHOO.widget.Panel("wait", { width:"240px", fixedcenter:true, close:false, draggable:false, zindex:11110, modal:true, visible:false } ); window._loadingPanel.setHeader("Loading, please wait..."); window._loadingPanel.setBody('<img src="/admin/resources/images/loading.gif" />'); window._loadingPanel.render(document.body); return window._loadingPanel; }; String.prototype.startsWith = function(str) { return (this.match("^"+str)==str); } String.prototype.endsWith = function(str) { return (this.match(str+"$")==str); } String.prototype.trimLeftStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.startsWith(trm)) { str = str.substring(str.indexOf(trm) + 1); } return str; } String.prototype.trimRightStr = function(trm) { var str = this; if (trm == null || trm === "") return str; while(str.endsWith(trm)) { str = str.substring(0, str.lastIndexOf(trm)); } return str; } var mapPath = function(path1, path2) { path1 = path1.trimRightStr("/"); path2 = path2.trimLeftStr("/").trimRightStr("/"); if (path2.startsWith("..")) { path1 = path1.substring(0, path1.lastIndexOf("/")); path2 = path2.trimLeftStr(".").trimLeftStr("/"); } return path1 + "/" + path2 + "/"; } var appendFolder = function(i, absolute_folder, related_folder, folder_name, cont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = cont.id + '_f_img_' + (i+1); imgi.src = "resources/images/folder.jpg"; imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.alt = folder_name; var divi = document.createElement( 'div' ); divi.id = cont.id + '_f_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = folder_name; var linki = document.createElement( 'a' ); linki.id = cont.id + '_f_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = folder_name; linki.appendChild(imgi); linki.appendChild(divi); linki.onclick = function() { loadImages(mapPath(related_folder, this.title), this.parentDialog, this.parentEditor); }; cont.appendChild(linki); } var appendImage = function(i, absolute_folder, related_folder, imgSrc, imgCont, dialog) { var imgi = document.createElement( 'img' ); imgi.id = imgCont.id + '_i_img_' + (i+1); imgi.src = absolute_folder + imgSrc; //imgi.style.width = "100px"; imgi.style.maxWidth = "100px"; imgi.style.maxHeight = "100px"; imgi.style.cursor = 'pointer'; imgi.style.position = "absolute"; imgi.style.top = "0"; imgi.style.bottom = "0"; imgi.style.left = "0"; imgi.style.right = "0"; imgi.style.margin = "auto"; imgi.alt = imgSrc; var imgci = document.createElement( 'div' ); imgci.id = imgCont.id + '_i_imgc_' + (i+1); imgci.style.width = "100px"; imgci.style.height = "100px"; imgci.style.cursor = 'pointer'; imgci.style.position = 'relative'; imgci.style.backgroundColor = "#fff"; imgci.appendChild(imgi); var divi = document.createElement( 'div' ); divi.id = imgCont.id + '_i_div_' + (i+1); divi.style.cursor = 'pointer'; divi.style.marginTop = "6px"; divi.style.textAlign = "center"; divi.innerHTML = imgSrc; var linki = document.createElement( 'a' ); linki.id = imgCont.id + '_i_a_' + (i+1); linki.style.display = 'block'; linki.style.width = "100px"; linki.style.marginTop = "5px"; linki.style.marginRight = "5px"; linki.style.height = "120px"; linki.style.overflow = "hidden"; linki.style.cssFloat = 'left'; linki.style.cursor = 'pointer'; linki.style.border = 'solid 1px #999'; linki.style.padding = '2px'; linki.parentDialog = dialog; linki.parentEditor = dialog.getParentEditor(); linki.title = imgSrc; linki.appendChild(imgci); linki.appendChild(divi); linki.onclick = function() { var imgUrl = this.firstChild.firstChild.getAttribute("src"); this.parentDialog.getContentElement('general', 'url').setValue(imgUrl); this.parentDialog.click('ok'); }; imgCont.appendChild(linki); } var bindResult = function(result, dialog, editor) { var imgCont = document.getElementById(editor.id + '_imgc'); var absolute_folder = result.absolute_folder; var related_folder = result.related_folder; dialog.related_folder = related_folder; if (related_folder === "/") { } else { appendFolder(-1, absolute_folder, related_folder, "..", imgCont, dialog); } if (result.folders) { for (var i = 0; i < result.folders.length; i++) { var imgSrc = result.folders[i].src; appendFolder(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } if (result.images) { for (var i = 0; i < result.images.length; i++) { var imgSrc = result.images[i].src; appendImage(i, absolute_folder, related_folder, imgSrc, imgCont, dialog); } } } var loadImages = function(path, dialog, editor) { var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); imgCont.innerHTML = ''; var callback = { success:function(o) { var imgCont = document.getElementById(editor.id + '_imgc'); imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, editor); } }, failure:function(o) { } }; yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'file=' + encodeURIComponent(path) + '&id='+editor.id, callback.success, callback.failure, this); } CKEDITOR.plugins.add( 'selectImage', { init: function( editor ) { editor.addCommand( 'selectImageDialog', new CKEDITOR.dialogCommand( 'selectImageDialog' ) ); editor.ui.addButton( 'SelectImage', { label: 'Insert an image by select it.', command: 'selectImageDialog', icon: this.path + 'images/selectimage.gif' }); } }); CKEDITOR.dialog.add( 'selectImageDialog', function( editor ) { return { title : 'Select an image to insert', minWidth : 684, minHeight : 508, contents : [ { id : 'general', label : 'Settings', elements : [ { type : 'html', html : 'This dialog window lets you create simple image for your website, by browser and select it.' }, { type : 'text', id : 'url', label : 'URL', validate : CKEDITOR.dialog.validate.notEmpty( 'The link must have an URL.' ), required : true, commit : function( data ) { data.url = this.getValue(); } }, { type : 'text', id : 'title', label : 'Title', required : false, commit : function( data ) { data.title = this.getValue(); } }, { type : 'file', id : 'fuImg', label : '<b style="font-weight: bold;">Or select an image to upload</b>', required : false, html : '<div id="' + editor.id + '_fuImg" style="width: 684px; height: 395px; overflow: auto;"><div>' }, { type : 'html', id : 'imgc', html : '<div id="' + editor.id + '_imgc" style="width: 684px; height: 395px; overflow: auto;"><div>' } ] } ],onShow : function(o) { var imgCont = document.getElementById(this.getParentEditor().id + '_imgc'); if (!imgCont || imgCont.innerHTML.trimLeftStr(' ') == '' || imgCont.innerHTML.trimLeftStr(' ').trimRightStr(' ') == '<div></div>') { loadImages('/', this, this.getParentEditor()); } this._.contents.general.fuImg.getInputElement().$.dialog = this; this._.contents.general.fuImg.getInputElement().$.onchange = function() { var fuImg = this; if (fuImg.files != null && fuImg.files.length > 0) { if (NTTHAO.util.isImageFile(fuImg.value)) { // is image file window.loadingPanel().show(); var fd = new FormData(); fd.append('fuImg', fuImg.files[0]); fd.append('path', this.dialog.related_folder); var xhr = null; if (window.XMLHttpRequest) { xhr = new XMLHttpRequest(); } else { // for older IE 5/6 xhr = new ActiveXObject("Microsoft.XMLHTTP"); } xhr.dialog = this.dialog; xhr.addEventListener("load", function(e) { this.dialog.getContentElement('general', 'url').setValue(e.target.responseText); }, false); xhr.addEventListener("error", function(e) { alert('Có lỗi xảy ra trong quá trình upload file.\n Vui lòng đăng nhập lại.'); window.loadingPanel().hide(); }, false); xhr.open("POST", '/admin/EditorFileUploader.aspx', false); xhr.send(fd); xhr.open('GET', '/admin/RefreshSessionState.aspx', false); this.value = ''; loadImages(this.dialog.related_folder, this.dialog, this.dialog.getParentEditor()); window.loadingPanel().hide(); } else { fuImg.value = ''; alert('Chức năng này chỉ hỗ trợ file ảnh với các định dạng: *.jpg, *.jpeg, *.jpe, *.png, *.gif, *.bmp'); } } }; /* document[this.getParentEditor().id] = this.getParentEditor(); var callback = { success:function(o) { var dialog = this; var imgCont = document.getElementById(dialog.getParentEditor().id + '_imgc'); document[dialog.getParentEditor().id + '_imgc'] = imgCont; imgCont.innerHTML = ''; var result = yuiAjaxObject.JSONParse(o); if (result) { bindResult(result, dialog, dialog.getParentEditor()); } }, failure:function(o) { } }; //yuiAjaxObject.startRequest('GET', 'ImageListProvider.aspx', 'id='+this.getParentEditor().id, callback.success, callback.failure, this); */ }, onOk : function() { var dialog = this, data = {}, img = editor.document.createElement( 'img' ); this.commitContent( data ); img.setAttribute( 'src', data.url ); if ( data.title ) img.setAttribute( 'title', data.title ); editor.insertElement( img ); } }; });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'fa', { accessibilityHelp : { title : 'دستورالعمل‌های دسترسی', contents : 'راهنمای فهرست مطالب. برای بستن این کادر محاوره‌ای ESC را فشار دهید.', legend : [ { name : 'عمومی', items : [ { name : 'نوار ابزار ویرایشگر', legend: '${toolbarFocus} را برای باز کردن نوار ابزار بفشارید. با کلید Tab و Shif-Tab در مجموعه نوار ابزار بعدی و قبلی حرکت کنید. برای حرکت در کلید نوار ابزار قبلی و بعدی با کلید جهت‌نمای راست و چپ جابجا شوید. کلید Space یا Enter را برای فعال کردن کلید نوار ابزار بفشارید.' }, { name : 'پنجره محاوره‌ای ویرایشگر', legend : 'در داخل یک پنجره محاوره‌ای، کلید Tab را بفشارید تا به پنجره‌ی بعدی بروید، Shift+Tab برای حرکت به فیلد قبلی، فشردن Enter برای ثبت اطلاعات پنجره‌، فشردن Esc برای لغو پنجره محاوره‌ای و برای پنجره‌هایی که چندین برگه دارند، فشردن Alt+F10 جهت رفتن به Tab-List. در نهایت حرکت به برگه بعدی با Tab یا کلید جهت‌نمای راست. حرکت به برگه قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک برگه.' }, { name : 'منوی متنی ویرایشگر', legend : '${contextMenu} یا کلید برنامه‌های کاربردی را برای باز کردن منوی متن را بفشارید. سپس می‌توانید برای حرکت به گزینه بعدی منو با کلید Tab و یا کلید جهت‌نمای پایین جابجا شوید. حرکت به گزینه قبلی با Shift+Tab یا کلید جهت‌نمای بالا. فشردن Space یا Enter برای انتخاب یک گزینه از منو. باز کردن زیر شاخه گزینه منو جاری با کلید Space یا Enter و یا کلید جهت‌نمای راست و چپ. بازگشت به منوی والد با کلید Esc یا کلید جهت‌نمای چپ. بستن منوی متن با Esc.' }, { name : 'جعبه فهرست ویرایشگر', legend : 'در داخل جعبه لیست، قلم دوم از اقلام لیست بعدی را با TAB و یا Arrow Down حرکت دهید. انتقال به قلم دوم از اقلام لیست قبلی را با SHIFT + TAB یا UP ARROW. کلید Space یا ENTER را برای انتخاب گزینه لیست بفشارید. کلید ESC را برای بستن جعبه لیست بفشارید.' }, { name : 'ویرایشگر عنصر نوار راه', legend : 'برای رفتن به مسیر عناصر ${elementsPathFocus} را بفشارید. حرکت به کلید عنصر بعدی با کلید Tab یا کلید جهت‌نمای راست. برگشت به کلید قبلی با Shift+Tab یا کلید جهت‌نمای چپ. فشردن Space یا Enter برای انتخاب یک عنصر در ویرایشگر.' } ] }, { name : 'فرمان‌ها', items : [ { name : 'بازگشت فرمان', legend : 'فشردن ${undo}' }, { name : 'انجام مجدد فرمان', legend : 'فشردن ${redo}' }, { name : 'فرمان متن درشت', legend : 'فشردن ${bold}' }, { name : 'فرمان متن کج', legend : 'فشردن ${italic}' }, { name : 'فرمان متن زیرخط‌دار', legend : 'فشردن ${underline}' }, { name : 'فرمان پیوند', legend : 'فشردن ${link}' }, { name : 'بستن نوار ابزار فرمان', legend : 'فشردن ${toolbarCollapse}' }, { name : 'راهنمای دسترسی', legend : 'فشردن ${a11yHelp}' } ] } ] } });
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'a11yhelp', 'ku', { accessibilityHelp : { title : 'ڕێنمای لەبەردەستدابوون', contents : 'پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.', legend : [ { name : 'گشتی', items : [ { name : 'تووڵامرازی ده‌ستكاریكه‌ر', legend: 'کلیك ${toolbarFocus} بۆ ڕابەری تووڵامراز. بۆ گواستنەوەی پێشوو داهاتووی گرووپی تووڵامرازی داگرتنی کلیلی TAB له‌گه‌ڵ‌ SHIFT-TAB. بۆ گواستنەوەی پێشوو داهاتووی دووگمەی تووڵامرازی لەڕێی کلیلی تیری دەستی ڕاست یان کلیلی تیری دەستی چەپ. کلیکی کلیلی SPACE یان ENTER بۆ چالاککردنی دووگمەی تووڵامراز.' }, { name : 'دیالۆگی ده‌ستكاریكه‌ر', legend : 'لەهەمانکاتدا کەتۆ لەدیالۆگی, کلیکی کلیلی TAB بۆ ڕابەری خانەی دیالۆگێکی تر, داگرتنی کلیلی SHIFT + TAB بۆ گواستنەوەی بۆ خانەی پێشووتر, کلیكی کلیلی ENTER بۆ ڕازیکردنی دیالۆگەکە, کلیكی کلیلی ESC بۆ هەڵوەشاندنەوەی دیالۆگەکە. بۆ دیالۆگی لەبازدەری (تابی) زیاتر, کلیكی کلیلی ALT + F10 بۆ ڕابه‌ری لیستی بازده‌ره‌کان. بۆ چوونه‌ بازده‌ری تابی داهاتوو کلیكی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. بۆچوونه‌ بازده‌ری تابی پێشوو داگرتنی کلیلی SHIFT + TAB یان کلیلی تیری ده‌ستی چه‌پ. کلیی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی بازده‌ر (تاب).' }, { name : 'پێڕستی سه‌رنووسه‌ر', legend : 'کلیك ${contextMenu} یان دوگمه‌ی لیسته‌(Menu) بۆ کردنه‌وه‌ی لیسته‌ی ده‌ق. بۆ چوونه‌ هه‌ڵبژارده‌یه‌کی تر له‌ لیسته‌ کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خواره‌وه‌ بۆ چوون بۆ هه‌ڵبژارده‌ی پێشوو کلیکی کلیلی SHIFT+TAB یان کلیلی تیری ڕوو له‌ سه‌ره‌وه. داگرتنی کلیلی SPACE یان ENTER بۆ هه‌ڵبژاردنی هه‌ڵبژارده‌ی لیسته‌. بۆ کردنه‌وه‌ی لقی ژێر لیسته‌ له‌هه‌ڵبژارده‌ی لیسته‌ کلیکی کلیلی SPACE یان ENTER یان کلیلی تیری ده‌ستی ڕاست. بۆ گه‌ڕانه‌وه بۆ سه‌ره‌وه‌ی لیسته‌ کلیکی کلیلی ESC یان کلیلی تیری ده‌ستی چه‌پ. بۆ داخستنی لیسته‌ کلیكی کلیلی ESC بکه.' }, { name : 'لیستی سنووقی سه‌رنووسه‌ر', legend : 'له‌ناو سنوقی لیست, چۆن بۆ هه‌ڵنبژارده‌ی لیستێکی تر کلیکی کلیلی TAB یان کلیلی تیری ڕوو له‌خوار. چوون بۆ هه‌ڵبژارده‌ی لیستی پێشوو کلیکی کلیلی SHIFT + TAB یان کلیلی تیری ڕوو له‌سه‌ره‌وه‌. کلیکی کلیلی SPACE یان ENTER بۆ دیاریکردنی ‌هه‌ڵبژارده‌ی لیست. کلیکی کلیلی ESC بۆ داخستنی سنوقی لیست.' }, { name : 'تووڵامرازی توخم', legend : 'کلیك ${elementsPathFocus} بۆ ڕابه‌ری تووڵامرازی توخمه‌کان. چوون بۆ دوگمه‌ی توخمێکی تر کلیکی کلیلی TAB یان کلیلی تیری ده‌ستی ڕاست. چوون بۆ دوگمه‌ی توخمی پێشوو کلیلی SHIFT+TAB یان کلیکی کلیلی تیری ده‌ستی چه‌پ. داگرتنی کلیلی SPACE یان ENTER بۆ دیاریکردنی توخمه‌که‌ له‌سه‌رنووسه.' } ] }, { name : 'فه‌رمانه‌کان', items : [ { name : 'فه‌رمانی پووچکردنه‌وه', legend : 'کلیك ${undo}' }, { name : 'فه‌رمانی هه‌ڵگه‌ڕانه‌وه', legend : 'کلیك ${redo}' }, { name : 'فه‌رمانی ده‌قی قه‌ڵه‌و', legend : 'کلیك ${bold}' }, { name : 'فه‌رمانی ده‌قی لار', legend : 'کلیك ${italic}' }, { name : 'فه‌رمانی ژێرهێڵ', legend : 'کلیك ${underline}' }, { name : 'فه‌رمانی به‌سته‌ر', legend : 'کلیك ${link}' }, { name : 'شارده‌نه‌وه‌ی تووڵامراز', legend : 'کلیك ${toolbarCollapse}' }, { name : 'ده‌ستپێگه‌یشتنی یارمه‌تی', legend : 'کلیك ${a11yHelp}' } ] } ] } });
JavaScript
(function ($) { $.scroller.themes.android = { defaults: { dateOrder: 'Mddyy', mode: 'clickpick', height: 50 } } })(jQuery);
JavaScript
var jQuery = Zepto; (function ($) { ['width', 'height'].forEach(function(dimension) { var offset, Dimension = dimension.replace(/./, function(m) { return m[0].toUpperCase() }); $.fn['outer' + Dimension] = function(margin) { var elem = this; if (elem) { var size = elem[0]['offset' + Dimension]; var sides = {'width': ['left', 'right'], 'height': ['top', 'bottom']}; sides[dimension].forEach(function(side) { if (margin) size += parseInt(elem.css('margin-' + side), 10); }); return size; } else { return null; } }; }); ["Left", "Top"].forEach(function(name, i) { var method = "scroll" + name; function isWindow( obj ) { return obj && typeof obj === "object" && "setInterval" in obj; } function getWindow( elem ) { return isWindow( elem ) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false; } $.fn[method] = function( val ) { var elem, win; if (val === undefined) { elem = this[0]; if (!elem) { return null; } win = getWindow(elem); // Return the scroll offset return win ? ("pageXOffset" in win) ? win[i ? "pageYOffset" : "pageXOffset"] : win.document.documentElement[method] || win.document.body[method] : elem[method]; } // Set the scroll offset this.each(function() { win = getWindow(this); if (win) { var xCoord = !i ? val : $(win).scrollLeft(); var yCoord = i ? val : $(win).scrollTop(); win.scrollTo(xCoord, yCoord); } else { this[method] = val; } }); } }); // Fix zepto.js extend to work with undefined parameter $.__extend = $.extend; $.extend = function() { arguments[0] = arguments[0] || {}; return $.__extend.apply(this, arguments); } })(jQuery);
JavaScript
/*! * jQuery MobiScroll v2.1 * http://mobiscroll.com * * Copyright 2010-2011, Acid Media * Licensed under the MIT license. * */ (function ($) { function Scroller(elm, settings) { var that = this, e = elm, elm = $(e), theme, lang, s = $.extend({}, defaults), m, dw, warr = [], iv = {}, input = elm.is('input'), visible = false; // Private functions function isReadOnly(wh) { if ($.isArray(s.readonly)) { var i = $('.dwwl', dw).index(wh); return s.readonly[i]; } else return s.readonly; } function generateWheelItems(wIndex) { var html = '', hi = s.height, i = 0; for (var j in warr[wIndex]) { html += '<li class="dw-v" data-val="' + j + '" style="height:' + hi + 'px;line-height:' + hi + 'px;">' + warr[wIndex][j] + '</li>'; } return html; } function getDocHeight() { var body = document.body, html = document.documentElement; return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight); } function setGlobals(t) { min = $('li.dw-v', t).eq(0).index(); max = $('li.dw-v', t).eq(-1).index(); index = $('ul', dw).index(t); h = s.height; inst = that; } function formatHeader(v) { var t = s.headerText; return t ? (typeof (t) == 'function' ? t.call(e, v) : t.replace(/{value}/i, v)) : ''; } function read() { that.temp = ((input && that.val !== null && that.val != elm.val()) || that.values === null) ? s.parseValue(elm.val() ? elm.val() : '', that) : that.values.slice(0); that.setValue(true); } function scrollToPos(time, orig, index, manual, dir) { // Call validation event s.validate.call(e, dw, index, time); // Set scrollers to position $('.dww ul', dw).each(function (i) { var t = $(this), cell = $('li[data-val="' + that.temp[i] + '"]', t), x = cell.index(), v = scrollToValid(cell, x, i, dir), sc = i == index || index === undefined; //if (v != t.data('pos')) that.scroll($(this), v, sc ? time : 0.2, orig, i); }); // Reformat value if validation changed something that.change(manual); } function scrollToValid(cell, val, i, dir) { // Process invalid cells if (!cell.hasClass('dw-v')) { var cell1 = cell, cell2 = cell, dist1 = 0, dist2 = 0; while (cell1.prev().length && !cell1.hasClass('dw-v')) { cell1 = cell1.prev(); dist1++; } while (cell2.next().length && !cell2.hasClass('dw-v')) { cell2 = cell2.next(); dist2++; } // If we have direction (+/- or mouse wheel), the distance does not count if (((dist2 < dist1 && dist2 && !dir == 1) || !dist1 || !cell1.hasClass('dw-v') || dir == 1) && cell2.hasClass('dw-v')) { cell = cell2; val = val + dist2; } else { cell = cell1; val = val - dist1; } that.temp[i] = cell.attr('data-val'); } return val; } function position() { if (s.display == 'inline') return; function countWidth() { $('.dwc', dw).each(function () { if ($(this).css('display') != 'none') { w = $(this).outerWidth(true); totalw += w; minw = (w > minw) ? w : minw; } }); w = totalw > ww ? minw : totalw; w = $('.dwwr', dw).width(w + 1).outerWidth(); h = d.outerHeight(); } var totalw = 0, minw = 0, ww = $(window).width(), wh = window.innerHeight, st = $(window).scrollTop(), d = $('.dw', dw), w, t, l, h, ew, css = {}, needScroll, elma = s.anchor === undefined ? elm : s.anchor; wh = wh ? wh : $(window).height(); if (s.display == 'modal') { countWidth(); l = (ww - w) / 2; t = st + (wh - h) / 2; } else if (s.display == 'bubble') { countWidth(); var p = elma.offset(), poc = $('.dw-arr', dw), pocw = $('.dw-arrw-i', dw), wd = d.outerWidth(); // horizontal positioning ew = elma.outerWidth(); l = p.left - (d.outerWidth(true) - ew) / 2; l = l > (ww - wd) ? (ww - (wd + 20)) : l; l = l >= 0 ? l : 20; // vertical positioning t = p.top - (d.outerHeight() + 3); // above the input if ((t < st) || (p.top > st + wh)) { // if doesn't fit above or the input is out of the screen d.removeClass('dw-bubble-top').addClass('dw-bubble-bottom'); t = p.top + elma.outerHeight() + 3; // below the input needScroll = ((t + d.outerHeight(true) > st + wh) || (p.top > st + wh)); } else d.removeClass('dw-bubble-bottom').addClass('dw-bubble-top'); t = t >= st ? t : st; // Calculate Arrow position var pl = p.left + ew / 2 - (l + (wd - pocw.outerWidth()) / 2); // Limit Arrow position to [0, pocw.width] intervall if (pl > pocw.outerWidth()) pl = pocw.outerWidth(); poc.css({ left: pl }); } else { css.width = '100%'; if (s.display == 'top') { t = st; } else if (s.display == 'bottom') { t = st + wh - d.outerHeight(); t = t >= 0 ? t : 0; } } css.top = t; css.left = l; d.css(css); $('.dwo, .dw-persp').height(0).height(getDocHeight()); if (needScroll) $(window).scrollTop(t + d.outerHeight(true) - wh); } function plus(t) { var p = +t.data('pos'), val = p + 1; calc(t, val > max ? min : val, 1); } function minus(t) { var p = +t.data('pos'), val = p - 1; calc(t, val < min ? max : val, 2); } // Public functions /** * Enables the scroller and the associated input. */ that.enable = function () { s.disabled = false; if (input) elm.prop('disabled', false); } /** * Disables the scroller and the associated input. */ that.disable = function () { s.disabled = true; if (input) elm.prop('disabled', true); } /** * Scrolls target to the specified position * @param {Object} t - Target wheel jQuery object. * @param {Number} val - Value. * @param {Number} [time] - Duration of the animation, optional. */ that.scroll = function (t, val, time, orig, index) { var px = (m - val) * s.height; t.attr('style', (time ? (prefix + '-transition:all ' + time.toFixed(1) + 's ease-out;') : '') + (has3d ? (prefix + '-transform:translate3d(0,' + px + 'px,0);') : ('top:' + px + 'px;'))); function getVal(t, b, c, d) { return c * Math.sin(t / d * (Math.PI / 2)) + b; } clearInterval(iv[index]); if (time && orig !== undefined) { var i = 0; iv[index] = setInterval(function () { i += 0.1; t.data('pos', Math.round(getVal(i, orig, val - orig, time))); if (i >= time) { clearInterval(iv[index]); t.data('pos', val).closest('.dwwl').removeClass('dwa'); } }, 100); } else t.data('pos', val); } /** * Gets the selected wheel values, formats it, and set the value of the scroller instance. * If input parameter is true, populates the associated input element. * @param {Boolean} [fill] - Also set the value of the associated input element. Default is true. * @param {Boolean} [temp] - If true, then only set the temporary value.(only scroll there but not set the value) */ that.setValue = function (sc, fill, time, temp) { if (!temp) that.values = that.temp.slice(0); if (visible && sc) scrollToPos(time); if (fill) { var v = s.formatResult(that.temp); that.val = v; if (input) elm.val(v).trigger('change'); } } /** * Checks if the current selected values are valid together. * In case of date presets it checks the number of days in a month. * @param {Integer} i - Currently changed wheel index, -1 if initial validation. */ that.validate = function (time, orig, i, dir) { scrollToPos(time, orig, i, true, dir); } /** * */ that.change = function (manual) { var v = s.formatResult(that.temp); if (s.display == 'inline') that.setValue(false, manual); else $('.dwv', dw).html(formatHeader(v)); if (manual) s.onChange.call(e, v, that); } /** * Hides the scroller instance. */ that.hide = function (prevAnim) { // If onClose handler returns false, prevent hide if (s.onClose.call(e, that.val, that) === false) return false; // Re-enable temporary disabled fields $('.dwtd').prop('disabled', false).removeClass('dwtd'); elm.blur(); // Hide wheels and overlay if (dw) { if (s.display != 'inline' && s.animate && !prevAnim) { $('.dw', dw).addClass('dw-' + s.animate + ' dw-out'); setTimeout(function () { dw.remove(); dw = null; }, 350); } else { dw.remove(); dw = null; } visible = false; // Stop positioning on window resize $(window).unbind('.dw'); } } /** * Changes the values of a wheel, and scrolls to the correct position * @param {Number} wIndex - index of the wheel */ that.changeWheel = function () { if (dw) { var i = 0, al = arguments.length; for (var j in s.wheels) { for (var k in s.wheels[j]) { if ($.inArray(i,arguments)> -1 ) { warr[i] = s.wheels[j][k]; var ul = $('ul', dw).eq(i); ul.html(generateWheelItems(i)); if (!--al){ position(); scrollToPos(); return; } } i++; } } } } /** * Shows the scroller instance. */ that.show = function (prevAnim) { if (s.disabled || visible) return false; if (s.display == 'top') s.animate = 'slidedown'; if (s.display == 'bottom') s.animate = 'slideup'; // Parse value from input read(); s.onBeforeShow.call(e, dw, that); // Create wheels var l = 0, hi = s.height, mAnim = '', persPS = '', persPE = ''; if (s.animate && !prevAnim) { persPS = '<div class="dw-persp">'; persPE = '</div>'; mAnim = 'dw-' + s.animate + ' dw-in'; } // Create wheels containers var html = '<div class="' + s.theme + ' dw-' + s.display + '">' + (s.display == 'inline' ? '<div class="dw dwbg dwi"><div class="dwwr">' : persPS + '<div class="dwo"></div><div class="dw dwbg ' + mAnim + '"><div class="dw-arrw"><div class="dw-arrw-i"><div class="dw-arr"></div></div></div><div class="dwwr">' + (s.headerText ? '<div class="dwv"></div>' : '')); for (var i = 0; i < s.wheels.length; i++) { html += '<div class="dwc' + (s.mode != 'scroller' ? ' dwpm' : ' dwsc') + (s.showLabel ? '' : ' dwhl') + '"><div class="dwwc dwrc"><table cellpadding="0" cellspacing="0"><tr>'; // Create wheels for (var label in s.wheels[i]) { warr[l] = s.wheels[i][label]; html += '<td><div class="dwwl dwrc dwwl' + l + '">' + (s.mode != 'scroller' ? '<div class="dwwb dwwbp" style="height:' + hi + 'px;line-height:' + hi + 'px;"><span>+</span></div><div class="dwwb dwwbm" style="height:' + hi + 'px;line-height:' + hi + 'px;"><span>&ndash;</span></div>' : '') + '<div class="dwl">' + label + '</div><div class="dww dwrc" style="height:' + (s.rows * hi) + 'px;min-width:' + s.width + 'px;"><ul>'; // Create wheel values html += generateWheelItems(l); html += '</ul><div class="dwwo"></div></div><div class="dwwol"></div></div></td>'; l++; } html += '</tr></table></div></div>'; } html += (s.display != 'inline' ? '<div class="dwbc' + (s.button3 ? ' dwbc-p' : '') + '"><span class="dwbw dwb-s"><span class="dwb">' + s.setText + '</span></span>' + (s.button3 ? '<span class="dwbw dwb-n"><span class="dwb">' + s.button3Text + '</span></span>' : '') + '<span class="dwbw dwb-c"><span class="dwb">' + s.cancelText + '</span></span></div>' + persPE : '<div class="dwcc"></div>') + '</div></div></div>'; dw = $(html); scrollToPos(); // Show s.display != 'inline' ? dw.appendTo('body') : elm.is('div') ? elm.html(dw) : dw.insertAfter(elm); visible = true; if (s.display != 'inline') { // Init buttons $('.dwb-s span', dw).click(function () { that.hide(); that.setValue(false, true); s.onSelect.call(e, that.val, that); return false; }); $('.dwb-c span', dw).click(function () { that.hide(); s.onCancel.call(e, that.val, that); return false; }); if (s.button3) $('.dwb-n span', dw).click(s.button3); // prevent scrolling if not specified otherwise if (s.scrollLock) dw.bind('touchmove', function (e) { e.preventDefault(); }); // Disable inputs to prevent bleed through (Android bug) $('input,select').each(function () { if (!$(this).prop('disabled')) $(this).addClass('dwtd'); }); $('input,select').prop('disabled', true); // Set position position(); $(window).bind('resize.dw', position); } // Events dw.delegate('.dwwl', 'DOMMouseScroll mousewheel', function (e) { if (!isReadOnly(this)) { e.preventDefault(); e = e.originalEvent; var delta = e.wheelDelta ? (e.wheelDelta / 120) : (e.detail ? (-e.detail / 3) : 0), t = $('ul', this), p = +t.data('pos'), val = Math.round(p - delta); setGlobals(t); calc(t, val, delta < 0 ? 1 : 2); } }).delegate('.dwb, .dwwb', START_EVENT, function (e) { // Active button $(this).addClass('dwb-a'); }).delegate('.dwwb', START_EVENT, function (e) { var w = $(this).closest('.dwwl'); if (!isReadOnly(w) && !w.hasClass('dwa')) { // + Button e.preventDefault(); e.stopPropagation(); var t = w.find('ul'), func = $(this).hasClass('dwwbp') ? plus : minus; click = true; setGlobals(t); clearInterval(timer); timer = setInterval(function () { func(t); }, s.delay); func(t); } }).delegate('.dwwl', START_EVENT, function (e) { // Prevent scroll e.preventDefault(); // Scroll start if (!isReadOnly(this) && !click && s.mode != 'clickpick') { move = true; target = $('ul', this); target.closest('.dwwl').addClass('dwa'); pos = +target.data('pos'); setGlobals(target); clearInterval(iv[index]); start = getY(e); startTime = new Date(); stop = start; that.scroll(target, pos); } }) s.onShow.call(e, dw, that); // Theme init theme.init(dw, that); } /** * Scroller initialization. */ that.init = function (ss) { // Get theme defaults theme = $.extend({ defaults: {}, init: empty }, $.scroller.themes[ss.theme ? ss.theme : s.theme]); // Get language defaults lang = $.scroller.i18n[ss.lang ? ss.lang : s.lang]; $.extend(s, theme.defaults, lang, settings, ss); that.settings = s; m = Math.floor(s.rows / 2); var preset = $.scroller.presets[s.preset]; elm.unbind('.dw'); if (preset) { var p = preset.call(e, that); $.extend(s, p, settings, ss); // Extend core methods $.extend(methods, p.methods); } if (elm.data('dwro') !== undefined) e.readOnly = bool(elm.data('dwro')); if (visible) that.hide(); if (s.display == 'inline') { that.show(); } else { read(); if (input && s.showOnFocus) { // Set element readonly, save original state elm.data('dwro', e.readOnly); e.readOnly = true; // Init show datewheel elm.bind('focus.dw', function () { that.show(); }); } } } that.values = null; that.val = null; that.temp = null; that.init(settings); } function testProps(props) { for (var i in props) if (mod[props[i]] !== undefined) return true; return false; } function testPrefix() { var prefixes = ['Webkit', 'Moz', 'O', 'ms']; for (var p in prefixes) { if (testProps([prefixes[p] + 'Transform'])) return '-' + prefixes[p].toLowerCase(); } return ''; } function getInst(e) { return scrollers[e.id]; } function getY(e) { return e.changedTouches || (e.originalEvent && e.originalEvent.changedTouches) ? (e.originalEvent ? e.originalEvent.changedTouches[0].pageY : e.changedTouches[0].pageY) : e.pageY; } function bool(v) { return (v === true || v == 'true'); } function calc(t, val, dir, anim, orig) { val = val > max ? max : val; val = val < min ? min : val; var cell = $('li', t).eq(val); // Set selected scroller value inst.temp[index] = cell.attr('data-val'); // Validate inst.validate(anim ? (val == orig ? 0.1 : Math.abs((val - orig) * 0.1)) : 0, orig, index, dir); } var scrollers = {}, timer, empty = function () { }, h, min, max, inst, // Current instance date = new Date(), uuid = date.getTime(), move, click, target, index, start, stop, startTime, endTime, pos, mod = document.createElement('modernizr').style, has3d = testProps(['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']) && 'webkitPerspective' in document.documentElement.style, prefix = testPrefix(), START_EVENT = 'touchstart mousedown', MOVE_EVENT = 'touchmove mousemove', END_EVENT = 'touchend mouseup', defaults = { // Options width: 70, height: 40, rows: 3, delay: 300, disabled: false, readonly: false, showOnFocus: true, showLabel: true, wheels: [], theme: '', headerText: '{value}', display: 'modal', mode: 'scroller', preset: '', lang: 'en-US', setText: 'Set', cancelText: 'Cancel', scrollLock: true, // Events onBeforeShow: empty, onShow: empty, onClose: empty, onSelect: empty, onCancel: empty, onChange: empty, formatResult: function (d) { var out = ''; for (var i = 0; i < d.length; i++) { out += (i > 0 ? ' ' : '') + d[i]; } return out; }, parseValue: function (val, inst) { var w = inst.settings.wheels, val = val.split(' '), ret = [], j = 0; for (var i = 0; i < w.length; i++) { for (var l in w[i]) { if (w[i][l][val[j]] !== undefined) ret.push(val[j]) else // Select first value from wheel for (var v in w[i][l]) { ret.push(v); break; } j++; } } return ret; }, validate: empty }, methods = { init: function (options) { if (options === undefined) options = {}; return this.each(function () { if (!this.id) { uuid += 1; this.id = 'scoller' + uuid; } scrollers[this.id] = new Scroller(this, options); }); }, enable: function () { return this.each(function () { var inst = getInst(this); if (inst) inst.enable(); }); }, disable: function () { return this.each(function () { var inst = getInst(this); if (inst) inst.disable(); }); }, isDisabled: function () { var inst = getInst(this[0]); if (inst) return inst.settings.disabled; }, option: function (option, value) { return this.each(function () { var inst = getInst(this); if (inst) { var obj = {}; if (typeof option === 'object') obj = option; else obj[option] = value; inst.init(obj); } }); }, setValue: function (d, fill, time, temp) { return this.each(function () { var inst = getInst(this); if (inst) { inst.temp = d; inst.setValue(true, fill, time, temp); } }); }, getInst: function () { return getInst(this[0]); }, getValue: function () { var inst = getInst(this[0]); if (inst) return inst.values; }, show: function () { var inst = getInst(this[0]); if (inst) return inst.show(); }, hide: function () { return this.each(function () { var inst = getInst(this); if (inst) inst.hide(); }); }, destroy: function () { return this.each(function () { var inst = getInst(this); if (inst) { inst.hide(); $(this).unbind('.dw'); delete scrollers[this.id]; if ($(this).is('input')) this.readOnly = bool($(this).data('dwro')); } }); } }; $(document).bind(MOVE_EVENT, function (e) { if (move) { e.preventDefault(); stop = getY(e); var val = pos + (start - stop) / h; val = val > (max + 1) ? (max + 1) : val; val = val < (min - 1) ? (min - 1) : val; inst.scroll(target, val); } }); $(document).bind(END_EVENT, function (e) { if (move) { e.preventDefault(); var time = new Date() - startTime, val = pos + (start - stop) / h; val = val > (max + 1) ? (max + 1) : val; val = val < (min - 1) ? (min - 1) : val; if (time < 300) { var speed = (stop - start) / time; var dist = (speed * speed) / (2 * 0.0006); if (stop - start < 0) dist = -dist; } else { var dist = stop - start; } calc(target, Math.round(pos - dist / h), 0, true, Math.round(val)); move = false; target = null; } if (click) { clearInterval(timer); click = false; } $('.dwb-a').removeClass('dwb-a'); }); $.fn.scroller = function (method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { $.error('Unknown method'); } } $.scroller = { /** * Set settings for all instances. * @param {Object} o - New default settings. */ setDefaults: function (o) { $.extend(defaults, o); }, presets: {}, themes: {}, i18n: {} }; })(jQuery);
JavaScript
(function ($) { var theme = { defaults: { dateOrder: 'Mddyy', mode: 'mixed', rows: 5, width: 70, height: 36, showLabel: false } } $.scroller.themes['android-ics'] = theme; $.scroller.themes['android-ics light'] = theme; })(jQuery);
JavaScript
(function ($) { $.scroller.themes.ios = { defaults: { dateOrder: 'MMdyy', rows: 5, height: 30, width: 55, headerText: false, showLabel: false } } })(jQuery);
JavaScript
(function ($) { var date = new Date(), defaults = { dateFormat: 'mm/dd/yy', dateOrder: 'mmddy', timeWheels: 'hhiiA', timeFormat: 'hh:ii A', startYear: date.getFullYear() - 100, endYear: date.getFullYear() + 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], shortYearCutoff: '+10', monthText: 'Month', dayText: 'Day', yearText: 'Year', hourText: 'Hours', minuteText: 'Minutes', secText: 'Seconds', ampmText: '&nbsp;', nowText: 'Now', showNow: false, stepHour: 1, stepMinute: 1, stepSecond: 1, separator: ' ' }, preset = function (inst) { var that = $(this), html5def = {}, format; // Force format for html5 date inputs (experimental) if (that.is('input')) { switch (that.attr('type')) { case 'date': format = 'yy-mm-dd'; break; case 'datetime': format = 'yy-mm-ddTHH:ii:ssZ'; break; case 'datetime-local': format = 'yy-mm-ddTHH:ii:ss'; break; case 'month': format = 'yy-mm'; html5def.dateOrder = 'mmyy'; break; case 'time': format = 'HH:ii:ss'; break; } // Check for min/max attributes var min = that.attr('min'), max = that.attr('max'); if (min) html5def.minDate = $.scroller.parseDate(format, min); if (max) html5def.maxDate = $.scroller.parseDate(format, max); } // Set year-month-day order var s = $.extend({}, defaults, html5def, inst.settings), offset = 0, wheels = [], ord = [], o = {}, f = { y: 'getFullYear', m: 'getMonth', d: 'getDate', h: getHour, i: getMinute, s: getSecond, ap: getAmPm }, p = s.preset, dord = s.dateOrder, tord = s.timeWheels, regen = dord.match(/D/), ampm = tord.match(/a/i), hampm = tord.match(/h/), hformat = p == 'datetime' ? s.dateFormat + s.separator + s.timeFormat : p == 'time' ? s.timeFormat : s.dateFormat, defd = new Date(), stepH = s.stepHour, stepM = s.stepMinute, stepS = s.stepSecond, mind = s.minDate ? s.minDate : new Date(s.startYear, 0, 1), maxd = s.maxDate ? s.maxDate : new Date(s.endYear, 11, 31, 23, 59, 59); format = format ? format : hformat; if (p.match(/date/i)) { // Determine the order of year, month, day wheels $.each(['y', 'm', 'd'], function (i, v) { var i = dord.search(new RegExp(v, 'i')); if (i > -1) ord.push({ o: i, v: v }); }); ord.sort(function (a, b) { return a.o > b.o ? 1 : -1; }); $.each(ord, function (i, v) { o[v.v] = i; }); var w = {}; for (var k = 0; k < 3; k++) { if (k == o.y) { offset++; w[s.yearText] = {}; var start = mind.getFullYear(), end = maxd.getFullYear(); for (var i = start; i <= end; i++) w[s.yearText][i] = dord.match(/yy/i) ? i : (i + '').substr(2, 2); } else if (k == o.m) { offset++; w[s.monthText] = {}; for (var i = 0; i < 12; i++) w[s.monthText][i] = dord.match(/MM/) ? s.monthNames[i] : dord.match(/M/) ? s.monthNamesShort[i] : dord.match(/mm/) && i < 9 ? '0' + (i + 1) : i + 1; } else if (k == o.d) { offset++; w[s.dayText] = {}; for (var i = 1; i < 32; i++) w[s.dayText][i] = dord.match(/dd/i) && i < 10 ? '0' + i : i; } } wheels.push(w); } if (p.match(/time/i)) { // Determine the order of hours, minutes, seconds wheels ord = []; $.each(['h', 'i', 's'], function (i, v) { var i = tord.search(new RegExp(v, 'i')); if (i > -1) ord.push({ o: i, v: v }); }); ord.sort(function (a, b) { return a.o > b.o ? 1 : -1; }); $.each(ord, function (i, v) { o[v.v] = offset + i; }); var w = {}; for (var k = offset; k < offset + 3; k++) { if (k == o.h) { offset++; w[s.hourText] = {}; for (var i = 0; i < (hampm ? 12 : 24); i += stepH) w[s.hourText][i] = hampm && i == 0 ? 12 : tord.match(/hh/i) && i < 10 ? '0' + i : i; } else if (k == o.i) { offset++; w[s.minuteText] = {}; for (var i = 0; i < 60; i += stepM) w[s.minuteText][i] = tord.match(/ii/) && i < 10 ? '0' + i : i; } else if (k == o.s) { offset++; w[s.secText] = {}; for (var i = 0; i < 60; i += stepS) w[s.secText][i] = tord.match(/ss/) && i < 10 ? '0' + i : i; } } if (ampm) { o.ap = offset++; // ampm wheel order var upper = tord.match(/A/); w[s.ampmText] = { 0: upper ? 'AM' : 'am', 1: upper ? 'PM' : 'pm' }; } wheels.push(w); } function get(d, i, def) { if (o[i] !== undefined) return +d[o[i]]; if (def !== undefined) return def; return defd[f[i]] ? defd[f[i]]() : f[i](defd); } function step(v, step) { return Math.floor(v / step) * step; } function getHour(d) { var hour = d.getHours(); hour = hampm && hour >= 12 ? hour - 12 : hour; return step(hour, stepH); } function getMinute(d) { return step(d.getMinutes(), stepM); } function getSecond(d) { return step(d.getSeconds(), stepS); } function getAmPm(d) { return ampm && d.getHours() > 11 ? 1 : 0; } function getDate(d) { var hour = get(d, 'h', 0); return new Date(get(d, 'y'), get(d, 'm'), get(d, 'd', 1), get(d, 'ap') ? hour + 12 : hour, get(d, 'i', 0), get(d, 's', 0)); } inst.setDate = function (d, fill, time, temp) { // Set wheels for (var i in o) this.temp[o[i]] = d[f[i]] ? d[f[i]]() : f[i](d); this.setValue(true, fill, time, temp); } inst.getDate = function (d) { return getDate(d); } return { button3Text: s.showNow ? s.nowText : undefined, button3: s.showNow ? function () { inst.setDate(new Date(), false, 0.3, true); } : undefined, wheels: wheels, headerText: function (v) { return $.scroller.formatDate(hformat, getDate(inst.temp), s); }, /** * Builds a date object from the wheel selections and formats it to the given date/time format * @param {Array} d - An array containing the selected wheel values * @return {String} - The formatted date string */ formatResult: function (d) { return $.scroller.formatDate(format, getDate(d), s); }, /** * Builds a date object from the input value and returns an array to set wheel values * @return {Array} - An array containing the wheel values to set */ parseValue: function (val) { var d = new Date(), result = []; try { d = $.scroller.parseDate(format, val, s); } catch (e) { } // Set wheels for (var i in o) result[o[i]] = d[f[i]] ? d[f[i]]() : f[i](d); return result; }, /** * Validates the selected date to be in the minDate / maxDate range and sets unselectable values to disabled * @param {Object} dw - jQuery object containing the generated html * @param {Integer} [i] - Index of the changed wheel, not set for initial validation */ validate: function (dw, i) { var temp = inst.temp, //.slice(0), mins = { y: mind.getFullYear(), m: 0, d: 1, h: 0, i: 0, s: 0, ap: 0 }, maxs = { y: maxd.getFullYear(), m: 11, d: 31, h: step(hampm ? 11 : 23, stepH), i: step(59, stepM), s: step(59, stepS), ap: 1 }, //w = (mind || maxd) ? ['y', 'm', 'd', 'ap', 'h', 'i', 's'] : ((i == o.y || i == o.m || i === undefined) ? ['d'] : []), // Validate day only, if no min/max date set minprop = true, maxprop = true; $.each(['y', 'm', 'd', 'ap', 'h', 'i', 's'], function (x, i) { if (o[i] !== undefined) { var min = mins[i], max = maxs[i], maxdays = 31, val = get(temp, i), t = $('ul', dw).eq(o[i]), y, m; if (i == 'd') { y = get(temp, 'y'), m = get(temp, 'm'); maxdays = 32 - new Date(y, m, 32).getDate(); max = maxdays; if (regen) $('li', t).each(function () { var that = $(this), d = that.data('val'), w = new Date(y, m, d).getDay(), str = dord.replace(/[my]/gi, '').replace(/dd/, d < 10 ? '0' + d : d).replace(/d/, d); that.html(str.match(/DD/) ? str.replace(/DD/, s.dayNames[w]) : str.replace(/D/, s.dayNamesShort[w]) ); }); } if (minprop && mind) { min = mind[f[i]] ? mind[f[i]]() : f[i](mind); } if (maxprop && maxd) { max = maxd[f[i]] ? maxd[f[i]]() : f[i](maxd); } if (i != 'y') { var i1 = $('li[data-val="' + min + '"]', t).index(), i2 = $('li[data-val="' + max + '"]', t).index(); $('li', t).removeClass('dw-v').slice(i1, i2 + 1).addClass('dw-v'); if (i == 'd') { // Hide days not in month $('li', t).removeClass('dw-h').slice(maxdays).addClass('dw-h'); } } if (val < min) val = min; if (val > max) val = max; if (minprop) minprop = val == min; if (maxprop) maxprop = val == max; // Disable some days if (s.invalid && i == 'd') { var idx = []; // Disable exact dates if (s.invalid.dates) $.each(s.invalid.dates, function (i, v) { if (v.getFullYear() == y && v.getMonth() == m) { idx.push(v.getDate() - 1); } }); // Disable days of week if (s.invalid.daysOfWeek) { var first = new Date(y, m, 1).getDay(); $.each(s.invalid.daysOfWeek, function (i, v) { for (var j = v - first; j < maxdays; j += 7) if (j >= 0) idx.push(j); }); } // Disable days of month if (s.invalid.daysOfMonth) $.each(s.invalid.daysOfMonth, function (i, v) { v = (v + '').split('/'); if (v[1]) { if (v[0] - 1 == m) idx.push(v[1] - 1); } else idx.push(v[0] - 1); }); $.each(idx, function (i, v) { $('li', t).eq(v).removeClass('dw-v'); }); } // Set modified value temp[o[i]] = val; } }); }, methods: { /** * Returns the currently selected date. * @param {Boolean} temp - If true, return the currently shown date on the picker, otherwise the last selected one * @return {Date} */ getDate: function (temp) { var inst = $(this).scroller('getInst'); if (inst) return inst.getDate(temp ? inst.temp : inst.values); }, /** * Sets the selected date * @param {Date} d - Date to select. * @param {Boolean} [fill] - Also set the value of the associated input element. Default is true. * @return {Object} - jQuery object to maintain chainability */ setDate: function (d, fill, time, temp) { if (fill == undefined) fill = false; return this.each(function () { var inst = $(this).scroller('getInst'); if (inst) inst.setDate(d, fill, time, temp); }); } } } }; $.scroller.presets.date = preset; $.scroller.presets.datetime = preset; $.scroller.presets.time = preset; /** * Format a date into a string value with a specified format. * @param {String} format - Output format. * @param {Date} date - Date to format. * @param {Object} settings - Settings. * @return {String} - Returns the formatted date string. */ $.scroller.formatDate = function (format, date, settings) { if (!date) return null; var s = $.extend({}, defaults, settings), // Check whether a format character is doubled look = function (m) { var n = 0; while (i + 1 < format.length && format.charAt(i + 1) == m) { n++; i++; }; return n; }, // Format a number, with leading zero if necessary f1 = function (m, val, len) { var n = '' + val; if (look(m)) while (n.length < len) n = '0' + n; return n; }, // Format a name, short or long as requested f2 = function (m, val, s, l) { return (look(m) ? l[val] : s[val]); }, output = '', literal = false; for (var i = 0; i < format.length; i++) { if (literal) if (format.charAt(i) == "'" && !look("'")) literal = false; else output += format.charAt(i); else switch (format.charAt(i)) { case 'd': output += f1('d', date.getDate(), 2); break; case 'D': output += f2('D', date.getDay(), s.dayNamesShort, s.dayNames); break; case 'o': output += f1('o', (date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000, 3); break; case 'm': output += f1('m', date.getMonth() + 1, 2); break; case 'M': output += f2('M', date.getMonth(), s.monthNamesShort, s.monthNames); break; case 'y': output += (look('y') ? date.getFullYear() : (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100); break; case 'h': var h = date.getHours(); output += f1('h', (h > 12 ? (h - 12) : (h == 0 ? 12 : h)), 2); break; case 'H': output += f1('H', date.getHours(), 2); break; case 'i': output += f1('i', date.getMinutes(), 2); break; case 's': output += f1('s', date.getSeconds(), 2); break; case 'a': output += date.getHours() > 11 ? 'pm' : 'am'; break; case 'A': output += date.getHours() > 11 ? 'PM' : 'AM'; break; case "'": if (look("'")) output += "'"; else literal = true; break; default: output += format.charAt(i); } } return output; } /** * Extract a date from a string value with a specified format. * @param {String} format - Input format. * @param {String} value - String to parse. * @param {Object} settings - Settings. * @return {Date} - Returns the extracted date. */ $.scroller.parseDate = function (format, value, settings) { var def = new Date(); if (!format || !value) return def; value = (typeof value == 'object' ? value.toString() : value + ''); var s = $.extend({}, defaults, settings), shortYearCutoff = s.shortYearCutoff, year = def.getFullYear(), month = def.getMonth() + 1, day = def.getDate(), doy = -1, hours = def.getHours(), minutes = def.getMinutes(), seconds = 0, //def.getSeconds(), ampm = -1, literal = false, // Check whether a format character is doubled lookAhead = function (match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) iFormat++; return matches; }, // Extract a number from the string value getNumber = function (match) { lookAhead(match); var size = (match == '@' ? 14 : (match == '!' ? 20 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2)))); var digits = new RegExp('^\\d{1,' + size + '}'); var num = value.substr(iValue).match(digits); if (!num) return 0; //throw 'Missing number at position ' + iValue; iValue += num[0].length; return parseInt(num[0], 10); }, // Extract a name from the string value and convert to an index getName = function (match, s, l) { var names = (lookAhead(match) ? l : s); for (var i = 0; i < names.length; i++) { if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) { iValue += names[i].length; return i + 1; } } return 0; //throw 'Unknown name at position ' + iValue; }, // Confirm that a literal character matches the string value checkLiteral = function () { //if (value.charAt(iValue) != format.charAt(iFormat)) //throw 'Unexpected literal at position ' + iValue; iValue++; }, iValue = 0; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) if (format.charAt(iFormat) == "'" && !lookAhead("'")) literal = false; else checkLiteral(); else switch (format.charAt(iFormat)) { case 'd': day = getNumber('d'); break; case 'D': getName('D', s.dayNamesShort, s.dayNames); break; case 'o': doy = getNumber('o'); break; case 'm': month = getNumber('m'); break; case 'M': month = getName('M', s.monthNamesShort, s.monthNames); break; case 'y': year = getNumber('y'); break; case 'H': hours = getNumber('H'); break; case 'h': hours = getNumber('h'); break; case 'i': minutes = getNumber('i'); break; case 's': seconds = getNumber('s'); break; case 'a': ampm = getName('a', ['am', 'pm'], ['am', 'pm']) - 1; break; case 'A': ampm = getName('A', ['am', 'pm'], ['am', 'pm']) - 1; break; case "'": if (lookAhead("'")) checkLiteral(); else literal = true; break; default: checkLiteral(); } } if (year < 100) year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= (typeof shortYearCutoff != 'string' ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)) ? 0 : -100); if (doy > -1) { month = 1; day = doy; do { var dim = 32 - new Date(year, month - 1, 32).getDate(); if (day <= dim) break; month++; day -= dim; } while (true); } hours = (ampm == -1) ? hours : ((ampm && hours < 12) ? (hours + 12) : (!ampm && hours == 12 ? 0 : hours)); var date = new Date(year, month - 1, day, hours, minutes, seconds); if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) throw 'Invalid date'; return date; } })(jQuery);
JavaScript
(function ($) { var defaults = { inputClass: '', invalid: [], rtl: false, group: false, groupLabel: 'Groups' } $.scroller.presets.select = function (inst) { var s = $.extend({}, defaults, inst.settings), elm = $(this), option = elm.val(), group = elm.find('option[value="' + elm.val() + '"]').parent(), prev = group.index() + '', prevent, id = this.id + '_dummy', l1 = $('label[for="' + this.id + '"]').attr('for', id), l2 = $('label[for="' + id + '"]'), label = s.label !== undefined ? s.label : (l2.length ? l2.text() : elm.attr('name')), invalid = [], main = {}, wIndex = {}, // wheel index container shTime, roPre = inst.settings.readonly, w; // if groups is true and there are no groups fall back to no grouping if (s.group && !$('optgroup', elm).length) s.group = false; if (!s.invalid.length) s.invalid = invalid; if (s.group){ if(s.rtl) { wIndex.groups = 1; wIndex.options = 0; } else { wIndex.groups = 0; wIndex.options = 1; } } else { wIndex.groups = -1; wIndex.options = 0; } $('#' + id).remove(); $('option', elm).each(function () { main[$(this).attr('value')] = $(this).text(); }); var input = $('<input type="text" id="' + id + '" value="' + main[elm.val()] + '" class="' + s.inputClass + '" readonly />').insertBefore(elm); inst.settings.anchor = input; // give the core the input element for the bubble positioning if (s.showOnFocus) input.focus(function () {inst.show()}); elm.bind('change', function () { if (!prevent && option != elm.val()) { inst.setSelectVal([elm.val()], true); } prevent = false; }).hide().closest('.ui-field-contain').trigger('create'); inst.setSelectVal = function (d, fill, time) { option = d[0]; if (s.group){ group = elm.find('option[value="' + option + '"]').parent(); if (s.rtl) inst.temp = ['_' + option, '_' + group.index()]; else inst.temp = ['_' + group.index(), '_' + option]; } else inst.temp = ['_' + option]; inst.setValue(true, fill, time); // Set input/select values if (fill) { input.val(main[option]); var changed = option !== elm.val(); elm.val(option); // Trigger change on element if (changed) elm.trigger('change'); } } inst.getSelectVal = function (temp) { var val = temp ? inst.temp : inst.values; return replace(val[wIndex.options]); } return { width: 200, wheels: w, headerText: false, formatResult: function (d) { return main[option]; }, parseValue: function () { option = elm.val(); group = elm.find('option[value="' + option + '"]').parent(); return (s.group&&s.rtl)? ['_' + option, '_' + group.index()] :s.group ? ['_' + group.index(), '_' + option] : ['_' + option]; }, validate: function (dw, index, time) { if (index === wIndex.groups) { var gr = replace(inst.temp[wIndex.groups]); if (gr !== prev) { inst.settings.readonly = [s.rtl, !s.rtl]; group = elm.find('optgroup').eq(gr); option = group.find('option').eq(0).val(); option = option ? option : elm.val(); clearTimeout(shTime); shTime = setTimeout(function () { inst.settings.wheels = genWheels(); if (s.group){ if (s.rtl) inst.temp = ['_' + option, '_' + group.index()]; else inst.temp = ['_' + group.index(), '_' + option]; inst.changeWheel(wIndex.options); prev = group.index() + ''; } inst.settings.readonly = roPre; }, time * 1000); } else inst.settings.readonly = roPre; } else { option = replace(inst.temp[wIndex.options]); } $.each(s.invalid, function (i, v) { $('li[data-val="_' + v + '"]', dw).removeClass('dw-v'); }); }, onShow:function(dw){ $('.dwwl'+wIndex.groups, dw).bind('mousedown touchstart', function (e) { clearTimeout(shTime); }); }, onBeforeShow: function () { inst.settings.wheels = genWheels(); if (s.group) if (s.rtl) inst.temp = ['_' + option, '_' + group.index()]; else inst.temp = ['_' + group.index(), '_' + option]; }, onSelect: function (v, inst) { input.val(v); prevent = true; elm.val(option).trigger('change'); if (s.group) inst.values = null; }, onCancel: function () { if (s.group) inst.values = null; }, onChange: function (v, inst) { if (s.display == 'inline') { input.val(v); prevent = true; elm.val(replace(inst.temp[wIndex.options])).trigger('change'); } }, onClose: function () { input.blur(); }, methods: { setValue: function (d, fill, time) { return this.each(function () { var inst = $(this).scroller('getInst'); if (inst) { if (inst.setSelectVal) { inst.setSelectVal(d, fill, time); } else { inst.temp = d; inst.setValue(true, fill, time); } } }); }, getValue: function (temp) { var inst = $(this).scroller('getInst'); if (inst) { if (inst.getSelectVal) { return inst.getSelectVal(temp); } else { return inst.values; } } } } }; function replace(str) { if (str) { return str.replace(/_/, ''); } return ''; } function genWheels() { var cont, wg = 0, w = [{}]; if (s.group) { if (s.rtl) wg = 1; var wheel = {}; $('optgroup', elm).each(function (index) { wheel['_' + index] = $(this).attr('label'); }); w[wg]={}; w[wg][s.groupLabel] = wheel; cont = group; if (s.rtl) wg--; else wg++; } else { cont = elm; } w[wg] = {}; w[wg][label] = {}; $('option', cont).each(function () { var v = $(this).attr('value'); w[wg][label]['_' + v] = $(this).text(); if ($(this).prop('disabled')) invalid.push(v); }); return w; } } })(jQuery);
JavaScript
/* Copyright (c) 2012 Sergio Gabriel Teves All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ (function($, undefined ) { $.widget( "mobile.datebox", $.mobile.widget, { options: { theme: 'jqm', lang: 'en', mode: 'scroller', disableManualInput: false, preset: 'date' }, _create: function(){ var self = this; var o = $.extend(this.options, this.element.data('options')); var input = this.element; $(input).scroller(o); $(input).on('click', function() { $(this).scroller('show'); }); if (o.disableManualInput) $(input).attr("readonly", true); }, }); $(document).bind( "pagebeforecreate", function(c) { $(":jqmData(role='datebox')", c.target).each( function() { $(this).replaceWith( $("<div>").html($(this).clone()).html() .replace(/\s+type=["']date['"]?/, ' type="text" ')) }) }); $(document).bind("pagecreate create", function(c) { $(document).trigger("dateboxbeforecreate"); $(":jqmData(role='datebox')", c.target).each(function() { if (typeof ($(this).data("datebox")) === "undefined") { $(this).datebox(); } }) }) })( jQuery );
JavaScript
(function ($) { $.scroller.i18n.hu = $.extend($.scroller.i18n.hu, { dateFormat: 'dd.mm.yy', dateOrder: 'ddmmyy', dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], dayText: 'Nap', hourText: 'Óra', minuteText: 'Perc', monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], monthText: 'Hónap', secText: 'Másodperc', timeFormat: 'HH:ii', timeWheels: 'HHii', yearText: 'Év', nowText: 'Most' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.fr = $.extend($.scroller.i18n.fr, { setText: 'Terminé', cancelText: 'Annuler' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.de = $.extend($.scroller.i18n.de, { setText: 'OK', cancelText: 'Abbrechen' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.hu = $.extend($.scroller.i18n.hu, { setText: 'OK', cancelText: 'Mégse' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.es = $.extend($.scroller.i18n.es, { dateFormat: 'dd/mm/yy', dateOrder: 'ddmmyy', dayNames: ['Domingo','Lunes','Martes','Mi&#xE9;rcoles','Jueves','Viernes','S&#xE1;bado'], dayNamesShort: ['Do','Lu','Ma','Mi','Ju','Vi','S&#xE1;'], dayText: 'D&#237;a', hourText: 'Horas', minuteText: 'Minutos', monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'], monthText: 'Mes', secText: 'Segundos', timeFormat: 'HH:ii', timeWheels: 'HHii', yearText: 'A&ntilde;o', nowText: 'Ahora' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.fr = $.extend($.scroller.i18n.fr, { dateFormat: 'dd/mm/yy', dateOrder: 'ddmmyy', dayNames: ['&#68;imanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'], dayNamesShort: ['&#68;im.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'], dayText: 'Jour', monthText: 'Mois', monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'], monthNamesShort: ['Janv.', 'Févr.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Août', 'Sept.', 'Oct.', 'Nov.', 'Déc.'], hourText: 'Heures', minuteText: 'Minutes', secText: 'Secondes', timeFormat: 'HH:ii', timeWheels: 'HHii', yearText: 'Année', nowText: 'Maintenant' }); })(jQuery);
JavaScript
(function ($) { $.scroller.i18n.de = $.extend($.scroller.i18n.de, { dateFormat: 'dd.mm.yy', dateOrder: 'ddmmyy', dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'], dayNamesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], dayText: 'Tag', hourText: 'Stunde', minuteText: 'Minuten', monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], monthNamesShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], monthText: 'Monat', secText: 'Sekunden', timeFormat: 'HH:ii', timeWheels: 'HHii', yearText: 'Jahr', nowText: 'Jetzt' }); })(jQuery);
JavaScript