code stringlengths 1 2.08M | language stringclasses 1 value |
|---|---|
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Lithuanian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Sutraukti mygtukų juostą",
ToolbarExpand : "Išplėsti mygtukų juostą",
// Toolbar Items and Context Menu
Save : "Išsaugoti",
NewPage : "Naujas puslapis",
Preview : "Peržiūra",
Cut : "Iškirpti",
Copy : "Kopijuoti",
Paste : "Įdėti",
PasteText : "Įdėti kaip gryną tekstą",
PasteWord : "Įdėti iš Word",
Print : "Spausdinti",
SelectAll : "Pažymėti viską",
RemoveFormat : "Panaikinti formatą",
InsertLinkLbl : "Nuoroda",
InsertLink : "Įterpti/taisyti nuorodą",
RemoveLink : "Panaikinti nuorodą",
VisitLink : "Open Link", //MISSING
Anchor : "Įterpti/modifikuoti žymę",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Vaizdas",
InsertImage : "Įterpti/taisyti vaizdą",
InsertFlashLbl : "Flash",
InsertFlash : "Įterpti/taisyti Flash",
InsertTableLbl : "Lentelė",
InsertTable : "Įterpti/taisyti lentelę",
InsertLineLbl : "Linija",
InsertLine : "Įterpti horizontalią liniją",
InsertSpecialCharLbl: "Spec. simbolis",
InsertSpecialChar : "Įterpti specialų simbolį",
InsertSmileyLbl : "Veideliai",
InsertSmiley : "Įterpti veidelį",
About : "Apie FCKeditor",
Bold : "Pusjuodis",
Italic : "Kursyvas",
Underline : "Pabrauktas",
StrikeThrough : "Perbrauktas",
Subscript : "Apatinis indeksas",
Superscript : "Viršutinis indeksas",
LeftJustify : "Lygiuoti kairę",
CenterJustify : "Centruoti",
RightJustify : "Lygiuoti dešinę",
BlockJustify : "Lygiuoti abi puses",
DecreaseIndent : "Sumažinti įtrauką",
IncreaseIndent : "Padidinti įtrauką",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Atšaukti",
Redo : "Atstatyti",
NumberedListLbl : "Numeruotas sąrašas",
NumberedList : "Įterpti/Panaikinti numeruotą sąrašą",
BulletedListLbl : "Suženklintas sąrašas",
BulletedList : "Įterpti/Panaikinti suženklintą sąrašą",
ShowTableBorders : "Rodyti lentelės rėmus",
ShowDetails : "Rodyti detales",
Style : "Stilius",
FontFormat : "Šrifto formatas",
Font : "Šriftas",
FontSize : "Šrifto dydis",
TextColor : "Teksto spalva",
BGColor : "Fono spalva",
Source : "Šaltinis",
Find : "Rasti",
Replace : "Pakeisti",
SpellCheck : "Rašybos tikrinimas",
UniversalKeyboard : "Universali klaviatūra",
PageBreakLbl : "Puslapių skirtukas",
PageBreak : "Įterpti puslapių skirtuką",
Form : "Forma",
Checkbox : "Žymimasis langelis",
RadioButton : "Žymimoji akutė",
TextField : "Teksto laukas",
Textarea : "Teksto sritis",
HiddenField : "Nerodomas laukas",
Button : "Mygtukas",
SelectionField : "Atrankos laukas",
ImageButton : "Vaizdinis mygtukas",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Taisyti nuorodą",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Šalinti eilutes",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Šalinti stulpelius",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Šalinti langelius",
MergeCells : "Sujungti langelius",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Šalinti lentelę",
CellProperties : "Langelio savybės",
TableProperties : "Lentelės savybės",
ImageProperties : "Vaizdo savybės",
FlashProperties : "Flash savybės",
AnchorProp : "Žymės savybės",
ButtonProp : "Mygtuko savybės",
CheckboxProp : "Žymimojo langelio savybės",
HiddenFieldProp : "Nerodomo lauko savybės",
RadioButtonProp : "Žymimosios akutės savybės",
ImageButtonProp : "Vaizdinio mygtuko savybės",
TextFieldProp : "Teksto lauko savybės",
SelectionFieldProp : "Atrankos lauko savybės",
TextareaProp : "Teksto srities savybės",
FormProp : "Formos savybės",
FontFormats : "Normalus;Formuotas;Kreipinio;Antraštinis 1;Antraštinis 2;Antraštinis 3;Antraštinis 4;Antraštinis 5;Antraštinis 6",
// Alerts and Messages
ProcessingXHTML : "Apdorojamas XHTML. Prašome palaukti...",
Done : "Baigta",
PasteWordConfirm : "Įdedamas tekstas yra panašus į kopiją iš Word. Ar Jūs norite prieš įdėjimą išvalyti jį?",
NotCompatiblePaste : "Ši komanda yra prieinama tik per Internet Explorer 5.5 ar aukštesnę versiją. Ar Jūs norite įterpti be valymo?",
UnknownToolbarItem : "Nežinomas mygtukų juosta elementas \"%1\"",
UnknownCommand : "Nežinomas komandos vardas \"%1\"",
NotImplemented : "Komanda nėra įgyvendinta",
UnknownToolbarSet : "Mygtukų juostos rinkinys \"%1\" neegzistuoja",
NoActiveX : "Jūsų naršyklės saugumo nuostatos gali riboti kai kurias redaktoriaus savybes. Jūs turite aktyvuoti opciją \"Run ActiveX controls and plug-ins\". Kitu atveju Jums bus pranešama apie klaidas ir trūkstamas savybes.",
BrowseServerBlocked : "Neįmanoma atidaryti naujo naršyklės lango. Įsitikinkite, kad iškylančių langų blokavimo programos neveiksnios.",
DialogBlocked : "Neįmanoma atidaryti dialogo lango. Įsitikinkite, kad iškylančių langų blokavimo programos neveiksnios.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Nutraukti",
DlgBtnClose : "Uždaryti",
DlgBtnBrowseServer : "Naršyti po serverį",
DlgAdvancedTag : "Papildomas",
DlgOpOther : "<Kita>",
DlgInfoTab : "Informacija",
DlgAlertUrl : "Prašome įrašyti URL",
// General Dialogs Labels
DlgGenNotSet : "<nėra nustatyta>",
DlgGenId : "Id",
DlgGenLangDir : "Teksto kryptis",
DlgGenLangDirLtr : "Iš kairės į dešinę (LTR)",
DlgGenLangDirRtl : "Iš dešinės į kairę (RTL)",
DlgGenLangCode : "Kalbos kodas",
DlgGenAccessKey : "Prieigos raktas",
DlgGenName : "Vardas",
DlgGenTabIndex : "Tabuliavimo indeksas",
DlgGenLongDescr : "Ilgas aprašymas URL",
DlgGenClass : "Stilių lentelės klasės",
DlgGenTitle : "Konsultacinė antraštė",
DlgGenContType : "Konsultacinio turinio tipas",
DlgGenLinkCharset : "Susietų išteklių simbolių lentelė",
DlgGenStyle : "Stilius",
// Image Dialog
DlgImgTitle : "Vaizdo savybės",
DlgImgInfoTab : "Vaizdo informacija",
DlgImgBtnUpload : "Siųsti į serverį",
DlgImgURL : "URL",
DlgImgUpload : "Nusiųsti",
DlgImgAlt : "Alternatyvus Tekstas",
DlgImgWidth : "Plotis",
DlgImgHeight : "Aukštis",
DlgImgLockRatio : "Išlaikyti proporciją",
DlgBtnResetSize : "Atstatyti dydį",
DlgImgBorder : "Rėmelis",
DlgImgHSpace : "Hor.Erdvė",
DlgImgVSpace : "Vert.Erdvė",
DlgImgAlign : "Lygiuoti",
DlgImgAlignLeft : "Kairę",
DlgImgAlignAbsBottom: "Absoliučią apačią",
DlgImgAlignAbsMiddle: "Absoliutų vidurį",
DlgImgAlignBaseline : "Apatinę liniją",
DlgImgAlignBottom : "Apačią",
DlgImgAlignMiddle : "Vidurį",
DlgImgAlignRight : "Dešinę",
DlgImgAlignTextTop : "Teksto viršūnę",
DlgImgAlignTop : "Viršūnę",
DlgImgPreview : "Peržiūra",
DlgImgAlertUrl : "Prašome įvesti vaizdo URL",
DlgImgLinkTab : "Nuoroda",
// Flash Dialog
DlgFlashTitle : "Flash savybės",
DlgFlashChkPlay : "Automatinis paleidimas",
DlgFlashChkLoop : "Ciklas",
DlgFlashChkMenu : "Leisti Flash meniu",
DlgFlashScale : "Mastelis",
DlgFlashScaleAll : "Rodyti visą",
DlgFlashScaleNoBorder : "Be rėmelio",
DlgFlashScaleFit : "Tikslus atitikimas",
// Link Dialog
DlgLnkWindowTitle : "Nuoroda",
DlgLnkInfoTab : "Nuorodos informacija",
DlgLnkTargetTab : "Paskirtis",
DlgLnkType : "Nuorodos tipas",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Žymė šiame puslapyje",
DlgLnkTypeEMail : "El.paštas",
DlgLnkProto : "Protokolas",
DlgLnkProtoOther : "<kitas>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Pasirinkite žymę",
DlgLnkAnchorByName : "Pagal žymės vardą",
DlgLnkAnchorById : "Pagal žymės Id",
DlgLnkNoAnchors : "(Šiame dokumente žymių nėra)",
DlgLnkEMail : "El.pašto adresas",
DlgLnkEMailSubject : "Žinutės tema",
DlgLnkEMailBody : "Žinutės turinys",
DlgLnkUpload : "Siųsti",
DlgLnkBtnUpload : "Siųsti į serverį",
DlgLnkTarget : "Paskirties vieta",
DlgLnkTargetFrame : "<kadras>",
DlgLnkTargetPopup : "<išskleidžiamas langas>",
DlgLnkTargetBlank : "Naujas langas (_blank)",
DlgLnkTargetParent : "Pirminis langas (_parent)",
DlgLnkTargetSelf : "Tas pats langas (_self)",
DlgLnkTargetTop : "Svarbiausias langas (_top)",
DlgLnkTargetFrameName : "Paskirties kadro vardas",
DlgLnkPopWinName : "Paskirties lango vardas",
DlgLnkPopWinFeat : "Išskleidžiamo lango savybės",
DlgLnkPopResize : "Keičiamas dydis",
DlgLnkPopLocation : "Adreso juosta",
DlgLnkPopMenu : "Meniu juosta",
DlgLnkPopScroll : "Slinkties juostos",
DlgLnkPopStatus : "Būsenos juosta",
DlgLnkPopToolbar : "Mygtukų juosta",
DlgLnkPopFullScrn : "Visas ekranas (IE)",
DlgLnkPopDependent : "Priklausomas (Netscape)",
DlgLnkPopWidth : "Plotis",
DlgLnkPopHeight : "Aukštis",
DlgLnkPopLeft : "Kairė pozicija",
DlgLnkPopTop : "Viršutinė pozicija",
DlnLnkMsgNoUrl : "Prašome įvesti nuorodos URL",
DlnLnkMsgNoEMail : "Prašome įvesti el.pašto adresą",
DlnLnkMsgNoAnchor : "Prašome pasirinkti žymę",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Pasirinkite spalvą",
DlgColorBtnClear : "Trinti",
DlgColorHighlight : "Paryškinta",
DlgColorSelected : "Pažymėta",
// Smiley Dialog
DlgSmileyTitle : "Įterpti veidelį",
// Special Character Dialog
DlgSpecialCharTitle : "Pasirinkite specialų simbolį",
// Table Dialog
DlgTableTitle : "Lentelės savybės",
DlgTableRows : "Eilutės",
DlgTableColumns : "Stulpeliai",
DlgTableBorder : "Rėmelio dydis",
DlgTableAlign : "Lygiuoti",
DlgTableAlignNotSet : "<Nenustatyta>",
DlgTableAlignLeft : "Kairę",
DlgTableAlignCenter : "Centrą",
DlgTableAlignRight : "Dešinę",
DlgTableWidth : "Plotis",
DlgTableWidthPx : "taškais",
DlgTableWidthPc : "procentais",
DlgTableHeight : "Aukštis",
DlgTableCellSpace : "Tarpas tarp langelių",
DlgTableCellPad : "Trapas nuo langelio rėmo iki teksto",
DlgTableCaption : "Antraštė",
DlgTableSummary : "Santrauka",
// Table Cell Dialog
DlgCellTitle : "Langelio savybės",
DlgCellWidth : "Plotis",
DlgCellWidthPx : "taškais",
DlgCellWidthPc : "procentais",
DlgCellHeight : "Aukštis",
DlgCellWordWrap : "Teksto laužymas",
DlgCellWordWrapNotSet : "<Nenustatyta>",
DlgCellWordWrapYes : "Taip",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Horizontaliai lygiuoti",
DlgCellHorAlignNotSet : "<Nenustatyta>",
DlgCellHorAlignLeft : "Kairę",
DlgCellHorAlignCenter : "Centrą",
DlgCellHorAlignRight: "Dešinę",
DlgCellVerAlign : "Vertikaliai lygiuoti",
DlgCellVerAlignNotSet : "<Nenustatyta>",
DlgCellVerAlignTop : "Viršų",
DlgCellVerAlignMiddle : "Vidurį",
DlgCellVerAlignBottom : "Apačią",
DlgCellVerAlignBaseline : "Apatinę liniją",
DlgCellRowSpan : "Eilučių apjungimas",
DlgCellCollSpan : "Stulpelių apjungimas",
DlgCellBackColor : "Fono spalva",
DlgCellBorderColor : "Rėmelio spalva",
DlgCellBtnSelect : "Pažymėti...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Paieška",
DlgFindFindBtn : "Surasti",
DlgFindNotFoundMsg : "Nurodytas tekstas nerastas.",
// Replace Dialog
DlgReplaceTitle : "Pakeisti",
DlgReplaceFindLbl : "Surasti tekstą:",
DlgReplaceReplaceLbl : "Pakeisti tekstu:",
DlgReplaceCaseChk : "Skirti didžiąsias ir mažąsias raides",
DlgReplaceReplaceBtn : "Pakeisti",
DlgReplaceReplAllBtn : "Pakeisti viską",
DlgReplaceWordChk : "Atitikti pilną žodį",
// Paste Operations / Dialog
PasteErrorCut : "Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti iškirpimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl+X).",
PasteErrorCopy : "Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti kopijavimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl+C).",
PasteAsText : "Įdėti kaip gryną tekstą",
PasteFromWord : "Įdėti iš Word",
DlgPasteMsg2 : "Žemiau esančiame įvedimo lauke įdėkite tekstą, naudodami klaviatūrą (<STRONG>Ctrl+V</STRONG>) ir spūstelkite mygtuką <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignoruoti šriftų nustatymus",
DlgPasteRemoveStyles : "Pašalinti stilių nustatymus",
// Color Picker
ColorAutomatic : "Automatinis",
ColorMoreColors : "Daugiau spalvų...",
// Document Properties
DocProps : "Dokumento savybės",
// Anchor Dialog
DlgAnchorTitle : "Žymės savybės",
DlgAnchorName : "Žymės vardas",
DlgAnchorErrorName : "Prašome įvesti žymės vardą",
// Speller Pages Dialog
DlgSpellNotInDic : "Žodyne nerastas",
DlgSpellChangeTo : "Pakeisti į",
DlgSpellBtnIgnore : "Ignoruoti",
DlgSpellBtnIgnoreAll : "Ignoruoti visus",
DlgSpellBtnReplace : "Pakeisti",
DlgSpellBtnReplaceAll : "Pakeisti visus",
DlgSpellBtnUndo : "Atšaukti",
DlgSpellNoSuggestions : "- Nėra pasiūlymų -",
DlgSpellProgress : "Vyksta rašybos tikrinimas...",
DlgSpellNoMispell : "Rašybos tikrinimas baigtas: Nerasta rašybos klaidų",
DlgSpellNoChanges : "Rašybos tikrinimas baigtas: Nėra pakeistų žodžių",
DlgSpellOneChange : "Rašybos tikrinimas baigtas: Vienas žodis pakeistas",
DlgSpellManyChanges : "Rašybos tikrinimas baigtas: Pakeista %1 žodžių",
IeSpellDownload : "Rašybos tikrinimas neinstaliuotas. Ar Jūs norite jį dabar atsisiųsti?",
// Button Dialog
DlgButtonText : "Tekstas (Reikšmė)",
DlgButtonType : "Tipas",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Vardas",
DlgCheckboxValue : "Reikšmė",
DlgCheckboxSelected : "Pažymėtas",
// Form Dialog
DlgFormName : "Vardas",
DlgFormAction : "Veiksmas",
DlgFormMethod : "Metodas",
// Select Field Dialog
DlgSelectName : "Vardas",
DlgSelectValue : "Reikšmė",
DlgSelectSize : "Dydis",
DlgSelectLines : "eilučių",
DlgSelectChkMulti : "Leisti daugeriopą atranką",
DlgSelectOpAvail : "Galimos parinktys",
DlgSelectOpText : "Tekstas",
DlgSelectOpValue : "Reikšmė",
DlgSelectBtnAdd : "Įtraukti",
DlgSelectBtnModify : "Modifikuoti",
DlgSelectBtnUp : "Aukštyn",
DlgSelectBtnDown : "Žemyn",
DlgSelectBtnSetValue : "Laikyti pažymėta reikšme",
DlgSelectBtnDelete : "Trinti",
// Textarea Dialog
DlgTextareaName : "Vardas",
DlgTextareaCols : "Ilgis",
DlgTextareaRows : "Plotis",
// Text Field Dialog
DlgTextName : "Vardas",
DlgTextValue : "Reikšmė",
DlgTextCharWidth : "Ilgis simboliais",
DlgTextMaxChars : "Maksimalus simbolių skaičius",
DlgTextType : "Tipas",
DlgTextTypeText : "Tekstas",
DlgTextTypePass : "Slaptažodis",
// Hidden Field Dialog
DlgHiddenName : "Vardas",
DlgHiddenValue : "Reikšmė",
// Bulleted List Dialog
BulletedListProp : "Suženklinto sąrašo savybės",
NumberedListProp : "Numeruoto sąrašo savybės",
DlgLstStart : "Start", //MISSING
DlgLstType : "Tipas",
DlgLstTypeCircle : "Apskritimas",
DlgLstTypeDisc : "Diskas",
DlgLstTypeSquare : "Kvadratas",
DlgLstTypeNumbers : "Skaičiai (1, 2, 3)",
DlgLstTypeLCase : "Mažosios raidės (a, b, c)",
DlgLstTypeUCase : "Didžiosios raidės (A, B, C)",
DlgLstTypeSRoman : "Romėnų mažieji skaičiai (i, ii, iii)",
DlgLstTypeLRoman : "Romėnų didieji skaičiai (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Bendros savybės",
DlgDocBackTab : "Fonas",
DlgDocColorsTab : "Spalvos ir kraštinės",
DlgDocMetaTab : "Meta duomenys",
DlgDocPageTitle : "Puslapio antraštė",
DlgDocLangDir : "Kalbos kryptis",
DlgDocLangDirLTR : "Iš kairės į dešinę (LTR)",
DlgDocLangDirRTL : "Iš dešinės į kairę (RTL)",
DlgDocLangCode : "Kalbos kodas",
DlgDocCharSet : "Simbolių kodavimo lentelė",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Kita simbolių kodavimo lentelė",
DlgDocDocType : "Dokumento tipo antraštė",
DlgDocDocTypeOther : "Kita dokumento tipo antraštė",
DlgDocIncXHTML : "Įtraukti XHTML deklaracijas",
DlgDocBgColor : "Fono spalva",
DlgDocBgImage : "Fono paveikslėlio nuoroda (URL)",
DlgDocBgNoScroll : "Neslenkantis fonas",
DlgDocCText : "Tekstas",
DlgDocCLink : "Nuoroda",
DlgDocCVisited : "Aplankyta nuoroda",
DlgDocCActive : "Aktyvi nuoroda",
DlgDocMargins : "Puslapio kraštinės",
DlgDocMaTop : "Viršuje",
DlgDocMaLeft : "Kairėje",
DlgDocMaRight : "Dešinėje",
DlgDocMaBottom : "Apačioje",
DlgDocMeIndex : "Dokumento indeksavimo raktiniai žodžiai (atskirti kableliais)",
DlgDocMeDescr : "Dokumento apibūdinimas",
DlgDocMeAuthor : "Autorius",
DlgDocMeCopy : "Autorinės teisės",
DlgDocPreview : "Peržiūra",
// Templates Dialog
Templates : "Šablonai",
DlgTemplatesTitle : "Turinio šablonai",
DlgTemplatesSelMsg : "Pasirinkite norimą šabloną<br>(<b>Dėmesio!</b> esamas turinys bus prarastas):",
DlgTemplatesLoading : "Įkeliamas šablonų sąrašas. Prašome palaukti...",
DlgTemplatesNoTpl : "(Šablonų sąrašas tuščias)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "Apie",
DlgAboutBrowserInfoTab : "Naršyklės informacija",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "versija",
DlgAboutInfo : "Papildomą informaciją galima gauti",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Brazilian Portuguese language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Ocultar Barra de Ferramentas",
ToolbarExpand : "Exibir Barra de Ferramentas",
// Toolbar Items and Context Menu
Save : "Salvar",
NewPage : "Novo",
Preview : "Visualizar",
Cut : "Recortar",
Copy : "Copiar",
Paste : "Colar",
PasteText : "Colar como Texto sem Formatação",
PasteWord : "Colar do Word",
Print : "Imprimir",
SelectAll : "Selecionar Tudo",
RemoveFormat : "Remover Formatação",
InsertLinkLbl : "Hiperlink",
InsertLink : "Inserir/Editar Hiperlink",
RemoveLink : "Remover Hiperlink",
VisitLink : "Open Link", //MISSING
Anchor : "Inserir/Editar Âncora",
AnchorDelete : "Remover Âncora",
InsertImageLbl : "Figura",
InsertImage : "Inserir/Editar Figura",
InsertFlashLbl : "Flash",
InsertFlash : "Insere/Edita Flash",
InsertTableLbl : "Tabela",
InsertTable : "Inserir/Editar Tabela",
InsertLineLbl : "Linha",
InsertLine : "Inserir Linha Horizontal",
InsertSpecialCharLbl: "Caracteres Especiais",
InsertSpecialChar : "Inserir Caractere Especial",
InsertSmileyLbl : "Emoticon",
InsertSmiley : "Inserir Emoticon",
About : "Sobre FCKeditor",
Bold : "Negrito",
Italic : "Itálico",
Underline : "Sublinhado",
StrikeThrough : "Tachado",
Subscript : "Subscrito",
Superscript : "Sobrescrito",
LeftJustify : "Alinhar Esquerda",
CenterJustify : "Centralizar",
RightJustify : "Alinhar Direita",
BlockJustify : "Justificado",
DecreaseIndent : "Diminuir Recuo",
IncreaseIndent : "Aumentar Recuo",
Blockquote : "Recuo",
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Desfazer",
Redo : "Refazer",
NumberedListLbl : "Numeração",
NumberedList : "Inserir/Remover Numeração",
BulletedListLbl : "Marcadores",
BulletedList : "Inserir/Remover Marcadores",
ShowTableBorders : "Exibir Bordas da Tabela",
ShowDetails : "Exibir Detalhes",
Style : "Estilo",
FontFormat : "Formatação",
Font : "Fonte",
FontSize : "Tamanho",
TextColor : "Cor do Texto",
BGColor : "Cor do Plano de Fundo",
Source : "Código-Fonte",
Find : "Localizar",
Replace : "Substituir",
SpellCheck : "Verificar Ortografia",
UniversalKeyboard : "Teclado Universal",
PageBreakLbl : "Quebra de Página",
PageBreak : "Inserir Quebra de Página",
Form : "Formulário",
Checkbox : "Caixa de Seleção",
RadioButton : "Botão de Opção",
TextField : "Caixa de Texto",
Textarea : "Área de Texto",
HiddenField : "Campo Oculto",
Button : "Botão",
SelectionField : "Caixa de Listagem",
ImageButton : "Botão de Imagem",
FitWindow : "Maximizar o tamanho do editor",
ShowBlocks : "Mostrar blocos",
// Context Menu
EditLink : "Editar Hiperlink",
CellCM : "Célula",
RowCM : "Linha",
ColumnCM : "Coluna",
InsertRowAfter : "Inserir linha abaixo",
InsertRowBefore : "Inserir linha acima",
DeleteRows : "Remover Linhas",
InsertColumnAfter : "Inserir coluna à direita",
InsertColumnBefore : "Inserir coluna à esquerda",
DeleteColumns : "Remover Colunas",
InsertCellAfter : "Inserir célula à direita",
InsertCellBefore : "Inserir célula à esquerda",
DeleteCells : "Remover Células",
MergeCells : "Mesclar Células",
MergeRight : "Mesclar com célula à direita",
MergeDown : "Mesclar com célula abaixo",
HorizontalSplitCell : "Dividir célula horizontalmente",
VerticalSplitCell : "Dividir célula verticalmente",
TableDelete : "Apagar Tabela",
CellProperties : "Formatar Célula",
TableProperties : "Formatar Tabela",
ImageProperties : "Formatar Figura",
FlashProperties : "Propriedades Flash",
AnchorProp : "Formatar Âncora",
ButtonProp : "Formatar Botão",
CheckboxProp : "Formatar Caixa de Seleção",
HiddenFieldProp : "Formatar Campo Oculto",
RadioButtonProp : "Formatar Botão de Opção",
ImageButtonProp : "Formatar Botão de Imagem",
TextFieldProp : "Formatar Caixa de Texto",
SelectionFieldProp : "Formatar Caixa de Listagem",
TextareaProp : "Formatar Área de Texto",
FormProp : "Formatar Formulário",
FontFormats : "Normal;Formatado;Endereço;Título 1;Título 2;Título 3;Título 4;Título 5;Título 6",
// Alerts and Messages
ProcessingXHTML : "Processando XHTML. Por favor, aguarde...",
Done : "Pronto",
PasteWordConfirm : "O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação antes de colar?",
NotCompatiblePaste : "Este comando está disponível para o navegador Internet Explorer 5.5 ou superior. Você gostaria de colar sem remover a formatação?",
UnknownToolbarItem : "O item da barra de ferramentas \"%1\" não é reconhecido",
UnknownCommand : "O comando \"%1\" não é reconhecido",
NotImplemented : "O comando não foi implementado",
UnknownToolbarSet : "A barra de ferramentas \"%1\" não existe",
NoActiveX : "As configurações de segurança do seu browser podem limitar algumas características do editor. Você precisa habilitar a opção \"Executar controles e plug-ins ActiveX\". Você pode experimentar erros e alertas de características faltantes.",
BrowseServerBlocked : "Os recursos do browser não puderam ser abertos. Tenha certeza que todos os bloqueadores de popup estão desabilitados.",
DialogBlocked : "Não foi possível abrir a janela de diálogo. Tenha certeza que todos os bloqueadores de popup estão desabilitados.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Cancelar",
DlgBtnClose : "Fechar",
DlgBtnBrowseServer : "Localizar no Servidor",
DlgAdvancedTag : "Avançado",
DlgOpOther : "<Outros>",
DlgInfoTab : "Info",
DlgAlertUrl : "Inserir a URL",
// General Dialogs Labels
DlgGenNotSet : "<não ajustado>",
DlgGenId : "Id",
DlgGenLangDir : "Direção do idioma",
DlgGenLangDirLtr : "Esquerda para Direita (LTR)",
DlgGenLangDirRtl : "Direita para Esquerda (RTL)",
DlgGenLangCode : "Idioma",
DlgGenAccessKey : "Chave de Acesso",
DlgGenName : "Nome",
DlgGenTabIndex : "Índice de Tabulação",
DlgGenLongDescr : "Descrição da URL",
DlgGenClass : "Classe de Folhas de Estilo",
DlgGenTitle : "Título",
DlgGenContType : "Tipo de Conteúdo",
DlgGenLinkCharset : "Conjunto de Caracteres do Hiperlink",
DlgGenStyle : "Estilos",
// Image Dialog
DlgImgTitle : "Formatar Figura",
DlgImgInfoTab : "Informações da Figura",
DlgImgBtnUpload : "Enviar para o Servidor",
DlgImgURL : "URL",
DlgImgUpload : "Submeter",
DlgImgAlt : "Texto Alternativo",
DlgImgWidth : "Largura",
DlgImgHeight : "Altura",
DlgImgLockRatio : "Manter proporções",
DlgBtnResetSize : "Redefinir para o Tamanho Original",
DlgImgBorder : "Borda",
DlgImgHSpace : "Horizontal",
DlgImgVSpace : "Vertical",
DlgImgAlign : "Alinhamento",
DlgImgAlignLeft : "Esquerda",
DlgImgAlignAbsBottom: "Inferior Absoluto",
DlgImgAlignAbsMiddle: "Centralizado Absoluto",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Inferior",
DlgImgAlignMiddle : "Centralizado",
DlgImgAlignRight : "Direita",
DlgImgAlignTextTop : "Superior Absoluto",
DlgImgAlignTop : "Superior",
DlgImgPreview : "Visualização",
DlgImgAlertUrl : "Por favor, digite o URL da figura.",
DlgImgLinkTab : "Hiperlink",
// Flash Dialog
DlgFlashTitle : "Propriedades Flash",
DlgFlashChkPlay : "Tocar Automaticamente",
DlgFlashChkLoop : "Loop",
DlgFlashChkMenu : "Habilita Menu Flash",
DlgFlashScale : "Escala",
DlgFlashScaleAll : "Mostrar tudo",
DlgFlashScaleNoBorder : "Sem Borda",
DlgFlashScaleFit : "Escala Exata",
// Link Dialog
DlgLnkWindowTitle : "Hiperlink",
DlgLnkInfoTab : "Informações",
DlgLnkTargetTab : "Destino",
DlgLnkType : "Tipo de hiperlink",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Âncora nesta página",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocolo",
DlgLnkProtoOther : "<outro>",
DlgLnkURL : "URL do hiperlink",
DlgLnkAnchorSel : "Selecione uma âncora",
DlgLnkAnchorByName : "Pelo Nome da âncora",
DlgLnkAnchorById : "Pelo Id do Elemento",
DlgLnkNoAnchors : "(Não há âncoras disponíveis neste documento)",
DlgLnkEMail : "Endereço E-Mail",
DlgLnkEMailSubject : "Assunto da Mensagem",
DlgLnkEMailBody : "Corpo da Mensagem",
DlgLnkUpload : "Enviar ao Servidor",
DlgLnkBtnUpload : "Enviar ao Servidor",
DlgLnkTarget : "Destino",
DlgLnkTargetFrame : "<frame>",
DlgLnkTargetPopup : "<janela popup>",
DlgLnkTargetBlank : "Nova Janela (_blank)",
DlgLnkTargetParent : "Janela Pai (_parent)",
DlgLnkTargetSelf : "Mesma Janela (_self)",
DlgLnkTargetTop : "Janela Superior (_top)",
DlgLnkTargetFrameName : "Nome do Frame de Destino",
DlgLnkPopWinName : "Nome da Janela Pop-up",
DlgLnkPopWinFeat : "Atributos da Janela Pop-up",
DlgLnkPopResize : "Redimensionável",
DlgLnkPopLocation : "Barra de Endereços",
DlgLnkPopMenu : "Barra de Menus",
DlgLnkPopScroll : "Barras de Rolagem",
DlgLnkPopStatus : "Barra de Status",
DlgLnkPopToolbar : "Barra de Ferramentas",
DlgLnkPopFullScrn : "Modo Tela Cheia (IE)",
DlgLnkPopDependent : "Dependente (Netscape)",
DlgLnkPopWidth : "Largura",
DlgLnkPopHeight : "Altura",
DlgLnkPopLeft : "Esquerda",
DlgLnkPopTop : "Superior",
DlnLnkMsgNoUrl : "Por favor, digite o endereço do Hiperlink",
DlnLnkMsgNoEMail : "Por favor, digite o endereço de e-mail",
DlnLnkMsgNoAnchor : "Por favor, selecione uma âncora",
DlnLnkMsgInvPopName : "O nome da janela popup deve começar com uma letra ou sublinhado (_) e não pode conter espaços",
// Color Dialog
DlgColorTitle : "Selecione uma Cor",
DlgColorBtnClear : "Limpar",
DlgColorHighlight : "Visualização",
DlgColorSelected : "Selecionada",
// Smiley Dialog
DlgSmileyTitle : "Inserir Emoticon",
// Special Character Dialog
DlgSpecialCharTitle : "Selecione um Caractere Especial",
// Table Dialog
DlgTableTitle : "Formatar Tabela",
DlgTableRows : "Linhas",
DlgTableColumns : "Colunas",
DlgTableBorder : "Borda",
DlgTableAlign : "Alinhamento",
DlgTableAlignNotSet : "<Não ajustado>",
DlgTableAlignLeft : "Esquerda",
DlgTableAlignCenter : "Centralizado",
DlgTableAlignRight : "Direita",
DlgTableWidth : "Largura",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "%",
DlgTableHeight : "Altura",
DlgTableCellSpace : "Espaçamento",
DlgTableCellPad : "Enchimento",
DlgTableCaption : "Legenda",
DlgTableSummary : "Resumo",
// Table Cell Dialog
DlgCellTitle : "Formatar célula",
DlgCellWidth : "Largura",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "%",
DlgCellHeight : "Altura",
DlgCellWordWrap : "Quebra de Linha",
DlgCellWordWrapNotSet : "<Não ajustado>",
DlgCellWordWrapYes : "Sim",
DlgCellWordWrapNo : "Não",
DlgCellHorAlign : "Alinhamento Horizontal",
DlgCellHorAlignNotSet : "<Não ajustado>",
DlgCellHorAlignLeft : "Esquerda",
DlgCellHorAlignCenter : "Centralizado",
DlgCellHorAlignRight: "Direita",
DlgCellVerAlign : "Alinhamento Vertical",
DlgCellVerAlignNotSet : "<Não ajustado>",
DlgCellVerAlignTop : "Superior",
DlgCellVerAlignMiddle : "Centralizado",
DlgCellVerAlignBottom : "Inferior",
DlgCellVerAlignBaseline : "Baseline",
DlgCellRowSpan : "Transpor Linhas",
DlgCellCollSpan : "Transpor Colunas",
DlgCellBackColor : "Cor do Plano de Fundo",
DlgCellBorderColor : "Cor da Borda",
DlgCellBtnSelect : "Selecionar...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Localizar e Substituir",
// Find Dialog
DlgFindTitle : "Localizar...",
DlgFindFindBtn : "Localizar",
DlgFindNotFoundMsg : "O texto especificado não foi encontrado.",
// Replace Dialog
DlgReplaceTitle : "Substituir",
DlgReplaceFindLbl : "Procurar por:",
DlgReplaceReplaceLbl : "Substituir por:",
DlgReplaceCaseChk : "Coincidir Maiúsculas/Minúsculas",
DlgReplaceReplaceBtn : "Substituir",
DlgReplaceReplAllBtn : "Substituir Tudo",
DlgReplaceWordChk : "Coincidir a palavra inteira",
// Paste Operations / Dialog
PasteErrorCut : "As configurações de segurança do seu navegador não permitem que o editor execute operações de recortar automaticamente. Por favor, utilize o teclado para recortar (Ctrl+X).",
PasteErrorCopy : "As configurações de segurança do seu navegador não permitem que o editor execute operações de copiar automaticamente. Por favor, utilize o teclado para copiar (Ctrl+C).",
PasteAsText : "Colar como Texto sem Formatação",
PasteFromWord : "Colar do Word",
DlgPasteMsg2 : "Transfira o link usado no box usando o teclado com (<STRONG>Ctrl+V</STRONG>) e <STRONG>OK</STRONG>.",
DlgPasteSec : "As configurações de segurança do seu navegador não permitem que o editor acesse os dados da área de transferência diretamente. Por favor cole o conteúdo novamente nesta janela.",
DlgPasteIgnoreFont : "Ignorar definições de fonte",
DlgPasteRemoveStyles : "Remove definições de estilo",
// Color Picker
ColorAutomatic : "Automático",
ColorMoreColors : "Mais Cores...",
// Document Properties
DocProps : "Propriedades Documento",
// Anchor Dialog
DlgAnchorTitle : "Formatar Âncora",
DlgAnchorName : "Nome da Âncora",
DlgAnchorErrorName : "Por favor, digite o nome da âncora",
// Speller Pages Dialog
DlgSpellNotInDic : "Não encontrada",
DlgSpellChangeTo : "Alterar para",
DlgSpellBtnIgnore : "Ignorar uma vez",
DlgSpellBtnIgnoreAll : "Ignorar Todas",
DlgSpellBtnReplace : "Alterar",
DlgSpellBtnReplaceAll : "Alterar Todas",
DlgSpellBtnUndo : "Desfazer",
DlgSpellNoSuggestions : "-sem sugestões de ortografia-",
DlgSpellProgress : "Verificação ortográfica em andamento...",
DlgSpellNoMispell : "Verificação encerrada: Não foram encontrados erros de ortografia",
DlgSpellNoChanges : "Verificação ortográfica encerrada: Não houve alterações",
DlgSpellOneChange : "Verificação ortográfica encerrada: Uma palavra foi alterada",
DlgSpellManyChanges : "Verificação ortográfica encerrada: %1 foram alteradas",
IeSpellDownload : "A verificação ortográfica não foi instalada. Você gostaria de realizar o download agora?",
// Button Dialog
DlgButtonText : "Texto (Valor)",
DlgButtonType : "Tipo",
DlgButtonTypeBtn : "Botão",
DlgButtonTypeSbm : "Enviar",
DlgButtonTypeRst : "Limpar",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nome",
DlgCheckboxValue : "Valor",
DlgCheckboxSelected : "Selecionado",
// Form Dialog
DlgFormName : "Nome",
DlgFormAction : "Action",
DlgFormMethod : "Método",
// Select Field Dialog
DlgSelectName : "Nome",
DlgSelectValue : "Valor",
DlgSelectSize : "Tamanho",
DlgSelectLines : "linhas",
DlgSelectChkMulti : "Permitir múltiplas seleções",
DlgSelectOpAvail : "Opções disponíveis",
DlgSelectOpText : "Texto",
DlgSelectOpValue : "Valor",
DlgSelectBtnAdd : "Adicionar",
DlgSelectBtnModify : "Modificar",
DlgSelectBtnUp : "Para cima",
DlgSelectBtnDown : "Para baixo",
DlgSelectBtnSetValue : "Definir como selecionado",
DlgSelectBtnDelete : "Remover",
// Textarea Dialog
DlgTextareaName : "Nome",
DlgTextareaCols : "Colunas",
DlgTextareaRows : "Linhas",
// Text Field Dialog
DlgTextName : "Nome",
DlgTextValue : "Valor",
DlgTextCharWidth : "Comprimento (em caracteres)",
DlgTextMaxChars : "Número Máximo de Caracteres",
DlgTextType : "Tipo",
DlgTextTypeText : "Texto",
DlgTextTypePass : "Senha",
// Hidden Field Dialog
DlgHiddenName : "Nome",
DlgHiddenValue : "Valor",
// Bulleted List Dialog
BulletedListProp : "Formatar Marcadores",
NumberedListProp : "Formatar Numeração",
DlgLstStart : "Iniciar",
DlgLstType : "Tipo",
DlgLstTypeCircle : "Círculo",
DlgLstTypeDisc : "Disco",
DlgLstTypeSquare : "Quadrado",
DlgLstTypeNumbers : "Números (1, 2, 3)",
DlgLstTypeLCase : "Letras Minúsculas (a, b, c)",
DlgLstTypeUCase : "Letras Maiúsculas (A, B, C)",
DlgLstTypeSRoman : "Números Romanos Minúsculos (i, ii, iii)",
DlgLstTypeLRoman : "Números Romanos Maiúsculos (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Geral",
DlgDocBackTab : "Plano de Fundo",
DlgDocColorsTab : "Cores e Margens",
DlgDocMetaTab : "Meta Dados",
DlgDocPageTitle : "Título da Página",
DlgDocLangDir : "Direção do Idioma",
DlgDocLangDirLTR : "Esquerda para Direita (LTR)",
DlgDocLangDirRTL : "Direita para Esquerda (RTL)",
DlgDocLangCode : "Código do Idioma",
DlgDocCharSet : "Codificação de Caracteres",
DlgDocCharSetCE : "Europa Central",
DlgDocCharSetCT : "Chinês Tradicional (Big5)",
DlgDocCharSetCR : "Cirílico",
DlgDocCharSetGR : "Grego",
DlgDocCharSetJP : "Japonês",
DlgDocCharSetKR : "Coreano",
DlgDocCharSetTR : "Turco",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Europa Ocidental",
DlgDocCharSetOther : "Outra Codificação de Caracteres",
DlgDocDocType : "Cabeçalho Tipo de Documento",
DlgDocDocTypeOther : "Other Document Type Heading",
DlgDocIncXHTML : "Incluir Declarações XHTML",
DlgDocBgColor : "Cor do Plano de Fundo",
DlgDocBgImage : "URL da Imagem de Plano de Fundo",
DlgDocBgNoScroll : "Plano de Fundo Fixo",
DlgDocCText : "Texto",
DlgDocCLink : "Hiperlink",
DlgDocCVisited : "Hiperlink Visitado",
DlgDocCActive : "Hiperlink Ativo",
DlgDocMargins : "Margens da Página",
DlgDocMaTop : "Superior",
DlgDocMaLeft : "Inferior",
DlgDocMaRight : "Direita",
DlgDocMaBottom : "Inferior",
DlgDocMeIndex : "Palavras-chave de Indexação do Documento (separadas por vírgula)",
DlgDocMeDescr : "Descrição do Documento",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Direitos Autorais",
DlgDocPreview : "Visualizar",
// Templates Dialog
Templates : "Modelos de layout",
DlgTemplatesTitle : "Modelo de layout do conteúdo",
DlgTemplatesSelMsg : "Selecione um modelo de layout para ser aberto no editor<br>(o conteúdo atual será perdido):",
DlgTemplatesLoading : "Carregando a lista de modelos de layout. Aguarde...",
DlgTemplatesNoTpl : "(Não foram definidos modelos de layout)",
DlgTemplatesReplace : "Substituir o conteúdo atual",
// About Dialog
DlgAboutAboutTab : "Sobre",
DlgAboutBrowserInfoTab : "Informações do Navegador",
DlgAboutLicenseTab : "Licença",
DlgAboutVersion : "versão",
DlgAboutInfo : "Para maiores informações visite",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Persian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "rtl",
ToolbarCollapse : "برچیدن نوارابزار",
ToolbarExpand : "گستردن نوارابزار",
// Toolbar Items and Context Menu
Save : "ذخیره",
NewPage : "برگهٴ تازه",
Preview : "پیشنمایش",
Cut : "برش",
Copy : "کپی",
Paste : "چسباندن",
PasteText : "چسباندن به عنوان متن ِساده",
PasteWord : "چسباندن از Word",
Print : "چاپ",
SelectAll : "گزینش همه",
RemoveFormat : "برداشتن فرمت",
InsertLinkLbl : "پیوند",
InsertLink : "گنجاندن/ویرایش ِپیوند",
RemoveLink : "برداشتن پیوند",
VisitLink : "باز کردن پیوند",
Anchor : "گنجاندن/ویرایش ِلنگر",
AnchorDelete : "برداشتن لنگر",
InsertImageLbl : "تصویر",
InsertImage : "گنجاندن/ویرایش ِتصویر",
InsertFlashLbl : "Flash",
InsertFlash : "گنجاندن/ویرایش ِFlash",
InsertTableLbl : "جدول",
InsertTable : "گنجاندن/ویرایش ِجدول",
InsertLineLbl : "خط",
InsertLine : "گنجاندن خط ِافقی",
InsertSpecialCharLbl: "نویسهٴ ویژه",
InsertSpecialChar : "گنجاندن نویسهٴ ویژه",
InsertSmileyLbl : "خندانک",
InsertSmiley : "گنجاندن خندانک",
About : "دربارهٴ FCKeditor",
Bold : "درشت",
Italic : "خمیده",
Underline : "خطزیردار",
StrikeThrough : "میانخط",
Subscript : "زیرنویس",
Superscript : "بالانویس",
LeftJustify : "چپچین",
CenterJustify : "میانچین",
RightJustify : "راستچین",
BlockJustify : "بلوکچین",
DecreaseIndent : "کاهش تورفتگی",
IncreaseIndent : "افزایش تورفتگی",
Blockquote : "بلوک نقل قول",
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "واچیدن",
Redo : "بازچیدن",
NumberedListLbl : "فهرست شمارهدار",
NumberedList : "گنجاندن/برداشتن فهرست شمارهدار",
BulletedListLbl : "فهرست نقطهای",
BulletedList : "گنجاندن/برداشتن فهرست نقطهای",
ShowTableBorders : "نمایش لبهٴ جدول",
ShowDetails : "نمایش جزئیات",
Style : "سبک",
FontFormat : "فرمت",
Font : "قلم",
FontSize : "اندازه",
TextColor : "رنگ متن",
BGColor : "رنگ پسزمینه",
Source : "منبع",
Find : "جستجو",
Replace : "جایگزینی",
SpellCheck : "بررسی املا",
UniversalKeyboard : "صفحهکلید جهانی",
PageBreakLbl : "شکستگی ِپایان ِبرگه",
PageBreak : "گنجاندن شکستگی ِپایان ِبرگه",
Form : "فرم",
Checkbox : "خانهٴ گزینهای",
RadioButton : "دکمهٴ رادیویی",
TextField : "فیلد متنی",
Textarea : "ناحیهٴ متنی",
HiddenField : "فیلد پنهان",
Button : "دکمه",
SelectionField : "فیلد چندگزینهای",
ImageButton : "دکمهٴ تصویری",
FitWindow : "بیشینهسازی ِاندازهٴ ویرایشگر",
ShowBlocks : "نمایش بلوکها",
// Context Menu
EditLink : "ویرایش پیوند",
CellCM : "سلول",
RowCM : "سطر",
ColumnCM : "ستون",
InsertRowAfter : "افزودن سطر بعد از",
InsertRowBefore : "افزودن سطر قبل از",
DeleteRows : "حذف سطرها",
InsertColumnAfter : "افزودن ستون بعد از",
InsertColumnBefore : "افزودن ستون قبل از",
DeleteColumns : "حذف ستونها",
InsertCellAfter : "افزودن سلول بعد از",
InsertCellBefore : "افزودن سلول قبل از",
DeleteCells : "حذف سلولها",
MergeCells : "ادغام سلولها",
MergeRight : "ادغام به راست",
MergeDown : "ادغام به پایین",
HorizontalSplitCell : "جدا کردن افقی سلول",
VerticalSplitCell : "جدا کردن عمودی سلول",
TableDelete : "پاککردن جدول",
CellProperties : "ویژگیهای سلول",
TableProperties : "ویژگیهای جدول",
ImageProperties : "ویژگیهای تصویر",
FlashProperties : "ویژگیهای Flash",
AnchorProp : "ویژگیهای لنگر",
ButtonProp : "ویژگیهای دکمه",
CheckboxProp : "ویژگیهای خانهٴ گزینهای",
HiddenFieldProp : "ویژگیهای فیلد پنهان",
RadioButtonProp : "ویژگیهای دکمهٴ رادیویی",
ImageButtonProp : "ویژگیهای دکمهٴ تصویری",
TextFieldProp : "ویژگیهای فیلد متنی",
SelectionFieldProp : "ویژگیهای فیلد چندگزینهای",
TextareaProp : "ویژگیهای ناحیهٴ متنی",
FormProp : "ویژگیهای فرم",
FontFormats : "نرمال;فرمتشده;آدرس;سرنویس 1;سرنویس 2;سرنویس 3;سرنویس 4;سرنویس 5;سرنویس 6;بند;(DIV)",
// Alerts and Messages
ProcessingXHTML : "پردازش XHTML. لطفا صبر کنید...",
Done : "انجام شد",
PasteWordConfirm : "متنی که میخواهید بچسبانید به نظر میرسد از Word کپی شده است. آیا میخواهید قبل از چسباندن آن را پاکسازی کنید؟",
NotCompatiblePaste : "این فرمان برای مرورگر Internet Explorer از نگارش 5.5 یا بالاتر در دسترس است. آیا میخواهید بدون پاکسازی، متن را بچسبانید؟",
UnknownToolbarItem : "فقرهٴ نوارابزار ناشناخته \"%1\"",
UnknownCommand : "نام دستور ناشناخته \"%1\"",
NotImplemented : "دستور پیادهسازینشده",
UnknownToolbarSet : "مجموعهٴ نوارابزار \"%1\" وجود ندارد",
NoActiveX : "تنظیمات امنیتی مرورگر شما ممکن است در بعضی از ویژگیهای مرورگر محدودیت ایجاد کند. شما باید گزینهٴ \"Run ActiveX controls and plug-ins\" را فعال کنید. ممکن است شما با خطاهایی روبرو باشید و متوجه کمبود ویژگیهایی شوید.",
BrowseServerBlocked : "توانایی بازگشایی مرورگر منابع فراهم نیست. اطمینان حاصل کنید که تمامی برنامههای پیشگیری از نمایش popup را از کار بازداشتهاید.",
DialogBlocked : "توانایی بازگشایی پنجرهٴ کوچک ِگفتگو فراهم نیست. اطمینان حاصل کنید که تمامی برنامههای پیشگیری از نمایش popup را از کار بازداشتهاید.",
VisitLinkBlocked : "امکان بازکردن یک پنجره جدید نیست. اطمینان حاصل کنید که تمامی برنامههای پیشگیری از نمایش popup را از کار بازداشتهاید.",
// Dialogs
DlgBtnOK : "پذیرش",
DlgBtnCancel : "انصراف",
DlgBtnClose : "بستن",
DlgBtnBrowseServer : "فهرستنمایی سرور",
DlgAdvancedTag : "پیشرفته",
DlgOpOther : "<غیره>",
DlgInfoTab : "اطلاعات",
DlgAlertUrl : "لطفاً URL را بنویسید",
// General Dialogs Labels
DlgGenNotSet : "<تعیننشده>",
DlgGenId : "شناسه",
DlgGenLangDir : "جهتنمای زبان",
DlgGenLangDirLtr : "چپ به راست (LTR)",
DlgGenLangDirRtl : "راست به چپ (RTL)",
DlgGenLangCode : "کد زبان",
DlgGenAccessKey : "کلید دستیابی",
DlgGenName : "نام",
DlgGenTabIndex : "نمایهٴ دسترسی با Tab",
DlgGenLongDescr : "URL توصیف طولانی",
DlgGenClass : "کلاسهای شیوهنامه(Stylesheet)",
DlgGenTitle : "عنوان کمکی",
DlgGenContType : "نوع محتوای کمکی",
DlgGenLinkCharset : "نویسهگان منبع ِپیوندشده",
DlgGenStyle : "شیوه(style)",
// Image Dialog
DlgImgTitle : "ویژگیهای تصویر",
DlgImgInfoTab : "اطلاعات تصویر",
DlgImgBtnUpload : "به سرور بفرست",
DlgImgURL : "URL",
DlgImgUpload : "انتقال به سرور",
DlgImgAlt : "متن جایگزین",
DlgImgWidth : "پهنا",
DlgImgHeight : "درازا",
DlgImgLockRatio : "قفلکردن ِنسبت",
DlgBtnResetSize : "بازنشانی اندازه",
DlgImgBorder : "لبه",
DlgImgHSpace : "فاصلهٴ افقی",
DlgImgVSpace : "فاصلهٴ عمودی",
DlgImgAlign : "چینش",
DlgImgAlignLeft : "چپ",
DlgImgAlignAbsBottom: "پائین مطلق",
DlgImgAlignAbsMiddle: "وسط مطلق",
DlgImgAlignBaseline : "خطپایه",
DlgImgAlignBottom : "پائین",
DlgImgAlignMiddle : "وسط",
DlgImgAlignRight : "راست",
DlgImgAlignTextTop : "متن بالا",
DlgImgAlignTop : "بالا",
DlgImgPreview : "پیشنمایش",
DlgImgAlertUrl : "لطفا URL تصویر را بنویسید",
DlgImgLinkTab : "پیوند",
// Flash Dialog
DlgFlashTitle : "ویژگیهای Flash",
DlgFlashChkPlay : "آغاز ِخودکار",
DlgFlashChkLoop : "اجرای پیاپی",
DlgFlashChkMenu : "دردسترسبودن منوی Flash",
DlgFlashScale : "مقیاس",
DlgFlashScaleAll : "نمایش همه",
DlgFlashScaleNoBorder : "بدون کران",
DlgFlashScaleFit : "جایگیری کامل",
// Link Dialog
DlgLnkWindowTitle : "پیوند",
DlgLnkInfoTab : "اطلاعات پیوند",
DlgLnkTargetTab : "مقصد",
DlgLnkType : "نوع پیوند",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "لنگر در همین صفحه",
DlgLnkTypeEMail : "پست الکترونیکی",
DlgLnkProto : "پروتکل",
DlgLnkProtoOther : "<دیگر>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "یک لنگر برگزینید",
DlgLnkAnchorByName : "با نام لنگر",
DlgLnkAnchorById : "با شناسهٴ المان",
DlgLnkNoAnchors : "(در این سند لنگری دردسترس نیست)",
DlgLnkEMail : "نشانی پست الکترونیکی",
DlgLnkEMailSubject : "موضوع پیام",
DlgLnkEMailBody : "متن پیام",
DlgLnkUpload : "انتقال به سرور",
DlgLnkBtnUpload : "به سرور بفرست",
DlgLnkTarget : "مقصد",
DlgLnkTargetFrame : "<فریم>",
DlgLnkTargetPopup : "<پنجرهٴ پاپاپ>",
DlgLnkTargetBlank : "پنجرهٴ دیگر (_blank)",
DlgLnkTargetParent : "پنجرهٴ والد (_parent)",
DlgLnkTargetSelf : "همان پنجره (_self)",
DlgLnkTargetTop : "بالاترین پنجره (_top)",
DlgLnkTargetFrameName : "نام فریم مقصد",
DlgLnkPopWinName : "نام پنجرهٴ پاپاپ",
DlgLnkPopWinFeat : "ویژگیهای پنجرهٴ پاپاپ",
DlgLnkPopResize : "قابل تغییر اندازه",
DlgLnkPopLocation : "نوار موقعیت",
DlgLnkPopMenu : "نوار منو",
DlgLnkPopScroll : "میلههای پیمایش",
DlgLnkPopStatus : "نوار وضعیت",
DlgLnkPopToolbar : "نوارابزار",
DlgLnkPopFullScrn : "تمامصفحه (IE)",
DlgLnkPopDependent : "وابسته (Netscape)",
DlgLnkPopWidth : "پهنا",
DlgLnkPopHeight : "درازا",
DlgLnkPopLeft : "موقعیت ِچپ",
DlgLnkPopTop : "موقعیت ِبالا",
DlnLnkMsgNoUrl : "لطفا URL پیوند را بنویسید",
DlnLnkMsgNoEMail : "لطفا نشانی پست الکترونیکی را بنویسید",
DlnLnkMsgNoAnchor : "لطفا لنگری را برگزینید",
DlnLnkMsgInvPopName : "نام پنجرهٴ پاپاپ باید با یک نویسهٴ الفبایی آغاز گردد و نباید فاصلههای خالی در آن باشند",
// Color Dialog
DlgColorTitle : "گزینش رنگ",
DlgColorBtnClear : "پاککردن",
DlgColorHighlight : "نمونه",
DlgColorSelected : "برگزیده",
// Smiley Dialog
DlgSmileyTitle : "گنجاندن خندانک",
// Special Character Dialog
DlgSpecialCharTitle : "گزینش نویسهٴویژه",
// Table Dialog
DlgTableTitle : "ویژگیهای جدول",
DlgTableRows : "سطرها",
DlgTableColumns : "ستونها",
DlgTableBorder : "اندازهٴ لبه",
DlgTableAlign : "چینش",
DlgTableAlignNotSet : "<تعیننشده>",
DlgTableAlignLeft : "چپ",
DlgTableAlignCenter : "وسط",
DlgTableAlignRight : "راست",
DlgTableWidth : "پهنا",
DlgTableWidthPx : "پیکسل",
DlgTableWidthPc : "درصد",
DlgTableHeight : "درازا",
DlgTableCellSpace : "فاصلهٴ میان سلولها",
DlgTableCellPad : "فاصلهٴ پرشده در سلول",
DlgTableCaption : "عنوان",
DlgTableSummary : "خلاصه",
// Table Cell Dialog
DlgCellTitle : "ویژگیهای سلول",
DlgCellWidth : "پهنا",
DlgCellWidthPx : "پیکسل",
DlgCellWidthPc : "درصد",
DlgCellHeight : "درازا",
DlgCellWordWrap : "شکستن واژهها",
DlgCellWordWrapNotSet : "<تعیننشده>",
DlgCellWordWrapYes : "بله",
DlgCellWordWrapNo : "خیر",
DlgCellHorAlign : "چینش ِافقی",
DlgCellHorAlignNotSet : "<تعیننشده>",
DlgCellHorAlignLeft : "چپ",
DlgCellHorAlignCenter : "وسط",
DlgCellHorAlignRight: "راست",
DlgCellVerAlign : "چینش ِعمودی",
DlgCellVerAlignNotSet : "<تعیننشده>",
DlgCellVerAlignTop : "بالا",
DlgCellVerAlignMiddle : "میان",
DlgCellVerAlignBottom : "پائین",
DlgCellVerAlignBaseline : "خطپایه",
DlgCellRowSpan : "گستردگی سطرها",
DlgCellCollSpan : "گستردگی ستونها",
DlgCellBackColor : "رنگ پسزمینه",
DlgCellBorderColor : "رنگ لبه",
DlgCellBtnSelect : "برگزینید...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "جستجو و جایگزینی",
// Find Dialog
DlgFindTitle : "یافتن",
DlgFindFindBtn : "یافتن",
DlgFindNotFoundMsg : "متن موردنظر یافت نشد.",
// Replace Dialog
DlgReplaceTitle : "جایگزینی",
DlgReplaceFindLbl : "چهچیز را مییابید:",
DlgReplaceReplaceLbl : "جایگزینی با:",
DlgReplaceCaseChk : "همسانی در بزرگی و کوچکی نویسهها",
DlgReplaceReplaceBtn : "جایگزینی",
DlgReplaceReplAllBtn : "جایگزینی همهٴ یافتهها",
DlgReplaceWordChk : "همسانی با واژهٴ کامل",
// Paste Operations / Dialog
PasteErrorCut : "تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحهکلید این کار را انجام دهید (Ctrl+X).",
PasteErrorCopy : "تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپیکردن را انجام دهد. لطفا با دکمههای صفحهکلید این کار را انجام دهید (Ctrl+C).",
PasteAsText : "چسباندن به عنوان متن ِساده",
PasteFromWord : "چسباندن از Word",
DlgPasteMsg2 : "لطفا متن را با کلیدهای (<STRONG>Ctrl+V</STRONG>) در این جعبهٴ متنی بچسبانید و <STRONG>پذیرش</STRONG> را بزنید.",
DlgPasteSec : "به خاطر تنظیمات امنیتی مرورگر شما، ویرایشگر نمیتواند دسترسی مستقیم به دادههای clipboard داشته باشد. شما باید دوباره آنرا در این پنجره بچسبانید.",
DlgPasteIgnoreFont : "چشمپوشی از تعاریف نوع قلم",
DlgPasteRemoveStyles : "چشمپوشی از تعاریف سبک (style)",
// Color Picker
ColorAutomatic : "خودکار",
ColorMoreColors : "رنگهای بیشتر...",
// Document Properties
DocProps : "ویژگیهای سند",
// Anchor Dialog
DlgAnchorTitle : "ویژگیهای لنگر",
DlgAnchorName : "نام لنگر",
DlgAnchorErrorName : "لطفا نام لنگر را بنویسید",
// Speller Pages Dialog
DlgSpellNotInDic : "در واژهنامه یافت نشد",
DlgSpellChangeTo : "تغییر به",
DlgSpellBtnIgnore : "چشمپوشی",
DlgSpellBtnIgnoreAll : "چشمپوشی همه",
DlgSpellBtnReplace : "جایگزینی",
DlgSpellBtnReplaceAll : "جایگزینی همه",
DlgSpellBtnUndo : "واچینش",
DlgSpellNoSuggestions : "- پیشنهادی نیست -",
DlgSpellProgress : "بررسی املا در حال انجام...",
DlgSpellNoMispell : "بررسی املا انجام شد. هیچ غلطاملائی یافت نشد",
DlgSpellNoChanges : "بررسی املا انجام شد. هیچ واژهای تغییر نیافت",
DlgSpellOneChange : "بررسی املا انجام شد. یک واژه تغییر یافت",
DlgSpellManyChanges : "بررسی املا انجام شد. %1 واژه تغییر یافت",
IeSpellDownload : "بررسیکنندهٴ املا نصب نشده است. آیا میخواهید آن را هماکنون دریافت کنید؟",
// Button Dialog
DlgButtonText : "متن (مقدار)",
DlgButtonType : "نوع",
DlgButtonTypeBtn : "دکمه",
DlgButtonTypeSbm : "Submit",
DlgButtonTypeRst : "بازنشانی (Reset)",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "نام",
DlgCheckboxValue : "مقدار",
DlgCheckboxSelected : "برگزیده",
// Form Dialog
DlgFormName : "نام",
DlgFormAction : "رویداد",
DlgFormMethod : "متد",
// Select Field Dialog
DlgSelectName : "نام",
DlgSelectValue : "مقدار",
DlgSelectSize : "اندازه",
DlgSelectLines : "خطوط",
DlgSelectChkMulti : "گزینش چندگانه فراهم باشد",
DlgSelectOpAvail : "گزینههای دردسترس",
DlgSelectOpText : "متن",
DlgSelectOpValue : "مقدار",
DlgSelectBtnAdd : "افزودن",
DlgSelectBtnModify : "ویرایش",
DlgSelectBtnUp : "بالا",
DlgSelectBtnDown : "پائین",
DlgSelectBtnSetValue : "تنظیم به عنوان مقدار ِبرگزیده",
DlgSelectBtnDelete : "پاککردن",
// Textarea Dialog
DlgTextareaName : "نام",
DlgTextareaCols : "ستونها",
DlgTextareaRows : "سطرها",
// Text Field Dialog
DlgTextName : "نام",
DlgTextValue : "مقدار",
DlgTextCharWidth : "پهنای نویسه",
DlgTextMaxChars : "بیشینهٴ نویسهها",
DlgTextType : "نوع",
DlgTextTypeText : "متن",
DlgTextTypePass : "گذرواژه",
// Hidden Field Dialog
DlgHiddenName : "نام",
DlgHiddenValue : "مقدار",
// Bulleted List Dialog
BulletedListProp : "ویژگیهای فهرست نقطهای",
NumberedListProp : "ویژگیهای فهرست شمارهدار",
DlgLstStart : "آغاز",
DlgLstType : "نوع",
DlgLstTypeCircle : "دایره",
DlgLstTypeDisc : "قرص",
DlgLstTypeSquare : "چهارگوش",
DlgLstTypeNumbers : "شمارهها (1، 2، 3)",
DlgLstTypeLCase : "نویسههای کوچک (a، b، c)",
DlgLstTypeUCase : "نویسههای بزرگ (A، B، C)",
DlgLstTypeSRoman : "شمارگان رومی کوچک (i، ii، iii)",
DlgLstTypeLRoman : "شمارگان رومی بزرگ (I، II، III)",
// Document Properties Dialog
DlgDocGeneralTab : "عمومی",
DlgDocBackTab : "پسزمینه",
DlgDocColorsTab : "رنگها و حاشیهها",
DlgDocMetaTab : "فراداده",
DlgDocPageTitle : "عنوان صفحه",
DlgDocLangDir : "جهت زبان",
DlgDocLangDirLTR : "چپ به راست (LTR(",
DlgDocLangDirRTL : "راست به چپ (RTL(",
DlgDocLangCode : "کد زبان",
DlgDocCharSet : "رمزگذاری نویسهگان",
DlgDocCharSetCE : "اروپای مرکزی",
DlgDocCharSetCT : "چینی رسمی (Big5)",
DlgDocCharSetCR : "سیریلیک",
DlgDocCharSetGR : "یونانی",
DlgDocCharSetJP : "ژاپنی",
DlgDocCharSetKR : "کرهای",
DlgDocCharSetTR : "ترکی",
DlgDocCharSetUN : "یونیکُد (UTF-8)",
DlgDocCharSetWE : "اروپای غربی",
DlgDocCharSetOther : "رمزگذاری نویسهگان دیگر",
DlgDocDocType : "عنوان نوع سند",
DlgDocDocTypeOther : "عنوان نوع سند دیگر",
DlgDocIncXHTML : "شامل تعاریف XHTML",
DlgDocBgColor : "رنگ پسزمینه",
DlgDocBgImage : "URL تصویر پسزمینه",
DlgDocBgNoScroll : "پسزمینهٴ پیمایشناپذیر",
DlgDocCText : "متن",
DlgDocCLink : "پیوند",
DlgDocCVisited : "پیوند مشاهدهشده",
DlgDocCActive : "پیوند فعال",
DlgDocMargins : "حاشیههای صفحه",
DlgDocMaTop : "بالا",
DlgDocMaLeft : "چپ",
DlgDocMaRight : "راست",
DlgDocMaBottom : "پایین",
DlgDocMeIndex : "کلیدواژگان نمایهگذاری سند (با کاما جدا شوند)",
DlgDocMeDescr : "توصیف سند",
DlgDocMeAuthor : "نویسنده",
DlgDocMeCopy : "کپیرایت",
DlgDocPreview : "پیشنمایش",
// Templates Dialog
Templates : "الگوها",
DlgTemplatesTitle : "الگوهای محتویات",
DlgTemplatesSelMsg : "لطفا الگوی موردنظر را برای بازکردن در ویرایشگر برگزینید<br>(محتویات کنونی از دست خواهند رفت):",
DlgTemplatesLoading : "بارگذاری فهرست الگوها. لطفا صبر کنید...",
DlgTemplatesNoTpl : "(الگوئی تعریف نشده است)",
DlgTemplatesReplace : "محتویات کنونی جایگزین شوند",
// About Dialog
DlgAboutAboutTab : "درباره",
DlgAboutBrowserInfoTab : "اطلاعات مرورگر",
DlgAboutLicenseTab : "گواهینامه",
DlgAboutVersion : "نگارش",
DlgAboutInfo : "برای آگاهی بیشتر به این نشانی بروید",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* French language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Masquer Outils",
ToolbarExpand : "Afficher Outils",
// Toolbar Items and Context Menu
Save : "Enregistrer",
NewPage : "Nouvelle page",
Preview : "Prévisualisation",
Cut : "Couper",
Copy : "Copier",
Paste : "Coller",
PasteText : "Coller comme texte",
PasteWord : "Coller de Word",
Print : "Imprimer",
SelectAll : "Tout sélectionner",
RemoveFormat : "Supprimer le format",
InsertLinkLbl : "Lien",
InsertLink : "Insérer/modifier le lien",
RemoveLink : "Supprimer le lien",
VisitLink : "Suivre le lien",
Anchor : "Insérer/modifier l'ancre",
AnchorDelete : "Supprimer l'ancre",
InsertImageLbl : "Image",
InsertImage : "Insérer/modifier l'image",
InsertFlashLbl : "Animation Flash",
InsertFlash : "Insérer/modifier l'animation Flash",
InsertTableLbl : "Tableau",
InsertTable : "Insérer/modifier le tableau",
InsertLineLbl : "Séparateur",
InsertLine : "Insérer un séparateur",
InsertSpecialCharLbl: "Caractères spéciaux",
InsertSpecialChar : "Insérer un caractère spécial",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Insérer un Smiley",
About : "A propos de FCKeditor",
Bold : "Gras",
Italic : "Italique",
Underline : "Souligné",
StrikeThrough : "Barré",
Subscript : "Indice",
Superscript : "Exposant",
LeftJustify : "Aligné à gauche",
CenterJustify : "Centré",
RightJustify : "Aligné à Droite",
BlockJustify : "Texte justifié",
DecreaseIndent : "Diminuer le retrait",
IncreaseIndent : "Augmenter le retrait",
Blockquote : "Citation",
CreateDiv : "Créer Balise Div",
EditDiv : "Modifier Balise Div",
DeleteDiv : "Supprimer Balise Div",
Undo : "Annuler",
Redo : "Refaire",
NumberedListLbl : "Liste numérotée",
NumberedList : "Insérer/supprimer la liste numérotée",
BulletedListLbl : "Liste à puces",
BulletedList : "Insérer/supprimer la liste à puces",
ShowTableBorders : "Afficher les bordures du tableau",
ShowDetails : "Afficher les caractères invisibles",
Style : "Style",
FontFormat : "Format",
Font : "Police",
FontSize : "Taille",
TextColor : "Couleur de caractère",
BGColor : "Couleur de fond",
Source : "Source",
Find : "Chercher",
Replace : "Remplacer",
SpellCheck : "Orthographe",
UniversalKeyboard : "Clavier universel",
PageBreakLbl : "Saut de page",
PageBreak : "Insérer un saut de page",
Form : "Formulaire",
Checkbox : "Case à cocher",
RadioButton : "Bouton radio",
TextField : "Champ texte",
Textarea : "Zone de texte",
HiddenField : "Champ caché",
Button : "Bouton",
SelectionField : "Liste/menu",
ImageButton : "Bouton image",
FitWindow : "Edition pleine page",
ShowBlocks : "Afficher les blocs",
// Context Menu
EditLink : "Modifier le lien",
CellCM : "Cellule",
RowCM : "Ligne",
ColumnCM : "Colonne",
InsertRowAfter : "Insérer une ligne après",
InsertRowBefore : "Insérer une ligne avant",
DeleteRows : "Supprimer des lignes",
InsertColumnAfter : "Insérer une colonne après",
InsertColumnBefore : "Insérer une colonne avant",
DeleteColumns : "Supprimer des colonnes",
InsertCellAfter : "Insérer une cellule après",
InsertCellBefore : "Insérer une cellule avant",
DeleteCells : "Supprimer des cellules",
MergeCells : "Fusionner les cellules",
MergeRight : "Fusionner à droite",
MergeDown : "Fusionner en bas",
HorizontalSplitCell : "Scinder la cellule horizontalement",
VerticalSplitCell : "Scinder la cellule verticalement",
TableDelete : "Supprimer le tableau",
CellProperties : "Propriétés de cellule",
TableProperties : "Propriétés du tableau",
ImageProperties : "Propriétés de l'image",
FlashProperties : "Propriétés de l'animation Flash",
AnchorProp : "Propriétés de l'ancre",
ButtonProp : "Propriétés du bouton",
CheckboxProp : "Propriétés de la case à cocher",
HiddenFieldProp : "Propriétés du champ caché",
RadioButtonProp : "Propriétés du bouton radio",
ImageButtonProp : "Propriétés du bouton image",
TextFieldProp : "Propriétés du champ texte",
SelectionFieldProp : "Propriétés de la liste/du menu",
TextareaProp : "Propriétés de la zone de texte",
FormProp : "Propriétés du formulaire",
FontFormats : "Normal;Formaté;Adresse;En-tête 1;En-tête 2;En-tête 3;En-tête 4;En-tête 5;En-tête 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Calcul XHTML. Veuillez patienter...",
Done : "Terminé",
PasteWordConfirm : "Le texte à coller semble provenir de Word. Désirez-vous le nettoyer avant de coller?",
NotCompatiblePaste : "Cette commande nécessite Internet Explorer version 5.5 minimum. Souhaitez-vous coller sans nettoyage?",
UnknownToolbarItem : "Elément de barre d'outil inconnu \"%1\"",
UnknownCommand : "Nom de commande inconnu \"%1\"",
NotImplemented : "Commande non encore écrite",
UnknownToolbarSet : "La barre d'outils \"%1\" n'existe pas",
NoActiveX : "Les paramètres de sécurité de votre navigateur peuvent limiter quelques fonctionnalités de l'éditeur. Veuillez activer l'option \"Exécuter les contrôles ActiveX et les plug-ins\". Il se peut que vous rencontriez des erreurs et remarquiez quelques limitations.",
BrowseServerBlocked : "Le navigateur n'a pas pu être ouvert. Assurez-vous que les bloqueurs de popups soient désactivés.",
DialogBlocked : "La fenêtre de dialogue n'a pas pu s'ouvrir. Assurez-vous que les bloqueurs de popups soient désactivés.",
VisitLinkBlocked : "Impossible d'ouvrir une nouvelle fenêtre. Assurez-vous que les bloqueurs de popups soient désactivés.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Annuler",
DlgBtnClose : "Fermer",
DlgBtnBrowseServer : "Parcourir le serveur",
DlgAdvancedTag : "Avancé",
DlgOpOther : "<Autre>",
DlgInfoTab : "Info",
DlgAlertUrl : "Veuillez saisir l'URL",
// General Dialogs Labels
DlgGenNotSet : "<Par défaut>",
DlgGenId : "Id",
DlgGenLangDir : "Sens d'écriture",
DlgGenLangDirLtr : "De gauche à droite (LTR)",
DlgGenLangDirRtl : "De droite à gauche (RTL)",
DlgGenLangCode : "Code langue",
DlgGenAccessKey : "Equivalent clavier",
DlgGenName : "Nom",
DlgGenTabIndex : "Ordre de tabulation",
DlgGenLongDescr : "URL de description longue",
DlgGenClass : "Classes de feuilles de style",
DlgGenTitle : "Titre",
DlgGenContType : "Type de contenu",
DlgGenLinkCharset : "Encodage de caractère",
DlgGenStyle : "Style",
// Image Dialog
DlgImgTitle : "Propriétés de l'image",
DlgImgInfoTab : "Informations sur l'image",
DlgImgBtnUpload : "Envoyer sur le serveur",
DlgImgURL : "URL",
DlgImgUpload : "Télécharger",
DlgImgAlt : "Texte de remplacement",
DlgImgWidth : "Largeur",
DlgImgHeight : "Hauteur",
DlgImgLockRatio : "Garder les proportions",
DlgBtnResetSize : "Taille originale",
DlgImgBorder : "Bordure",
DlgImgHSpace : "Espacement horizontal",
DlgImgVSpace : "Espacement vertical",
DlgImgAlign : "Alignement",
DlgImgAlignLeft : "Gauche",
DlgImgAlignAbsBottom: "Abs Bas",
DlgImgAlignAbsMiddle: "Abs Milieu",
DlgImgAlignBaseline : "Bas du texte",
DlgImgAlignBottom : "Bas",
DlgImgAlignMiddle : "Milieu",
DlgImgAlignRight : "Droite",
DlgImgAlignTextTop : "Haut du texte",
DlgImgAlignTop : "Haut",
DlgImgPreview : "Prévisualisation",
DlgImgAlertUrl : "Veuillez saisir l'URL de l'image",
DlgImgLinkTab : "Lien",
// Flash Dialog
DlgFlashTitle : "Propriétés de l'animation Flash",
DlgFlashChkPlay : "Lecture automatique",
DlgFlashChkLoop : "Boucle",
DlgFlashChkMenu : "Activer le menu Flash",
DlgFlashScale : "Affichage",
DlgFlashScaleAll : "Par défaut (tout montrer)",
DlgFlashScaleNoBorder : "Sans bordure",
DlgFlashScaleFit : "Ajuster aux dimensions",
// Link Dialog
DlgLnkWindowTitle : "Propriétés du lien",
DlgLnkInfoTab : "Informations sur le lien",
DlgLnkTargetTab : "Destination",
DlgLnkType : "Type de lien",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Ancre dans cette page",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocole",
DlgLnkProtoOther : "<autre>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Sélectionner une ancre",
DlgLnkAnchorByName : "Par nom",
DlgLnkAnchorById : "Par id",
DlgLnkNoAnchors : "(Pas d'ancre disponible dans le document)",
DlgLnkEMail : "Adresse E-Mail",
DlgLnkEMailSubject : "Sujet du message",
DlgLnkEMailBody : "Corps du message",
DlgLnkUpload : "Télécharger",
DlgLnkBtnUpload : "Envoyer sur le serveur",
DlgLnkTarget : "Destination",
DlgLnkTargetFrame : "<Cadre>",
DlgLnkTargetPopup : "<fenêtre popup>",
DlgLnkTargetBlank : "Nouvelle fenêtre (_blank)",
DlgLnkTargetParent : "Fenêtre mère (_parent)",
DlgLnkTargetSelf : "Même fenêtre (_self)",
DlgLnkTargetTop : "Fenêtre supérieure (_top)",
DlgLnkTargetFrameName : "Nom du cadre de destination",
DlgLnkPopWinName : "Nom de la fenêtre popup",
DlgLnkPopWinFeat : "Caractéristiques de la fenêtre popup",
DlgLnkPopResize : "Taille modifiable",
DlgLnkPopLocation : "Barre d'adresses",
DlgLnkPopMenu : "Barre de menu",
DlgLnkPopScroll : "Barres de défilement",
DlgLnkPopStatus : "Barre d'état",
DlgLnkPopToolbar : "Barre d'outils",
DlgLnkPopFullScrn : "Plein écran (IE)",
DlgLnkPopDependent : "Dépendante (Netscape)",
DlgLnkPopWidth : "Largeur",
DlgLnkPopHeight : "Hauteur",
DlgLnkPopLeft : "Position à partir de la gauche",
DlgLnkPopTop : "Position à partir du haut",
DlnLnkMsgNoUrl : "Veuillez saisir l'URL",
DlnLnkMsgNoEMail : "Veuillez saisir l'adresse e-mail",
DlnLnkMsgNoAnchor : "Veuillez sélectionner une ancre",
DlnLnkMsgInvPopName : "Le nom de la fenêtre popup doit commencer par une lettre et ne doit pas contenir d'espace",
// Color Dialog
DlgColorTitle : "Sélectionner",
DlgColorBtnClear : "Effacer",
DlgColorHighlight : "Prévisualisation",
DlgColorSelected : "Sélectionné",
// Smiley Dialog
DlgSmileyTitle : "Insérer un Smiley",
// Special Character Dialog
DlgSpecialCharTitle : "Insérer un caractère spécial",
// Table Dialog
DlgTableTitle : "Propriétés du tableau",
DlgTableRows : "Lignes",
DlgTableColumns : "Colonnes",
DlgTableBorder : "Bordure",
DlgTableAlign : "Alignement",
DlgTableAlignNotSet : "<Par défaut>",
DlgTableAlignLeft : "Gauche",
DlgTableAlignCenter : "Centré",
DlgTableAlignRight : "Droite",
DlgTableWidth : "Largeur",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "pourcentage",
DlgTableHeight : "Hauteur",
DlgTableCellSpace : "Espacement",
DlgTableCellPad : "Contour",
DlgTableCaption : "Titre",
DlgTableSummary : "Résumé",
// Table Cell Dialog
DlgCellTitle : "Propriétés de la cellule",
DlgCellWidth : "Largeur",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "pourcentage",
DlgCellHeight : "Hauteur",
DlgCellWordWrap : "Retour à la ligne",
DlgCellWordWrapNotSet : "<Par défaut>",
DlgCellWordWrapYes : "Oui",
DlgCellWordWrapNo : "Non",
DlgCellHorAlign : "Alignement horizontal",
DlgCellHorAlignNotSet : "<Par défaut>",
DlgCellHorAlignLeft : "Gauche",
DlgCellHorAlignCenter : "Centré",
DlgCellHorAlignRight: "Droite",
DlgCellVerAlign : "Alignement vertical",
DlgCellVerAlignNotSet : "<Par défaut>",
DlgCellVerAlignTop : "Haut",
DlgCellVerAlignMiddle : "Milieu",
DlgCellVerAlignBottom : "Bas",
DlgCellVerAlignBaseline : "Bas du texte",
DlgCellRowSpan : "Lignes fusionnées",
DlgCellCollSpan : "Colonnes fusionnées",
DlgCellBackColor : "Fond",
DlgCellBorderColor : "Bordure",
DlgCellBtnSelect : "Choisir...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Chercher et Remplacer",
// Find Dialog
DlgFindTitle : "Chercher",
DlgFindFindBtn : "Chercher",
DlgFindNotFoundMsg : "Le texte indiqué est introuvable.",
// Replace Dialog
DlgReplaceTitle : "Remplacer",
DlgReplaceFindLbl : "Rechercher:",
DlgReplaceReplaceLbl : "Remplacer par:",
DlgReplaceCaseChk : "Respecter la casse",
DlgReplaceReplaceBtn : "Remplacer",
DlgReplaceReplAllBtn : "Tout remplacer",
DlgReplaceWordChk : "Mot entier",
// Paste Operations / Dialog
PasteErrorCut : "Les paramètres de sécurité de votre navigateur empêchent l'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl+X).",
PasteErrorCopy : "Les paramètres de sécurité de votre navigateur empêchent l'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl+C).",
PasteAsText : "Coller comme texte",
PasteFromWord : "Coller à partir de Word",
DlgPasteMsg2 : "Veuillez coller dans la zone ci-dessous en utilisant le clavier (<STRONG>Ctrl+V</STRONG>) et cliquez sur <STRONG>OK</STRONG>.",
DlgPasteSec : "A cause des paramètres de sécurité de votre navigateur, l'éditeur ne peut accéder au presse-papier directement. Vous devez coller à nouveau le contenu dans cette fenêtre.",
DlgPasteIgnoreFont : "Ignorer les polices de caractères",
DlgPasteRemoveStyles : "Supprimer les styles",
// Color Picker
ColorAutomatic : "Automatique",
ColorMoreColors : "Plus de couleurs...",
// Document Properties
DocProps : "Propriétés du document",
// Anchor Dialog
DlgAnchorTitle : "Propriétés de l'ancre",
DlgAnchorName : "Nom de l'ancre",
DlgAnchorErrorName : "Veuillez saisir le nom de l'ancre",
// Speller Pages Dialog
DlgSpellNotInDic : "Pas dans le dictionnaire",
DlgSpellChangeTo : "Changer en",
DlgSpellBtnIgnore : "Ignorer",
DlgSpellBtnIgnoreAll : "Ignorer tout",
DlgSpellBtnReplace : "Remplacer",
DlgSpellBtnReplaceAll : "Remplacer tout",
DlgSpellBtnUndo : "Annuler",
DlgSpellNoSuggestions : "- Aucune suggestion -",
DlgSpellProgress : "Vérification d'orthographe en cours...",
DlgSpellNoMispell : "Vérification d'orthographe terminée: Aucune erreur trouvée",
DlgSpellNoChanges : "Vérification d'orthographe terminée: Pas de modifications",
DlgSpellOneChange : "Vérification d'orthographe terminée: Un mot modifié",
DlgSpellManyChanges : "Vérification d'orthographe terminée: %1 mots modifiés",
IeSpellDownload : "Le Correcteur n'est pas installé. Souhaitez-vous le télécharger maintenant?",
// Button Dialog
DlgButtonText : "Texte (valeur)",
DlgButtonType : "Type",
DlgButtonTypeBtn : "Bouton",
DlgButtonTypeSbm : "Envoyer",
DlgButtonTypeRst : "Réinitialiser",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nom",
DlgCheckboxValue : "Valeur",
DlgCheckboxSelected : "Sélectionné",
// Form Dialog
DlgFormName : "Nom",
DlgFormAction : "Action",
DlgFormMethod : "Méthode",
// Select Field Dialog
DlgSelectName : "Nom",
DlgSelectValue : "Valeur",
DlgSelectSize : "Taille",
DlgSelectLines : "lignes",
DlgSelectChkMulti : "Sélection multiple",
DlgSelectOpAvail : "Options disponibles",
DlgSelectOpText : "Texte",
DlgSelectOpValue : "Valeur",
DlgSelectBtnAdd : "Ajouter",
DlgSelectBtnModify : "Modifier",
DlgSelectBtnUp : "Monter",
DlgSelectBtnDown : "Descendre",
DlgSelectBtnSetValue : "Valeur sélectionnée",
DlgSelectBtnDelete : "Supprimer",
// Textarea Dialog
DlgTextareaName : "Nom",
DlgTextareaCols : "Colonnes",
DlgTextareaRows : "Lignes",
// Text Field Dialog
DlgTextName : "Nom",
DlgTextValue : "Valeur",
DlgTextCharWidth : "Largeur en caractères",
DlgTextMaxChars : "Nombre maximum de caractères",
DlgTextType : "Type",
DlgTextTypeText : "Texte",
DlgTextTypePass : "Mot de passe",
// Hidden Field Dialog
DlgHiddenName : "Nom",
DlgHiddenValue : "Valeur",
// Bulleted List Dialog
BulletedListProp : "Propriétés de liste à puces",
NumberedListProp : "Propriétés de liste numérotée",
DlgLstStart : "Début",
DlgLstType : "Type",
DlgLstTypeCircle : "Cercle",
DlgLstTypeDisc : "Disque",
DlgLstTypeSquare : "Carré",
DlgLstTypeNumbers : "Nombres (1, 2, 3)",
DlgLstTypeLCase : "Lettres minuscules (a, b, c)",
DlgLstTypeUCase : "Lettres majuscules (A, B, C)",
DlgLstTypeSRoman : "Chiffres romains minuscules (i, ii, iii)",
DlgLstTypeLRoman : "Chiffres romains majuscules (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Général",
DlgDocBackTab : "Fond",
DlgDocColorsTab : "Couleurs et marges",
DlgDocMetaTab : "Métadonnées",
DlgDocPageTitle : "Titre de la page",
DlgDocLangDir : "Sens d'écriture",
DlgDocLangDirLTR : "De la gauche vers la droite (LTR)",
DlgDocLangDirRTL : "De la droite vers la gauche (RTL)",
DlgDocLangCode : "Code langue",
DlgDocCharSet : "Encodage de caractère",
DlgDocCharSetCE : "Europe Centrale",
DlgDocCharSetCT : "Chinois Traditionnel (Big5)",
DlgDocCharSetCR : "Cyrillique",
DlgDocCharSetGR : "Grec",
DlgDocCharSetJP : "Japonais",
DlgDocCharSetKR : "Coréen",
DlgDocCharSetTR : "Turc",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Occidental",
DlgDocCharSetOther : "Autre encodage de caractère",
DlgDocDocType : "Type de document",
DlgDocDocTypeOther : "Autre type de document",
DlgDocIncXHTML : "Inclure les déclarations XHTML",
DlgDocBgColor : "Couleur de fond",
DlgDocBgImage : "Image de fond",
DlgDocBgNoScroll : "Image fixe sans défilement",
DlgDocCText : "Texte",
DlgDocCLink : "Lien",
DlgDocCVisited : "Lien visité",
DlgDocCActive : "Lien activé",
DlgDocMargins : "Marges",
DlgDocMaTop : "Haut",
DlgDocMaLeft : "Gauche",
DlgDocMaRight : "Droite",
DlgDocMaBottom : "Bas",
DlgDocMeIndex : "Mots-clés (séparés par des virgules)",
DlgDocMeDescr : "Description",
DlgDocMeAuthor : "Auteur",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Prévisualisation",
// Templates Dialog
Templates : "Modèles",
DlgTemplatesTitle : "Modèles de contenu",
DlgTemplatesSelMsg : "Veuillez sélectionner le modèle à ouvrir dans l'éditeur<br>(le contenu actuel sera remplacé):",
DlgTemplatesLoading : "Chargement de la liste des modèles. Veuillez patienter...",
DlgTemplatesNoTpl : "(Aucun modèle disponible)",
DlgTemplatesReplace : "Remplacer tout le contenu",
// About Dialog
DlgAboutAboutTab : "A propos de",
DlgAboutBrowserInfoTab : "Navigateur",
DlgAboutLicenseTab : "Licence",
DlgAboutVersion : "Version",
DlgAboutInfo : "Pour plus d'informations, aller à",
// Div Dialog
DlgDivGeneralTab : "Général",
DlgDivAdvancedTab : "Avancé",
DlgDivStyle : "Style",
DlgDivInlineStyle : "Attribut Style"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Faroese language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Fjal amboðsbjálkan",
ToolbarExpand : "Vís amboðsbjálkan",
// Toolbar Items and Context Menu
Save : "Goym",
NewPage : "Nýggj síða",
Preview : "Frumsýning",
Cut : "Kvett",
Copy : "Avrita",
Paste : "Innrita",
PasteText : "Innrita reinan tekst",
PasteWord : "Innrita frá Word",
Print : "Prenta",
SelectAll : "Markera alt",
RemoveFormat : "Strika sniðgeving",
InsertLinkLbl : "Tilknýti",
InsertLink : "Ger/broyt tilknýti",
RemoveLink : "Strika tilknýti",
VisitLink : "Opna tilknýti",
Anchor : "Ger/broyt marknastein",
AnchorDelete : "Strika marknastein",
InsertImageLbl : "Myndir",
InsertImage : "Set inn/broyt mynd",
InsertFlashLbl : "Flash",
InsertFlash : "Set inn/broyt Flash",
InsertTableLbl : "Tabell",
InsertTable : "Set inn/broyt tabell",
InsertLineLbl : "Linja",
InsertLine : "Ger vatnrætta linju",
InsertSpecialCharLbl: "Sertekn",
InsertSpecialChar : "Set inn sertekn",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Set inn Smiley",
About : "Um FCKeditor",
Bold : "Feit skrift",
Italic : "Skráskrift",
Underline : "Undirstrikað",
StrikeThrough : "Yvirstrikað",
Subscript : "Lækkað skrift",
Superscript : "Hækkað skrift",
LeftJustify : "Vinstrasett",
CenterJustify : "Miðsett",
RightJustify : "Høgrasett",
BlockJustify : "Javnir tekstkantar",
DecreaseIndent : "Minka reglubrotarinntriv",
IncreaseIndent : "Økja reglubrotarinntriv",
Blockquote : "Blockquote",
CreateDiv : "Ger DIV øki",
EditDiv : "Broyt DIV øki",
DeleteDiv : "Strika DIV øki",
Undo : "Angra",
Redo : "Vend aftur",
NumberedListLbl : "Talmerktur listi",
NumberedList : "Ger/strika talmerktan lista",
BulletedListLbl : "Punktmerktur listi",
BulletedList : "Ger/strika punktmerktan lista",
ShowTableBorders : "Vís tabellbordar",
ShowDetails : "Vís í smálutum",
Style : "Typografi",
FontFormat : "Skriftsnið",
Font : "Skrift",
FontSize : "Skriftstødd",
TextColor : "Tekstlitur",
BGColor : "Bakgrundslitur",
Source : "Kelda",
Find : "Leita",
Replace : "Yvirskriva",
SpellCheck : "Kanna stavseting",
UniversalKeyboard : "Knappaborð",
PageBreakLbl : "Síðuskift",
PageBreak : "Ger síðuskift",
Form : "Formur",
Checkbox : "Flugubein",
RadioButton : "Radioknøttur",
TextField : "Tekstteigur",
Textarea : "Tekstumráði",
HiddenField : "Fjaldur teigur",
Button : "Knøttur",
SelectionField : "Valskrá",
ImageButton : "Myndaknøttur",
FitWindow : "Set tekstviðgera til fulla stødd",
ShowBlocks : "Vís blokkar",
// Context Menu
EditLink : "Broyt tilknýti",
CellCM : "Meski",
RowCM : "Rað",
ColumnCM : "Kolonna",
InsertRowAfter : "Set rað inn aftaná",
InsertRowBefore : "Set rað inn áðrenn",
DeleteRows : "Strika røðir",
InsertColumnAfter : "Set kolonnu inn aftaná",
InsertColumnBefore : "Set kolonnu inn áðrenn",
DeleteColumns : "Strika kolonnur",
InsertCellAfter : "Set meska inn aftaná",
InsertCellBefore : "Set meska inn áðrenn",
DeleteCells : "Strika meskar",
MergeCells : "Flætta meskar",
MergeRight : "Flætta meskar til høgru",
MergeDown : "Flætta saman",
HorizontalSplitCell : "Kloyv meska vatnrætt",
VerticalSplitCell : "Kloyv meska loddrætt",
TableDelete : "Strika tabell",
CellProperties : "Meskueginleikar",
TableProperties : "Tabelleginleikar",
ImageProperties : "Myndaeginleikar",
FlashProperties : "Flash eginleikar",
AnchorProp : "Eginleikar fyri marknastein",
ButtonProp : "Eginleikar fyri knøtt",
CheckboxProp : "Eginleikar fyri flugubein",
HiddenFieldProp : "Eginleikar fyri fjaldan teig",
RadioButtonProp : "Eginleikar fyri radioknøtt",
ImageButtonProp : "Eginleikar fyri myndaknøtt",
TextFieldProp : "Eginleikar fyri tekstteig",
SelectionFieldProp : "Eginleikar fyri valskrá",
TextareaProp : "Eginleikar fyri tekstumráði",
FormProp : "Eginleikar fyri Form",
FontFormats : "Vanligt;Sniðgivið;Adressa;Yvirskrift 1;Yvirskrift 2;Yvirskrift 3;Yvirskrift 4;Yvirskrift 5;Yvirskrift 6",
// Alerts and Messages
ProcessingXHTML : "XHTML verður viðgjørt. Bíða við...",
Done : "Liðugt",
PasteWordConfirm : "Teksturin, royndur verður at seta inn, tykist at stava frá Word. Vilt tú reinsa tekstin, áðrenn hann verður settur inn?",
NotCompatiblePaste : "Hetta er bert tøkt í Internet Explorer 5.5 og nýggjari. Vilt tú seta tekstin inn kortini - óreinsaðan?",
UnknownToolbarItem : "Ókendur lutur í amboðsbjálkanum \"%1\"",
UnknownCommand : "Ókend kommando \"%1\"",
NotImplemented : "Hetta er ikki tøkt í hesi útgávuni",
UnknownToolbarSet : "Amboðsbjálkin \"%1\" finst ikki",
NoActiveX : "Trygdaruppsetingin í alnótskaganum kann sum er avmarka onkrar hentleikar í tekstviðgeranum. Tú mást loyva møguleikanum \"Run/Kør ActiveX controls and plug-ins\". Tú kanst uppliva feilir og ávaringar um tvørrandi hentleikar.",
BrowseServerBlocked : "Ambætarakagin kundi ikki opnast. Tryggja tær, at allar pop-up forðingar eru óvirknar.",
DialogBlocked : "Tað eyðnaðist ikki at opna samskiftisrútin. Tryggja tær, at allar pop-up forðingar eru óvirknar.",
VisitLinkBlocked : "Tað eyðnaðist ikki at opna nýggjan rút. Tryggja tær, at allar pop-up forðingar eru óvirknar.",
// Dialogs
DlgBtnOK : "Góðkent",
DlgBtnCancel : "Avlýst",
DlgBtnClose : "Lat aftur",
DlgBtnBrowseServer : "Ambætarakagi",
DlgAdvancedTag : "Fjølbroytt",
DlgOpOther : "<Annað>",
DlgInfoTab : "Upplýsingar",
DlgAlertUrl : "Vinarliga veit ein URL",
// General Dialogs Labels
DlgGenNotSet : "<ikki sett>",
DlgGenId : "Id",
DlgGenLangDir : "Tekstkós",
DlgGenLangDirLtr : "Frá vinstru til høgru (LTR)",
DlgGenLangDirRtl : "Frá høgru til vinstru (RTL)",
DlgGenLangCode : "Málkoda",
DlgGenAccessKey : "Snarvegisknappur",
DlgGenName : "Navn",
DlgGenTabIndex : "Inntriv indeks",
DlgGenLongDescr : "Víðkað URL frágreiðing",
DlgGenClass : "Typografi klassar",
DlgGenTitle : "Vegleiðandi heiti",
DlgGenContType : "Vegleiðandi innihaldsslag",
DlgGenLinkCharset : "Atknýtt teknsett",
DlgGenStyle : "Typografi",
// Image Dialog
DlgImgTitle : "Myndaeginleikar",
DlgImgInfoTab : "Myndaupplýsingar",
DlgImgBtnUpload : "Send til ambætaran",
DlgImgURL : "URL",
DlgImgUpload : "Send",
DlgImgAlt : "Alternativur tekstur",
DlgImgWidth : "Breidd",
DlgImgHeight : "Hædd",
DlgImgLockRatio : "Læs lutfallið",
DlgBtnResetSize : "Upprunastødd",
DlgImgBorder : "Bordi",
DlgImgHSpace : "Høgri breddi",
DlgImgVSpace : "Vinstri breddi",
DlgImgAlign : "Justering",
DlgImgAlignLeft : "Vinstra",
DlgImgAlignAbsBottom: "Abs botnur",
DlgImgAlignAbsMiddle: "Abs miðja",
DlgImgAlignBaseline : "Basislinja",
DlgImgAlignBottom : "Botnur",
DlgImgAlignMiddle : "Miðja",
DlgImgAlignRight : "Høgra",
DlgImgAlignTextTop : "Tekst toppur",
DlgImgAlignTop : "Ovast",
DlgImgPreview : "Frumsýning",
DlgImgAlertUrl : "Rita slóðina til myndina",
DlgImgLinkTab : "Tilknýti",
// Flash Dialog
DlgFlashTitle : "Flash eginleikar",
DlgFlashChkPlay : "Avspælingin byrjar sjálv",
DlgFlashChkLoop : "Endurspæl",
DlgFlashChkMenu : "Ger Flash skrá virkna",
DlgFlashScale : "Skalering",
DlgFlashScaleAll : "Vís alt",
DlgFlashScaleNoBorder : "Eingin bordi",
DlgFlashScaleFit : "Neyv skalering",
// Link Dialog
DlgLnkWindowTitle : "Tilknýti",
DlgLnkInfoTab : "Tilknýtis upplýsingar",
DlgLnkTargetTab : "Mál",
DlgLnkType : "Tilknýtisslag",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Tilknýti til marknastein í tekstinum",
DlgLnkTypeEMail : "Teldupostur",
DlgLnkProto : "Protokoll",
DlgLnkProtoOther : "<Annað>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Vel ein marknastein",
DlgLnkAnchorByName : "Eftir navni á marknasteini",
DlgLnkAnchorById : "Eftir element Id",
DlgLnkNoAnchors : "(Eingir marknasteinar eru í hesum dokumentið)",
DlgLnkEMail : "Teldupost-adressa",
DlgLnkEMailSubject : "Evni",
DlgLnkEMailBody : "Breyðtekstur",
DlgLnkUpload : "Send til ambætaran",
DlgLnkBtnUpload : "Send til ambætaran",
DlgLnkTarget : "Mál",
DlgLnkTargetFrame : "<ramma>",
DlgLnkTargetPopup : "<popup vindeyga>",
DlgLnkTargetBlank : "Nýtt vindeyga (_blank)",
DlgLnkTargetParent : "Upphavliga vindeygað (_parent)",
DlgLnkTargetSelf : "Sama vindeygað (_self)",
DlgLnkTargetTop : "Alt vindeygað (_top)",
DlgLnkTargetFrameName : "Vís navn vindeygans",
DlgLnkPopWinName : "Popup vindeygans navn",
DlgLnkPopWinFeat : "Popup vindeygans víðkaðu eginleikar",
DlgLnkPopResize : "Kann broyta stødd",
DlgLnkPopLocation : "Adressulinja",
DlgLnkPopMenu : "Skrábjálki",
DlgLnkPopScroll : "Rullibjálki",
DlgLnkPopStatus : "Støðufrágreiðingarbjálki",
DlgLnkPopToolbar : "Amboðsbjálki",
DlgLnkPopFullScrn : "Fullur skermur (IE)",
DlgLnkPopDependent : "Bundið (Netscape)",
DlgLnkPopWidth : "Breidd",
DlgLnkPopHeight : "Hædd",
DlgLnkPopLeft : "Frástøða frá vinstru",
DlgLnkPopTop : "Frástøða frá íerva",
DlnLnkMsgNoUrl : "Vinarliga skriva tilknýti (URL)",
DlnLnkMsgNoEMail : "Vinarliga skriva teldupost-adressu",
DlnLnkMsgNoAnchor : "Vinarliga vel marknastein",
DlnLnkMsgInvPopName : "Popup navnið má byrja við bókstavi og má ikki hava millumrúm",
// Color Dialog
DlgColorTitle : "Vel lit",
DlgColorBtnClear : "Strika alt",
DlgColorHighlight : "Framhevja",
DlgColorSelected : "Valt",
// Smiley Dialog
DlgSmileyTitle : "Vel Smiley",
// Special Character Dialog
DlgSpecialCharTitle : "Vel sertekn",
// Table Dialog
DlgTableTitle : "Eginleikar fyri tabell",
DlgTableRows : "Røðir",
DlgTableColumns : "Kolonnur",
DlgTableBorder : "Bordabreidd",
DlgTableAlign : "Justering",
DlgTableAlignNotSet : "<Einki valt>",
DlgTableAlignLeft : "Vinstrasett",
DlgTableAlignCenter : "Miðsett",
DlgTableAlignRight : "Høgrasett",
DlgTableWidth : "Breidd",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "prosent",
DlgTableHeight : "Hædd",
DlgTableCellSpace : "Fjarstøða millum meskar",
DlgTableCellPad : "Meskubreddi",
DlgTableCaption : "Tabellfrágreiðing",
DlgTableSummary : "Samandráttur",
// Table Cell Dialog
DlgCellTitle : "Mesku eginleikar",
DlgCellWidth : "Breidd",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "prosent",
DlgCellHeight : "Hædd",
DlgCellWordWrap : "Orðkloyving",
DlgCellWordWrapNotSet : "<Einki valt>",
DlgCellWordWrapYes : "Ja",
DlgCellWordWrapNo : "Nei",
DlgCellHorAlign : "Vatnrøtt justering",
DlgCellHorAlignNotSet : "<Einki valt>",
DlgCellHorAlignLeft : "Vinstrasett",
DlgCellHorAlignCenter : "Miðsett",
DlgCellHorAlignRight: "Høgrasett",
DlgCellVerAlign : "Lodrøtt justering",
DlgCellVerAlignNotSet : "<Ikki sett>",
DlgCellVerAlignTop : "Ovast",
DlgCellVerAlignMiddle : "Miðjan",
DlgCellVerAlignBottom : "Niðast",
DlgCellVerAlignBaseline : "Basislinja",
DlgCellRowSpan : "Røðir, meskin fevnir um",
DlgCellCollSpan : "Kolonnur, meskin fevnir um",
DlgCellBackColor : "Bakgrundslitur",
DlgCellBorderColor : "Litur á borda",
DlgCellBtnSelect : "Vel...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Finn og broyt",
// Find Dialog
DlgFindTitle : "Finn",
DlgFindFindBtn : "Finn",
DlgFindNotFoundMsg : "Leititeksturin varð ikki funnin",
// Replace Dialog
DlgReplaceTitle : "Yvirskriva",
DlgReplaceFindLbl : "Finn:",
DlgReplaceReplaceLbl : "Yvirskriva við:",
DlgReplaceCaseChk : "Munur á stórum og smáðum bókstavum",
DlgReplaceReplaceBtn : "Yvirskriva",
DlgReplaceReplAllBtn : "Yvirskriva alt",
DlgReplaceWordChk : "Bert heil orð",
// Paste Operations / Dialog
PasteErrorCut : "Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (CTRL+X).",
PasteErrorCopy : "Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (CTRL+C).",
PasteAsText : "Innrita som reinan tekst",
PasteFromWord : "Innrita fra Word",
DlgPasteMsg2 : "Vinarliga koyr tekstin í hendan rútin við knappaborðinum (<strong>CTRL+V</strong>) og klikk á <strong>Góðtak</strong>.",
DlgPasteSec : "Trygdaruppseting alnótskagans forðar tekstviðgeranum í beinleiðis atgongd til avritingarminnið. Tygum mugu royna aftur í hesum rútinum.",
DlgPasteIgnoreFont : "Forfjóna Font definitiónirnar",
DlgPasteRemoveStyles : "Strika typografi definitiónir",
// Color Picker
ColorAutomatic : "Automatiskt",
ColorMoreColors : "Fleiri litir...",
// Document Properties
DocProps : "Eginleikar fyri dokument",
// Anchor Dialog
DlgAnchorTitle : "Eginleikar fyri marknastein",
DlgAnchorName : "Heiti marknasteinsins",
DlgAnchorErrorName : "Vinarliga rita marknasteinsins heiti",
// Speller Pages Dialog
DlgSpellNotInDic : "Finst ikki í orðabókini",
DlgSpellChangeTo : "Broyt til",
DlgSpellBtnIgnore : "Forfjóna",
DlgSpellBtnIgnoreAll : "Forfjóna alt",
DlgSpellBtnReplace : "Yvirskriva",
DlgSpellBtnReplaceAll : "Yvirskriva alt",
DlgSpellBtnUndo : "Angra",
DlgSpellNoSuggestions : "- Einki uppskot -",
DlgSpellProgress : "Rættstavarin arbeiðir...",
DlgSpellNoMispell : "Rættstavarain liðugur: Eingin feilur funnin",
DlgSpellNoChanges : "Rættstavarain liðugur: Einki orð varð broytt",
DlgSpellOneChange : "Rættstavarain liðugur: Eitt orð er broytt",
DlgSpellManyChanges : "Rættstavarain liðugur: %1 orð broytt",
IeSpellDownload : "Rættstavarin er ikki tøkur í tekstviðgeranum. Vilt tú heinta hann nú?",
// Button Dialog
DlgButtonText : "Tekstur",
DlgButtonType : "Slag",
DlgButtonTypeBtn : "Knøttur",
DlgButtonTypeSbm : "Send",
DlgButtonTypeRst : "Nullstilla",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Navn",
DlgCheckboxValue : "Virði",
DlgCheckboxSelected : "Valt",
// Form Dialog
DlgFormName : "Navn",
DlgFormAction : "Hending",
DlgFormMethod : "Háttur",
// Select Field Dialog
DlgSelectName : "Navn",
DlgSelectValue : "Virði",
DlgSelectSize : "Stødd",
DlgSelectLines : "Linjur",
DlgSelectChkMulti : "Loyv fleiri valmøguleikum samstundis",
DlgSelectOpAvail : "Tøkir møguleikar",
DlgSelectOpText : "Tekstur",
DlgSelectOpValue : "Virði",
DlgSelectBtnAdd : "Legg afturat",
DlgSelectBtnModify : "Broyt",
DlgSelectBtnUp : "Upp",
DlgSelectBtnDown : "Niður",
DlgSelectBtnSetValue : "Set sum valt virði",
DlgSelectBtnDelete : "Strika",
// Textarea Dialog
DlgTextareaName : "Navn",
DlgTextareaCols : "kolonnur",
DlgTextareaRows : "røðir",
// Text Field Dialog
DlgTextName : "Navn",
DlgTextValue : "Virði",
DlgTextCharWidth : "Breidd (sjónlig tekn)",
DlgTextMaxChars : "Mest loyvdu tekn",
DlgTextType : "Slag",
DlgTextTypeText : "Tekstur",
DlgTextTypePass : "Loyniorð",
// Hidden Field Dialog
DlgHiddenName : "Navn",
DlgHiddenValue : "Virði",
// Bulleted List Dialog
BulletedListProp : "Eginleikar fyri punktmerktan lista",
NumberedListProp : "Eginleikar fyri talmerktan lista",
DlgLstStart : "Byrjan",
DlgLstType : "Slag",
DlgLstTypeCircle : "Sirkul",
DlgLstTypeDisc : "Fyltur sirkul",
DlgLstTypeSquare : "Fjórhyrningur",
DlgLstTypeNumbers : "Talmerkt (1, 2, 3)",
DlgLstTypeLCase : "Smáir bókstavir (a, b, c)",
DlgLstTypeUCase : "Stórir bókstavir (A, B, C)",
DlgLstTypeSRoman : "Smá rómaratøl (i, ii, iii)",
DlgLstTypeLRoman : "Stór rómaratøl (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Generelt",
DlgDocBackTab : "Bakgrund",
DlgDocColorsTab : "Litir og breddar",
DlgDocMetaTab : "META-upplýsingar",
DlgDocPageTitle : "Síðuheiti",
DlgDocLangDir : "Tekstkós",
DlgDocLangDirLTR : "Frá vinstru móti høgru (LTR)",
DlgDocLangDirRTL : "Frá høgru móti vinstru (RTL)",
DlgDocLangCode : "Málkoda",
DlgDocCharSet : "Teknsett koda",
DlgDocCharSetCE : "Miðeuropa",
DlgDocCharSetCT : "Kinesiskt traditionelt (Big5)",
DlgDocCharSetCR : "Cyrilliskt",
DlgDocCharSetGR : "Grikst",
DlgDocCharSetJP : "Japanskt",
DlgDocCharSetKR : "Koreanskt",
DlgDocCharSetTR : "Turkiskt",
DlgDocCharSetUN : "UNICODE (UTF-8)",
DlgDocCharSetWE : "Vestureuropa",
DlgDocCharSetOther : "Onnur teknsett koda",
DlgDocDocType : "Dokumentslag yvirskrift",
DlgDocDocTypeOther : "Annað dokumentslag yvirskrift",
DlgDocIncXHTML : "Viðfest XHTML deklaratiónir",
DlgDocBgColor : "Bakgrundslitur",
DlgDocBgImage : "Leið til bakgrundsmynd (URL)",
DlgDocBgNoScroll : "Læst bakgrund (rullar ikki)",
DlgDocCText : "Tekstur",
DlgDocCLink : "Tilknýti",
DlgDocCVisited : "Vitjaði tilknýti",
DlgDocCActive : "Virkin tilknýti",
DlgDocMargins : "Síðubreddar",
DlgDocMaTop : "Ovast",
DlgDocMaLeft : "Vinstra",
DlgDocMaRight : "Høgra",
DlgDocMaBottom : "Niðast",
DlgDocMeIndex : "Dokument index lyklaorð (sundurbýtt við komma)",
DlgDocMeDescr : "Dokumentlýsing",
DlgDocMeAuthor : "Høvundur",
DlgDocMeCopy : "Upphavsrættindi",
DlgDocPreview : "Frumsýning",
// Templates Dialog
Templates : "Skabelónir",
DlgTemplatesTitle : "Innihaldsskabelónir",
DlgTemplatesSelMsg : "Vinarliga vel ta skabelón, ið skal opnast í tekstviðgeranum<br>(Hetta yvirskrivar núverandi innihald):",
DlgTemplatesLoading : "Heinti yvirlit yvir skabelónir. Vinarliga bíða við...",
DlgTemplatesNoTpl : "(Ongar skabelónir tøkar)",
DlgTemplatesReplace : "Yvirskriva núverandi innihald",
// About Dialog
DlgAboutAboutTab : "Um",
DlgAboutBrowserInfoTab : "Upplýsingar um alnótskagan",
DlgAboutLicenseTab : "License",
DlgAboutVersion : "version",
DlgAboutInfo : "Fyri fleiri upplýsingar, far til",
// Div Dialog
DlgDivGeneralTab : "Generelt",
DlgDivAdvancedTab : "Fjølbroytt",
DlgDivStyle : "Typografi",
DlgDivInlineStyle : "Inline typografi"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Bosnian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Skupi trake sa alatima",
ToolbarExpand : "Otvori trake sa alatima",
// Toolbar Items and Context Menu
Save : "Snimi",
NewPage : "Novi dokument",
Preview : "Prikaži",
Cut : "Izreži",
Copy : "Kopiraj",
Paste : "Zalijepi",
PasteText : "Zalijepi kao obièan tekst",
PasteWord : "Zalijepi iz Word-a",
Print : "Štampaj",
SelectAll : "Selektuj sve",
RemoveFormat : "Poništi format",
InsertLinkLbl : "Link",
InsertLink : "Ubaci/Izmjeni link",
RemoveLink : "Izbriši link",
VisitLink : "Open Link", //MISSING
Anchor : "Insert/Edit Anchor", //MISSING
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Slika",
InsertImage : "Ubaci/Izmjeni sliku",
InsertFlashLbl : "Flash", //MISSING
InsertFlash : "Insert/Edit Flash", //MISSING
InsertTableLbl : "Tabela",
InsertTable : "Ubaci/Izmjeni tabelu",
InsertLineLbl : "Linija",
InsertLine : "Ubaci horizontalnu liniju",
InsertSpecialCharLbl: "Specijalni karakter",
InsertSpecialChar : "Ubaci specijalni karater",
InsertSmileyLbl : "Smješko",
InsertSmiley : "Ubaci smješka",
About : "O FCKeditor-u",
Bold : "Boldiraj",
Italic : "Ukosi",
Underline : "Podvuci",
StrikeThrough : "Precrtaj",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Lijevo poravnanje",
CenterJustify : "Centralno poravnanje",
RightJustify : "Desno poravnanje",
BlockJustify : "Puno poravnanje",
DecreaseIndent : "Smanji uvod",
IncreaseIndent : "Poveæaj uvod",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Vrati",
Redo : "Ponovi",
NumberedListLbl : "Numerisana lista",
NumberedList : "Ubaci/Izmjeni numerisanu listu",
BulletedListLbl : "Lista",
BulletedList : "Ubaci/Izmjeni listu",
ShowTableBorders : "Pokaži okvire tabela",
ShowDetails : "Pokaži detalje",
Style : "Stil",
FontFormat : "Format",
Font : "Font",
FontSize : "Velièina",
TextColor : "Boja teksta",
BGColor : "Boja pozadine",
Source : "HTML kôd",
Find : "Naði",
Replace : "Zamjeni",
SpellCheck : "Check Spelling", //MISSING
UniversalKeyboard : "Universal Keyboard", //MISSING
PageBreakLbl : "Page Break", //MISSING
PageBreak : "Insert Page Break", //MISSING
Form : "Form", //MISSING
Checkbox : "Checkbox", //MISSING
RadioButton : "Radio Button", //MISSING
TextField : "Text Field", //MISSING
Textarea : "Textarea", //MISSING
HiddenField : "Hidden Field", //MISSING
Button : "Button", //MISSING
SelectionField : "Selection Field", //MISSING
ImageButton : "Image Button", //MISSING
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Izmjeni link",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Briši redove",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Briši kolone",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Briši æelije",
MergeCells : "Spoji æelije",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Delete Table", //MISSING
CellProperties : "Svojstva æelije",
TableProperties : "Svojstva tabele",
ImageProperties : "Svojstva slike",
FlashProperties : "Flash Properties", //MISSING
AnchorProp : "Anchor Properties", //MISSING
ButtonProp : "Button Properties", //MISSING
CheckboxProp : "Checkbox Properties", //MISSING
HiddenFieldProp : "Hidden Field Properties", //MISSING
RadioButtonProp : "Radio Button Properties", //MISSING
ImageButtonProp : "Image Button Properties", //MISSING
TextFieldProp : "Text Field Properties", //MISSING
SelectionFieldProp : "Selection Field Properties", //MISSING
TextareaProp : "Textarea Properties", //MISSING
FormProp : "Form Properties", //MISSING
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6",
// Alerts and Messages
ProcessingXHTML : "Procesiram XHTML. Molim saèekajte...",
Done : "Gotovo",
PasteWordConfirm : "Tekst koji želite zalijepiti èini se da je kopiran iz Worda. Da li želite da se prvo oèisti?",
NotCompatiblePaste : "Ova komanda je podržana u Internet Explorer-u verzijama 5.5 ili novijim. Da li želite da izvršite lijepljenje teksta bez èišæenja?",
UnknownToolbarItem : "Nepoznata stavka sa trake sa alatima \"%1\"",
UnknownCommand : "Nepoznata komanda \"%1\"",
NotImplemented : "Komanda nije implementirana",
UnknownToolbarSet : "Traka sa alatima \"%1\" ne postoji",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Odustani",
DlgBtnClose : "Zatvori",
DlgBtnBrowseServer : "Browse Server", //MISSING
DlgAdvancedTag : "Naprednije",
DlgOpOther : "<Other>", //MISSING
DlgInfoTab : "Info", //MISSING
DlgAlertUrl : "Please insert the URL", //MISSING
// General Dialogs Labels
DlgGenNotSet : "<nije podešeno>",
DlgGenId : "Id",
DlgGenLangDir : "Smjer pisanja",
DlgGenLangDirLtr : "S lijeva na desno (LTR)",
DlgGenLangDirRtl : "S desna na lijevo (RTL)",
DlgGenLangCode : "Jezièni kôd",
DlgGenAccessKey : "Pristupna tipka",
DlgGenName : "Naziv",
DlgGenTabIndex : "Tab indeks",
DlgGenLongDescr : "Dugaèki opis URL-a",
DlgGenClass : "Klase CSS stilova",
DlgGenTitle : "Advisory title",
DlgGenContType : "Advisory vrsta sadržaja",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Stil",
// Image Dialog
DlgImgTitle : "Svojstva slike",
DlgImgInfoTab : "Info slike",
DlgImgBtnUpload : "Šalji na server",
DlgImgURL : "URL",
DlgImgUpload : "Šalji",
DlgImgAlt : "Tekst na slici",
DlgImgWidth : "Širina",
DlgImgHeight : "Visina",
DlgImgLockRatio : "Zakljuèaj odnos",
DlgBtnResetSize : "Resetuj dimenzije",
DlgImgBorder : "Okvir",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Poravnanje",
DlgImgAlignLeft : "Lijevo",
DlgImgAlignAbsBottom: "Abs dole",
DlgImgAlignAbsMiddle: "Abs sredina",
DlgImgAlignBaseline : "Bazno",
DlgImgAlignBottom : "Dno",
DlgImgAlignMiddle : "Sredina",
DlgImgAlignRight : "Desno",
DlgImgAlignTextTop : "Vrh teksta",
DlgImgAlignTop : "Vrh",
DlgImgPreview : "Prikaz",
DlgImgAlertUrl : "Molimo ukucajte URL od slike.",
DlgImgLinkTab : "Link", //MISSING
// Flash Dialog
DlgFlashTitle : "Flash Properties", //MISSING
DlgFlashChkPlay : "Auto Play", //MISSING
DlgFlashChkLoop : "Loop", //MISSING
DlgFlashChkMenu : "Enable Flash Menu", //MISSING
DlgFlashScale : "Scale", //MISSING
DlgFlashScaleAll : "Show all", //MISSING
DlgFlashScaleNoBorder : "No Border", //MISSING
DlgFlashScaleFit : "Exact Fit", //MISSING
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link info",
DlgLnkTargetTab : "Prozor",
DlgLnkType : "Tip linka",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Sidro na ovoj stranici",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<drugi>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Izaberi sidro",
DlgLnkAnchorByName : "Po nazivu sidra",
DlgLnkAnchorById : "Po Id-u elementa",
DlgLnkNoAnchors : "(Nema dostupnih sidra na stranici)",
DlgLnkEMail : "E-Mail Adresa",
DlgLnkEMailSubject : "Subjekt poruke",
DlgLnkEMailBody : "Poruka",
DlgLnkUpload : "Šalji",
DlgLnkBtnUpload : "Šalji na server",
DlgLnkTarget : "Prozor",
DlgLnkTargetFrame : "<frejm>",
DlgLnkTargetPopup : "<popup prozor>",
DlgLnkTargetBlank : "Novi prozor (_blank)",
DlgLnkTargetParent : "Glavni prozor (_parent)",
DlgLnkTargetSelf : "Isti prozor (_self)",
DlgLnkTargetTop : "Najgornji prozor (_top)",
DlgLnkTargetFrameName : "Target Frame Name", //MISSING
DlgLnkPopWinName : "Naziv popup prozora",
DlgLnkPopWinFeat : "Moguænosti popup prozora",
DlgLnkPopResize : "Promjenljive velièine",
DlgLnkPopLocation : "Traka za lokaciju",
DlgLnkPopMenu : "Izborna traka",
DlgLnkPopScroll : "Scroll traka",
DlgLnkPopStatus : "Statusna traka",
DlgLnkPopToolbar : "Traka sa alatima",
DlgLnkPopFullScrn : "Cijeli ekran (IE)",
DlgLnkPopDependent : "Ovisno (Netscape)",
DlgLnkPopWidth : "Širina",
DlgLnkPopHeight : "Visina",
DlgLnkPopLeft : "Lijeva pozicija",
DlgLnkPopTop : "Gornja pozicija",
DlnLnkMsgNoUrl : "Molimo ukucajte URL link",
DlnLnkMsgNoEMail : "Molimo ukucajte e-mail adresu",
DlnLnkMsgNoAnchor : "Molimo izaberite sidro",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Izaberi boju",
DlgColorBtnClear : "Oèisti",
DlgColorHighlight : "Igled",
DlgColorSelected : "Selektovana",
// Smiley Dialog
DlgSmileyTitle : "Ubaci smješka",
// Special Character Dialog
DlgSpecialCharTitle : "Izaberi specijalni karakter",
// Table Dialog
DlgTableTitle : "Svojstva tabele",
DlgTableRows : "Redova",
DlgTableColumns : "Kolona",
DlgTableBorder : "Okvir",
DlgTableAlign : "Poravnanje",
DlgTableAlignNotSet : "<Nije podešeno>",
DlgTableAlignLeft : "Lijevo",
DlgTableAlignCenter : "Centar",
DlgTableAlignRight : "Desno",
DlgTableWidth : "Širina",
DlgTableWidthPx : "piksela",
DlgTableWidthPc : "posto",
DlgTableHeight : "Visina",
DlgTableCellSpace : "Razmak æelija",
DlgTableCellPad : "Uvod æelija",
DlgTableCaption : "Naslov",
DlgTableSummary : "Summary", //MISSING
// Table Cell Dialog
DlgCellTitle : "Svojstva æelije",
DlgCellWidth : "Širina",
DlgCellWidthPx : "piksela",
DlgCellWidthPc : "posto",
DlgCellHeight : "Visina",
DlgCellWordWrap : "Vrapuj tekst",
DlgCellWordWrapNotSet : "<Nije podešeno>",
DlgCellWordWrapYes : "Da",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Horizontalno poravnanje",
DlgCellHorAlignNotSet : "<Nije podešeno>",
DlgCellHorAlignLeft : "Lijevo",
DlgCellHorAlignCenter : "Centar",
DlgCellHorAlignRight: "Desno",
DlgCellVerAlign : "Vertikalno poravnanje",
DlgCellVerAlignNotSet : "<Nije podešeno>",
DlgCellVerAlignTop : "Gore",
DlgCellVerAlignMiddle : "Sredina",
DlgCellVerAlignBottom : "Dno",
DlgCellVerAlignBaseline : "Bazno",
DlgCellRowSpan : "Spajanje æelija",
DlgCellCollSpan : "Spajanje kolona",
DlgCellBackColor : "Boja pozadine",
DlgCellBorderColor : "Boja okvira",
DlgCellBtnSelect : "Selektuj...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Naði",
DlgFindFindBtn : "Naði",
DlgFindNotFoundMsg : "Traženi tekst nije pronaðen.",
// Replace Dialog
DlgReplaceTitle : "Zamjeni",
DlgReplaceFindLbl : "Naði šta:",
DlgReplaceReplaceLbl : "Zamjeni sa:",
DlgReplaceCaseChk : "Uporeðuj velika/mala slova",
DlgReplaceReplaceBtn : "Zamjeni",
DlgReplaceReplAllBtn : "Zamjeni sve",
DlgReplaceWordChk : "Uporeðuj samo cijelu rijeè",
// Paste Operations / Dialog
PasteErrorCut : "Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl+X).",
PasteErrorCopy : "Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl+C).",
PasteAsText : "Zalijepi kao obièan tekst",
PasteFromWord : "Zalijepi iz Word-a",
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.", //MISSING
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING
// Color Picker
ColorAutomatic : "Automatska",
ColorMoreColors : "Više boja...",
// Document Properties
DocProps : "Document Properties", //MISSING
// Anchor Dialog
DlgAnchorTitle : "Anchor Properties", //MISSING
DlgAnchorName : "Anchor Name", //MISSING
DlgAnchorErrorName : "Please type the anchor name", //MISSING
// Speller Pages Dialog
DlgSpellNotInDic : "Not in dictionary", //MISSING
DlgSpellChangeTo : "Change to", //MISSING
DlgSpellBtnIgnore : "Ignore", //MISSING
DlgSpellBtnIgnoreAll : "Ignore All", //MISSING
DlgSpellBtnReplace : "Replace", //MISSING
DlgSpellBtnReplaceAll : "Replace All", //MISSING
DlgSpellBtnUndo : "Undo", //MISSING
DlgSpellNoSuggestions : "- No suggestions -", //MISSING
DlgSpellProgress : "Spell check in progress...", //MISSING
DlgSpellNoMispell : "Spell check complete: No misspellings found", //MISSING
DlgSpellNoChanges : "Spell check complete: No words changed", //MISSING
DlgSpellOneChange : "Spell check complete: One word changed", //MISSING
DlgSpellManyChanges : "Spell check complete: %1 words changed", //MISSING
IeSpellDownload : "Spell checker not installed. Do you want to download it now?", //MISSING
// Button Dialog
DlgButtonText : "Text (Value)", //MISSING
DlgButtonType : "Type", //MISSING
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Name", //MISSING
DlgCheckboxValue : "Value", //MISSING
DlgCheckboxSelected : "Selected", //MISSING
// Form Dialog
DlgFormName : "Name", //MISSING
DlgFormAction : "Action", //MISSING
DlgFormMethod : "Method", //MISSING
// Select Field Dialog
DlgSelectName : "Name", //MISSING
DlgSelectValue : "Value", //MISSING
DlgSelectSize : "Size", //MISSING
DlgSelectLines : "lines", //MISSING
DlgSelectChkMulti : "Allow multiple selections", //MISSING
DlgSelectOpAvail : "Available Options", //MISSING
DlgSelectOpText : "Text", //MISSING
DlgSelectOpValue : "Value", //MISSING
DlgSelectBtnAdd : "Add", //MISSING
DlgSelectBtnModify : "Modify", //MISSING
DlgSelectBtnUp : "Up", //MISSING
DlgSelectBtnDown : "Down", //MISSING
DlgSelectBtnSetValue : "Set as selected value", //MISSING
DlgSelectBtnDelete : "Delete", //MISSING
// Textarea Dialog
DlgTextareaName : "Name", //MISSING
DlgTextareaCols : "Columns", //MISSING
DlgTextareaRows : "Rows", //MISSING
// Text Field Dialog
DlgTextName : "Name", //MISSING
DlgTextValue : "Value", //MISSING
DlgTextCharWidth : "Character Width", //MISSING
DlgTextMaxChars : "Maximum Characters", //MISSING
DlgTextType : "Type", //MISSING
DlgTextTypeText : "Text", //MISSING
DlgTextTypePass : "Password", //MISSING
// Hidden Field Dialog
DlgHiddenName : "Name", //MISSING
DlgHiddenValue : "Value", //MISSING
// Bulleted List Dialog
BulletedListProp : "Bulleted List Properties", //MISSING
NumberedListProp : "Numbered List Properties", //MISSING
DlgLstStart : "Start", //MISSING
DlgLstType : "Type", //MISSING
DlgLstTypeCircle : "Circle", //MISSING
DlgLstTypeDisc : "Disc", //MISSING
DlgLstTypeSquare : "Square", //MISSING
DlgLstTypeNumbers : "Numbers (1, 2, 3)", //MISSING
DlgLstTypeLCase : "Lowercase Letters (a, b, c)", //MISSING
DlgLstTypeUCase : "Uppercase Letters (A, B, C)", //MISSING
DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)", //MISSING
DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)", //MISSING
// Document Properties Dialog
DlgDocGeneralTab : "General", //MISSING
DlgDocBackTab : "Background", //MISSING
DlgDocColorsTab : "Colors and Margins", //MISSING
DlgDocMetaTab : "Meta Data", //MISSING
DlgDocPageTitle : "Page Title", //MISSING
DlgDocLangDir : "Language Direction", //MISSING
DlgDocLangDirLTR : "Left to Right (LTR)", //MISSING
DlgDocLangDirRTL : "Right to Left (RTL)", //MISSING
DlgDocLangCode : "Language Code", //MISSING
DlgDocCharSet : "Character Set Encoding", //MISSING
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Other Character Set Encoding", //MISSING
DlgDocDocType : "Document Type Heading", //MISSING
DlgDocDocTypeOther : "Other Document Type Heading", //MISSING
DlgDocIncXHTML : "Include XHTML Declarations", //MISSING
DlgDocBgColor : "Background Color", //MISSING
DlgDocBgImage : "Background Image URL", //MISSING
DlgDocBgNoScroll : "Nonscrolling Background", //MISSING
DlgDocCText : "Text", //MISSING
DlgDocCLink : "Link", //MISSING
DlgDocCVisited : "Visited Link", //MISSING
DlgDocCActive : "Active Link", //MISSING
DlgDocMargins : "Page Margins", //MISSING
DlgDocMaTop : "Top", //MISSING
DlgDocMaLeft : "Left", //MISSING
DlgDocMaRight : "Right", //MISSING
DlgDocMaBottom : "Bottom", //MISSING
DlgDocMeIndex : "Document Indexing Keywords (comma separated)", //MISSING
DlgDocMeDescr : "Document Description", //MISSING
DlgDocMeAuthor : "Author", //MISSING
DlgDocMeCopy : "Copyright", //MISSING
DlgDocPreview : "Preview", //MISSING
// Templates Dialog
Templates : "Templates", //MISSING
DlgTemplatesTitle : "Content Templates", //MISSING
DlgTemplatesSelMsg : "Please select the template to open in the editor<br />(the actual contents will be lost):", //MISSING
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING
DlgTemplatesNoTpl : "(No templates defined)", //MISSING
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "About", //MISSING
DlgAboutBrowserInfoTab : "Browser Info", //MISSING
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "verzija",
DlgAboutInfo : "Za više informacija posjetite",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Norwegian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Skjul verktøylinje",
ToolbarExpand : "Vis verktøylinje",
// Toolbar Items and Context Menu
Save : "Lagre",
NewPage : "Ny Side",
Preview : "Forhåndsvis",
Cut : "Klipp ut",
Copy : "Kopier",
Paste : "Lim inn",
PasteText : "Lim inn som ren tekst",
PasteWord : "Lim inn fra Word",
Print : "Skriv ut",
SelectAll : "Merk alt",
RemoveFormat : "Fjern format",
InsertLinkLbl : "Lenke",
InsertLink : "Sett inn/Rediger lenke",
RemoveLink : "Fjern lenke",
VisitLink : "Åpne lenke",
Anchor : "Sett inn/Rediger anker",
AnchorDelete : "Fjern anker",
InsertImageLbl : "Bilde",
InsertImage : "Sett inn/Rediger bilde",
InsertFlashLbl : "Flash",
InsertFlash : "Sett inn/Rediger Flash",
InsertTableLbl : "Tabell",
InsertTable : "Sett inn/Rediger tabell",
InsertLineLbl : "Linje",
InsertLine : "Sett inn horisontal linje",
InsertSpecialCharLbl: "Spesielt tegn",
InsertSpecialChar : "Sett inn spesielt tegn",
InsertSmileyLbl : "Smil",
InsertSmiley : "Sett inn smil",
About : "Om FCKeditor",
Bold : "Fet",
Italic : "Kursiv",
Underline : "Understrek",
StrikeThrough : "Gjennomstrek",
Subscript : "Senket skrift",
Superscript : "Hevet skrift",
LeftJustify : "Venstrejuster",
CenterJustify : "Midtjuster",
RightJustify : "Høyrejuster",
BlockJustify : "Blokkjuster",
DecreaseIndent : "Senk nivå",
IncreaseIndent : "Øk nivå",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Angre",
Redo : "Gjør om",
NumberedListLbl : "Nummerert liste",
NumberedList : "Sett inn/Fjern nummerert liste",
BulletedListLbl : "Uordnet liste",
BulletedList : "Sett inn/Fjern uordnet liste",
ShowTableBorders : "Vis tabellrammer",
ShowDetails : "Vis detaljer",
Style : "Stil",
FontFormat : "Format",
Font : "Skrift",
FontSize : "Størrelse",
TextColor : "Tekstfarge",
BGColor : "Bakgrunnsfarge",
Source : "Kilde",
Find : "Søk",
Replace : "Erstatt",
SpellCheck : "Stavekontroll",
UniversalKeyboard : "Universelt tastatur",
PageBreakLbl : "Sideskift",
PageBreak : "Sett inn sideskift",
Form : "Skjema",
Checkbox : "Avmerkingsboks",
RadioButton : "Alternativknapp",
TextField : "Tekstboks",
Textarea : "Tekstområde",
HiddenField : "Skjult felt",
Button : "Knapp",
SelectionField : "Rullegardinliste",
ImageButton : "Bildeknapp",
FitWindow : "Maksimer størrelsen på redigeringsverktøyet",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Rediger lenke",
CellCM : "Celle",
RowCM : "Rader",
ColumnCM : "Kolonne",
InsertRowAfter : "Sett inn rad etter",
InsertRowBefore : "Sett inn rad før",
DeleteRows : "Slett rader",
InsertColumnAfter : "Sett inn kolonne etter",
InsertColumnBefore : "Sett inn kolonne før",
DeleteColumns : "Slett kolonner",
InsertCellAfter : "Sett inn celle etter",
InsertCellBefore : "Sett inn celle før",
DeleteCells : "Slett celler",
MergeCells : "Slå sammen celler",
MergeRight : "Slå sammen høyre",
MergeDown : "Slå sammen ned",
HorizontalSplitCell : "Del celle horisontalt",
VerticalSplitCell : "Del celle vertikalt",
TableDelete : "Slett tabell",
CellProperties : "Egenskaper for celle",
TableProperties : "Egenskaper for tabell",
ImageProperties : "Egenskaper for bilde",
FlashProperties : "Egenskaper for Flash-objekt",
AnchorProp : "Egenskaper for anker",
ButtonProp : "Egenskaper for knapp",
CheckboxProp : "Egenskaper for avmerkingsboks",
HiddenFieldProp : "Egenskaper for skjult felt",
RadioButtonProp : "Egenskaper for alternativknapp",
ImageButtonProp : "Egenskaper for bildeknapp",
TextFieldProp : "Egenskaper for tekstfelt",
SelectionFieldProp : "Egenskaper for rullegardinliste",
TextareaProp : "Egenskaper for tekstområde",
FormProp : "Egenskaper for skjema",
FontFormats : "Normal;Formatert;Adresse;Tittel 1;Tittel 2;Tittel 3;Tittel 4;Tittel 5;Tittel 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Lager XHTML. Vennligst vent...",
Done : "Ferdig",
PasteWordConfirm : "Teksten du prøver å lime inn ser ut som om den kommer fra Word. Vil du rense den for unødvendig kode før du limer inn?",
NotCompatiblePaste : "Denne kommandoen er kun tilgjenglig for Internet Explorer versjon 5.5 eller bedre. Vil du fortsette uten å rense? (Du kan lime inn som ren tekst)",
UnknownToolbarItem : "Ukjent menyvalg \"%1\"",
UnknownCommand : "Ukjent kommando \"%1\"",
NotImplemented : "Kommando ikke implimentert",
UnknownToolbarSet : "Verktøylinjesett \"%1\" finnes ikke",
NoActiveX : "Din nettlesers sikkerhetsinstillinger kan begrense noen av funksjonene i redigeringsverktøyet. Du må aktivere \"Kjør ActiveX-kontroller og plugin-modeller\". Du kan oppleve feil og advarsler om manglende funksjoner",
BrowseServerBlocked : "Kunne ikke åpne dialogboksen for filarkiv. Sjekk at popup-blokkering er deaktivert.",
DialogBlocked : "Kunne ikke åpne dialogboksen. Sjekk at popup-blokkering er deaktivert.",
VisitLinkBlocked : "Kunne ikke åpne et nytt vindu. Sjekk at popup-blokkering er deaktivert.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Avbryt",
DlgBtnClose : "Lukk",
DlgBtnBrowseServer : "Bla igjennom server",
DlgAdvancedTag : "Avansert",
DlgOpOther : "<Annet>",
DlgInfoTab : "Info",
DlgAlertUrl : "Vennligst skriv inn URL-en",
// General Dialogs Labels
DlgGenNotSet : "<ikke satt>",
DlgGenId : "Id",
DlgGenLangDir : "Språkretning",
DlgGenLangDirLtr : "Venstre til høyre (VTH)",
DlgGenLangDirRtl : "Høyre til venstre (HTV)",
DlgGenLangCode : "Språkkode",
DlgGenAccessKey : "Aksessknapp",
DlgGenName : "Navn",
DlgGenTabIndex : "Tab Indeks",
DlgGenLongDescr : "Utvidet beskrivelse",
DlgGenClass : "Stilarkklasser",
DlgGenTitle : "Tittel",
DlgGenContType : "Type",
DlgGenLinkCharset : "Lenket språkkart",
DlgGenStyle : "Stil",
// Image Dialog
DlgImgTitle : "Bildeegenskaper",
DlgImgInfoTab : "Bildeinformasjon",
DlgImgBtnUpload : "Send det til serveren",
DlgImgURL : "URL",
DlgImgUpload : "Last opp",
DlgImgAlt : "Alternativ tekst",
DlgImgWidth : "Bredde",
DlgImgHeight : "Høyde",
DlgImgLockRatio : "Lås forhold",
DlgBtnResetSize : "Tilbakestill størrelse",
DlgImgBorder : "Ramme",
DlgImgHSpace : "HMarg",
DlgImgVSpace : "VMarg",
DlgImgAlign : "Juster",
DlgImgAlignLeft : "Venstre",
DlgImgAlignAbsBottom: "Abs bunn",
DlgImgAlignAbsMiddle: "Abs midten",
DlgImgAlignBaseline : "Bunnlinje",
DlgImgAlignBottom : "Bunn",
DlgImgAlignMiddle : "Midten",
DlgImgAlignRight : "Høyre",
DlgImgAlignTextTop : "Tekst topp",
DlgImgAlignTop : "Topp",
DlgImgPreview : "Forhåndsvis",
DlgImgAlertUrl : "Vennligst skriv bilde-urlen",
DlgImgLinkTab : "Lenke",
// Flash Dialog
DlgFlashTitle : "Flash-egenskaper",
DlgFlashChkPlay : "Autospill",
DlgFlashChkLoop : "Loop",
DlgFlashChkMenu : "Slå på Flash-meny",
DlgFlashScale : "Skaler",
DlgFlashScaleAll : "Vis alt",
DlgFlashScaleNoBorder : "Ingen ramme",
DlgFlashScaleFit : "Skaler til å passe",
// Link Dialog
DlgLnkWindowTitle : "Lenke",
DlgLnkInfoTab : "Lenkeinfo",
DlgLnkTargetTab : "Mål",
DlgLnkType : "Lenketype",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Lenke til anker i teksten",
DlgLnkTypeEMail : "E-post",
DlgLnkProto : "Protokoll",
DlgLnkProtoOther : "<annet>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Velg et anker",
DlgLnkAnchorByName : "Anker etter navn",
DlgLnkAnchorById : "Element etter ID",
DlgLnkNoAnchors : "(Ingen anker i dokumentet)",
DlgLnkEMail : "E-postadresse",
DlgLnkEMailSubject : "Meldingsemne",
DlgLnkEMailBody : "Melding",
DlgLnkUpload : "Last opp",
DlgLnkBtnUpload : "Send til server",
DlgLnkTarget : "Mål",
DlgLnkTargetFrame : "<ramme>",
DlgLnkTargetPopup : "<popup vindu>",
DlgLnkTargetBlank : "Nytt vindu (_blank)",
DlgLnkTargetParent : "Foreldrevindu (_parent)",
DlgLnkTargetSelf : "Samme vindu (_self)",
DlgLnkTargetTop : "Hele vindu (_top)",
DlgLnkTargetFrameName : "Målramme",
DlgLnkPopWinName : "Navn på popup-vindus",
DlgLnkPopWinFeat : "Egenskaper for popup-vindu",
DlgLnkPopResize : "Endre størrelse",
DlgLnkPopLocation : "Adresselinje",
DlgLnkPopMenu : "Menylinje",
DlgLnkPopScroll : "Scrollbar",
DlgLnkPopStatus : "Statuslinje",
DlgLnkPopToolbar : "Verktøylinje",
DlgLnkPopFullScrn : "Full skjerm (IE)",
DlgLnkPopDependent : "Avhenging (Netscape)",
DlgLnkPopWidth : "Bredde",
DlgLnkPopHeight : "Høyde",
DlgLnkPopLeft : "Venstre posisjon",
DlgLnkPopTop : "Topp-posisjon",
DlnLnkMsgNoUrl : "Vennligst skriv inn lenkens url",
DlnLnkMsgNoEMail : "Vennligst skriv inn e-postadressen",
DlnLnkMsgNoAnchor : "Vennligst velg et anker",
DlnLnkMsgInvPopName : "Popup-vinduets navn må begynne med en bokstav, og kan ikke inneholde mellomrom",
// Color Dialog
DlgColorTitle : "Velg farge",
DlgColorBtnClear : "Tøm",
DlgColorHighlight : "Marker",
DlgColorSelected : "Valgt",
// Smiley Dialog
DlgSmileyTitle : "Sett inn smil",
// Special Character Dialog
DlgSpecialCharTitle : "Velg spesielt tegn",
// Table Dialog
DlgTableTitle : "Egenskaper for tabell",
DlgTableRows : "Rader",
DlgTableColumns : "Kolonner",
DlgTableBorder : "Rammestørrelse",
DlgTableAlign : "Justering",
DlgTableAlignNotSet : "<Ikke satt>",
DlgTableAlignLeft : "Venstre",
DlgTableAlignCenter : "Midtjuster",
DlgTableAlignRight : "Høyre",
DlgTableWidth : "Bredde",
DlgTableWidthPx : "piksler",
DlgTableWidthPc : "prosent",
DlgTableHeight : "Høyde",
DlgTableCellSpace : "Cellemarg",
DlgTableCellPad : "Cellepolstring",
DlgTableCaption : "Tittel",
DlgTableSummary : "Sammendrag",
// Table Cell Dialog
DlgCellTitle : "Celleegenskaper",
DlgCellWidth : "Bredde",
DlgCellWidthPx : "piksler",
DlgCellWidthPc : "prosent",
DlgCellHeight : "Høyde",
DlgCellWordWrap : "Tekstbrytning",
DlgCellWordWrapNotSet : "<Ikke satt>",
DlgCellWordWrapYes : "Ja",
DlgCellWordWrapNo : "Nei",
DlgCellHorAlign : "Horisontal justering",
DlgCellHorAlignNotSet : "<Ikke satt>",
DlgCellHorAlignLeft : "Venstre",
DlgCellHorAlignCenter : "Midtjuster",
DlgCellHorAlignRight: "Høyre",
DlgCellVerAlign : "Vertikal justering",
DlgCellVerAlignNotSet : "<Ikke satt>",
DlgCellVerAlignTop : "Topp",
DlgCellVerAlignMiddle : "Midten",
DlgCellVerAlignBottom : "Bunn",
DlgCellVerAlignBaseline : "Bunnlinje",
DlgCellRowSpan : "Radspenn",
DlgCellCollSpan : "Kolonnespenn",
DlgCellBackColor : "Bakgrunnsfarge",
DlgCellBorderColor : "Rammefarge",
DlgCellBtnSelect : "Velg...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Søk og erstatt",
// Find Dialog
DlgFindTitle : "Søk",
DlgFindFindBtn : "Søk",
DlgFindNotFoundMsg : "Fant ikke søketeksten.",
// Replace Dialog
DlgReplaceTitle : "Erstatt",
DlgReplaceFindLbl : "Søk etter:",
DlgReplaceReplaceLbl : "Erstatt med:",
DlgReplaceCaseChk : "Skill mellom store og små bokstaver",
DlgReplaceReplaceBtn : "Erstatt",
DlgReplaceReplAllBtn : "Erstatt alle",
DlgReplaceWordChk : "Bare hele ord",
// Paste Operations / Dialog
PasteErrorCut : "Din nettlesers sikkerhetsinstillinger tillater ikke automatisk klipping av tekst. Vennligst bruk snareveien (Ctrl+X).",
PasteErrorCopy : "Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snareveien (Ctrl+C).",
PasteAsText : "Lim inn som ren tekst",
PasteFromWord : "Lim inn fra Word",
DlgPasteMsg2 : "Vennligst lim inn i den følgende boksen med tastaturet (<STRONG>Ctrl+V</STRONG>) og trykk <STRONG>OK</STRONG>.",
DlgPasteSec : "Din nettlesers sikkerhetsinstillinger gir ikke redigeringsverktøyet direkte tilgang til utklippstavlen. Du må lime det igjen i dette vinduet.",
DlgPasteIgnoreFont : "Fjern skrifttyper",
DlgPasteRemoveStyles : "Fjern stildefinisjoner",
// Color Picker
ColorAutomatic : "Automatisk",
ColorMoreColors : "Flere farger...",
// Document Properties
DocProps : "Dokumentegenskaper",
// Anchor Dialog
DlgAnchorTitle : "Ankeregenskaper",
DlgAnchorName : "Ankernavn",
DlgAnchorErrorName : "Vennligst skriv inn ankernavnet",
// Speller Pages Dialog
DlgSpellNotInDic : "Ikke i ordboken",
DlgSpellChangeTo : "Endre til",
DlgSpellBtnIgnore : "Ignorer",
DlgSpellBtnIgnoreAll : "Ignorer alle",
DlgSpellBtnReplace : "Erstatt",
DlgSpellBtnReplaceAll : "Erstatt alle",
DlgSpellBtnUndo : "Angre",
DlgSpellNoSuggestions : "- Ingen forslag -",
DlgSpellProgress : "Stavekontroll pågår...",
DlgSpellNoMispell : "Stavekontroll fullført: ingen feilstavinger funnet",
DlgSpellNoChanges : "Stavekontroll fullført: ingen ord endret",
DlgSpellOneChange : "Stavekontroll fullført: Ett ord endret",
DlgSpellManyChanges : "Stavekontroll fullført: %1 ord endret",
IeSpellDownload : "Stavekontroll er ikke installert. Vil du laste den ned nå?",
// Button Dialog
DlgButtonText : "Tekst (verdi)",
DlgButtonType : "Type",
DlgButtonTypeBtn : "Knapp",
DlgButtonTypeSbm : "Send",
DlgButtonTypeRst : "Nullstill",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Navn",
DlgCheckboxValue : "Verdi",
DlgCheckboxSelected : "Valgt",
// Form Dialog
DlgFormName : "Navn",
DlgFormAction : "Handling",
DlgFormMethod : "Metode",
// Select Field Dialog
DlgSelectName : "Navn",
DlgSelectValue : "Verdi",
DlgSelectSize : "Størrelse",
DlgSelectLines : "Linjer",
DlgSelectChkMulti : "Tillat flervalg",
DlgSelectOpAvail : "Tilgjenglige alternativer",
DlgSelectOpText : "Tekst",
DlgSelectOpValue : "Verdi",
DlgSelectBtnAdd : "Legg til",
DlgSelectBtnModify : "Endre",
DlgSelectBtnUp : "Opp",
DlgSelectBtnDown : "Ned",
DlgSelectBtnSetValue : "Sett som valgt",
DlgSelectBtnDelete : "Slett",
// Textarea Dialog
DlgTextareaName : "Navn",
DlgTextareaCols : "Kolonner",
DlgTextareaRows : "Rader",
// Text Field Dialog
DlgTextName : "Navn",
DlgTextValue : "Verdi",
DlgTextCharWidth : "Tegnbredde",
DlgTextMaxChars : "Maks antall tegn",
DlgTextType : "Type",
DlgTextTypeText : "Tekst",
DlgTextTypePass : "Passord",
// Hidden Field Dialog
DlgHiddenName : "Navn",
DlgHiddenValue : "Verdi",
// Bulleted List Dialog
BulletedListProp : "Egenskaper for uordnet liste",
NumberedListProp : "Egenskaper for ordnet liste",
DlgLstStart : "Start",
DlgLstType : "Type",
DlgLstTypeCircle : "Sirkel",
DlgLstTypeDisc : "Hel sirkel",
DlgLstTypeSquare : "Firkant",
DlgLstTypeNumbers : "Numre (1, 2, 3)",
DlgLstTypeLCase : "Små bokstaver (a, b, c)",
DlgLstTypeUCase : "Store bokstaver (A, B, C)",
DlgLstTypeSRoman : "Små romerske tall (i, ii, iii)",
DlgLstTypeLRoman : "Store romerske tall (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Generelt",
DlgDocBackTab : "Bakgrunn",
DlgDocColorsTab : "Farger og marginer",
DlgDocMetaTab : "Meta-data",
DlgDocPageTitle : "Sidetittel",
DlgDocLangDir : "Språkretning",
DlgDocLangDirLTR : "Venstre til høyre (LTR)",
DlgDocLangDirRTL : "Høyre til venstre (RTL)",
DlgDocLangCode : "Språkkode",
DlgDocCharSet : "Tegnsett",
DlgDocCharSetCE : "Sentraleuropeisk",
DlgDocCharSetCT : "Tradisonell kinesisk(Big5)",
DlgDocCharSetCR : "Cyrillic",
DlgDocCharSetGR : "Gresk",
DlgDocCharSetJP : "Japansk",
DlgDocCharSetKR : "Koreansk",
DlgDocCharSetTR : "Tyrkisk",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Vesteuropeisk",
DlgDocCharSetOther : "Annet tegnsett",
DlgDocDocType : "Dokumenttype header",
DlgDocDocTypeOther : "Annet dokumenttype header",
DlgDocIncXHTML : "Inkluder XHTML-deklarasjon",
DlgDocBgColor : "Bakgrunnsfarge",
DlgDocBgImage : "URL for bakgrunnsbilde",
DlgDocBgNoScroll : "Lås bakgrunnsbilde",
DlgDocCText : "Tekst",
DlgDocCLink : "Link",
DlgDocCVisited : "Besøkt lenke",
DlgDocCActive : "Aktiv lenke",
DlgDocMargins : "Sidemargin",
DlgDocMaTop : "Topp",
DlgDocMaLeft : "Venstre",
DlgDocMaRight : "Høyre",
DlgDocMaBottom : "Bunn",
DlgDocMeIndex : "Dokument nøkkelord (kommaseparert)",
DlgDocMeDescr : "Dokumentbeskrivelse",
DlgDocMeAuthor : "Forfatter",
DlgDocMeCopy : "Kopirett",
DlgDocPreview : "Forhåndsvising",
// Templates Dialog
Templates : "Maler",
DlgTemplatesTitle : "Innholdsmaler",
DlgTemplatesSelMsg : "Velg malen du vil åpne<br>(innholdet du har skrevet blir tapt!):",
DlgTemplatesLoading : "Laster malliste. Vennligst vent...",
DlgTemplatesNoTpl : "(Ingen maler definert)",
DlgTemplatesReplace : "Erstatt faktisk innold",
// About Dialog
DlgAboutAboutTab : "Om",
DlgAboutBrowserInfoTab : "Nettleserinfo",
DlgAboutLicenseTab : "Lisens",
DlgAboutVersion : "versjon",
DlgAboutInfo : "For mer informasjon, se",
// Div Dialog
DlgDivGeneralTab : "Generelt",
DlgDivAdvancedTab : "Avansert",
DlgDivStyle : "Stil",
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Serbian (Cyrillic) language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Смањи линију са алаткама",
ToolbarExpand : "Прошири линију са алаткама",
// Toolbar Items and Context Menu
Save : "Сачувај",
NewPage : "Нова страница",
Preview : "Изглед странице",
Cut : "Исеци",
Copy : "Копирај",
Paste : "Залепи",
PasteText : "Залепи као неформатиран текст",
PasteWord : "Залепи из Worda",
Print : "Штампа",
SelectAll : "Означи све",
RemoveFormat : "Уклони форматирање",
InsertLinkLbl : "Линк",
InsertLink : "Унеси/измени линк",
RemoveLink : "Уклони линк",
VisitLink : "Open Link", //MISSING
Anchor : "Унеси/измени сидро",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Слика",
InsertImage : "Унеси/измени слику",
InsertFlashLbl : "Флеш елемент",
InsertFlash : "Унеси/измени флеш",
InsertTableLbl : "Табела",
InsertTable : "Унеси/измени табелу",
InsertLineLbl : "Линија",
InsertLine : "Унеси хоризонталну линију",
InsertSpecialCharLbl: "Специјални карактери",
InsertSpecialChar : "Унеси специјални карактер",
InsertSmileyLbl : "Смајли",
InsertSmiley : "Унеси смајлија",
About : "О ФЦКедитору",
Bold : "Подебљано",
Italic : "Курзив",
Underline : "Подвучено",
StrikeThrough : "Прецртано",
Subscript : "Индекс",
Superscript : "Степен",
LeftJustify : "Лево равнање",
CenterJustify : "Центриран текст",
RightJustify : "Десно равнање",
BlockJustify : "Обострано равнање",
DecreaseIndent : "Смањи леву маргину",
IncreaseIndent : "Увећај леву маргину",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Поништи акцију",
Redo : "Понови акцију",
NumberedListLbl : "Набројиву листу",
NumberedList : "Унеси/уклони набројиву листу",
BulletedListLbl : "Ненабројива листа",
BulletedList : "Унеси/уклони ненабројиву листу",
ShowTableBorders : "Прикажи оквир табеле",
ShowDetails : "Прикажи детаље",
Style : "Стил",
FontFormat : "Формат",
Font : "Фонт",
FontSize : "Величина фонта",
TextColor : "Боја текста",
BGColor : "Боја позадине",
Source : "Kôд",
Find : "Претрага",
Replace : "Замена",
SpellCheck : "Провери спеловање",
UniversalKeyboard : "Универзална тастатура",
PageBreakLbl : "Page Break", //MISSING
PageBreak : "Insert Page Break", //MISSING
Form : "Форма",
Checkbox : "Поље за потврду",
RadioButton : "Радио-дугме",
TextField : "Текстуално поље",
Textarea : "Зона текста",
HiddenField : "Скривено поље",
Button : "Дугме",
SelectionField : "Изборно поље",
ImageButton : "Дугме са сликом",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Промени линк",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Обриши редове",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Обриши колоне",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Обриши ћелије",
MergeCells : "Спој ћелије",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Delete Table", //MISSING
CellProperties : "Особине ћелије",
TableProperties : "Особине табеле",
ImageProperties : "Особине слике",
FlashProperties : "Особине Флеша",
AnchorProp : "Особине сидра",
ButtonProp : "Особине дугмета",
CheckboxProp : "Особине поља за потврду",
HiddenFieldProp : "Особине скривеног поља",
RadioButtonProp : "Особине радио-дугмета",
ImageButtonProp : "Особине дугмета са сликом",
TextFieldProp : "Особине текстуалног поља",
SelectionFieldProp : "Особине изборног поља",
TextareaProp : "Особине зоне текста",
FormProp : "Особине форме",
FontFormats : "Normal;Formatirano;Adresa;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6",
// Alerts and Messages
ProcessingXHTML : "Обрађујем XHTML. Maлo стрпљења...",
Done : "Завршио",
PasteWordConfirm : "Текст који желите да налепите копиран је из Worda. Да ли желите да буде очишћен од формата пре лепљења?",
NotCompatiblePaste : "Ова команда је доступна само за Интернет Екплорер од верзије 5.5. Да ли желите да налепим текст без чишћења?",
UnknownToolbarItem : "Непозната ставка toolbara \"%1\"",
UnknownCommand : "Непозната наредба \"%1\"",
NotImplemented : "Наредба није имплементирана",
UnknownToolbarSet : "Toolbar \"%1\" не постоји",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Oткажи",
DlgBtnClose : "Затвори",
DlgBtnBrowseServer : "Претражи сервер",
DlgAdvancedTag : "Напредни тагови",
DlgOpOther : "<Остали>",
DlgInfoTab : "Инфо",
DlgAlertUrl : "Молимо Вас, унесите УРЛ",
// General Dialogs Labels
DlgGenNotSet : "<није постављено>",
DlgGenId : "Ид",
DlgGenLangDir : "Смер језика",
DlgGenLangDirLtr : "С лева на десно (LTR)",
DlgGenLangDirRtl : "С десна на лево (RTL)",
DlgGenLangCode : "Kôд језика",
DlgGenAccessKey : "Приступни тастер",
DlgGenName : "Назив",
DlgGenTabIndex : "Таб индекс",
DlgGenLongDescr : "Пун опис УРЛ",
DlgGenClass : "Stylesheet класе",
DlgGenTitle : "Advisory наслов",
DlgGenContType : "Advisory врста садржаја",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Стил",
// Image Dialog
DlgImgTitle : "Особине слика",
DlgImgInfoTab : "Инфо слике",
DlgImgBtnUpload : "Пошаљи на сервер",
DlgImgURL : "УРЛ",
DlgImgUpload : "Пошаљи",
DlgImgAlt : "Алтернативни текст",
DlgImgWidth : "Ширина",
DlgImgHeight : "Висина",
DlgImgLockRatio : "Закључај однос",
DlgBtnResetSize : "Ресетуј величину",
DlgImgBorder : "Оквир",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Равнање",
DlgImgAlignLeft : "Лево",
DlgImgAlignAbsBottom: "Abs доле",
DlgImgAlignAbsMiddle: "Abs средина",
DlgImgAlignBaseline : "Базно",
DlgImgAlignBottom : "Доле",
DlgImgAlignMiddle : "Средина",
DlgImgAlignRight : "Десно",
DlgImgAlignTextTop : "Врх текста",
DlgImgAlignTop : "Врх",
DlgImgPreview : "Изглед",
DlgImgAlertUrl : "Унесите УРЛ слике",
DlgImgLinkTab : "Линк",
// Flash Dialog
DlgFlashTitle : "Особине флеша",
DlgFlashChkPlay : "Аутоматски старт",
DlgFlashChkLoop : "Понављај",
DlgFlashChkMenu : "Укључи флеш мени",
DlgFlashScale : "Скалирај",
DlgFlashScaleAll : "Прикажи све",
DlgFlashScaleNoBorder : "Без ивице",
DlgFlashScaleFit : "Попуни површину",
// Link Dialog
DlgLnkWindowTitle : "Линк",
DlgLnkInfoTab : "Линк инфо",
DlgLnkTargetTab : "Мета",
DlgLnkType : "Врста линка",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Сидро на овој страници",
DlgLnkTypeEMail : "Eлектронска пошта",
DlgLnkProto : "Протокол",
DlgLnkProtoOther : "<друго>",
DlgLnkURL : "УРЛ",
DlgLnkAnchorSel : "Одабери сидро",
DlgLnkAnchorByName : "По називу сидра",
DlgLnkAnchorById : "Пo Ид-jу елемента",
DlgLnkNoAnchors : "(Нема доступних сидра)",
DlgLnkEMail : "Адреса електронске поште",
DlgLnkEMailSubject : "Наслов",
DlgLnkEMailBody : "Садржај поруке",
DlgLnkUpload : "Пошаљи",
DlgLnkBtnUpload : "Пошаљи на сервер",
DlgLnkTarget : "Meтa",
DlgLnkTargetFrame : "<оквир>",
DlgLnkTargetPopup : "<искачући прозор>",
DlgLnkTargetBlank : "Нови прозор (_blank)",
DlgLnkTargetParent : "Родитељски прозор (_parent)",
DlgLnkTargetSelf : "Исти прозор (_self)",
DlgLnkTargetTop : "Прозор на врху (_top)",
DlgLnkTargetFrameName : "Назив одредишног фрејма",
DlgLnkPopWinName : "Назив искачућег прозора",
DlgLnkPopWinFeat : "Могућности искачућег прозора",
DlgLnkPopResize : "Променљива величина",
DlgLnkPopLocation : "Локација",
DlgLnkPopMenu : "Контекстни мени",
DlgLnkPopScroll : "Скрол бар",
DlgLnkPopStatus : "Статусна линија",
DlgLnkPopToolbar : "Toolbar",
DlgLnkPopFullScrn : "Приказ преко целог екрана (ИE)",
DlgLnkPopDependent : "Зависно (Netscape)",
DlgLnkPopWidth : "Ширина",
DlgLnkPopHeight : "Висина",
DlgLnkPopLeft : "Од леве ивице екрана (пиксела)",
DlgLnkPopTop : "Од врха екрана (пиксела)",
DlnLnkMsgNoUrl : "Унесите УРЛ линка",
DlnLnkMsgNoEMail : "Откуцајте адресу електронске поште",
DlnLnkMsgNoAnchor : "Одаберите сидро",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Одаберите боју",
DlgColorBtnClear : "Обриши",
DlgColorHighlight : "Посветли",
DlgColorSelected : "Одабери",
// Smiley Dialog
DlgSmileyTitle : "Унеси смајлија",
// Special Character Dialog
DlgSpecialCharTitle : "Одаберите специјални карактер",
// Table Dialog
DlgTableTitle : "Особине табеле",
DlgTableRows : "Редова",
DlgTableColumns : "Kолона",
DlgTableBorder : "Величина оквира",
DlgTableAlign : "Равнање",
DlgTableAlignNotSet : "<није постављено>",
DlgTableAlignLeft : "Лево",
DlgTableAlignCenter : "Средина",
DlgTableAlignRight : "Десно",
DlgTableWidth : "Ширина",
DlgTableWidthPx : "пиксела",
DlgTableWidthPc : "процената",
DlgTableHeight : "Висина",
DlgTableCellSpace : "Ћелијски простор",
DlgTableCellPad : "Размак ћелија",
DlgTableCaption : "Наслов табеле",
DlgTableSummary : "Summary", //MISSING
// Table Cell Dialog
DlgCellTitle : "Особине ћелије",
DlgCellWidth : "Ширина",
DlgCellWidthPx : "пиксела",
DlgCellWidthPc : "процената",
DlgCellHeight : "Висина",
DlgCellWordWrap : "Дељење речи",
DlgCellWordWrapNotSet : "<није постављено>",
DlgCellWordWrapYes : "Да",
DlgCellWordWrapNo : "Не",
DlgCellHorAlign : "Водоравно равнање",
DlgCellHorAlignNotSet : "<није постављено>",
DlgCellHorAlignLeft : "Лево",
DlgCellHorAlignCenter : "Средина",
DlgCellHorAlignRight: "Десно",
DlgCellVerAlign : "Вертикално равнање",
DlgCellVerAlignNotSet : "<није постављено>",
DlgCellVerAlignTop : "Горње",
DlgCellVerAlignMiddle : "Средина",
DlgCellVerAlignBottom : "Доње",
DlgCellVerAlignBaseline : "Базно",
DlgCellRowSpan : "Спајање редова",
DlgCellCollSpan : "Спајање колона",
DlgCellBackColor : "Боја позадине",
DlgCellBorderColor : "Боја оквира",
DlgCellBtnSelect : "Oдабери...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Пронађи",
DlgFindFindBtn : "Пронађи",
DlgFindNotFoundMsg : "Тражени текст није пронађен.",
// Replace Dialog
DlgReplaceTitle : "Замени",
DlgReplaceFindLbl : "Пронађи:",
DlgReplaceReplaceLbl : "Замени са:",
DlgReplaceCaseChk : "Разликуј велика и мала слова",
DlgReplaceReplaceBtn : "Замени",
DlgReplaceReplAllBtn : "Замени све",
DlgReplaceWordChk : "Упореди целе речи",
// Paste Operations / Dialog
PasteErrorCut : "Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl+X).",
PasteErrorCopy : "Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl+C).",
PasteAsText : "Залепи као чист текст",
PasteFromWord : "Залепи из Worda",
DlgPasteMsg2 : "Молимо Вас да залепите унутар доње површине користећи тастатурну пречицу (<STRONG>Ctrl+V</STRONG>) и да притиснете <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Игнориши Font Face дефиниције",
DlgPasteRemoveStyles : "Уклони дефиниције стилова",
// Color Picker
ColorAutomatic : "Аутоматски",
ColorMoreColors : "Више боја...",
// Document Properties
DocProps : "Особине документа",
// Anchor Dialog
DlgAnchorTitle : "Особине сидра",
DlgAnchorName : "Име сидра",
DlgAnchorErrorName : "Молимо Вас да унесете име сидра",
// Speller Pages Dialog
DlgSpellNotInDic : "Није у речнику",
DlgSpellChangeTo : "Измени",
DlgSpellBtnIgnore : "Игнориши",
DlgSpellBtnIgnoreAll : "Игнориши све",
DlgSpellBtnReplace : "Замени",
DlgSpellBtnReplaceAll : "Замени све",
DlgSpellBtnUndo : "Врати акцију",
DlgSpellNoSuggestions : "- Без сугестија -",
DlgSpellProgress : "Провера спеловања у току...",
DlgSpellNoMispell : "Провера спеловања завршена: грешке нису пронађене",
DlgSpellNoChanges : "Провера спеловања завршена: Није измењена ниједна реч",
DlgSpellOneChange : "Провера спеловања завршена: Измењена је једна реч",
DlgSpellManyChanges : "Провера спеловања завршена: %1 реч(и) је измењено",
IeSpellDownload : "Провера спеловања није инсталирана. Да ли желите да је скинете са Интернета?",
// Button Dialog
DlgButtonText : "Текст (вредност)",
DlgButtonType : "Tип",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Назив",
DlgCheckboxValue : "Вредност",
DlgCheckboxSelected : "Означено",
// Form Dialog
DlgFormName : "Назив",
DlgFormAction : "Aкција",
DlgFormMethod : "Mетода",
// Select Field Dialog
DlgSelectName : "Назив",
DlgSelectValue : "Вредност",
DlgSelectSize : "Величина",
DlgSelectLines : "линија",
DlgSelectChkMulti : "Дозволи вишеструку селекцију",
DlgSelectOpAvail : "Доступне опције",
DlgSelectOpText : "Текст",
DlgSelectOpValue : "Вредност",
DlgSelectBtnAdd : "Додај",
DlgSelectBtnModify : "Измени",
DlgSelectBtnUp : "Горе",
DlgSelectBtnDown : "Доле",
DlgSelectBtnSetValue : "Подеси као означену вредност",
DlgSelectBtnDelete : "Обриши",
// Textarea Dialog
DlgTextareaName : "Назив",
DlgTextareaCols : "Број колона",
DlgTextareaRows : "Број редова",
// Text Field Dialog
DlgTextName : "Назив",
DlgTextValue : "Вредност",
DlgTextCharWidth : "Ширина (карактера)",
DlgTextMaxChars : "Максимално карактера",
DlgTextType : "Тип",
DlgTextTypeText : "Текст",
DlgTextTypePass : "Лозинка",
// Hidden Field Dialog
DlgHiddenName : "Назив",
DlgHiddenValue : "Вредност",
// Bulleted List Dialog
BulletedListProp : "Особине Bulleted листе",
NumberedListProp : "Особине набројиве листе",
DlgLstStart : "Start", //MISSING
DlgLstType : "Тип",
DlgLstTypeCircle : "Круг",
DlgLstTypeDisc : "Disc", //MISSING
DlgLstTypeSquare : "Квадрат",
DlgLstTypeNumbers : "Бројеви (1, 2, 3)",
DlgLstTypeLCase : "мала слова (a, b, c)",
DlgLstTypeUCase : "ВЕЛИКА СЛОВА (A, B, C)",
DlgLstTypeSRoman : "Мале римске цифре (i, ii, iii)",
DlgLstTypeLRoman : "Велике римске цифре (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Опште особине",
DlgDocBackTab : "Позадина",
DlgDocColorsTab : "Боје и маргине",
DlgDocMetaTab : "Метаподаци",
DlgDocPageTitle : "Наслов странице",
DlgDocLangDir : "Смер језика",
DlgDocLangDirLTR : "Слева надесно (LTR)",
DlgDocLangDirRTL : "Здесна налево (RTL)",
DlgDocLangCode : "Шифра језика",
DlgDocCharSet : "Кодирање скупа карактера",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Остала кодирања скупа карактера",
DlgDocDocType : "Заглавље типа документа",
DlgDocDocTypeOther : "Остала заглавља типа документа",
DlgDocIncXHTML : "Улључи XHTML декларације",
DlgDocBgColor : "Боја позадине",
DlgDocBgImage : "УРЛ позадинске слике",
DlgDocBgNoScroll : "Фиксирана позадина",
DlgDocCText : "Текст",
DlgDocCLink : "Линк",
DlgDocCVisited : "Посећени линк",
DlgDocCActive : "Активни линк",
DlgDocMargins : "Маргине странице",
DlgDocMaTop : "Горња",
DlgDocMaLeft : "Лева",
DlgDocMaRight : "Десна",
DlgDocMaBottom : "Доња",
DlgDocMeIndex : "Кључне речи за индексирање документа (раздвојене зарезом)",
DlgDocMeDescr : "Опис документа",
DlgDocMeAuthor : "Аутор",
DlgDocMeCopy : "Ауторска права",
DlgDocPreview : "Изглед странице",
// Templates Dialog
Templates : "Обрасци",
DlgTemplatesTitle : "Обрасци за садржај",
DlgTemplatesSelMsg : "Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):",
DlgTemplatesLoading : "Учитавам листу образаца. Мало стрпљења...",
DlgTemplatesNoTpl : "(Нема дефинисаних образаца)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "О едитору",
DlgAboutBrowserInfoTab : "Информације о претраживачу",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "верзија",
DlgAboutInfo : "За више информација посетите",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* English (Australia) language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Collapse Toolbar",
ToolbarExpand : "Expand Toolbar",
// Toolbar Items and Context Menu
Save : "Save",
NewPage : "New Page",
Preview : "Preview",
Cut : "Cut",
Copy : "Copy",
Paste : "Paste",
PasteText : "Paste as plain text",
PasteWord : "Paste from Word",
Print : "Print",
SelectAll : "Select All",
RemoveFormat : "Remove Format",
InsertLinkLbl : "Link",
InsertLink : "Insert/Edit Link",
RemoveLink : "Remove Link",
VisitLink : "Open Link",
Anchor : "Insert/Edit Anchor",
AnchorDelete : "Remove Anchor",
InsertImageLbl : "Image",
InsertImage : "Insert/Edit Image",
InsertFlashLbl : "Flash",
InsertFlash : "Insert/Edit Flash",
InsertTableLbl : "Table",
InsertTable : "Insert/Edit Table",
InsertLineLbl : "Line",
InsertLine : "Insert Horizontal Line",
InsertSpecialCharLbl: "Special Character",
InsertSpecialChar : "Insert Special Character",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Insert Smiley",
About : "About FCKeditor",
Bold : "Bold",
Italic : "Italic",
Underline : "Underline",
StrikeThrough : "Strike Through",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Left Justify",
CenterJustify : "Centre Justify",
RightJustify : "Right Justify",
BlockJustify : "Block Justify",
DecreaseIndent : "Decrease Indent",
IncreaseIndent : "Increase Indent",
Blockquote : "Blockquote",
CreateDiv : "Create Div Container",
EditDiv : "Edit Div Container",
DeleteDiv : "Remove Div Container",
Undo : "Undo",
Redo : "Redo",
NumberedListLbl : "Numbered List",
NumberedList : "Insert/Remove Numbered List",
BulletedListLbl : "Bulleted List",
BulletedList : "Insert/Remove Bulleted List",
ShowTableBorders : "Show Table Borders",
ShowDetails : "Show Details",
Style : "Style",
FontFormat : "Format",
Font : "Font",
FontSize : "Size",
TextColor : "Text Colour",
BGColor : "Background Colour",
Source : "Source",
Find : "Find",
Replace : "Replace",
SpellCheck : "Check Spelling",
UniversalKeyboard : "Universal Keyboard",
PageBreakLbl : "Page Break",
PageBreak : "Insert Page Break",
Form : "Form",
Checkbox : "Checkbox",
RadioButton : "Radio Button",
TextField : "Text Field",
Textarea : "Textarea",
HiddenField : "Hidden Field",
Button : "Button",
SelectionField : "Selection Field",
ImageButton : "Image Button",
FitWindow : "Maximize the editor size",
ShowBlocks : "Show Blocks",
// Context Menu
EditLink : "Edit Link",
CellCM : "Cell",
RowCM : "Row",
ColumnCM : "Column",
InsertRowAfter : "Insert Row After",
InsertRowBefore : "Insert Row Before",
DeleteRows : "Delete Rows",
InsertColumnAfter : "Insert Column After",
InsertColumnBefore : "Insert Column Before",
DeleteColumns : "Delete Columns",
InsertCellAfter : "Insert Cell After",
InsertCellBefore : "Insert Cell Before",
DeleteCells : "Delete Cells",
MergeCells : "Merge Cells",
MergeRight : "Merge Right",
MergeDown : "Merge Down",
HorizontalSplitCell : "Split Cell Horizontally",
VerticalSplitCell : "Split Cell Vertically",
TableDelete : "Delete Table",
CellProperties : "Cell Properties",
TableProperties : "Table Properties",
ImageProperties : "Image Properties",
FlashProperties : "Flash Properties",
AnchorProp : "Anchor Properties",
ButtonProp : "Button Properties",
CheckboxProp : "Checkbox Properties",
HiddenFieldProp : "Hidden Field Properties",
RadioButtonProp : "Radio Button Properties",
ImageButtonProp : "Image Button Properties",
TextFieldProp : "Text Field Properties",
SelectionFieldProp : "Selection Field Properties",
TextareaProp : "Textarea Properties",
FormProp : "Form Properties",
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Processing XHTML. Please wait...",
Done : "Done",
PasteWordConfirm : "The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?",
NotCompatiblePaste : "This command is available for Internet Explorer version 5.5 or more. Do you want to paste without cleaning?",
UnknownToolbarItem : "Unknown toolbar item \"%1\"",
UnknownCommand : "Unknown command name \"%1\"",
NotImplemented : "Command not implemented",
UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.",
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.",
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Cancel",
DlgBtnClose : "Close",
DlgBtnBrowseServer : "Browse Server",
DlgAdvancedTag : "Advanced",
DlgOpOther : "<Other>",
DlgInfoTab : "Info",
DlgAlertUrl : "Please insert the URL",
// General Dialogs Labels
DlgGenNotSet : "<not set>",
DlgGenId : "Id",
DlgGenLangDir : "Language Direction",
DlgGenLangDirLtr : "Left to Right (LTR)",
DlgGenLangDirRtl : "Right to Left (RTL)",
DlgGenLangCode : "Language Code",
DlgGenAccessKey : "Access Key",
DlgGenName : "Name",
DlgGenTabIndex : "Tab Index",
DlgGenLongDescr : "Long Description URL",
DlgGenClass : "Stylesheet Classes",
DlgGenTitle : "Advisory Title",
DlgGenContType : "Advisory Content Type",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Style",
// Image Dialog
DlgImgTitle : "Image Properties",
DlgImgInfoTab : "Image Info",
DlgImgBtnUpload : "Send it to the Server",
DlgImgURL : "URL",
DlgImgUpload : "Upload",
DlgImgAlt : "Alternative Text",
DlgImgWidth : "Width",
DlgImgHeight : "Height",
DlgImgLockRatio : "Lock Ratio",
DlgBtnResetSize : "Reset Size",
DlgImgBorder : "Border",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Align",
DlgImgAlignLeft : "Left",
DlgImgAlignAbsBottom: "Abs Bottom",
DlgImgAlignAbsMiddle: "Abs Middle",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Bottom",
DlgImgAlignMiddle : "Middle",
DlgImgAlignRight : "Right",
DlgImgAlignTextTop : "Text Top",
DlgImgAlignTop : "Top",
DlgImgPreview : "Preview",
DlgImgAlertUrl : "Please type the image URL",
DlgImgLinkTab : "Link",
// Flash Dialog
DlgFlashTitle : "Flash Properties",
DlgFlashChkPlay : "Auto Play",
DlgFlashChkLoop : "Loop",
DlgFlashChkMenu : "Enable Flash Menu",
DlgFlashScale : "Scale",
DlgFlashScaleAll : "Show all",
DlgFlashScaleNoBorder : "No Border",
DlgFlashScaleFit : "Exact Fit",
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link Info",
DlgLnkTargetTab : "Target",
DlgLnkType : "Link Type",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Link to anchor in the text",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocol",
DlgLnkProtoOther : "<other>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Select an Anchor",
DlgLnkAnchorByName : "By Anchor Name",
DlgLnkAnchorById : "By Element Id",
DlgLnkNoAnchors : "(No anchors available in the document)",
DlgLnkEMail : "E-Mail Address",
DlgLnkEMailSubject : "Message Subject",
DlgLnkEMailBody : "Message Body",
DlgLnkUpload : "Upload",
DlgLnkBtnUpload : "Send it to the Server",
DlgLnkTarget : "Target",
DlgLnkTargetFrame : "<frame>",
DlgLnkTargetPopup : "<popup window>",
DlgLnkTargetBlank : "New Window (_blank)",
DlgLnkTargetParent : "Parent Window (_parent)",
DlgLnkTargetSelf : "Same Window (_self)",
DlgLnkTargetTop : "Topmost Window (_top)",
DlgLnkTargetFrameName : "Target Frame Name",
DlgLnkPopWinName : "Popup Window Name",
DlgLnkPopWinFeat : "Popup Window Features",
DlgLnkPopResize : "Resizable",
DlgLnkPopLocation : "Location Bar",
DlgLnkPopMenu : "Menu Bar",
DlgLnkPopScroll : "Scroll Bars",
DlgLnkPopStatus : "Status Bar",
DlgLnkPopToolbar : "Toolbar",
DlgLnkPopFullScrn : "Full Screen (IE)",
DlgLnkPopDependent : "Dependent (Netscape)",
DlgLnkPopWidth : "Width",
DlgLnkPopHeight : "Height",
DlgLnkPopLeft : "Left Position",
DlgLnkPopTop : "Top Position",
DlnLnkMsgNoUrl : "Please type the link URL",
DlnLnkMsgNoEMail : "Please type the e-mail address",
DlnLnkMsgNoAnchor : "Please select an anchor",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces",
// Color Dialog
DlgColorTitle : "Select Colour",
DlgColorBtnClear : "Clear",
DlgColorHighlight : "Highlight",
DlgColorSelected : "Selected",
// Smiley Dialog
DlgSmileyTitle : "Insert a Smiley",
// Special Character Dialog
DlgSpecialCharTitle : "Select Special Character",
// Table Dialog
DlgTableTitle : "Table Properties",
DlgTableRows : "Rows",
DlgTableColumns : "Columns",
DlgTableBorder : "Border size",
DlgTableAlign : "Alignment",
DlgTableAlignNotSet : "<Not set>",
DlgTableAlignLeft : "Left",
DlgTableAlignCenter : "Centre",
DlgTableAlignRight : "Right",
DlgTableWidth : "Width",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "percent",
DlgTableHeight : "Height",
DlgTableCellSpace : "Cell spacing",
DlgTableCellPad : "Cell padding",
DlgTableCaption : "Caption",
DlgTableSummary : "Summary",
// Table Cell Dialog
DlgCellTitle : "Cell Properties",
DlgCellWidth : "Width",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "percent",
DlgCellHeight : "Height",
DlgCellWordWrap : "Word Wrap",
DlgCellWordWrapNotSet : "<Not set>",
DlgCellWordWrapYes : "Yes",
DlgCellWordWrapNo : "No",
DlgCellHorAlign : "Horizontal Alignment",
DlgCellHorAlignNotSet : "<Not set>",
DlgCellHorAlignLeft : "Left",
DlgCellHorAlignCenter : "Centre",
DlgCellHorAlignRight: "Right",
DlgCellVerAlign : "Vertical Alignment",
DlgCellVerAlignNotSet : "<Not set>",
DlgCellVerAlignTop : "Top",
DlgCellVerAlignMiddle : "Middle",
DlgCellVerAlignBottom : "Bottom",
DlgCellVerAlignBaseline : "Baseline",
DlgCellRowSpan : "Rows Span",
DlgCellCollSpan : "Columns Span",
DlgCellBackColor : "Background Colour",
DlgCellBorderColor : "Border Colour",
DlgCellBtnSelect : "Select...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace",
// Find Dialog
DlgFindTitle : "Find",
DlgFindFindBtn : "Find",
DlgFindNotFoundMsg : "The specified text was not found.",
// Replace Dialog
DlgReplaceTitle : "Replace",
DlgReplaceFindLbl : "Find what:",
DlgReplaceReplaceLbl : "Replace with:",
DlgReplaceCaseChk : "Match case",
DlgReplaceReplaceBtn : "Replace",
DlgReplaceReplAllBtn : "Replace All",
DlgReplaceWordChk : "Match whole word",
// Paste Operations / Dialog
PasteErrorCut : "Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl+X).",
PasteErrorCopy : "Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl+C).",
PasteAsText : "Paste as Plain Text",
PasteFromWord : "Paste from Word",
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.",
DlgPasteIgnoreFont : "Ignore Font Face definitions",
DlgPasteRemoveStyles : "Remove Styles definitions",
// Color Picker
ColorAutomatic : "Automatic",
ColorMoreColors : "More Colours...",
// Document Properties
DocProps : "Document Properties",
// Anchor Dialog
DlgAnchorTitle : "Anchor Properties",
DlgAnchorName : "Anchor Name",
DlgAnchorErrorName : "Please type the anchor name",
// Speller Pages Dialog
DlgSpellNotInDic : "Not in dictionary",
DlgSpellChangeTo : "Change to",
DlgSpellBtnIgnore : "Ignore",
DlgSpellBtnIgnoreAll : "Ignore All",
DlgSpellBtnReplace : "Replace",
DlgSpellBtnReplaceAll : "Replace All",
DlgSpellBtnUndo : "Undo",
DlgSpellNoSuggestions : "- No suggestions -",
DlgSpellProgress : "Spell check in progress...",
DlgSpellNoMispell : "Spell check complete: No misspellings found",
DlgSpellNoChanges : "Spell check complete: No words changed",
DlgSpellOneChange : "Spell check complete: One word changed",
DlgSpellManyChanges : "Spell check complete: %1 words changed",
IeSpellDownload : "Spell checker not installed. Do you want to download it now?",
// Button Dialog
DlgButtonText : "Text (Value)",
DlgButtonType : "Type",
DlgButtonTypeBtn : "Button",
DlgButtonTypeSbm : "Submit",
DlgButtonTypeRst : "Reset",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Name",
DlgCheckboxValue : "Value",
DlgCheckboxSelected : "Selected",
// Form Dialog
DlgFormName : "Name",
DlgFormAction : "Action",
DlgFormMethod : "Method",
// Select Field Dialog
DlgSelectName : "Name",
DlgSelectValue : "Value",
DlgSelectSize : "Size",
DlgSelectLines : "lines",
DlgSelectChkMulti : "Allow multiple selections",
DlgSelectOpAvail : "Available Options",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Value",
DlgSelectBtnAdd : "Add",
DlgSelectBtnModify : "Modify",
DlgSelectBtnUp : "Up",
DlgSelectBtnDown : "Down",
DlgSelectBtnSetValue : "Set as selected value",
DlgSelectBtnDelete : "Delete",
// Textarea Dialog
DlgTextareaName : "Name",
DlgTextareaCols : "Columns",
DlgTextareaRows : "Rows",
// Text Field Dialog
DlgTextName : "Name",
DlgTextValue : "Value",
DlgTextCharWidth : "Character Width",
DlgTextMaxChars : "Maximum Characters",
DlgTextType : "Type",
DlgTextTypeText : "Text",
DlgTextTypePass : "Password",
// Hidden Field Dialog
DlgHiddenName : "Name",
DlgHiddenValue : "Value",
// Bulleted List Dialog
BulletedListProp : "Bulleted List Properties",
NumberedListProp : "Numbered List Properties",
DlgLstStart : "Start",
DlgLstType : "Type",
DlgLstTypeCircle : "Circle",
DlgLstTypeDisc : "Disc",
DlgLstTypeSquare : "Square",
DlgLstTypeNumbers : "Numbers (1, 2, 3)",
DlgLstTypeLCase : "Lowercase Letters (a, b, c)",
DlgLstTypeUCase : "Uppercase Letters (A, B, C)",
DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)",
DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "General",
DlgDocBackTab : "Background",
DlgDocColorsTab : "Colours and Margins",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Page Title",
DlgDocLangDir : "Language Direction",
DlgDocLangDirLTR : "Left to Right (LTR)",
DlgDocLangDirRTL : "Right to Left (RTL)",
DlgDocLangCode : "Language Code",
DlgDocCharSet : "Character Set Encoding",
DlgDocCharSetCE : "Central European",
DlgDocCharSetCT : "Chinese Traditional (Big5)",
DlgDocCharSetCR : "Cyrillic",
DlgDocCharSetGR : "Greek",
DlgDocCharSetJP : "Japanese",
DlgDocCharSetKR : "Korean",
DlgDocCharSetTR : "Turkish",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Western European",
DlgDocCharSetOther : "Other Character Set Encoding",
DlgDocDocType : "Document Type Heading",
DlgDocDocTypeOther : "Other Document Type Heading",
DlgDocIncXHTML : "Include XHTML Declarations",
DlgDocBgColor : "Background Colour",
DlgDocBgImage : "Background Image URL",
DlgDocBgNoScroll : "Nonscrolling Background",
DlgDocCText : "Text",
DlgDocCLink : "Link",
DlgDocCVisited : "Visited Link",
DlgDocCActive : "Active Link",
DlgDocMargins : "Page Margins",
DlgDocMaTop : "Top",
DlgDocMaLeft : "Left",
DlgDocMaRight : "Right",
DlgDocMaBottom : "Bottom",
DlgDocMeIndex : "Document Indexing Keywords (comma separated)",
DlgDocMeDescr : "Document Description",
DlgDocMeAuthor : "Author",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Preview",
// Templates Dialog
Templates : "Templates",
DlgTemplatesTitle : "Content Templates",
DlgTemplatesSelMsg : "Please select the template to open in the editor<br />(the actual contents will be lost):",
DlgTemplatesLoading : "Loading templates list. Please wait...",
DlgTemplatesNoTpl : "(No templates defined)",
DlgTemplatesReplace : "Replace actual contents",
// About Dialog
DlgAboutAboutTab : "About",
DlgAboutBrowserInfoTab : "Browser Info",
DlgAboutLicenseTab : "License",
DlgAboutVersion : "version",
DlgAboutInfo : "For further information go to",
// Div Dialog
DlgDivGeneralTab : "General",
DlgDivAdvancedTab : "Advanced",
DlgDivStyle : "Style",
DlgDivInlineStyle : "Inline Style"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* German language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Symbolleiste einklappen",
ToolbarExpand : "Symbolleiste ausklappen",
// Toolbar Items and Context Menu
Save : "Speichern",
NewPage : "Neue Seite",
Preview : "Vorschau",
Cut : "Ausschneiden",
Copy : "Kopieren",
Paste : "Einfügen",
PasteText : "aus Textdatei einfügen",
PasteWord : "aus MS-Word einfügen",
Print : "Drucken",
SelectAll : "Alles auswählen",
RemoveFormat : "Formatierungen entfernen",
InsertLinkLbl : "Link",
InsertLink : "Link einfügen/editieren",
RemoveLink : "Link entfernen",
VisitLink : "Link aufrufen",
Anchor : "Anker einfügen/editieren",
AnchorDelete : "Anker entfernen",
InsertImageLbl : "Bild",
InsertImage : "Bild einfügen/editieren",
InsertFlashLbl : "Flash",
InsertFlash : "Flash einfügen/editieren",
InsertTableLbl : "Tabelle",
InsertTable : "Tabelle einfügen/editieren",
InsertLineLbl : "Linie",
InsertLine : "Horizontale Linie einfügen",
InsertSpecialCharLbl: "Sonderzeichen",
InsertSpecialChar : "Sonderzeichen einfügen/editieren",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Smiley einfügen",
About : "Über FCKeditor",
Bold : "Fett",
Italic : "Kursiv",
Underline : "Unterstrichen",
StrikeThrough : "Durchgestrichen",
Subscript : "Tiefgestellt",
Superscript : "Hochgestellt",
LeftJustify : "Linksbündig",
CenterJustify : "Zentriert",
RightJustify : "Rechtsbündig",
BlockJustify : "Blocksatz",
DecreaseIndent : "Einzug verringern",
IncreaseIndent : "Einzug erhöhen",
Blockquote : "Zitatblock",
CreateDiv : "Erzeuge Div Block",
EditDiv : "Bearbeite Div Block",
DeleteDiv : "Entferne Div Block",
Undo : "Rückgängig",
Redo : "Wiederherstellen",
NumberedListLbl : "Nummerierte Liste",
NumberedList : "Nummerierte Liste einfügen/entfernen",
BulletedListLbl : "Liste",
BulletedList : "Liste einfügen/entfernen",
ShowTableBorders : "Zeige Tabellenrahmen",
ShowDetails : "Zeige Details",
Style : "Stil",
FontFormat : "Format",
Font : "Schriftart",
FontSize : "Größe",
TextColor : "Textfarbe",
BGColor : "Hintergrundfarbe",
Source : "Quellcode",
Find : "Suchen",
Replace : "Ersetzen",
SpellCheck : "Rechtschreibprüfung",
UniversalKeyboard : "Universal-Tastatur",
PageBreakLbl : "Seitenumbruch",
PageBreak : "Seitenumbruch einfügen",
Form : "Formular",
Checkbox : "Checkbox",
RadioButton : "Radiobutton",
TextField : "Textfeld einzeilig",
Textarea : "Textfeld mehrzeilig",
HiddenField : "verstecktes Feld",
Button : "Klickbutton",
SelectionField : "Auswahlfeld",
ImageButton : "Bildbutton",
FitWindow : "Editor maximieren",
ShowBlocks : "Blöcke anzeigen",
// Context Menu
EditLink : "Link editieren",
CellCM : "Zelle",
RowCM : "Zeile",
ColumnCM : "Spalte",
InsertRowAfter : "Zeile unterhalb einfügen",
InsertRowBefore : "Zeile oberhalb einfügen",
DeleteRows : "Zeile entfernen",
InsertColumnAfter : "Spalte rechts danach einfügen",
InsertColumnBefore : "Spalte links davor einfügen",
DeleteColumns : "Spalte löschen",
InsertCellAfter : "Zelle danach einfügen",
InsertCellBefore : "Zelle davor einfügen",
DeleteCells : "Zelle löschen",
MergeCells : "Zellen verbinden",
MergeRight : "nach rechts verbinden",
MergeDown : "nach unten verbinden",
HorizontalSplitCell : "Zelle horizontal teilen",
VerticalSplitCell : "Zelle vertikal teilen",
TableDelete : "Tabelle löschen",
CellProperties : "Zellen-Eigenschaften",
TableProperties : "Tabellen-Eigenschaften",
ImageProperties : "Bild-Eigenschaften",
FlashProperties : "Flash-Eigenschaften",
AnchorProp : "Anker-Eigenschaften",
ButtonProp : "Button-Eigenschaften",
CheckboxProp : "Checkbox-Eigenschaften",
HiddenFieldProp : "Verstecktes Feld-Eigenschaften",
RadioButtonProp : "Optionsfeld-Eigenschaften",
ImageButtonProp : "Bildbutton-Eigenschaften",
TextFieldProp : "Textfeld (einzeilig) Eigenschaften",
SelectionFieldProp : "Auswahlfeld-Eigenschaften",
TextareaProp : "Textfeld (mehrzeilig) Eigenschaften",
FormProp : "Formular-Eigenschaften",
FontFormats : "Normal;Formatiert;Addresse;Überschrift 1;Überschrift 2;Überschrift 3;Überschrift 4;Überschrift 5;Überschrift 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Bearbeite XHTML. Bitte warten...",
Done : "Fertig",
PasteWordConfirm : "Der Text, den Sie einfügen möchten, scheint aus MS-Word kopiert zu sein. Möchten Sie ihn zuvor bereinigen lassen?",
NotCompatiblePaste : "Diese Funktion steht nur im Internet Explorer ab Version 5.5 zur Verfügung. Möchten Sie den Text unbereinigt einfügen?",
UnknownToolbarItem : "Unbekanntes Menüleisten-Objekt \"%1\"",
UnknownCommand : "Unbekannter Befehl \"%1\"",
NotImplemented : "Befehl nicht implementiert",
UnknownToolbarSet : "Menüleiste \"%1\" existiert nicht",
NoActiveX : "Die Sicherheitseinstellungen Ihres Browsers beschränken evtl. einige Funktionen des Editors. Aktivieren Sie die Option \"ActiveX-Steuerelemente und Plugins ausführen\" in den Sicherheitseinstellungen, um diese Funktionen nutzen zu können",
BrowseServerBlocked : "Ein Auswahlfenster konnte nicht geöffnet werden. Stellen Sie sicher, das alle Popup-Blocker ausgeschaltet sind.",
DialogBlocked : "Das Dialog-Fenster konnte nicht geöffnet werden. Stellen Sie sicher, das alle Popup-Blocker ausgeschaltet sind.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Abbrechen",
DlgBtnClose : "Schließen",
DlgBtnBrowseServer : "Server durchsuchen",
DlgAdvancedTag : "Erweitert",
DlgOpOther : "<andere>",
DlgInfoTab : "Info",
DlgAlertUrl : "Bitte tragen Sie die URL ein",
// General Dialogs Labels
DlgGenNotSet : "<nichts>",
DlgGenId : "ID",
DlgGenLangDir : "Schreibrichtung",
DlgGenLangDirLtr : "Links nach Rechts (LTR)",
DlgGenLangDirRtl : "Rechts nach Links (RTL)",
DlgGenLangCode : "Sprachenkürzel",
DlgGenAccessKey : "Zugriffstaste",
DlgGenName : "Name",
DlgGenTabIndex : "Tab-Index",
DlgGenLongDescr : "Langform URL",
DlgGenClass : "Stylesheet Klasse",
DlgGenTitle : "Titel Beschreibung",
DlgGenContType : "Inhaltstyp",
DlgGenLinkCharset : "Ziel-Zeichensatz",
DlgGenStyle : "Style",
// Image Dialog
DlgImgTitle : "Bild-Eigenschaften",
DlgImgInfoTab : "Bild-Info",
DlgImgBtnUpload : "Zum Server senden",
DlgImgURL : "Bildauswahl",
DlgImgUpload : "Upload",
DlgImgAlt : "Alternativer Text",
DlgImgWidth : "Breite",
DlgImgHeight : "Höhe",
DlgImgLockRatio : "Größenverhältniss beibehalten",
DlgBtnResetSize : "Größe zurücksetzen",
DlgImgBorder : "Rahmen",
DlgImgHSpace : "H-Abstand",
DlgImgVSpace : "V-Abstand",
DlgImgAlign : "Ausrichtung",
DlgImgAlignLeft : "Links",
DlgImgAlignAbsBottom: "Abs Unten",
DlgImgAlignAbsMiddle: "Abs Mitte",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Unten",
DlgImgAlignMiddle : "Mitte",
DlgImgAlignRight : "Rechts",
DlgImgAlignTextTop : "Text Oben",
DlgImgAlignTop : "Oben",
DlgImgPreview : "Vorschau",
DlgImgAlertUrl : "Bitte geben Sie die Bild-URL an",
DlgImgLinkTab : "Link",
// Flash Dialog
DlgFlashTitle : "Flash-Eigenschaften",
DlgFlashChkPlay : "autom. Abspielen",
DlgFlashChkLoop : "Endlosschleife",
DlgFlashChkMenu : "Flash-Menü aktivieren",
DlgFlashScale : "Skalierung",
DlgFlashScaleAll : "Alles anzeigen",
DlgFlashScaleNoBorder : "ohne Rand",
DlgFlashScaleFit : "Passgenau",
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link-Info",
DlgLnkTargetTab : "Zielseite",
DlgLnkType : "Link-Typ",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Anker in dieser Seite",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokoll",
DlgLnkProtoOther : "<anderes>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Anker auswählen",
DlgLnkAnchorByName : "nach Anker Name",
DlgLnkAnchorById : "nach Element Id",
DlgLnkNoAnchors : "(keine Anker im Dokument vorhanden)",
DlgLnkEMail : "E-Mail Addresse",
DlgLnkEMailSubject : "Betreffzeile",
DlgLnkEMailBody : "Nachrichtentext",
DlgLnkUpload : "Upload",
DlgLnkBtnUpload : "Zum Server senden",
DlgLnkTarget : "Zielseite",
DlgLnkTargetFrame : "<Frame>",
DlgLnkTargetPopup : "<Pop-up Fenster>",
DlgLnkTargetBlank : "Neues Fenster (_blank)",
DlgLnkTargetParent : "Oberes Fenster (_parent)",
DlgLnkTargetSelf : "Gleiches Fenster (_self)",
DlgLnkTargetTop : "Oberstes Fenster (_top)",
DlgLnkTargetFrameName : "Ziel-Fenster-Name",
DlgLnkPopWinName : "Pop-up Fenster-Name",
DlgLnkPopWinFeat : "Pop-up Fenster-Eigenschaften",
DlgLnkPopResize : "Vergrößerbar",
DlgLnkPopLocation : "Adress-Leiste",
DlgLnkPopMenu : "Menü-Leiste",
DlgLnkPopScroll : "Rollbalken",
DlgLnkPopStatus : "Statusleiste",
DlgLnkPopToolbar : "Werkzeugleiste",
DlgLnkPopFullScrn : "Vollbild (IE)",
DlgLnkPopDependent : "Abhängig (Netscape)",
DlgLnkPopWidth : "Breite",
DlgLnkPopHeight : "Höhe",
DlgLnkPopLeft : "Linke Position",
DlgLnkPopTop : "Obere Position",
DlnLnkMsgNoUrl : "Bitte geben Sie die Link-URL an",
DlnLnkMsgNoEMail : "Bitte geben Sie e-Mail Adresse an",
DlnLnkMsgNoAnchor : "Bitte wählen Sie einen Anker aus",
DlnLnkMsgInvPopName : "Der Name des Popups muss mit einem Buchstaben beginnen und darf keine Leerzeichen enthalten",
// Color Dialog
DlgColorTitle : "Farbauswahl",
DlgColorBtnClear : "Keine Farbe",
DlgColorHighlight : "Vorschau",
DlgColorSelected : "Ausgewählt",
// Smiley Dialog
DlgSmileyTitle : "Smiley auswählen",
// Special Character Dialog
DlgSpecialCharTitle : "Sonderzeichen auswählen",
// Table Dialog
DlgTableTitle : "Tabellen-Eigenschaften",
DlgTableRows : "Zeile",
DlgTableColumns : "Spalte",
DlgTableBorder : "Rahmen",
DlgTableAlign : "Ausrichtung",
DlgTableAlignNotSet : "<keine>",
DlgTableAlignLeft : "Links",
DlgTableAlignCenter : "Zentriert",
DlgTableAlignRight : "Rechts",
DlgTableWidth : "Breite",
DlgTableWidthPx : "Pixel",
DlgTableWidthPc : "%",
DlgTableHeight : "Höhe",
DlgTableCellSpace : "Zellenabstand außen",
DlgTableCellPad : "Zellenabstand innen",
DlgTableCaption : "Überschrift",
DlgTableSummary : "Inhaltsübersicht",
// Table Cell Dialog
DlgCellTitle : "Zellen-Eigenschaften",
DlgCellWidth : "Breite",
DlgCellWidthPx : "Pixel",
DlgCellWidthPc : "%",
DlgCellHeight : "Höhe",
DlgCellWordWrap : "Umbruch",
DlgCellWordWrapNotSet : "<keiner>",
DlgCellWordWrapYes : "Ja",
DlgCellWordWrapNo : "Nein",
DlgCellHorAlign : "Horizontale Ausrichtung",
DlgCellHorAlignNotSet : "<keine>",
DlgCellHorAlignLeft : "Links",
DlgCellHorAlignCenter : "Zentriert",
DlgCellHorAlignRight: "Rechts",
DlgCellVerAlign : "Vertikale Ausrichtung",
DlgCellVerAlignNotSet : "<keine>",
DlgCellVerAlignTop : "Oben",
DlgCellVerAlignMiddle : "Mitte",
DlgCellVerAlignBottom : "Unten",
DlgCellVerAlignBaseline : "Grundlinie",
DlgCellRowSpan : "Zeilen zusammenfassen",
DlgCellCollSpan : "Spalten zusammenfassen",
DlgCellBackColor : "Hintergrundfarbe",
DlgCellBorderColor : "Rahmenfarbe",
DlgCellBtnSelect : "Auswahl...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Suchen und Ersetzen",
// Find Dialog
DlgFindTitle : "Finden",
DlgFindFindBtn : "Finden",
DlgFindNotFoundMsg : "Der gesuchte Text wurde nicht gefunden.",
// Replace Dialog
DlgReplaceTitle : "Ersetzen",
DlgReplaceFindLbl : "Suche nach:",
DlgReplaceReplaceLbl : "Ersetze mit:",
DlgReplaceCaseChk : "Groß-Kleinschreibung beachten",
DlgReplaceReplaceBtn : "Ersetzen",
DlgReplaceReplAllBtn : "Alle Ersetzen",
DlgReplaceWordChk : "Nur ganze Worte suchen",
// Paste Operations / Dialog
PasteErrorCut : "Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).",
PasteErrorCopy : "Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).",
PasteAsText : "Als Text einfügen",
PasteFromWord : "Aus Word einfügen",
DlgPasteMsg2 : "Bitte fügen Sie den Text in der folgenden Box über die Tastatur (mit <STRONG>Strg+V</STRONG>) ein und bestätigen Sie mit <STRONG>OK</STRONG>.",
DlgPasteSec : "Aufgrund von Sicherheitsbeschränkungen Ihres Browsers kann der Editor nicht direkt auf die Zwischenablage zugreifen. Bitte fügen Sie den Inhalt erneut in diesem Fenster ein.",
DlgPasteIgnoreFont : "Ignoriere Schriftart-Definitionen",
DlgPasteRemoveStyles : "Entferne Style-Definitionen",
// Color Picker
ColorAutomatic : "Automatisch",
ColorMoreColors : "Weitere Farben...",
// Document Properties
DocProps : "Dokument-Eigenschaften",
// Anchor Dialog
DlgAnchorTitle : "Anker-Eigenschaften",
DlgAnchorName : "Anker Name",
DlgAnchorErrorName : "Bitte geben Sie den Namen des Ankers ein",
// Speller Pages Dialog
DlgSpellNotInDic : "Nicht im Wörterbuch",
DlgSpellChangeTo : "Ändern in",
DlgSpellBtnIgnore : "Ignorieren",
DlgSpellBtnIgnoreAll : "Alle Ignorieren",
DlgSpellBtnReplace : "Ersetzen",
DlgSpellBtnReplaceAll : "Alle Ersetzen",
DlgSpellBtnUndo : "Rückgängig",
DlgSpellNoSuggestions : " - keine Vorschläge - ",
DlgSpellProgress : "Rechtschreibprüfung läuft...",
DlgSpellNoMispell : "Rechtschreibprüfung abgeschlossen - keine Fehler gefunden",
DlgSpellNoChanges : "Rechtschreibprüfung abgeschlossen - keine Worte geändert",
DlgSpellOneChange : "Rechtschreibprüfung abgeschlossen - ein Wort geändert",
DlgSpellManyChanges : "Rechtschreibprüfung abgeschlossen - %1 Wörter geändert",
IeSpellDownload : "Rechtschreibprüfung nicht installiert. Möchten Sie sie jetzt herunterladen?",
// Button Dialog
DlgButtonText : "Text (Wert)",
DlgButtonType : "Typ",
DlgButtonTypeBtn : "Button",
DlgButtonTypeSbm : "Absenden",
DlgButtonTypeRst : "Zurücksetzen",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Name",
DlgCheckboxValue : "Wert",
DlgCheckboxSelected : "ausgewählt",
// Form Dialog
DlgFormName : "Name",
DlgFormAction : "Action",
DlgFormMethod : "Method",
// Select Field Dialog
DlgSelectName : "Name",
DlgSelectValue : "Wert",
DlgSelectSize : "Größe",
DlgSelectLines : "Linien",
DlgSelectChkMulti : "Erlaube Mehrfachauswahl",
DlgSelectOpAvail : "Mögliche Optionen",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Wert",
DlgSelectBtnAdd : "Hinzufügen",
DlgSelectBtnModify : "Ändern",
DlgSelectBtnUp : "Hoch",
DlgSelectBtnDown : "Runter",
DlgSelectBtnSetValue : "Setze als Standardwert",
DlgSelectBtnDelete : "Entfernen",
// Textarea Dialog
DlgTextareaName : "Name",
DlgTextareaCols : "Spalten",
DlgTextareaRows : "Reihen",
// Text Field Dialog
DlgTextName : "Name",
DlgTextValue : "Wert",
DlgTextCharWidth : "Zeichenbreite",
DlgTextMaxChars : "Max. Zeichen",
DlgTextType : "Typ",
DlgTextTypeText : "Text",
DlgTextTypePass : "Passwort",
// Hidden Field Dialog
DlgHiddenName : "Name",
DlgHiddenValue : "Wert",
// Bulleted List Dialog
BulletedListProp : "Listen-Eigenschaften",
NumberedListProp : "Nummerierte Listen-Eigenschaften",
DlgLstStart : "Start",
DlgLstType : "Typ",
DlgLstTypeCircle : "Ring",
DlgLstTypeDisc : "Kreis",
DlgLstTypeSquare : "Quadrat",
DlgLstTypeNumbers : "Nummern (1, 2, 3)",
DlgLstTypeLCase : "Kleinbuchstaben (a, b, c)",
DlgLstTypeUCase : "Großbuchstaben (A, B, C)",
DlgLstTypeSRoman : "Kleine römische Zahlen (i, ii, iii)",
DlgLstTypeLRoman : "Große römische Zahlen (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Allgemein",
DlgDocBackTab : "Hintergrund",
DlgDocColorsTab : "Farben und Abstände",
DlgDocMetaTab : "Metadaten",
DlgDocPageTitle : "Seitentitel",
DlgDocLangDir : "Schriftrichtung",
DlgDocLangDirLTR : "Links nach Rechts",
DlgDocLangDirRTL : "Rechts nach Links",
DlgDocLangCode : "Sprachkürzel",
DlgDocCharSet : "Zeichenkodierung",
DlgDocCharSetCE : "Zentraleuropäisch",
DlgDocCharSetCT : "traditionell Chinesisch (Big5)",
DlgDocCharSetCR : "Kyrillisch",
DlgDocCharSetGR : "Griechisch",
DlgDocCharSetJP : "Japanisch",
DlgDocCharSetKR : "Koreanisch",
DlgDocCharSetTR : "Türkisch",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Westeuropäisch",
DlgDocCharSetOther : "Andere Zeichenkodierung",
DlgDocDocType : "Dokumententyp",
DlgDocDocTypeOther : "Anderer Dokumententyp",
DlgDocIncXHTML : "Beziehe XHTML Deklarationen ein",
DlgDocBgColor : "Hintergrundfarbe",
DlgDocBgImage : "Hintergrundbild URL",
DlgDocBgNoScroll : "feststehender Hintergrund",
DlgDocCText : "Text",
DlgDocCLink : "Link",
DlgDocCVisited : "Besuchter Link",
DlgDocCActive : "Aktiver Link",
DlgDocMargins : "Seitenränder",
DlgDocMaTop : "Oben",
DlgDocMaLeft : "Links",
DlgDocMaRight : "Rechts",
DlgDocMaBottom : "Unten",
DlgDocMeIndex : "Schlüsselwörter (durch Komma getrennt)",
DlgDocMeDescr : "Dokument-Beschreibung",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Vorschau",
// Templates Dialog
Templates : "Vorlagen",
DlgTemplatesTitle : "Vorlagen",
DlgTemplatesSelMsg : "Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen (der aktuelle Inhalt wird dabei gelöscht!):",
DlgTemplatesLoading : "Liste der Vorlagen wird geladen. Bitte warten...",
DlgTemplatesNoTpl : "(keine Vorlagen definiert)",
DlgTemplatesReplace : "Aktuellen Inhalt ersetzen",
// About Dialog
DlgAboutAboutTab : "Über",
DlgAboutBrowserInfoTab : "Browser-Info",
DlgAboutLicenseTab : "Lizenz",
DlgAboutVersion : "Version",
DlgAboutInfo : "Für weitere Informationen siehe",
// Div Dialog
DlgDivGeneralTab : "Allgemein",
DlgDivAdvancedTab : "Erweitert",
DlgDivStyle : "Style",
DlgDivInlineStyle : "Inline Style"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* English language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Collapse Toolbar",
ToolbarExpand : "Expand Toolbar",
// Toolbar Items and Context Menu
Save : "Save",
NewPage : "New Page",
Preview : "Preview",
Cut : "Cut",
Copy : "Copy",
Paste : "Paste",
PasteText : "Paste as plain text",
PasteWord : "Paste from Word",
Print : "Print",
SelectAll : "Select All",
RemoveFormat : "Remove Format",
InsertLinkLbl : "Link",
InsertLink : "Insert/Edit Link",
RemoveLink : "Remove Link",
VisitLink : "Open Link",
Anchor : "Insert/Edit Anchor",
AnchorDelete : "Remove Anchor",
InsertImageLbl : "Image",
InsertImage : "Insert/Edit Image",
InsertFlashLbl : "Flash",
InsertFlash : "Insert/Edit Flash",
InsertTableLbl : "Table",
InsertTable : "Insert/Edit Table",
InsertLineLbl : "Line",
InsertLine : "Insert Horizontal Line",
InsertSpecialCharLbl: "Special Character",
InsertSpecialChar : "Insert Special Character",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Insert Smiley",
About : "About FCKeditor",
Bold : "Bold",
Italic : "Italic",
Underline : "Underline",
StrikeThrough : "Strike Through",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Left Justify",
CenterJustify : "Center Justify",
RightJustify : "Right Justify",
BlockJustify : "Block Justify",
DecreaseIndent : "Decrease Indent",
IncreaseIndent : "Increase Indent",
Blockquote : "Blockquote",
CreateDiv : "Create Div Container",
EditDiv : "Edit Div Container",
DeleteDiv : "Remove Div Container",
Undo : "Undo",
Redo : "Redo",
NumberedListLbl : "Numbered List",
NumberedList : "Insert/Remove Numbered List",
BulletedListLbl : "Bulleted List",
BulletedList : "Insert/Remove Bulleted List",
ShowTableBorders : "Show Table Borders",
ShowDetails : "Show Details",
Style : "Style",
FontFormat : "Format",
Font : "Font",
FontSize : "Size",
TextColor : "Text Color",
BGColor : "Background Color",
Source : "Source",
Find : "Find",
Replace : "Replace",
SpellCheck : "Check Spelling",
UniversalKeyboard : "Universal Keyboard",
PageBreakLbl : "Page Break",
PageBreak : "Insert Page Break",
Form : "Form",
Checkbox : "Checkbox",
RadioButton : "Radio Button",
TextField : "Text Field",
Textarea : "Textarea",
HiddenField : "Hidden Field",
Button : "Button",
SelectionField : "Selection Field",
ImageButton : "Image Button",
FitWindow : "Maximize the editor size",
ShowBlocks : "Show Blocks",
// Context Menu
EditLink : "Edit Link",
CellCM : "Cell",
RowCM : "Row",
ColumnCM : "Column",
InsertRowAfter : "Insert Row After",
InsertRowBefore : "Insert Row Before",
DeleteRows : "Delete Rows",
InsertColumnAfter : "Insert Column After",
InsertColumnBefore : "Insert Column Before",
DeleteColumns : "Delete Columns",
InsertCellAfter : "Insert Cell After",
InsertCellBefore : "Insert Cell Before",
DeleteCells : "Delete Cells",
MergeCells : "Merge Cells",
MergeRight : "Merge Right",
MergeDown : "Merge Down",
HorizontalSplitCell : "Split Cell Horizontally",
VerticalSplitCell : "Split Cell Vertically",
TableDelete : "Delete Table",
CellProperties : "Cell Properties",
TableProperties : "Table Properties",
ImageProperties : "Image Properties",
FlashProperties : "Flash Properties",
AnchorProp : "Anchor Properties",
ButtonProp : "Button Properties",
CheckboxProp : "Checkbox Properties",
HiddenFieldProp : "Hidden Field Properties",
RadioButtonProp : "Radio Button Properties",
ImageButtonProp : "Image Button Properties",
TextFieldProp : "Text Field Properties",
SelectionFieldProp : "Selection Field Properties",
TextareaProp : "Textarea Properties",
FormProp : "Form Properties",
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Processing XHTML. Please wait...",
Done : "Done",
PasteWordConfirm : "The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?",
NotCompatiblePaste : "This command is available for Internet Explorer version 5.5 or more. Do you want to paste without cleaning?",
UnknownToolbarItem : "Unknown toolbar item \"%1\"",
UnknownCommand : "Unknown command name \"%1\"",
NotImplemented : "Command not implemented",
UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.",
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.",
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Cancel",
DlgBtnClose : "Close",
DlgBtnBrowseServer : "Browse Server",
DlgAdvancedTag : "Advanced",
DlgOpOther : "<Other>",
DlgInfoTab : "Info",
DlgAlertUrl : "Please insert the URL",
// General Dialogs Labels
DlgGenNotSet : "<not set>",
DlgGenId : "Id",
DlgGenLangDir : "Language Direction",
DlgGenLangDirLtr : "Left to Right (LTR)",
DlgGenLangDirRtl : "Right to Left (RTL)",
DlgGenLangCode : "Language Code",
DlgGenAccessKey : "Access Key",
DlgGenName : "Name",
DlgGenTabIndex : "Tab Index",
DlgGenLongDescr : "Long Description URL",
DlgGenClass : "Stylesheet Classes",
DlgGenTitle : "Advisory Title",
DlgGenContType : "Advisory Content Type",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Style",
// Image Dialog
DlgImgTitle : "Image Properties",
DlgImgInfoTab : "Image Info",
DlgImgBtnUpload : "Send it to the Server",
DlgImgURL : "URL",
DlgImgUpload : "Upload",
DlgImgAlt : "Alternative Text",
DlgImgWidth : "Width",
DlgImgHeight : "Height",
DlgImgLockRatio : "Lock Ratio",
DlgBtnResetSize : "Reset Size",
DlgImgBorder : "Border",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Align",
DlgImgAlignLeft : "Left",
DlgImgAlignAbsBottom: "Abs Bottom",
DlgImgAlignAbsMiddle: "Abs Middle",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Bottom",
DlgImgAlignMiddle : "Middle",
DlgImgAlignRight : "Right",
DlgImgAlignTextTop : "Text Top",
DlgImgAlignTop : "Top",
DlgImgPreview : "Preview",
DlgImgAlertUrl : "Please type the image URL",
DlgImgLinkTab : "Link",
// Flash Dialog
DlgFlashTitle : "Flash Properties",
DlgFlashChkPlay : "Auto Play",
DlgFlashChkLoop : "Loop",
DlgFlashChkMenu : "Enable Flash Menu",
DlgFlashScale : "Scale",
DlgFlashScaleAll : "Show all",
DlgFlashScaleNoBorder : "No Border",
DlgFlashScaleFit : "Exact Fit",
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link Info",
DlgLnkTargetTab : "Target",
DlgLnkType : "Link Type",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Link to anchor in the text",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocol",
DlgLnkProtoOther : "<other>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Select an Anchor",
DlgLnkAnchorByName : "By Anchor Name",
DlgLnkAnchorById : "By Element Id",
DlgLnkNoAnchors : "(No anchors available in the document)",
DlgLnkEMail : "E-Mail Address",
DlgLnkEMailSubject : "Message Subject",
DlgLnkEMailBody : "Message Body",
DlgLnkUpload : "Upload",
DlgLnkBtnUpload : "Send it to the Server",
DlgLnkTarget : "Target",
DlgLnkTargetFrame : "<frame>",
DlgLnkTargetPopup : "<popup window>",
DlgLnkTargetBlank : "New Window (_blank)",
DlgLnkTargetParent : "Parent Window (_parent)",
DlgLnkTargetSelf : "Same Window (_self)",
DlgLnkTargetTop : "Topmost Window (_top)",
DlgLnkTargetFrameName : "Target Frame Name",
DlgLnkPopWinName : "Popup Window Name",
DlgLnkPopWinFeat : "Popup Window Features",
DlgLnkPopResize : "Resizable",
DlgLnkPopLocation : "Location Bar",
DlgLnkPopMenu : "Menu Bar",
DlgLnkPopScroll : "Scroll Bars",
DlgLnkPopStatus : "Status Bar",
DlgLnkPopToolbar : "Toolbar",
DlgLnkPopFullScrn : "Full Screen (IE)",
DlgLnkPopDependent : "Dependent (Netscape)",
DlgLnkPopWidth : "Width",
DlgLnkPopHeight : "Height",
DlgLnkPopLeft : "Left Position",
DlgLnkPopTop : "Top Position",
DlnLnkMsgNoUrl : "Please type the link URL",
DlnLnkMsgNoEMail : "Please type the e-mail address",
DlnLnkMsgNoAnchor : "Please select an anchor",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces",
// Color Dialog
DlgColorTitle : "Select Color",
DlgColorBtnClear : "Clear",
DlgColorHighlight : "Highlight",
DlgColorSelected : "Selected",
// Smiley Dialog
DlgSmileyTitle : "Insert a Smiley",
// Special Character Dialog
DlgSpecialCharTitle : "Select Special Character",
// Table Dialog
DlgTableTitle : "Table Properties",
DlgTableRows : "Rows",
DlgTableColumns : "Columns",
DlgTableBorder : "Border size",
DlgTableAlign : "Alignment",
DlgTableAlignNotSet : "<Not set>",
DlgTableAlignLeft : "Left",
DlgTableAlignCenter : "Center",
DlgTableAlignRight : "Right",
DlgTableWidth : "Width",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "percent",
DlgTableHeight : "Height",
DlgTableCellSpace : "Cell spacing",
DlgTableCellPad : "Cell padding",
DlgTableCaption : "Caption",
DlgTableSummary : "Summary",
// Table Cell Dialog
DlgCellTitle : "Cell Properties",
DlgCellWidth : "Width",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "percent",
DlgCellHeight : "Height",
DlgCellWordWrap : "Word Wrap",
DlgCellWordWrapNotSet : "<Not set>",
DlgCellWordWrapYes : "Yes",
DlgCellWordWrapNo : "No",
DlgCellHorAlign : "Horizontal Alignment",
DlgCellHorAlignNotSet : "<Not set>",
DlgCellHorAlignLeft : "Left",
DlgCellHorAlignCenter : "Center",
DlgCellHorAlignRight: "Right",
DlgCellVerAlign : "Vertical Alignment",
DlgCellVerAlignNotSet : "<Not set>",
DlgCellVerAlignTop : "Top",
DlgCellVerAlignMiddle : "Middle",
DlgCellVerAlignBottom : "Bottom",
DlgCellVerAlignBaseline : "Baseline",
DlgCellRowSpan : "Rows Span",
DlgCellCollSpan : "Columns Span",
DlgCellBackColor : "Background Color",
DlgCellBorderColor : "Border Color",
DlgCellBtnSelect : "Select...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace",
// Find Dialog
DlgFindTitle : "Find",
DlgFindFindBtn : "Find",
DlgFindNotFoundMsg : "The specified text was not found.",
// Replace Dialog
DlgReplaceTitle : "Replace",
DlgReplaceFindLbl : "Find what:",
DlgReplaceReplaceLbl : "Replace with:",
DlgReplaceCaseChk : "Match case",
DlgReplaceReplaceBtn : "Replace",
DlgReplaceReplAllBtn : "Replace All",
DlgReplaceWordChk : "Match whole word",
// Paste Operations / Dialog
PasteErrorCut : "Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl+X).",
PasteErrorCopy : "Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl+C).",
PasteAsText : "Paste as Plain Text",
PasteFromWord : "Paste from Word",
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.",
DlgPasteIgnoreFont : "Ignore Font Face definitions",
DlgPasteRemoveStyles : "Remove Styles definitions",
// Color Picker
ColorAutomatic : "Automatic",
ColorMoreColors : "More Colors...",
// Document Properties
DocProps : "Document Properties",
// Anchor Dialog
DlgAnchorTitle : "Anchor Properties",
DlgAnchorName : "Anchor Name",
DlgAnchorErrorName : "Please type the anchor name",
// Speller Pages Dialog
DlgSpellNotInDic : "Not in dictionary",
DlgSpellChangeTo : "Change to",
DlgSpellBtnIgnore : "Ignore",
DlgSpellBtnIgnoreAll : "Ignore All",
DlgSpellBtnReplace : "Replace",
DlgSpellBtnReplaceAll : "Replace All",
DlgSpellBtnUndo : "Undo",
DlgSpellNoSuggestions : "- No suggestions -",
DlgSpellProgress : "Spell check in progress...",
DlgSpellNoMispell : "Spell check complete: No misspellings found",
DlgSpellNoChanges : "Spell check complete: No words changed",
DlgSpellOneChange : "Spell check complete: One word changed",
DlgSpellManyChanges : "Spell check complete: %1 words changed",
IeSpellDownload : "Spell checker not installed. Do you want to download it now?",
// Button Dialog
DlgButtonText : "Text (Value)",
DlgButtonType : "Type",
DlgButtonTypeBtn : "Button",
DlgButtonTypeSbm : "Submit",
DlgButtonTypeRst : "Reset",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Name",
DlgCheckboxValue : "Value",
DlgCheckboxSelected : "Selected",
// Form Dialog
DlgFormName : "Name",
DlgFormAction : "Action",
DlgFormMethod : "Method",
// Select Field Dialog
DlgSelectName : "Name",
DlgSelectValue : "Value",
DlgSelectSize : "Size",
DlgSelectLines : "lines",
DlgSelectChkMulti : "Allow multiple selections",
DlgSelectOpAvail : "Available Options",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Value",
DlgSelectBtnAdd : "Add",
DlgSelectBtnModify : "Modify",
DlgSelectBtnUp : "Up",
DlgSelectBtnDown : "Down",
DlgSelectBtnSetValue : "Set as selected value",
DlgSelectBtnDelete : "Delete",
// Textarea Dialog
DlgTextareaName : "Name",
DlgTextareaCols : "Columns",
DlgTextareaRows : "Rows",
// Text Field Dialog
DlgTextName : "Name",
DlgTextValue : "Value",
DlgTextCharWidth : "Character Width",
DlgTextMaxChars : "Maximum Characters",
DlgTextType : "Type",
DlgTextTypeText : "Text",
DlgTextTypePass : "Password",
// Hidden Field Dialog
DlgHiddenName : "Name",
DlgHiddenValue : "Value",
// Bulleted List Dialog
BulletedListProp : "Bulleted List Properties",
NumberedListProp : "Numbered List Properties",
DlgLstStart : "Start",
DlgLstType : "Type",
DlgLstTypeCircle : "Circle",
DlgLstTypeDisc : "Disc",
DlgLstTypeSquare : "Square",
DlgLstTypeNumbers : "Numbers (1, 2, 3)",
DlgLstTypeLCase : "Lowercase Letters (a, b, c)",
DlgLstTypeUCase : "Uppercase Letters (A, B, C)",
DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)",
DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "General",
DlgDocBackTab : "Background",
DlgDocColorsTab : "Colors and Margins",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Page Title",
DlgDocLangDir : "Language Direction",
DlgDocLangDirLTR : "Left to Right (LTR)",
DlgDocLangDirRTL : "Right to Left (RTL)",
DlgDocLangCode : "Language Code",
DlgDocCharSet : "Character Set Encoding",
DlgDocCharSetCE : "Central European",
DlgDocCharSetCT : "Chinese Traditional (Big5)",
DlgDocCharSetCR : "Cyrillic",
DlgDocCharSetGR : "Greek",
DlgDocCharSetJP : "Japanese",
DlgDocCharSetKR : "Korean",
DlgDocCharSetTR : "Turkish",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Western European",
DlgDocCharSetOther : "Other Character Set Encoding",
DlgDocDocType : "Document Type Heading",
DlgDocDocTypeOther : "Other Document Type Heading",
DlgDocIncXHTML : "Include XHTML Declarations",
DlgDocBgColor : "Background Color",
DlgDocBgImage : "Background Image URL",
DlgDocBgNoScroll : "Nonscrolling Background",
DlgDocCText : "Text",
DlgDocCLink : "Link",
DlgDocCVisited : "Visited Link",
DlgDocCActive : "Active Link",
DlgDocMargins : "Page Margins",
DlgDocMaTop : "Top",
DlgDocMaLeft : "Left",
DlgDocMaRight : "Right",
DlgDocMaBottom : "Bottom",
DlgDocMeIndex : "Document Indexing Keywords (comma separated)",
DlgDocMeDescr : "Document Description",
DlgDocMeAuthor : "Author",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Preview",
// Templates Dialog
Templates : "Templates",
DlgTemplatesTitle : "Content Templates",
DlgTemplatesSelMsg : "Please select the template to open in the editor<br />(the actual contents will be lost):",
DlgTemplatesLoading : "Loading templates list. Please wait...",
DlgTemplatesNoTpl : "(No templates defined)",
DlgTemplatesReplace : "Replace actual contents",
// About Dialog
DlgAboutAboutTab : "About",
DlgAboutBrowserInfoTab : "Browser Info",
DlgAboutLicenseTab : "License",
DlgAboutVersion : "version",
DlgAboutInfo : "For further information go to",
// Div Dialog
DlgDivGeneralTab : "General",
DlgDivAdvancedTab : "Advanced",
DlgDivStyle : "Style",
DlgDivInlineStyle : "Inline Style"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Catalan language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Redueix la barra d'eines",
ToolbarExpand : "Amplia la barra d'eines",
// Toolbar Items and Context Menu
Save : "Desa",
NewPage : "Nova Pàgina",
Preview : "Visualització prèvia",
Cut : "Retalla",
Copy : "Copia",
Paste : "Enganxa",
PasteText : "Enganxa com a text no formatat",
PasteWord : "Enganxa des del Word",
Print : "Imprimeix",
SelectAll : "Selecciona-ho tot",
RemoveFormat : "Elimina Format",
InsertLinkLbl : "Enllaç",
InsertLink : "Insereix/Edita enllaç",
RemoveLink : "Elimina l'enllaç",
VisitLink : "Obre l'enllaç",
Anchor : "Insereix/Edita àncora",
AnchorDelete : "Elimina àncora",
InsertImageLbl : "Imatge",
InsertImage : "Insereix/Edita imatge",
InsertFlashLbl : "Flash",
InsertFlash : "Insereix/Edita Flash",
InsertTableLbl : "Taula",
InsertTable : "Insereix/Edita taula",
InsertLineLbl : "Línia",
InsertLine : "Insereix línia horitzontal",
InsertSpecialCharLbl: "Caràcter Especial",
InsertSpecialChar : "Insereix caràcter especial",
InsertSmileyLbl : "Icona",
InsertSmiley : "Insereix icona",
About : "Quant a l'FCKeditor",
Bold : "Negreta",
Italic : "Cursiva",
Underline : "Subratllat",
StrikeThrough : "Barrat",
Subscript : "Subíndex",
Superscript : "Superíndex",
LeftJustify : "Alinia a l'esquerra",
CenterJustify : "Centrat",
RightJustify : "Alinia a la dreta",
BlockJustify : "Justificat",
DecreaseIndent : "Redueix el sagnat",
IncreaseIndent : "Augmenta el sagnat",
Blockquote : "Bloc de cita",
CreateDiv : "Crea un contenidor Div",
EditDiv : "Edita el contenidor Div",
DeleteDiv : "Elimina el contenidor Div",
Undo : "Desfés",
Redo : "Refés",
NumberedListLbl : "Llista numerada",
NumberedList : "Numeració activada/desactivada",
BulletedListLbl : "Llista de pics",
BulletedList : "Pics activats/descativats",
ShowTableBorders : "Mostra les vores de les taules",
ShowDetails : "Mostra detalls",
Style : "Estil",
FontFormat : "Format",
Font : "Tipus de lletra",
FontSize : "Mida",
TextColor : "Color de Text",
BGColor : "Color de Fons",
Source : "Codi font",
Find : "Cerca",
Replace : "Reemplaça",
SpellCheck : "Revisa l'ortografia",
UniversalKeyboard : "Teclat universal",
PageBreakLbl : "Salt de pàgina",
PageBreak : "Insereix salt de pàgina",
Form : "Formulari",
Checkbox : "Casella de verificació",
RadioButton : "Botó d'opció",
TextField : "Camp de text",
Textarea : "Àrea de text",
HiddenField : "Camp ocult",
Button : "Botó",
SelectionField : "Camp de selecció",
ImageButton : "Botó d'imatge",
FitWindow : "Maximiza la mida de l'editor",
ShowBlocks : "Mostra els blocs",
// Context Menu
EditLink : "Edita l'enllaç",
CellCM : "Cel·la",
RowCM : "Fila",
ColumnCM : "Columna",
InsertRowAfter : "Insereix fila darrera",
InsertRowBefore : "Insereix fila abans de",
DeleteRows : "Suprimeix una fila",
InsertColumnAfter : "Insereix columna darrera",
InsertColumnBefore : "Insereix columna abans de",
DeleteColumns : "Suprimeix una columna",
InsertCellAfter : "Insereix cel·la darrera",
InsertCellBefore : "Insereix cel·la abans de",
DeleteCells : "Suprimeix les cel·les",
MergeCells : "Fusiona les cel·les",
MergeRight : "Fusiona cap a la dreta",
MergeDown : "Fusiona cap avall",
HorizontalSplitCell : "Divideix la cel·la horitzontalment",
VerticalSplitCell : "Divideix la cel·la verticalment",
TableDelete : "Suprimeix la taula",
CellProperties : "Propietats de la cel·la",
TableProperties : "Propietats de la taula",
ImageProperties : "Propietats de la imatge",
FlashProperties : "Propietats del Flash",
AnchorProp : "Propietats de l'àncora",
ButtonProp : "Propietats del botó",
CheckboxProp : "Propietats de la casella de verificació",
HiddenFieldProp : "Propietats del camp ocult",
RadioButtonProp : "Propietats del botó d'opció",
ImageButtonProp : "Propietats del botó d'imatge",
TextFieldProp : "Propietats del camp de text",
SelectionFieldProp : "Propietats del camp de selecció",
TextareaProp : "Propietats de l'àrea de text",
FormProp : "Propietats del formulari",
FontFormats : "Normal;Formatejat;Adreça;Encapçalament 1;Encapçalament 2;Encapçalament 3;Encapçalament 4;Encapçalament 5;Encapçalament 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Processant XHTML. Si us plau esperi...",
Done : "Fet",
PasteWordConfirm : "El text que voleu enganxar sembla provenir de Word. Voleu netejar aquest text abans que sigui enganxat?",
NotCompatiblePaste : "Aquesta funció és disponible per a Internet Explorer versió 5.5 o superior. Voleu enganxar sense netejar?",
UnknownToolbarItem : "Element de la barra d'eines desconegut \"%1\"",
UnknownCommand : "Nom de comanda desconegut \"%1\"",
NotImplemented : "Mètode no implementat",
UnknownToolbarSet : "Conjunt de barra d'eines \"%1\" inexistent",
NoActiveX : "Les preferències del navegador poden limitar algunes funcions d'aquest editor. Cal habilitar l'opció \"Executa controls ActiveX i plug-ins\". Poden sorgir errors i poden faltar algunes funcions.",
BrowseServerBlocked : "El visualitzador de recursos no s'ha pogut obrir. Assegura't de que els bloquejos de finestres emergents estan desactivats.",
DialogBlocked : "No ha estat possible obrir una finestra de diàleg. Assegureu-vos que els bloquejos de finestres emergents estan desactivats.",
VisitLinkBlocked : "No ha estat possible obrir una nova finestra. Assegureu-vos que els bloquejos de finestres emergents estan desactivats.",
// Dialogs
DlgBtnOK : "D'acord",
DlgBtnCancel : "Cancel·la",
DlgBtnClose : "Tanca",
DlgBtnBrowseServer : "Veure servidor",
DlgAdvancedTag : "Avançat",
DlgOpOther : "Altres",
DlgInfoTab : "Info",
DlgAlertUrl : "Si us plau, afegiu la URL",
// General Dialogs Labels
DlgGenNotSet : "<no definit>",
DlgGenId : "Id",
DlgGenLangDir : "Direcció de l'idioma",
DlgGenLangDirLtr : "D'esquerra a dreta (LTR)",
DlgGenLangDirRtl : "De dreta a esquerra (RTL)",
DlgGenLangCode : "Codi d'idioma",
DlgGenAccessKey : "Clau d'accés",
DlgGenName : "Nom",
DlgGenTabIndex : "Index de Tab",
DlgGenLongDescr : "Descripció llarga de la URL",
DlgGenClass : "Classes del full d'estil",
DlgGenTitle : "Títol consultiu",
DlgGenContType : "Tipus de contingut consultiu",
DlgGenLinkCharset : "Conjunt de caràcters font enllaçat",
DlgGenStyle : "Estil",
// Image Dialog
DlgImgTitle : "Propietats de la imatge",
DlgImgInfoTab : "Informació de la imatge",
DlgImgBtnUpload : "Envia-la al servidor",
DlgImgURL : "URL",
DlgImgUpload : "Puja",
DlgImgAlt : "Text alternatiu",
DlgImgWidth : "Amplada",
DlgImgHeight : "Alçada",
DlgImgLockRatio : "Bloqueja les proporcions",
DlgBtnResetSize : "Restaura la mida",
DlgImgBorder : "Vora",
DlgImgHSpace : "Espaiat horit.",
DlgImgVSpace : "Espaiat vert.",
DlgImgAlign : "Alineació",
DlgImgAlignLeft : "Ajusta a l'esquerra",
DlgImgAlignAbsBottom: "Abs Bottom",
DlgImgAlignAbsMiddle: "Abs Middle",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Bottom",
DlgImgAlignMiddle : "Middle",
DlgImgAlignRight : "Ajusta a la dreta",
DlgImgAlignTextTop : "Text Top",
DlgImgAlignTop : "Top",
DlgImgPreview : "Vista prèvia",
DlgImgAlertUrl : "Si us plau, escriviu la URL de la imatge",
DlgImgLinkTab : "Enllaç",
// Flash Dialog
DlgFlashTitle : "Propietats del Flash",
DlgFlashChkPlay : "Reprodució automàtica",
DlgFlashChkLoop : "Bucle",
DlgFlashChkMenu : "Habilita menú Flash",
DlgFlashScale : "Escala",
DlgFlashScaleAll : "Mostra-ho tot",
DlgFlashScaleNoBorder : "Sense vores",
DlgFlashScaleFit : "Mida exacta",
// Link Dialog
DlgLnkWindowTitle : "Enllaç",
DlgLnkInfoTab : "Informació de l'enllaç",
DlgLnkTargetTab : "Destí",
DlgLnkType : "Tipus d'enllaç",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Àncora en aquesta pàgina",
DlgLnkTypeEMail : "Correu electrònic",
DlgLnkProto : "Protocol",
DlgLnkProtoOther : "<altra>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Selecciona una àncora",
DlgLnkAnchorByName : "Per nom d'àncora",
DlgLnkAnchorById : "Per Id d'element",
DlgLnkNoAnchors : "(No hi ha àncores disponibles en aquest document)",
DlgLnkEMail : "Adreça de correu electrònic",
DlgLnkEMailSubject : "Assumpte del missatge",
DlgLnkEMailBody : "Cos del missatge",
DlgLnkUpload : "Puja",
DlgLnkBtnUpload : "Envia al servidor",
DlgLnkTarget : "Destí",
DlgLnkTargetFrame : "<marc>",
DlgLnkTargetPopup : "<finestra emergent>",
DlgLnkTargetBlank : "Nova finestra (_blank)",
DlgLnkTargetParent : "Finestra pare (_parent)",
DlgLnkTargetSelf : "Mateixa finestra (_self)",
DlgLnkTargetTop : "Finestra Major (_top)",
DlgLnkTargetFrameName : "Nom del marc de destí",
DlgLnkPopWinName : "Nom finestra popup",
DlgLnkPopWinFeat : "Característiques finestra popup",
DlgLnkPopResize : "Redimensionable",
DlgLnkPopLocation : "Barra d'adreça",
DlgLnkPopMenu : "Barra de menú",
DlgLnkPopScroll : "Barres d'scroll",
DlgLnkPopStatus : "Barra d'estat",
DlgLnkPopToolbar : "Barra d'eines",
DlgLnkPopFullScrn : "Pantalla completa (IE)",
DlgLnkPopDependent : "Depenent (Netscape)",
DlgLnkPopWidth : "Amplada",
DlgLnkPopHeight : "Alçada",
DlgLnkPopLeft : "Posició esquerra",
DlgLnkPopTop : "Posició dalt",
DlnLnkMsgNoUrl : "Si us plau, escrigui l'enllaç URL",
DlnLnkMsgNoEMail : "Si us plau, escrigui l'adreça correu electrònic",
DlnLnkMsgNoAnchor : "Si us plau, escrigui l'àncora",
DlnLnkMsgInvPopName : "El nom de la finestra emergent ha de començar amb una lletra i no pot tenir espais",
// Color Dialog
DlgColorTitle : "Selecciona el color",
DlgColorBtnClear : "Neteja",
DlgColorHighlight : "Realça",
DlgColorSelected : "Selecciona",
// Smiley Dialog
DlgSmileyTitle : "Insereix una icona",
// Special Character Dialog
DlgSpecialCharTitle : "Selecciona el caràcter especial",
// Table Dialog
DlgTableTitle : "Propietats de la taula",
DlgTableRows : "Files",
DlgTableColumns : "Columnes",
DlgTableBorder : "Mida vora",
DlgTableAlign : "Alineació",
DlgTableAlignNotSet : "<No Definit>",
DlgTableAlignLeft : "Esquerra",
DlgTableAlignCenter : "Centre",
DlgTableAlignRight : "Dreta",
DlgTableWidth : "Amplada",
DlgTableWidthPx : "píxels",
DlgTableWidthPc : "percentatge",
DlgTableHeight : "Alçada",
DlgTableCellSpace : "Espaiat de cel·les",
DlgTableCellPad : "Encoixinament de cel·les",
DlgTableCaption : "Títol",
DlgTableSummary : "Resum",
// Table Cell Dialog
DlgCellTitle : "Propietats de la cel·la",
DlgCellWidth : "Amplada",
DlgCellWidthPx : "píxels",
DlgCellWidthPc : "percentatge",
DlgCellHeight : "Alçada",
DlgCellWordWrap : "Ajust de paraula",
DlgCellWordWrapNotSet : "<No Definit>",
DlgCellWordWrapYes : "Si",
DlgCellWordWrapNo : "No",
DlgCellHorAlign : "Alineació horitzontal",
DlgCellHorAlignNotSet : "<No Definit>",
DlgCellHorAlignLeft : "Esquerra",
DlgCellHorAlignCenter : "Centre",
DlgCellHorAlignRight: "Dreta",
DlgCellVerAlign : "Alineació vertical",
DlgCellVerAlignNotSet : "<No definit>",
DlgCellVerAlignTop : "Top",
DlgCellVerAlignMiddle : "Middle",
DlgCellVerAlignBottom : "Bottom",
DlgCellVerAlignBaseline : "Baseline",
DlgCellRowSpan : "Rows Span",
DlgCellCollSpan : "Columns Span",
DlgCellBackColor : "Color de fons",
DlgCellBorderColor : "Color de la vora",
DlgCellBtnSelect : "Seleccioneu...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Cerca i reemplaça",
// Find Dialog
DlgFindTitle : "Cerca",
DlgFindFindBtn : "Cerca",
DlgFindNotFoundMsg : "El text especificat no s'ha trobat.",
// Replace Dialog
DlgReplaceTitle : "Reemplaça",
DlgReplaceFindLbl : "Cerca:",
DlgReplaceReplaceLbl : "Remplaça amb:",
DlgReplaceCaseChk : "Distingeix majúscules/minúscules",
DlgReplaceReplaceBtn : "Reemplaça",
DlgReplaceReplAllBtn : "Reemplaça-ho tot",
DlgReplaceWordChk : "Només paraules completes",
// Paste Operations / Dialog
PasteErrorCut : "La seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl+X).",
PasteErrorCopy : "La seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl+C).",
PasteAsText : "Enganxa com a text no formatat",
PasteFromWord : "Enganxa com a Word",
DlgPasteMsg2 : "Si us plau, enganxeu dins del següent camp utilitzant el teclat (<STRONG>Ctrl+V</STRONG>) i premeu <STRONG>OK</STRONG>.",
DlgPasteSec : "A causa de la configuració de seguretat del vostre navegador, l'editor no pot accedir al porta-retalls directament. Enganxeu-ho un altre cop en aquesta finestra.",
DlgPasteIgnoreFont : "Ignora definicions de font",
DlgPasteRemoveStyles : "Elimina definicions d'estil",
// Color Picker
ColorAutomatic : "Automàtic",
ColorMoreColors : "Més colors...",
// Document Properties
DocProps : "Propietats del document",
// Anchor Dialog
DlgAnchorTitle : "Propietats de l'àncora",
DlgAnchorName : "Nom de l'àncora",
DlgAnchorErrorName : "Si us plau, escriviu el nom de l'ancora",
// Speller Pages Dialog
DlgSpellNotInDic : "No és al diccionari",
DlgSpellChangeTo : "Reemplaça amb",
DlgSpellBtnIgnore : "Ignora",
DlgSpellBtnIgnoreAll : "Ignora-les totes",
DlgSpellBtnReplace : "Canvia",
DlgSpellBtnReplaceAll : "Canvia-les totes",
DlgSpellBtnUndo : "Desfés",
DlgSpellNoSuggestions : "Cap suggeriment",
DlgSpellProgress : "Verificació ortogràfica en curs...",
DlgSpellNoMispell : "Verificació ortogràfica acabada: no hi ha cap paraula mal escrita",
DlgSpellNoChanges : "Verificació ortogràfica: no s'ha canviat cap paraula",
DlgSpellOneChange : "Verificació ortogràfica: s'ha canviat una paraula",
DlgSpellManyChanges : "Verificació ortogràfica: s'han canviat %1 paraules",
IeSpellDownload : "Verificació ortogràfica no instal·lada. Voleu descarregar-ho ara?",
// Button Dialog
DlgButtonText : "Text (Valor)",
DlgButtonType : "Tipus",
DlgButtonTypeBtn : "Botó",
DlgButtonTypeSbm : "Transmet formulari",
DlgButtonTypeRst : "Reinicia formulari",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nom",
DlgCheckboxValue : "Valor",
DlgCheckboxSelected : "Seleccionat",
// Form Dialog
DlgFormName : "Nom",
DlgFormAction : "Acció",
DlgFormMethod : "Mètode",
// Select Field Dialog
DlgSelectName : "Nom",
DlgSelectValue : "Valor",
DlgSelectSize : "Mida",
DlgSelectLines : "Línies",
DlgSelectChkMulti : "Permet múltiples seleccions",
DlgSelectOpAvail : "Opcions disponibles",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Valor",
DlgSelectBtnAdd : "Afegeix",
DlgSelectBtnModify : "Modifica",
DlgSelectBtnUp : "Amunt",
DlgSelectBtnDown : "Avall",
DlgSelectBtnSetValue : "Selecciona per defecte",
DlgSelectBtnDelete : "Elimina",
// Textarea Dialog
DlgTextareaName : "Nom",
DlgTextareaCols : "Columnes",
DlgTextareaRows : "Files",
// Text Field Dialog
DlgTextName : "Nom",
DlgTextValue : "Valor",
DlgTextCharWidth : "Amplada",
DlgTextMaxChars : "Nombre màxim de caràcters",
DlgTextType : "Tipus",
DlgTextTypeText : "Text",
DlgTextTypePass : "Contrasenya",
// Hidden Field Dialog
DlgHiddenName : "Nom",
DlgHiddenValue : "Valor",
// Bulleted List Dialog
BulletedListProp : "Propietats de la llista de pics",
NumberedListProp : "Propietats de llista numerada",
DlgLstStart : "Inici",
DlgLstType : "Tipus",
DlgLstTypeCircle : "Cercle",
DlgLstTypeDisc : "Disc",
DlgLstTypeSquare : "Quadrat",
DlgLstTypeNumbers : "Números (1, 2, 3)",
DlgLstTypeLCase : "Lletres minúscules (a, b, c)",
DlgLstTypeUCase : "Lletres majúscules (A, B, C)",
DlgLstTypeSRoman : "Números romans en minúscules (i, ii, iii)",
DlgLstTypeLRoman : "Números romans en majúscules (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "General",
DlgDocBackTab : "Fons",
DlgDocColorsTab : "Colors i marges",
DlgDocMetaTab : "Metadades",
DlgDocPageTitle : "Títol de la pàgina",
DlgDocLangDir : "Direcció idioma",
DlgDocLangDirLTR : "Esquerra a dreta (LTR)",
DlgDocLangDirRTL : "Dreta a esquerra (RTL)",
DlgDocLangCode : "Codi d'idioma",
DlgDocCharSet : "Codificació de conjunt de caràcters",
DlgDocCharSetCE : "Centreeuropeu",
DlgDocCharSetCT : "Xinès tradicional (Big5)",
DlgDocCharSetCR : "Ciríl·lic",
DlgDocCharSetGR : "Grec",
DlgDocCharSetJP : "Japonès",
DlgDocCharSetKR : "Coreà",
DlgDocCharSetTR : "Turc",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Europeu occidental",
DlgDocCharSetOther : "Una altra codificació de caràcters",
DlgDocDocType : "Capçalera de tipus de document",
DlgDocDocTypeOther : "Un altra capçalera de tipus de document",
DlgDocIncXHTML : "Incloure declaracions XHTML",
DlgDocBgColor : "Color de fons",
DlgDocBgImage : "URL de la imatge de fons",
DlgDocBgNoScroll : "Fons fixe",
DlgDocCText : "Text",
DlgDocCLink : "Enllaç",
DlgDocCVisited : "Enllaç visitat",
DlgDocCActive : "Enllaç actiu",
DlgDocMargins : "Marges de pàgina",
DlgDocMaTop : "Cap",
DlgDocMaLeft : "Esquerra",
DlgDocMaRight : "Dreta",
DlgDocMaBottom : "Peu",
DlgDocMeIndex : "Mots clau per a indexació (separats per coma)",
DlgDocMeDescr : "Descripció del document",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Vista prèvia",
// Templates Dialog
Templates : "Plantilles",
DlgTemplatesTitle : "Contingut plantilles",
DlgTemplatesSelMsg : "Si us plau, seleccioneu la plantilla per obrir a l'editor<br>(el contingut actual no serà enregistrat):",
DlgTemplatesLoading : "Carregant la llista de plantilles. Si us plau, espereu...",
DlgTemplatesNoTpl : "(No hi ha plantilles definides)",
DlgTemplatesReplace : "Reemplaça el contingut actual",
// About Dialog
DlgAboutAboutTab : "Quant a",
DlgAboutBrowserInfoTab : "Informació del navegador",
DlgAboutLicenseTab : "Llicència",
DlgAboutVersion : "versió",
DlgAboutInfo : "Per a més informació aneu a",
// Div Dialog
DlgDivGeneralTab : "General",
DlgDivAdvancedTab : "Avançat",
DlgDivStyle : "Estil",
DlgDivInlineStyle : "Estil en línia"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Serbian (Latin) language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Smanji liniju sa alatkama",
ToolbarExpand : "Proiri liniju sa alatkama",
// Toolbar Items and Context Menu
Save : "Sačuvaj",
NewPage : "Nova stranica",
Preview : "Izgled stranice",
Cut : "Iseci",
Copy : "Kopiraj",
Paste : "Zalepi",
PasteText : "Zalepi kao neformatiran tekst",
PasteWord : "Zalepi iz Worda",
Print : "Štampa",
SelectAll : "Označi sve",
RemoveFormat : "Ukloni formatiranje",
InsertLinkLbl : "Link",
InsertLink : "Unesi/izmeni link",
RemoveLink : "Ukloni link",
VisitLink : "Open Link", //MISSING
Anchor : "Unesi/izmeni sidro",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Slika",
InsertImage : "Unesi/izmeni sliku",
InsertFlashLbl : "Fleš",
InsertFlash : "Unesi/izmeni fleš",
InsertTableLbl : "Tabela",
InsertTable : "Unesi/izmeni tabelu",
InsertLineLbl : "Linija",
InsertLine : "Unesi horizontalnu liniju",
InsertSpecialCharLbl: "Specijalni karakteri",
InsertSpecialChar : "Unesi specijalni karakter",
InsertSmileyLbl : "Smajli",
InsertSmiley : "Unesi smajlija",
About : "O FCKeditoru",
Bold : "Podebljano",
Italic : "Kurziv",
Underline : "Podvučeno",
StrikeThrough : "Precrtano",
Subscript : "Indeks",
Superscript : "Stepen",
LeftJustify : "Levo ravnanje",
CenterJustify : "Centriran tekst",
RightJustify : "Desno ravnanje",
BlockJustify : "Obostrano ravnanje",
DecreaseIndent : "Smanji levu marginu",
IncreaseIndent : "Uvećaj levu marginu",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Poni�ti akciju",
Redo : "Ponovi akciju",
NumberedListLbl : "Nabrojiva lista",
NumberedList : "Unesi/ukloni nabrojivu listu",
BulletedListLbl : "Nenabrojiva lista",
BulletedList : "Unesi/ukloni nenabrojivu listu",
ShowTableBorders : "Prikaži okvir tabele",
ShowDetails : "Prikaži detalje",
Style : "Stil",
FontFormat : "Format",
Font : "Font",
FontSize : "Veličina fonta",
TextColor : "Boja teksta",
BGColor : "Boja pozadine",
Source : "Kôd",
Find : "Pretraga",
Replace : "Zamena",
SpellCheck : "Proveri spelovanje",
UniversalKeyboard : "Univerzalna tastatura",
PageBreakLbl : "Page Break", //MISSING
PageBreak : "Insert Page Break", //MISSING
Form : "Forma",
Checkbox : "Polje za potvrdu",
RadioButton : "Radio-dugme",
TextField : "Tekstualno polje",
Textarea : "Zona teksta",
HiddenField : "Skriveno polje",
Button : "Dugme",
SelectionField : "Izborno polje",
ImageButton : "Dugme sa slikom",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Izmeni link",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Obriši redove",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Obriši kolone",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Obriši ćelije",
MergeCells : "Spoj celije",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Delete Table", //MISSING
CellProperties : "Osobine celije",
TableProperties : "Osobine tabele",
ImageProperties : "Osobine slike",
FlashProperties : "Osobine fleša",
AnchorProp : "Osobine sidra",
ButtonProp : "Osobine dugmeta",
CheckboxProp : "Osobine polja za potvrdu",
HiddenFieldProp : "Osobine skrivenog polja",
RadioButtonProp : "Osobine radio-dugmeta",
ImageButtonProp : "Osobine dugmeta sa slikom",
TextFieldProp : "Osobine tekstualnog polja",
SelectionFieldProp : "Osobine izbornog polja",
TextareaProp : "Osobine zone teksta",
FormProp : "Osobine forme",
FontFormats : "Normal;Formatirano;Adresa;Naslov 1;Naslov 2;Naslov 3;Naslov 4;Naslov 5;Naslov 6",
// Alerts and Messages
ProcessingXHTML : "Obradujem XHTML. Malo strpljenja...",
Done : "Završio",
PasteWordConfirm : "Tekst koji želite da nalepite kopiran je iz Worda. Da li želite da bude očišćen od formata pre lepljenja?",
NotCompatiblePaste : "Ova komanda je dostupna samo za Internet Explorer od verzije 5.5. Da li želite da nalepim tekst bez čišćenja?",
UnknownToolbarItem : "Nepoznata stavka toolbara \"%1\"",
UnknownCommand : "Nepoznata naredba \"%1\"",
NotImplemented : "Naredba nije implementirana",
UnknownToolbarSet : "Toolbar \"%1\" ne postoji",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Otkaži",
DlgBtnClose : "Zatvori",
DlgBtnBrowseServer : "Pretraži server",
DlgAdvancedTag : "Napredni tagovi",
DlgOpOther : "<Ostali>",
DlgInfoTab : "Info",
DlgAlertUrl : "Molimo Vas, unesite URL",
// General Dialogs Labels
DlgGenNotSet : "<nije postavljeno>",
DlgGenId : "Id",
DlgGenLangDir : "Smer jezika",
DlgGenLangDirLtr : "S leva na desno (LTR)",
DlgGenLangDirRtl : "S desna na levo (RTL)",
DlgGenLangCode : "Kôd jezika",
DlgGenAccessKey : "Pristupni taster",
DlgGenName : "Naziv",
DlgGenTabIndex : "Tab indeks",
DlgGenLongDescr : "Pun opis URL",
DlgGenClass : "Stylesheet klase",
DlgGenTitle : "Advisory naslov",
DlgGenContType : "Advisory vrsta sadržaja",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Stil",
// Image Dialog
DlgImgTitle : "Osobine slika",
DlgImgInfoTab : "Info slike",
DlgImgBtnUpload : "Pošalji na server",
DlgImgURL : "URL",
DlgImgUpload : "Pošalji",
DlgImgAlt : "Alternativni tekst",
DlgImgWidth : "Širina",
DlgImgHeight : "Visina",
DlgImgLockRatio : "Zaključaj odnos",
DlgBtnResetSize : "Resetuj veličinu",
DlgImgBorder : "Okvir",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Ravnanje",
DlgImgAlignLeft : "Levo",
DlgImgAlignAbsBottom: "Abs dole",
DlgImgAlignAbsMiddle: "Abs sredina",
DlgImgAlignBaseline : "Bazno",
DlgImgAlignBottom : "Dole",
DlgImgAlignMiddle : "Sredina",
DlgImgAlignRight : "Desno",
DlgImgAlignTextTop : "Vrh teksta",
DlgImgAlignTop : "Vrh",
DlgImgPreview : "Izgled",
DlgImgAlertUrl : "Unesite URL slike",
DlgImgLinkTab : "Link",
// Flash Dialog
DlgFlashTitle : "Osobine fleša",
DlgFlashChkPlay : "Automatski start",
DlgFlashChkLoop : "Ponavljaj",
DlgFlashChkMenu : "Uključi fleš meni",
DlgFlashScale : "Skaliraj",
DlgFlashScaleAll : "Prikaži sve",
DlgFlashScaleNoBorder : "Bez ivice",
DlgFlashScaleFit : "Popuni površinu",
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link Info",
DlgLnkTargetTab : "Meta",
DlgLnkType : "Vrsta linka",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Sidro na ovoj stranici",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<drugo>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Odaberi sidro",
DlgLnkAnchorByName : "Po nazivu sidra",
DlgLnkAnchorById : "Po Id-ju elementa",
DlgLnkNoAnchors : "(Nema dostupnih sidra)",
DlgLnkEMail : "E-Mail adresa",
DlgLnkEMailSubject : "Naslov",
DlgLnkEMailBody : "Sadržaj poruke",
DlgLnkUpload : "Pošalji",
DlgLnkBtnUpload : "Pošalji na server",
DlgLnkTarget : "Meta",
DlgLnkTargetFrame : "<okvir>",
DlgLnkTargetPopup : "<popup prozor>",
DlgLnkTargetBlank : "Novi prozor (_blank)",
DlgLnkTargetParent : "Roditeljski prozor (_parent)",
DlgLnkTargetSelf : "Isti prozor (_self)",
DlgLnkTargetTop : "Prozor na vrhu (_top)",
DlgLnkTargetFrameName : "Naziv odredišnog frejma",
DlgLnkPopWinName : "Naziv popup prozora",
DlgLnkPopWinFeat : "Mogućnosti popup prozora",
DlgLnkPopResize : "Promenljiva velicina",
DlgLnkPopLocation : "Lokacija",
DlgLnkPopMenu : "Kontekstni meni",
DlgLnkPopScroll : "Scroll bar",
DlgLnkPopStatus : "Statusna linija",
DlgLnkPopToolbar : "Toolbar",
DlgLnkPopFullScrn : "Prikaz preko celog ekrana (IE)",
DlgLnkPopDependent : "Zavisno (Netscape)",
DlgLnkPopWidth : "Širina",
DlgLnkPopHeight : "Visina",
DlgLnkPopLeft : "Od leve ivice ekrana (px)",
DlgLnkPopTop : "Od vrha ekrana (px)",
DlnLnkMsgNoUrl : "Unesite URL linka",
DlnLnkMsgNoEMail : "Otkucajte adresu elektronske pote",
DlnLnkMsgNoAnchor : "Odaberite sidro",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Odaberite boju",
DlgColorBtnClear : "Obriši",
DlgColorHighlight : "Posvetli",
DlgColorSelected : "Odaberi",
// Smiley Dialog
DlgSmileyTitle : "Unesi smajlija",
// Special Character Dialog
DlgSpecialCharTitle : "Odaberite specijalni karakter",
// Table Dialog
DlgTableTitle : "Osobine tabele",
DlgTableRows : "Redova",
DlgTableColumns : "Kolona",
DlgTableBorder : "Veličina okvira",
DlgTableAlign : "Ravnanje",
DlgTableAlignNotSet : "<nije postavljeno>",
DlgTableAlignLeft : "Levo",
DlgTableAlignCenter : "Sredina",
DlgTableAlignRight : "Desno",
DlgTableWidth : "Širina",
DlgTableWidthPx : "piksela",
DlgTableWidthPc : "procenata",
DlgTableHeight : "Visina",
DlgTableCellSpace : "Ćelijski prostor",
DlgTableCellPad : "Razmak ćelija",
DlgTableCaption : "Naslov tabele",
DlgTableSummary : "Summary", //MISSING
// Table Cell Dialog
DlgCellTitle : "Osobine ćelije",
DlgCellWidth : "Širina",
DlgCellWidthPx : "piksela",
DlgCellWidthPc : "procenata",
DlgCellHeight : "Visina",
DlgCellWordWrap : "Deljenje reči",
DlgCellWordWrapNotSet : "<nije postavljeno>",
DlgCellWordWrapYes : "Da",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Vodoravno ravnanje",
DlgCellHorAlignNotSet : "<nije postavljeno>",
DlgCellHorAlignLeft : "Levo",
DlgCellHorAlignCenter : "Sredina",
DlgCellHorAlignRight: "Desno",
DlgCellVerAlign : "Vertikalno ravnanje",
DlgCellVerAlignNotSet : "<nije postavljeno>",
DlgCellVerAlignTop : "Gornje",
DlgCellVerAlignMiddle : "Sredina",
DlgCellVerAlignBottom : "Donje",
DlgCellVerAlignBaseline : "Bazno",
DlgCellRowSpan : "Spajanje redova",
DlgCellCollSpan : "Spajanje kolona",
DlgCellBackColor : "Boja pozadine",
DlgCellBorderColor : "Boja okvira",
DlgCellBtnSelect : "Odaberi...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Pronađi",
DlgFindFindBtn : "Pronađi",
DlgFindNotFoundMsg : "Traženi tekst nije pronađen.",
// Replace Dialog
DlgReplaceTitle : "Zameni",
DlgReplaceFindLbl : "Pronadi:",
DlgReplaceReplaceLbl : "Zameni sa:",
DlgReplaceCaseChk : "Razlikuj mala i velika slova",
DlgReplaceReplaceBtn : "Zameni",
DlgReplaceReplAllBtn : "Zameni sve",
DlgReplaceWordChk : "Uporedi cele reci",
// Paste Operations / Dialog
PasteErrorCut : "Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl+X).",
PasteErrorCopy : "Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl+C).",
PasteAsText : "Zalepi kao čist tekst",
PasteFromWord : "Zalepi iz Worda",
DlgPasteMsg2 : "Molimo Vas da zalepite unutar donje povrine koristeći tastaturnu prečicu (<STRONG>Ctrl+V</STRONG>) i da pritisnete <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignoriši definicije fontova",
DlgPasteRemoveStyles : "Ukloni definicije stilova",
// Color Picker
ColorAutomatic : "Automatski",
ColorMoreColors : "Više boja...",
// Document Properties
DocProps : "Osobine dokumenta",
// Anchor Dialog
DlgAnchorTitle : "Osobine sidra",
DlgAnchorName : "Ime sidra",
DlgAnchorErrorName : "Unesite ime sidra",
// Speller Pages Dialog
DlgSpellNotInDic : "Nije u rečniku",
DlgSpellChangeTo : "Izmeni",
DlgSpellBtnIgnore : "Ignoriši",
DlgSpellBtnIgnoreAll : "Ignoriši sve",
DlgSpellBtnReplace : "Zameni",
DlgSpellBtnReplaceAll : "Zameni sve",
DlgSpellBtnUndo : "Vrati akciju",
DlgSpellNoSuggestions : "- Bez sugestija -",
DlgSpellProgress : "Provera spelovanja u toku...",
DlgSpellNoMispell : "Provera spelovanja završena: greške nisu pronadene",
DlgSpellNoChanges : "Provera spelovanja završena: Nije izmenjena nijedna rec",
DlgSpellOneChange : "Provera spelovanja završena: Izmenjena je jedna reč",
DlgSpellManyChanges : "Provera spelovanja završena: %1 reč(i) je izmenjeno",
IeSpellDownload : "Provera spelovanja nije instalirana. Da li želite da je skinete sa Interneta?",
// Button Dialog
DlgButtonText : "Tekst (vrednost)",
DlgButtonType : "Tip",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Naziv",
DlgCheckboxValue : "Vrednost",
DlgCheckboxSelected : "Označeno",
// Form Dialog
DlgFormName : "Naziv",
DlgFormAction : "Akcija",
DlgFormMethod : "Metoda",
// Select Field Dialog
DlgSelectName : "Naziv",
DlgSelectValue : "Vrednost",
DlgSelectSize : "Veličina",
DlgSelectLines : "linija",
DlgSelectChkMulti : "Dozvoli višestruku selekciju",
DlgSelectOpAvail : "Dostupne opcije",
DlgSelectOpText : "Tekst",
DlgSelectOpValue : "Vrednost",
DlgSelectBtnAdd : "Dodaj",
DlgSelectBtnModify : "Izmeni",
DlgSelectBtnUp : "Gore",
DlgSelectBtnDown : "Dole",
DlgSelectBtnSetValue : "Podesi kao označenu vrednost",
DlgSelectBtnDelete : "Obriši",
// Textarea Dialog
DlgTextareaName : "Naziv",
DlgTextareaCols : "Broj kolona",
DlgTextareaRows : "Broj redova",
// Text Field Dialog
DlgTextName : "Naziv",
DlgTextValue : "Vrednost",
DlgTextCharWidth : "Širina (karaktera)",
DlgTextMaxChars : "Maksimalno karaktera",
DlgTextType : "Tip",
DlgTextTypeText : "Tekst",
DlgTextTypePass : "Lozinka",
// Hidden Field Dialog
DlgHiddenName : "Naziv",
DlgHiddenValue : "Vrednost",
// Bulleted List Dialog
BulletedListProp : "Osobine nenabrojive liste",
NumberedListProp : "Osobine nabrojive liste",
DlgLstStart : "Start", //MISSING
DlgLstType : "Tip",
DlgLstTypeCircle : "Krug",
DlgLstTypeDisc : "Disc", //MISSING
DlgLstTypeSquare : "Kvadrat",
DlgLstTypeNumbers : "Brojevi (1, 2, 3)",
DlgLstTypeLCase : "mala slova (a, b, c)",
DlgLstTypeUCase : "VELIKA slova (A, B, C)",
DlgLstTypeSRoman : "Male rimske cifre (i, ii, iii)",
DlgLstTypeLRoman : "Velike rimske cifre (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Opšte osobine",
DlgDocBackTab : "Pozadina",
DlgDocColorsTab : "Boje i margine",
DlgDocMetaTab : "Metapodaci",
DlgDocPageTitle : "Naslov stranice",
DlgDocLangDir : "Smer jezika",
DlgDocLangDirLTR : "Sleva nadesno (LTR)",
DlgDocLangDirRTL : "Zdesna nalevo (RTL)",
DlgDocLangCode : "Šifra jezika",
DlgDocCharSet : "Kodiranje skupa karaktera",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Ostala kodiranja skupa karaktera",
DlgDocDocType : "Zaglavlje tipa dokumenta",
DlgDocDocTypeOther : "Ostala zaglavlja tipa dokumenta",
DlgDocIncXHTML : "Ukljuci XHTML deklaracije",
DlgDocBgColor : "Boja pozadine",
DlgDocBgImage : "URL pozadinske slike",
DlgDocBgNoScroll : "Fiksirana pozadina",
DlgDocCText : "Tekst",
DlgDocCLink : "Link",
DlgDocCVisited : "Posećeni link",
DlgDocCActive : "Aktivni link",
DlgDocMargins : "Margine stranice",
DlgDocMaTop : "Gornja",
DlgDocMaLeft : "Leva",
DlgDocMaRight : "Desna",
DlgDocMaBottom : "Donja",
DlgDocMeIndex : "Ključne reci za indeksiranje dokumenta (razdvojene zarezima)",
DlgDocMeDescr : "Opis dokumenta",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Autorska prava",
DlgDocPreview : "Izgled stranice",
// Templates Dialog
Templates : "Obrasci",
DlgTemplatesTitle : "Obrasci za sadržaj",
DlgTemplatesSelMsg : "Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):",
DlgTemplatesLoading : "Učitavam listu obrazaca. Malo strpljenja...",
DlgTemplatesNoTpl : "(Nema definisanih obrazaca)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "O editoru",
DlgAboutBrowserInfoTab : "Informacije o pretraživacu",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "verzija",
DlgAboutInfo : "Za više informacija posetite",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Hindi language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "टूलबार सिमटायें",
ToolbarExpand : "टूलबार का विस्तार करें",
// Toolbar Items and Context Menu
Save : "सेव",
NewPage : "नया पेज",
Preview : "प्रीव्यू",
Cut : "कट",
Copy : "कॉपी",
Paste : "पेस्ट",
PasteText : "पेस्ट (सादा टॅक्स्ट)",
PasteWord : "पेस्ट (वर्ड से)",
Print : "प्रिन्ट",
SelectAll : "सब सॅलॅक्ट करें",
RemoveFormat : "फ़ॉर्मैट हटायें",
InsertLinkLbl : "लिंक",
InsertLink : "लिंक इन्सर्ट/संपादन",
RemoveLink : "लिंक हटायें",
VisitLink : "लिंक खोलें",
Anchor : "ऐंकर इन्सर्ट/संपादन",
AnchorDelete : "ऐंकर हटायें",
InsertImageLbl : "तस्वीर",
InsertImage : "तस्वीर इन्सर्ट/संपादन",
InsertFlashLbl : "फ़्लैश",
InsertFlash : "फ़्लैश इन्सर्ट/संपादन",
InsertTableLbl : "टेबल",
InsertTable : "टेबल इन्सर्ट/संपादन",
InsertLineLbl : "रेखा",
InsertLine : "हॉरिज़ॉन्टल रेखा इन्सर्ट करें",
InsertSpecialCharLbl: "विशेष करॅक्टर",
InsertSpecialChar : "विशेष करॅक्टर इन्सर्ट करें",
InsertSmileyLbl : "स्माइली",
InsertSmiley : "स्माइली इन्सर्ट करें",
About : "FCKeditor के बारे में",
Bold : "बोल्ड",
Italic : "इटैलिक",
Underline : "रेखांकण",
StrikeThrough : "स्ट्राइक थ्रू",
Subscript : "अधोलेख",
Superscript : "अभिलेख",
LeftJustify : "बायीं तरफ",
CenterJustify : "बीच में",
RightJustify : "दायीं तरफ",
BlockJustify : "ब्लॉक जस्टीफ़ाई",
DecreaseIndent : "इन्डॅन्ट कम करें",
IncreaseIndent : "इन्डॅन्ट बढ़ायें",
Blockquote : "ब्लॉक-कोट",
CreateDiv : "डिव (Div) कन्टेनर बनायें",
EditDiv : "डिव (Div) कन्टेनर बदलें",
DeleteDiv : "डिव कन्टेनर हटायें",
Undo : "अन्डू",
Redo : "रीडू",
NumberedListLbl : "अंकीय सूची",
NumberedList : "अंकीय सूची इन्सर्ट/संपादन",
BulletedListLbl : "बुलॅट सूची",
BulletedList : "बुलॅट सूची इन्सर्ट/संपादन",
ShowTableBorders : "टेबल बॉर्डरयें दिखायें",
ShowDetails : "ज्यादा दिखायें",
Style : "स्टाइल",
FontFormat : "फ़ॉर्मैट",
Font : "फ़ॉन्ट",
FontSize : "साइज़",
TextColor : "टेक्स्ट रंग",
BGColor : "बैक्ग्राउन्ड रंग",
Source : "सोर्स",
Find : "खोजें",
Replace : "रीप्लेस",
SpellCheck : "वर्तनी (स्पेलिंग) जाँच",
UniversalKeyboard : "यूनीवर्सल कीबोर्ड",
PageBreakLbl : "पेज ब्रेक",
PageBreak : "पेज ब्रेक इन्सर्ट् करें",
Form : "फ़ॉर्म",
Checkbox : "चॅक बॉक्स",
RadioButton : "रेडिओ बटन",
TextField : "टेक्स्ट फ़ील्ड",
Textarea : "टेक्स्ट एरिया",
HiddenField : "गुप्त फ़ील्ड",
Button : "बटन",
SelectionField : "चुनाव फ़ील्ड",
ImageButton : "तस्वीर बटन",
FitWindow : "एडिटर साइज़ को चरम सीमा तक बढ़ायें",
ShowBlocks : "ब्लॉक दिखायें",
// Context Menu
EditLink : "लिंक संपादन",
CellCM : "खाना",
RowCM : "पंक्ति",
ColumnCM : "कालम",
InsertRowAfter : "बाद में पंक्ति डालें",
InsertRowBefore : "पहले पंक्ति डालें",
DeleteRows : "पंक्तियाँ डिलीट करें",
InsertColumnAfter : "बाद में कालम डालें",
InsertColumnBefore : "पहले कालम डालें",
DeleteColumns : "कालम डिलीट करें",
InsertCellAfter : "बाद में सैल डालें",
InsertCellBefore : "पहले सैल डालें",
DeleteCells : "सैल डिलीट करें",
MergeCells : "सैल मिलायें",
MergeRight : "बाँया विलय",
MergeDown : "नीचे विलय करें",
HorizontalSplitCell : "सैल को क्षैतिज स्थिति में विभाजित करें",
VerticalSplitCell : "सैल को लम्बाकार में विभाजित करें",
TableDelete : "टेबल डिलीट करें",
CellProperties : "सैल प्रॉपर्टीज़",
TableProperties : "टेबल प्रॉपर्टीज़",
ImageProperties : "तस्वीर प्रॉपर्टीज़",
FlashProperties : "फ़्लैश प्रॉपर्टीज़",
AnchorProp : "ऐंकर प्रॉपर्टीज़",
ButtonProp : "बटन प्रॉपर्टीज़",
CheckboxProp : "चॅक बॉक्स प्रॉपर्टीज़",
HiddenFieldProp : "गुप्त फ़ील्ड प्रॉपर्टीज़",
RadioButtonProp : "रेडिओ बटन प्रॉपर्टीज़",
ImageButtonProp : "तस्वीर बटन प्रॉपर्टीज़",
TextFieldProp : "टेक्स्ट फ़ील्ड प्रॉपर्टीज़",
SelectionFieldProp : "चुनाव फ़ील्ड प्रॉपर्टीज़",
TextareaProp : "टेक्स्त एरिया प्रॉपर्टीज़",
FormProp : "फ़ॉर्म प्रॉपर्टीज़",
FontFormats : "साधारण;फ़ॉर्मैटॅड;पता;शीर्षक 1;शीर्षक 2;शीर्षक 3;शीर्षक 4;शीर्षक 5;शीर्षक 6;शीर्षक (DIV)",
// Alerts and Messages
ProcessingXHTML : "XHTML प्रोसॅस हो रहा है। ज़रा ठहरें...",
Done : "पूरा हुआ",
PasteWordConfirm : "आप जो टेक्स्ट पेस्ट करना चाहते हैं, वह वर्ड से कॉपी किया हुआ लग रहा है। क्या पेस्ट करने से पहले आप इसे साफ़ करना चाहेंगे?",
NotCompatiblePaste : "यह कमांड इन्टरनॅट एक्स्प्लोरर(Internet Explorer) 5.5 या उसके बाद के वर्ज़न के लिए ही उपलब्ध है। क्या आप बिना साफ़ किए पेस्ट करना चाहेंगे?",
UnknownToolbarItem : "अनजान टूलबार आइटम \"%1\"",
UnknownCommand : "अनजान कमान्ड \"%1\"",
NotImplemented : "कमान्ड इम्प्लीमॅन्ट नहीं किया गया है",
UnknownToolbarSet : "टूलबार सॅट \"%1\" उपलब्ध नहीं है",
NoActiveX : "आपके ब्राउज़र् की सुरक्शा सेटिंग्स् एडिटर की कुछ् फ़ीचरों को सीमित कर् सकती हैं। क्रिपया \"Run ActiveX controls and plug-ins\" विकल्प को एनेबल करें. आपको एरर्स् और गायब फ़ीचर्स् का अनुभव हो सकता है।",
BrowseServerBlocked : "रिसोर्सेज़ ब्राउज़र् नहीं खोला जा सका। क्रिपया सभी पॉप्-अप् ब्लॉकर्स् को निष्क्रिय करें।",
DialogBlocked : "डायलग विन्डो नहीं खोला जा सका। क्रिपया सभी पॉप्-अप् ब्लॉकर्स् को निष्क्रिय करें।",
VisitLinkBlocked : "नया विन्डो नहीं खोला जा सका। क्रिपया सभी पॉप्-अप् ब्लॉकर्स् को निष्क्रिय करें।",
// Dialogs
DlgBtnOK : "ठीक है",
DlgBtnCancel : "रद्द करें",
DlgBtnClose : "बन्द करें",
DlgBtnBrowseServer : "सर्वर ब्राउज़ करें",
DlgAdvancedTag : "ऍड्वान्स्ड",
DlgOpOther : "<अन्य>",
DlgInfoTab : "सूचना",
DlgAlertUrl : "URL इन्सर्ट करें",
// General Dialogs Labels
DlgGenNotSet : "<सॅट नहीं>",
DlgGenId : "Id",
DlgGenLangDir : "भाषा लिखने की दिशा",
DlgGenLangDirLtr : "बायें से दायें (LTR)",
DlgGenLangDirRtl : "दायें से बायें (RTL)",
DlgGenLangCode : "भाषा कोड",
DlgGenAccessKey : "ऍक्सॅस की",
DlgGenName : "नाम",
DlgGenTabIndex : "टैब इन्डॅक्स",
DlgGenLongDescr : "अधिक विवरण के लिए URL",
DlgGenClass : "स्टाइल-शीट क्लास",
DlgGenTitle : "परामर्श शीर्शक",
DlgGenContType : "परामर्श कन्टॅन्ट प्रकार",
DlgGenLinkCharset : "लिंक रिसोर्स करॅक्टर सॅट",
DlgGenStyle : "स्टाइल",
// Image Dialog
DlgImgTitle : "तस्वीर प्रॉपर्टीज़",
DlgImgInfoTab : "तस्वीर की जानकारी",
DlgImgBtnUpload : "इसे सर्वर को भेजें",
DlgImgURL : "URL",
DlgImgUpload : "अपलोड",
DlgImgAlt : "वैकल्पिक टेक्स्ट",
DlgImgWidth : "चौड़ाई",
DlgImgHeight : "ऊँचाई",
DlgImgLockRatio : "लॉक अनुपात",
DlgBtnResetSize : "रीसॅट साइज़",
DlgImgBorder : "बॉर्डर",
DlgImgHSpace : "हॉरिज़ॉन्टल स्पेस",
DlgImgVSpace : "वर्टिकल स्पेस",
DlgImgAlign : "ऍलाइन",
DlgImgAlignLeft : "दायें",
DlgImgAlignAbsBottom: "Abs नीचे",
DlgImgAlignAbsMiddle: "Abs ऊपर",
DlgImgAlignBaseline : "मूल रेखा",
DlgImgAlignBottom : "नीचे",
DlgImgAlignMiddle : "मध्य",
DlgImgAlignRight : "दायें",
DlgImgAlignTextTop : "टेक्स्ट ऊपर",
DlgImgAlignTop : "ऊपर",
DlgImgPreview : "प्रीव्यू",
DlgImgAlertUrl : "तस्वीर का URL टाइप करें ",
DlgImgLinkTab : "लिंक",
// Flash Dialog
DlgFlashTitle : "फ़्लैश प्रॉपर्टीज़",
DlgFlashChkPlay : "ऑटो प्ले",
DlgFlashChkLoop : "लूप",
DlgFlashChkMenu : "फ़्लैश मॅन्यू का प्रयोग करें",
DlgFlashScale : "स्केल",
DlgFlashScaleAll : "सभी दिखायें",
DlgFlashScaleNoBorder : "कोई बॉर्डर नहीं",
DlgFlashScaleFit : "बिल्कुल फ़िट",
// Link Dialog
DlgLnkWindowTitle : "लिंक",
DlgLnkInfoTab : "लिंक ",
DlgLnkTargetTab : "टार्गेट",
DlgLnkType : "लिंक प्रकार",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "इस पेज का ऐंकर",
DlgLnkTypeEMail : "ई-मेल",
DlgLnkProto : "प्रोटोकॉल",
DlgLnkProtoOther : "<अन्य>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "ऐंकर चुनें",
DlgLnkAnchorByName : "ऐंकर नाम से",
DlgLnkAnchorById : "ऍलीमॅन्ट Id से",
DlgLnkNoAnchors : "(डॉक्यूमॅन्ट में ऐंकर्स की संख्या)",
DlgLnkEMail : "ई-मेल पता",
DlgLnkEMailSubject : "संदेश विषय",
DlgLnkEMailBody : "संदेश",
DlgLnkUpload : "अपलोड",
DlgLnkBtnUpload : "इसे सर्वर को भेजें",
DlgLnkTarget : "टार्गेट",
DlgLnkTargetFrame : "<फ़्रेम>",
DlgLnkTargetPopup : "<पॉप-अप विन्डो>",
DlgLnkTargetBlank : "नया विन्डो (_blank)",
DlgLnkTargetParent : "मूल विन्डो (_parent)",
DlgLnkTargetSelf : "इसी विन्डो (_self)",
DlgLnkTargetTop : "शीर्ष विन्डो (_top)",
DlgLnkTargetFrameName : "टार्गेट फ़्रेम का नाम",
DlgLnkPopWinName : "पॉप-अप विन्डो का नाम",
DlgLnkPopWinFeat : "पॉप-अप विन्डो फ़ीचर्स",
DlgLnkPopResize : "साइज़ बदला जा सकता है",
DlgLnkPopLocation : "लोकेशन बार",
DlgLnkPopMenu : "मॅन्यू बार",
DlgLnkPopScroll : "स्क्रॉल बार",
DlgLnkPopStatus : "स्टेटस बार",
DlgLnkPopToolbar : "टूल बार",
DlgLnkPopFullScrn : "फ़ुल स्क्रीन (IE)",
DlgLnkPopDependent : "डिपेन्डॅन्ट (Netscape)",
DlgLnkPopWidth : "चौड़ाई",
DlgLnkPopHeight : "ऊँचाई",
DlgLnkPopLeft : "बायीं तरफ",
DlgLnkPopTop : "दायीं तरफ",
DlnLnkMsgNoUrl : "लिंक URL टाइप करें",
DlnLnkMsgNoEMail : "ई-मेल पता टाइप करें",
DlnLnkMsgNoAnchor : "ऐंकर चुनें",
DlnLnkMsgInvPopName : "पॉप-अप का नाम अल्फाबेट से शुरू होना चाहिये और उसमें स्पेस नहीं होने चाहिए",
// Color Dialog
DlgColorTitle : "रंग चुनें",
DlgColorBtnClear : "साफ़ करें",
DlgColorHighlight : "हाइलाइट",
DlgColorSelected : "सॅलॅक्टॅड",
// Smiley Dialog
DlgSmileyTitle : "स्माइली इन्सर्ट करें",
// Special Character Dialog
DlgSpecialCharTitle : "विशेष करॅक्टर चुनें",
// Table Dialog
DlgTableTitle : "टेबल प्रॉपर्टीज़",
DlgTableRows : "पंक्तियाँ",
DlgTableColumns : "कालम",
DlgTableBorder : "बॉर्डर साइज़",
DlgTableAlign : "ऍलाइन्मॅन्ट",
DlgTableAlignNotSet : "<सॅट नहीं>",
DlgTableAlignLeft : "दायें",
DlgTableAlignCenter : "बीच में",
DlgTableAlignRight : "बायें",
DlgTableWidth : "चौड़ाई",
DlgTableWidthPx : "पिक्सैल",
DlgTableWidthPc : "प्रतिशत",
DlgTableHeight : "ऊँचाई",
DlgTableCellSpace : "सैल अंतर",
DlgTableCellPad : "सैल पैडिंग",
DlgTableCaption : "शीर्षक",
DlgTableSummary : "सारांश",
// Table Cell Dialog
DlgCellTitle : "सैल प्रॉपर्टीज़",
DlgCellWidth : "चौड़ाई",
DlgCellWidthPx : "पिक्सैल",
DlgCellWidthPc : "प्रतिशत",
DlgCellHeight : "ऊँचाई",
DlgCellWordWrap : "वर्ड रैप",
DlgCellWordWrapNotSet : "<सॅट नहीं>",
DlgCellWordWrapYes : "हाँ",
DlgCellWordWrapNo : "नहीं",
DlgCellHorAlign : "हॉरिज़ॉन्टल ऍलाइन्मॅन्ट",
DlgCellHorAlignNotSet : "<सॅट नहीं>",
DlgCellHorAlignLeft : "दायें",
DlgCellHorAlignCenter : "बीच में",
DlgCellHorAlignRight: "बायें",
DlgCellVerAlign : "वर्टिकल ऍलाइन्मॅन्ट",
DlgCellVerAlignNotSet : "<सॅट नहीं>",
DlgCellVerAlignTop : "ऊपर",
DlgCellVerAlignMiddle : "मध्य",
DlgCellVerAlignBottom : "नीचे",
DlgCellVerAlignBaseline : "मूलरेखा",
DlgCellRowSpan : "पंक्ति स्पैन",
DlgCellCollSpan : "कालम स्पैन",
DlgCellBackColor : "बैक्ग्राउन्ड रंग",
DlgCellBorderColor : "बॉर्डर का रंग",
DlgCellBtnSelect : "चुनें...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "खोजें और बदलें",
// Find Dialog
DlgFindTitle : "खोजें",
DlgFindFindBtn : "खोजें",
DlgFindNotFoundMsg : "आपके द्वारा दिया गया टेक्स्ट नहीं मिला",
// Replace Dialog
DlgReplaceTitle : "रिप्लेस",
DlgReplaceFindLbl : "यह खोजें:",
DlgReplaceReplaceLbl : "इससे रिप्लेस करें:",
DlgReplaceCaseChk : "केस मिलायें",
DlgReplaceReplaceBtn : "रिप्लेस",
DlgReplaceReplAllBtn : "सभी रिप्लेस करें",
DlgReplaceWordChk : "पूरा शब्द मिलायें",
// Paste Operations / Dialog
PasteErrorCut : "आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl+X) का प्रयोग करें।",
PasteErrorCopy : "आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl+C) का प्रयोग करें।",
PasteAsText : "पेस्ट (सादा टॅक्स्ट)",
PasteFromWord : "पेस्ट (वर्ड से)",
DlgPasteMsg2 : "Ctrl+V का प्रयोग करके पेस्ट करें और ठीक है करें.",
DlgPasteSec : "आपके ब्राउज़र की सुरक्षा आपके ब्राउज़र की सुरKश सैटिंग के कारण, एडिटर आपके क्लिपबोर्ड डेटा को नहीं पा सकता है. आपको उसे इस विन्डो में दोबारा पेस्ट करना होगा.",
DlgPasteIgnoreFont : "फ़ॉन्ट परिभाषा निकालें",
DlgPasteRemoveStyles : "स्टाइल परिभाषा निकालें",
// Color Picker
ColorAutomatic : "स्वचालित",
ColorMoreColors : "और रंग...",
// Document Properties
DocProps : "डॉक्यूमॅन्ट प्रॉपर्टीज़",
// Anchor Dialog
DlgAnchorTitle : "ऐंकर प्रॉपर्टीज़",
DlgAnchorName : "ऐंकर का नाम",
DlgAnchorErrorName : "ऐंकर का नाम टाइप करें",
// Speller Pages Dialog
DlgSpellNotInDic : "शब्दकोश में नहीं",
DlgSpellChangeTo : "इसमें बदलें",
DlgSpellBtnIgnore : "इग्नोर",
DlgSpellBtnIgnoreAll : "सभी इग्नोर करें",
DlgSpellBtnReplace : "रिप्लेस",
DlgSpellBtnReplaceAll : "सभी रिप्लेस करें",
DlgSpellBtnUndo : "अन्डू",
DlgSpellNoSuggestions : "- कोई सुझाव नहीं -",
DlgSpellProgress : "वर्तनी की जाँच (स्पॅल-चॅक) जारी है...",
DlgSpellNoMispell : "वर्तनी की जाँच : कोई गलत वर्तनी (स्पॅलिंग) नहीं पाई गई",
DlgSpellNoChanges : "वर्तनी की जाँच :कोई शब्द नहीं बदला गया",
DlgSpellOneChange : "वर्तनी की जाँच : एक शब्द बदला गया",
DlgSpellManyChanges : "वर्तनी की जाँच : %1 शब्द बदले गये",
IeSpellDownload : "स्पॅल-चॅकर इन्स्टाल नहीं किया गया है। क्या आप इसे डाउनलोड करना चाहेंगे?",
// Button Dialog
DlgButtonText : "टेक्स्ट (वैल्यू)",
DlgButtonType : "प्रकार",
DlgButtonTypeBtn : "बटन",
DlgButtonTypeSbm : "सब्मिट",
DlgButtonTypeRst : "रिसेट",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "नाम",
DlgCheckboxValue : "वैल्यू",
DlgCheckboxSelected : "सॅलॅक्टॅड",
// Form Dialog
DlgFormName : "नाम",
DlgFormAction : "क्रिया",
DlgFormMethod : "तरीका",
// Select Field Dialog
DlgSelectName : "नाम",
DlgSelectValue : "वैल्यू",
DlgSelectSize : "साइज़",
DlgSelectLines : "पंक्तियाँ",
DlgSelectChkMulti : "एक से ज्यादा विकल्प चुनने दें",
DlgSelectOpAvail : "उपलब्ध विकल्प",
DlgSelectOpText : "टेक्स्ट",
DlgSelectOpValue : "वैल्यू",
DlgSelectBtnAdd : "जोड़ें",
DlgSelectBtnModify : "बदलें",
DlgSelectBtnUp : "ऊपर",
DlgSelectBtnDown : "नीचे",
DlgSelectBtnSetValue : "चुनी गई वैल्यू सॅट करें",
DlgSelectBtnDelete : "डिलीट",
// Textarea Dialog
DlgTextareaName : "नाम",
DlgTextareaCols : "कालम",
DlgTextareaRows : "पंक्तियां",
// Text Field Dialog
DlgTextName : "नाम",
DlgTextValue : "वैल्यू",
DlgTextCharWidth : "करॅक्टर की चौढ़ाई",
DlgTextMaxChars : "अधिकतम करॅक्टर",
DlgTextType : "टाइप",
DlgTextTypeText : "टेक्स्ट",
DlgTextTypePass : "पास्वर्ड",
// Hidden Field Dialog
DlgHiddenName : "नाम",
DlgHiddenValue : "वैल्यू",
// Bulleted List Dialog
BulletedListProp : "बुलॅट सूची प्रॉपर्टीज़",
NumberedListProp : "अंकीय सूची प्रॉपर्टीज़",
DlgLstStart : "प्रारम्भ",
DlgLstType : "प्रकार",
DlgLstTypeCircle : "गोल",
DlgLstTypeDisc : "डिस्क",
DlgLstTypeSquare : "चौकॊण",
DlgLstTypeNumbers : "अंक (1, 2, 3)",
DlgLstTypeLCase : "छोटे अक्षर (a, b, c)",
DlgLstTypeUCase : "बड़े अक्षर (A, B, C)",
DlgLstTypeSRoman : "छोटे रोमन अंक (i, ii, iii)",
DlgLstTypeLRoman : "बड़े रोमन अंक (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "आम",
DlgDocBackTab : "बैक्ग्राउन्ड",
DlgDocColorsTab : "रंग और मार्जिन",
DlgDocMetaTab : "मॅटाडेटा",
DlgDocPageTitle : "पेज शीर्षक",
DlgDocLangDir : "भाषा लिखने की दिशा",
DlgDocLangDirLTR : "बायें से दायें (LTR)",
DlgDocLangDirRTL : "दायें से बायें (RTL)",
DlgDocLangCode : "भाषा कोड",
DlgDocCharSet : "करेक्टर सॅट ऍन्कोडिंग",
DlgDocCharSetCE : "मध्य यूरोपीय (Central European)",
DlgDocCharSetCT : "चीनी (Chinese Traditional Big5)",
DlgDocCharSetCR : "सिरीलिक (Cyrillic)",
DlgDocCharSetGR : "यवन (Greek)",
DlgDocCharSetJP : "जापानी (Japanese)",
DlgDocCharSetKR : "कोरीयन (Korean)",
DlgDocCharSetTR : "तुर्की (Turkish)",
DlgDocCharSetUN : "यूनीकोड (UTF-8)",
DlgDocCharSetWE : "पश्चिम यूरोपीय (Western European)",
DlgDocCharSetOther : "अन्य करेक्टर सॅट ऍन्कोडिंग",
DlgDocDocType : "डॉक्यूमॅन्ट प्रकार शीर्षक",
DlgDocDocTypeOther : "अन्य डॉक्यूमॅन्ट प्रकार शीर्षक",
DlgDocIncXHTML : "XHTML सूचना सम्मिलित करें",
DlgDocBgColor : "बैक्ग्राउन्ड रंग",
DlgDocBgImage : "बैक्ग्राउन्ड तस्वीर URL",
DlgDocBgNoScroll : "स्क्रॉल न करने वाला बैक्ग्राउन्ड",
DlgDocCText : "टेक्स्ट",
DlgDocCLink : "लिंक",
DlgDocCVisited : "विज़िट किया गया लिंक",
DlgDocCActive : "सक्रिय लिंक",
DlgDocMargins : "पेज मार्जिन",
DlgDocMaTop : "ऊपर",
DlgDocMaLeft : "बायें",
DlgDocMaRight : "दायें",
DlgDocMaBottom : "नीचे",
DlgDocMeIndex : "डॉक्युमॅन्ट इन्डेक्स संकेतशब्द (अल्पविराम से अलग करें)",
DlgDocMeDescr : "डॉक्यूमॅन्ट करॅक्टरन",
DlgDocMeAuthor : "लेखक",
DlgDocMeCopy : "कॉपीराइट",
DlgDocPreview : "प्रीव्यू",
// Templates Dialog
Templates : "टॅम्प्लेट",
DlgTemplatesTitle : "कन्टेन्ट टॅम्प्लेट",
DlgTemplatesSelMsg : "ऍडिटर में ओपन करने हेतु टॅम्प्लेट चुनें(वर्तमान कन्टॅन्ट सेव नहीं होंगे):",
DlgTemplatesLoading : "टॅम्प्लेट सूची लोड की जा रही है। ज़रा ठहरें...",
DlgTemplatesNoTpl : "(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)",
DlgTemplatesReplace : "मूल शब्दों को बदलें",
// About Dialog
DlgAboutAboutTab : "FCKEditor के बारे में",
DlgAboutBrowserInfoTab : "ब्राउज़र के बारे में",
DlgAboutLicenseTab : "लाइसैन्स",
DlgAboutVersion : "वर्ज़न",
DlgAboutInfo : "अधिक जानकारी के लिये यहाँ जायें:",
// Div Dialog
DlgDivGeneralTab : "सामान्य",
DlgDivAdvancedTab : "एड्वान्स्ड",
DlgDivStyle : "स्टाइल",
DlgDivInlineStyle : "इनलाइन स्टाइल"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Czech language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Skrýt panel nástrojů",
ToolbarExpand : "Zobrazit panel nástrojů",
// Toolbar Items and Context Menu
Save : "Uložit",
NewPage : "Nová stránka",
Preview : "Náhled",
Cut : "Vyjmout",
Copy : "Kopírovat",
Paste : "Vložit",
PasteText : "Vložit jako čistý text",
PasteWord : "Vložit z Wordu",
Print : "Tisk",
SelectAll : "Vybrat vše",
RemoveFormat : "Odstranit formátování",
InsertLinkLbl : "Odkaz",
InsertLink : "Vložit/změnit odkaz",
RemoveLink : "Odstranit odkaz",
VisitLink : "Otevřít odkaz",
Anchor : "Vložít/změnit záložku",
AnchorDelete : "Odstranit kotvu",
InsertImageLbl : "Obrázek",
InsertImage : "Vložit/změnit obrázek",
InsertFlashLbl : "Flash",
InsertFlash : "Vložit/Upravit Flash",
InsertTableLbl : "Tabulka",
InsertTable : "Vložit/změnit tabulku",
InsertLineLbl : "Linka",
InsertLine : "Vložit vodorovnou linku",
InsertSpecialCharLbl: "Speciální znaky",
InsertSpecialChar : "Vložit speciální znaky",
InsertSmileyLbl : "Smajlíky",
InsertSmiley : "Vložit smajlík",
About : "O aplikaci FCKeditor",
Bold : "Tučné",
Italic : "Kurzíva",
Underline : "Podtržené",
StrikeThrough : "Přeškrtnuté",
Subscript : "Dolní index",
Superscript : "Horní index",
LeftJustify : "Zarovnat vlevo",
CenterJustify : "Zarovnat na střed",
RightJustify : "Zarovnat vpravo",
BlockJustify : "Zarovnat do bloku",
DecreaseIndent : "Zmenšit odsazení",
IncreaseIndent : "Zvětšit odsazení",
Blockquote : "Citace",
CreateDiv : "Vytvořit Div kontejner",
EditDiv : "Upravit Div kontejner",
DeleteDiv : "Odstranit Div kontejner",
Undo : "Zpět",
Redo : "Znovu",
NumberedListLbl : "Číslování",
NumberedList : "Vložit/odstranit číslovaný seznam",
BulletedListLbl : "Odrážky",
BulletedList : "Vložit/odstranit odrážky",
ShowTableBorders : "Zobrazit okraje tabulek",
ShowDetails : "Zobrazit podrobnosti",
Style : "Styl",
FontFormat : "Formát",
Font : "Písmo",
FontSize : "Velikost",
TextColor : "Barva textu",
BGColor : "Barva pozadí",
Source : "Zdroj",
Find : "Hledat",
Replace : "Nahradit",
SpellCheck : "Zkontrolovat pravopis",
UniversalKeyboard : "Univerzální klávesnice",
PageBreakLbl : "Konec stránky",
PageBreak : "Vložit konec stránky",
Form : "Formulář",
Checkbox : "Zaškrtávací políčko",
RadioButton : "Přepínač",
TextField : "Textové pole",
Textarea : "Textová oblast",
HiddenField : "Skryté pole",
Button : "Tlačítko",
SelectionField : "Seznam",
ImageButton : "Obrázkové tlačítko",
FitWindow : "Maximalizovat velikost editoru",
ShowBlocks : "Ukázat bloky",
// Context Menu
EditLink : "Změnit odkaz",
CellCM : "Buňka",
RowCM : "Řádek",
ColumnCM : "Sloupec",
InsertRowAfter : "Vložit řádek za",
InsertRowBefore : "Vložit řádek před",
DeleteRows : "Smazat řádky",
InsertColumnAfter : "Vložit sloupec za",
InsertColumnBefore : "Vložit sloupec před",
DeleteColumns : "Smazat sloupec",
InsertCellAfter : "Vložit buňku za",
InsertCellBefore : "Vložit buňku před",
DeleteCells : "Smazat buňky",
MergeCells : "Sloučit buňky",
MergeRight : "Sloučit doprava",
MergeDown : "Sloučit dolů",
HorizontalSplitCell : "Rozdělit buňky vodorovně",
VerticalSplitCell : "Rozdělit buňky svisle",
TableDelete : "Smazat tabulku",
CellProperties : "Vlastnosti buňky",
TableProperties : "Vlastnosti tabulky",
ImageProperties : "Vlastnosti obrázku",
FlashProperties : "Vlastnosti Flashe",
AnchorProp : "Vlastnosti záložky",
ButtonProp : "Vlastnosti tlačítka",
CheckboxProp : "Vlastnosti zaškrtávacího políčka",
HiddenFieldProp : "Vlastnosti skrytého pole",
RadioButtonProp : "Vlastnosti přepínače",
ImageButtonProp : "Vlastností obrázkového tlačítka",
TextFieldProp : "Vlastnosti textového pole",
SelectionFieldProp : "Vlastnosti seznamu",
TextareaProp : "Vlastnosti textové oblasti",
FormProp : "Vlastnosti formuláře",
FontFormats : "Normální;Naformátováno;Adresa;Nadpis 1;Nadpis 2;Nadpis 3;Nadpis 4;Nadpis 5;Nadpis 6;Normální (DIV)",
// Alerts and Messages
ProcessingXHTML : "Probíhá zpracování XHTML. Prosím čekejte...",
Done : "Hotovo",
PasteWordConfirm : "Jak je vidět, vkládaný text je kopírován z Wordu. Chcete jej před vložením vyčistit?",
NotCompatiblePaste : "Tento příkaz je dostupný pouze v Internet Exploreru verze 5.5 nebo vyšší. Chcete vložit text bez vyčištění?",
UnknownToolbarItem : "Neznámá položka panelu nástrojů \"%1\"",
UnknownCommand : "Neznámý příkaz \"%1\"",
NotImplemented : "Příkaz není implementován",
UnknownToolbarSet : "Panel nástrojů \"%1\" neexistuje",
NoActiveX : "Nastavení bezpečnosti Vašeho prohlížeče omezuje funkčnost některých jeho možností. Je třeba zapnout volbu \"Spouštět ovládáací prvky ActiveX a moduly plug-in\", jinak nebude možné využívat všechny dosputné schopnosti editoru.",
BrowseServerBlocked : "Průzkumník zdrojů nelze otevřít. Prověřte, zda nemáte aktivováno blokování popup oken.",
DialogBlocked : "Nelze otevřít dialogové okno. Prověřte, zda nemáte aktivováno blokování popup oken.",
VisitLinkBlocked : "Není možné otevřít nové okno. Prověřte, zda všechny nástroje pro blokování vyskakovacích oken jsou vypnuty.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Storno",
DlgBtnClose : "Zavřít",
DlgBtnBrowseServer : "Vybrat na serveru",
DlgAdvancedTag : "Rozšířené",
DlgOpOther : "<Ostatní>",
DlgInfoTab : "Info",
DlgAlertUrl : "Prosím vložte URL",
// General Dialogs Labels
DlgGenNotSet : "<nenastaveno>",
DlgGenId : "Id",
DlgGenLangDir : "Orientace jazyka",
DlgGenLangDirLtr : "Zleva do prava (LTR)",
DlgGenLangDirRtl : "Zprava do leva (RTL)",
DlgGenLangCode : "Kód jazyka",
DlgGenAccessKey : "Přístupový klíč",
DlgGenName : "Jméno",
DlgGenTabIndex : "Pořadí prvku",
DlgGenLongDescr : "Dlouhý popis URL",
DlgGenClass : "Třída stylu",
DlgGenTitle : "Pomocný titulek",
DlgGenContType : "Pomocný typ obsahu",
DlgGenLinkCharset : "Přiřazená znaková sada",
DlgGenStyle : "Styl",
// Image Dialog
DlgImgTitle : "Vlastnosti obrázku",
DlgImgInfoTab : "Informace o obrázku",
DlgImgBtnUpload : "Odeslat na server",
DlgImgURL : "URL",
DlgImgUpload : "Odeslat",
DlgImgAlt : "Alternativní text",
DlgImgWidth : "Šířka",
DlgImgHeight : "Výška",
DlgImgLockRatio : "Zámek",
DlgBtnResetSize : "Původní velikost",
DlgImgBorder : "Okraje",
DlgImgHSpace : "H-mezera",
DlgImgVSpace : "V-mezera",
DlgImgAlign : "Zarovnání",
DlgImgAlignLeft : "Vlevo",
DlgImgAlignAbsBottom: "Zcela dolů",
DlgImgAlignAbsMiddle: "Doprostřed",
DlgImgAlignBaseline : "Na účaří",
DlgImgAlignBottom : "Dolů",
DlgImgAlignMiddle : "Na střed",
DlgImgAlignRight : "Vpravo",
DlgImgAlignTextTop : "Na horní okraj textu",
DlgImgAlignTop : "Nahoru",
DlgImgPreview : "Náhled",
DlgImgAlertUrl : "Zadejte prosím URL obrázku",
DlgImgLinkTab : "Odkaz",
// Flash Dialog
DlgFlashTitle : "Vlastnosti Flashe",
DlgFlashChkPlay : "Automatické spuštění",
DlgFlashChkLoop : "Opakování",
DlgFlashChkMenu : "Nabídka Flash",
DlgFlashScale : "Zobrazit",
DlgFlashScaleAll : "Zobrazit vše",
DlgFlashScaleNoBorder : "Bez okraje",
DlgFlashScaleFit : "Přizpůsobit",
// Link Dialog
DlgLnkWindowTitle : "Odkaz",
DlgLnkInfoTab : "Informace o odkazu",
DlgLnkTargetTab : "Cíl",
DlgLnkType : "Typ odkazu",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Kotva v této stránce",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<jiný>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Vybrat kotvu",
DlgLnkAnchorByName : "Podle jména kotvy",
DlgLnkAnchorById : "Podle Id objektu",
DlgLnkNoAnchors : "(Ve stránce není definována žádná kotva!)",
DlgLnkEMail : "E-Mailová adresa",
DlgLnkEMailSubject : "Předmět zprávy",
DlgLnkEMailBody : "Tělo zprávy",
DlgLnkUpload : "Odeslat",
DlgLnkBtnUpload : "Odeslat na Server",
DlgLnkTarget : "Cíl",
DlgLnkTargetFrame : "<rámec>",
DlgLnkTargetPopup : "<vyskakovací okno>",
DlgLnkTargetBlank : "Nové okno (_blank)",
DlgLnkTargetParent : "Rodičovské okno (_parent)",
DlgLnkTargetSelf : "Stejné okno (_self)",
DlgLnkTargetTop : "Hlavní okno (_top)",
DlgLnkTargetFrameName : "Název cílového rámu",
DlgLnkPopWinName : "Název vyskakovacího okna",
DlgLnkPopWinFeat : "Vlastnosti vyskakovacího okna",
DlgLnkPopResize : "Měnitelná velikost",
DlgLnkPopLocation : "Panel umístění",
DlgLnkPopMenu : "Panel nabídky",
DlgLnkPopScroll : "Posuvníky",
DlgLnkPopStatus : "Stavový řádek",
DlgLnkPopToolbar : "Panel nástrojů",
DlgLnkPopFullScrn : "Celá obrazovka (IE)",
DlgLnkPopDependent : "Závislost (Netscape)",
DlgLnkPopWidth : "Šířka",
DlgLnkPopHeight : "Výška",
DlgLnkPopLeft : "Levý okraj",
DlgLnkPopTop : "Horní okraj",
DlnLnkMsgNoUrl : "Zadejte prosím URL odkazu",
DlnLnkMsgNoEMail : "Zadejte prosím e-mailovou adresu",
DlnLnkMsgNoAnchor : "Vyberte prosím kotvu",
DlnLnkMsgInvPopName : "Název vyskakovacího okna musí začínat písmenem a nesmí obsahovat mezery",
// Color Dialog
DlgColorTitle : "Výběr barvy",
DlgColorBtnClear : "Vymazat",
DlgColorHighlight : "Zvýrazněná",
DlgColorSelected : "Vybraná",
// Smiley Dialog
DlgSmileyTitle : "Vkládání smajlíků",
// Special Character Dialog
DlgSpecialCharTitle : "Výběr speciálního znaku",
// Table Dialog
DlgTableTitle : "Vlastnosti tabulky",
DlgTableRows : "Řádky",
DlgTableColumns : "Sloupce",
DlgTableBorder : "Ohraničení",
DlgTableAlign : "Zarovnání",
DlgTableAlignNotSet : "<nenastaveno>",
DlgTableAlignLeft : "Vlevo",
DlgTableAlignCenter : "Na střed",
DlgTableAlignRight : "Vpravo",
DlgTableWidth : "Šířka",
DlgTableWidthPx : "bodů",
DlgTableWidthPc : "procent",
DlgTableHeight : "Výška",
DlgTableCellSpace : "Vzdálenost buněk",
DlgTableCellPad : "Odsazení obsahu",
DlgTableCaption : "Popis",
DlgTableSummary : "Souhrn",
// Table Cell Dialog
DlgCellTitle : "Vlastnosti buňky",
DlgCellWidth : "Šířka",
DlgCellWidthPx : "bodů",
DlgCellWidthPc : "procent",
DlgCellHeight : "Výška",
DlgCellWordWrap : "Zalamování",
DlgCellWordWrapNotSet : "<nenanstaveno>",
DlgCellWordWrapYes : "Ano",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Vodorovné zarovnání",
DlgCellHorAlignNotSet : "<nenastaveno>",
DlgCellHorAlignLeft : "Vlevo",
DlgCellHorAlignCenter : "Na střed",
DlgCellHorAlignRight: "Vpravo",
DlgCellVerAlign : "Svislé zarovnání",
DlgCellVerAlignNotSet : "<nenastaveno>",
DlgCellVerAlignTop : "Nahoru",
DlgCellVerAlignMiddle : "Doprostřed",
DlgCellVerAlignBottom : "Dolů",
DlgCellVerAlignBaseline : "Na účaří",
DlgCellRowSpan : "Sloučené řádky",
DlgCellCollSpan : "Sloučené sloupce",
DlgCellBackColor : "Barva pozadí",
DlgCellBorderColor : "Barva ohraničení",
DlgCellBtnSelect : "Výběr...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Najít a nahradit",
// Find Dialog
DlgFindTitle : "Hledat",
DlgFindFindBtn : "Hledat",
DlgFindNotFoundMsg : "Hledaný text nebyl nalezen.",
// Replace Dialog
DlgReplaceTitle : "Nahradit",
DlgReplaceFindLbl : "Co hledat:",
DlgReplaceReplaceLbl : "Čím nahradit:",
DlgReplaceCaseChk : "Rozlišovat velikost písma",
DlgReplaceReplaceBtn : "Nahradit",
DlgReplaceReplAllBtn : "Nahradit vše",
DlgReplaceWordChk : "Pouze celá slova",
// Paste Operations / Dialog
PasteErrorCut : "Bezpečnostní nastavení Vašeho prohlížeče nedovolují editoru spustit funkci pro vyjmutí zvoleného textu do schránky. Prosím vyjměte zvolený text do schránky pomocí klávesnice (Ctrl+X).",
PasteErrorCopy : "Bezpečnostní nastavení Vašeho prohlížeče nedovolují editoru spustit funkci pro kopírování zvoleného textu do schránky. Prosím zkopírujte zvolený text do schránky pomocí klávesnice (Ctrl+C).",
PasteAsText : "Vložit jako čistý text",
PasteFromWord : "Vložit text z Wordu",
DlgPasteMsg2 : "Do následujícího pole vložte požadovaný obsah pomocí klávesnice (<STRONG>Ctrl+V</STRONG>) a stiskněte <STRONG>OK</STRONG>.",
DlgPasteSec : "Z důvodů nastavení bezpečnosti Vašeho prohlížeče nemůže editor přistupovat přímo do schránky. Obsah schránky prosím vložte znovu do tohoto okna.",
DlgPasteIgnoreFont : "Ignorovat písmo",
DlgPasteRemoveStyles : "Odstranit styly",
// Color Picker
ColorAutomatic : "Automaticky",
ColorMoreColors : "Více barev...",
// Document Properties
DocProps : "Vlastnosti dokumentu",
// Anchor Dialog
DlgAnchorTitle : "Vlastnosti záložky",
DlgAnchorName : "Název záložky",
DlgAnchorErrorName : "Zadejte prosím název záložky",
// Speller Pages Dialog
DlgSpellNotInDic : "Není ve slovníku",
DlgSpellChangeTo : "Změnit na",
DlgSpellBtnIgnore : "Přeskočit",
DlgSpellBtnIgnoreAll : "Přeskakovat vše",
DlgSpellBtnReplace : "Zaměnit",
DlgSpellBtnReplaceAll : "Zaměňovat vše",
DlgSpellBtnUndo : "Zpět",
DlgSpellNoSuggestions : "- žádné návrhy -",
DlgSpellProgress : "Probíhá kontrola pravopisu...",
DlgSpellNoMispell : "Kontrola pravopisu dokončena: Žádné pravopisné chyby nenalezeny",
DlgSpellNoChanges : "Kontrola pravopisu dokončena: Beze změn",
DlgSpellOneChange : "Kontrola pravopisu dokončena: Jedno slovo změněno",
DlgSpellManyChanges : "Kontrola pravopisu dokončena: %1 slov změněno",
IeSpellDownload : "Kontrola pravopisu není nainstalována. Chcete ji nyní stáhnout?",
// Button Dialog
DlgButtonText : "Popisek",
DlgButtonType : "Typ",
DlgButtonTypeBtn : "Tlačítko",
DlgButtonTypeSbm : "Odeslat",
DlgButtonTypeRst : "Obnovit",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Název",
DlgCheckboxValue : "Hodnota",
DlgCheckboxSelected : "Zaškrtnuto",
// Form Dialog
DlgFormName : "Název",
DlgFormAction : "Akce",
DlgFormMethod : "Metoda",
// Select Field Dialog
DlgSelectName : "Název",
DlgSelectValue : "Hodnota",
DlgSelectSize : "Velikost",
DlgSelectLines : "Řádků",
DlgSelectChkMulti : "Povolit mnohonásobné výběry",
DlgSelectOpAvail : "Dostupná nastavení",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Hodnota",
DlgSelectBtnAdd : "Přidat",
DlgSelectBtnModify : "Změnit",
DlgSelectBtnUp : "Nahoru",
DlgSelectBtnDown : "Dolů",
DlgSelectBtnSetValue : "Nastavit jako vybranou hodnotu",
DlgSelectBtnDelete : "Smazat",
// Textarea Dialog
DlgTextareaName : "Název",
DlgTextareaCols : "Sloupců",
DlgTextareaRows : "Řádků",
// Text Field Dialog
DlgTextName : "Název",
DlgTextValue : "Hodnota",
DlgTextCharWidth : "Šířka ve znacích",
DlgTextMaxChars : "Maximální počet znaků",
DlgTextType : "Typ",
DlgTextTypeText : "Text",
DlgTextTypePass : "Heslo",
// Hidden Field Dialog
DlgHiddenName : "Název",
DlgHiddenValue : "Hodnota",
// Bulleted List Dialog
BulletedListProp : "Vlastnosti odrážek",
NumberedListProp : "Vlastnosti číslovaného seznamu",
DlgLstStart : "Začátek",
DlgLstType : "Typ",
DlgLstTypeCircle : "Kružnice",
DlgLstTypeDisc : "Kruh",
DlgLstTypeSquare : "Čtverec",
DlgLstTypeNumbers : "Čísla (1, 2, 3)",
DlgLstTypeLCase : "Malá písmena (a, b, c)",
DlgLstTypeUCase : "Velká písmena (A, B, C)",
DlgLstTypeSRoman : "Malé římská číslice (i, ii, iii)",
DlgLstTypeLRoman : "Velké římské číslice (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Obecné",
DlgDocBackTab : "Pozadí",
DlgDocColorsTab : "Barvy a okraje",
DlgDocMetaTab : "Metadata",
DlgDocPageTitle : "Titulek stránky",
DlgDocLangDir : "Směr jazyku",
DlgDocLangDirLTR : "Zleva do prava ",
DlgDocLangDirRTL : "Zprava doleva",
DlgDocLangCode : "Kód jazyku",
DlgDocCharSet : "Znaková sada",
DlgDocCharSetCE : "Středoevropské jazyky",
DlgDocCharSetCT : "Tradiční čínština (Big5)",
DlgDocCharSetCR : "Cyrilice",
DlgDocCharSetGR : "Řečtina",
DlgDocCharSetJP : "Japonština",
DlgDocCharSetKR : "Korejština",
DlgDocCharSetTR : "Turečtina",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Západoevropské jazyky",
DlgDocCharSetOther : "Další znaková sada",
DlgDocDocType : "Typ dokumentu",
DlgDocDocTypeOther : "Jiný typ dokumetu",
DlgDocIncXHTML : "Zahrnou deklarace XHTML",
DlgDocBgColor : "Barva pozadí",
DlgDocBgImage : "URL obrázku na pozadí",
DlgDocBgNoScroll : "Nerolovatelné pozadí",
DlgDocCText : "Text",
DlgDocCLink : "Odkaz",
DlgDocCVisited : "Navštívený odkaz",
DlgDocCActive : "Vybraný odkaz",
DlgDocMargins : "Okraje stránky",
DlgDocMaTop : "Horní",
DlgDocMaLeft : "Levý",
DlgDocMaRight : "Pravý",
DlgDocMaBottom : "Dolní",
DlgDocMeIndex : "Klíčová slova (oddělená čárkou)",
DlgDocMeDescr : "Popis dokumentu",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Autorská práva",
DlgDocPreview : "Náhled",
// Templates Dialog
Templates : "Šablony",
DlgTemplatesTitle : "Šablony obsahu",
DlgTemplatesSelMsg : "Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):",
DlgTemplatesLoading : "Nahrávám přeheld šablon. Prosím čekejte...",
DlgTemplatesNoTpl : "(Není definována žádná šablona)",
DlgTemplatesReplace : "Nahradit aktuální obsah",
// About Dialog
DlgAboutAboutTab : "O aplikaci",
DlgAboutBrowserInfoTab : "Informace o prohlížeči",
DlgAboutLicenseTab : "Licence",
DlgAboutVersion : "verze",
DlgAboutInfo : "Více informací získáte na",
// Div Dialog
DlgDivGeneralTab : "Obecné",
DlgDivAdvancedTab : "Rozšířené",
DlgDivStyle : "Styl",
DlgDivInlineStyle : "Vložený styl"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Croatian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Smanji trake s alatima",
ToolbarExpand : "Proširi trake s alatima",
// Toolbar Items and Context Menu
Save : "Snimi",
NewPage : "Nova stranica",
Preview : "Pregledaj",
Cut : "Izreži",
Copy : "Kopiraj",
Paste : "Zalijepi",
PasteText : "Zalijepi kao čisti tekst",
PasteWord : "Zalijepi iz Worda",
Print : "Ispiši",
SelectAll : "Odaberi sve",
RemoveFormat : "Ukloni formatiranje",
InsertLinkLbl : "Link",
InsertLink : "Ubaci/promijeni link",
RemoveLink : "Ukloni link",
VisitLink : "Otvori link",
Anchor : "Ubaci/promijeni sidro",
AnchorDelete : "Ukloni sidro",
InsertImageLbl : "Slika",
InsertImage : "Ubaci/promijeni sliku",
InsertFlashLbl : "Flash",
InsertFlash : "Ubaci/promijeni Flash",
InsertTableLbl : "Tablica",
InsertTable : "Ubaci/promijeni tablicu",
InsertLineLbl : "Linija",
InsertLine : "Ubaci vodoravnu liniju",
InsertSpecialCharLbl: "Posebni karakteri",
InsertSpecialChar : "Ubaci posebne znakove",
InsertSmileyLbl : "Smješko",
InsertSmiley : "Ubaci smješka",
About : "O FCKeditoru",
Bold : "Podebljaj",
Italic : "Ukosi",
Underline : "Potcrtano",
StrikeThrough : "Precrtano",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Lijevo poravnanje",
CenterJustify : "Središnje poravnanje",
RightJustify : "Desno poravnanje",
BlockJustify : "Blok poravnanje",
DecreaseIndent : "Pomakni ulijevo",
IncreaseIndent : "Pomakni udesno",
Blockquote : "Blockquote",
CreateDiv : "Napravi Div kontejner",
EditDiv : "Uredi Div kontejner",
DeleteDiv : "Ukloni Div kontejner",
Undo : "Poništi",
Redo : "Ponovi",
NumberedListLbl : "Brojčana lista",
NumberedList : "Ubaci/ukloni brojčanu listu",
BulletedListLbl : "Obična lista",
BulletedList : "Ubaci/ukloni običnu listu",
ShowTableBorders : "Prikaži okvir tablice",
ShowDetails : "Prikaži detalje",
Style : "Stil",
FontFormat : "Format",
Font : "Font",
FontSize : "Veličina",
TextColor : "Boja teksta",
BGColor : "Boja pozadine",
Source : "Kôd",
Find : "Pronađi",
Replace : "Zamijeni",
SpellCheck : "Provjeri pravopis",
UniversalKeyboard : "Univerzalna tipkovnica",
PageBreakLbl : "Prijelom stranice",
PageBreak : "Ubaci prijelom stranice",
Form : "Form",
Checkbox : "Checkbox",
RadioButton : "Radio Button",
TextField : "Text Field",
Textarea : "Textarea",
HiddenField : "Hidden Field",
Button : "Button",
SelectionField : "Selection Field",
ImageButton : "Image Button",
FitWindow : "Povećaj veličinu editora",
ShowBlocks : "Prikaži blokove",
// Context Menu
EditLink : "Promijeni link",
CellCM : "Ćelija",
RowCM : "Red",
ColumnCM : "Kolona",
InsertRowAfter : "Ubaci red poslije",
InsertRowBefore : "Ubaci red prije",
DeleteRows : "Izbriši redove",
InsertColumnAfter : "Ubaci kolonu poslije",
InsertColumnBefore : "Ubaci kolonu prije",
DeleteColumns : "Izbriši kolone",
InsertCellAfter : "Ubaci ćeliju poslije",
InsertCellBefore : "Ubaci ćeliju prije",
DeleteCells : "Izbriši ćelije",
MergeCells : "Spoji ćelije",
MergeRight : "Spoji desno",
MergeDown : "Spoji dolje",
HorizontalSplitCell : "Podijeli ćeliju vodoravno",
VerticalSplitCell : "Podijeli ćeliju okomito",
TableDelete : "Izbriši tablicu",
CellProperties : "Svojstva ćelije",
TableProperties : "Svojstva tablice",
ImageProperties : "Svojstva slike",
FlashProperties : "Flash svojstva",
AnchorProp : "Svojstva sidra",
ButtonProp : "Image Button svojstva",
CheckboxProp : "Checkbox svojstva",
HiddenFieldProp : "Hidden Field svojstva",
RadioButtonProp : "Radio Button svojstva",
ImageButtonProp : "Image Button svojstva",
TextFieldProp : "Text Field svojstva",
SelectionFieldProp : "Selection svojstva",
TextareaProp : "Textarea svojstva",
FormProp : "Form svojstva",
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Obrađujem XHTML. Molimo pričekajte...",
Done : "Završio",
PasteWordConfirm : "Tekst koji želite zalijepiti čini se da je kopiran iz Worda. Želite li prije očistiti tekst?",
NotCompatiblePaste : "Ova naredba je dostupna samo u Internet Exploreru 5.5 ili novijem. Želite li nastaviti bez čišćenja?",
UnknownToolbarItem : "Nepoznati član trake s alatima \"%1\"",
UnknownCommand : "Nepoznata naredba \"%1\"",
NotImplemented : "Naredba nije implementirana",
UnknownToolbarSet : "Traka s alatima \"%1\" ne postoji",
NoActiveX : "Vaše postavke pretraživača mogle bi ograničiti neke od mogućnosti editora. Morate uključiti opciju \"Run ActiveX controls and plug-ins\" u postavkama. Ukoliko to ne učinite, moguće su razliite greške tijekom rada.",
BrowseServerBlocked : "Pretraivač nije moguće otvoriti. Provjerite da li je uključeno blokiranje pop-up prozora.",
DialogBlocked : "Nije moguće otvoriti novi prozor. Provjerite da li je uključeno blokiranje pop-up prozora.",
VisitLinkBlocked : "Nije moguće otvoriti novi prozor. Provjerite da li je uključeno blokiranje pop-up prozora.",
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Poništi",
DlgBtnClose : "Zatvori",
DlgBtnBrowseServer : "Pretraži server",
DlgAdvancedTag : "Napredno",
DlgOpOther : "<Drugo>",
DlgInfoTab : "Info",
DlgAlertUrl : "Molimo unesite URL",
// General Dialogs Labels
DlgGenNotSet : "<nije postavljeno>",
DlgGenId : "Id",
DlgGenLangDir : "Smjer jezika",
DlgGenLangDirLtr : "S lijeva na desno (LTR)",
DlgGenLangDirRtl : "S desna na lijevo (RTL)",
DlgGenLangCode : "Kôd jezika",
DlgGenAccessKey : "Pristupna tipka",
DlgGenName : "Naziv",
DlgGenTabIndex : "Tab Indeks",
DlgGenLongDescr : "Dugački opis URL",
DlgGenClass : "Stylesheet klase",
DlgGenTitle : "Advisory naslov",
DlgGenContType : "Advisory vrsta sadržaja",
DlgGenLinkCharset : "Kodna stranica povezanih resursa",
DlgGenStyle : "Stil",
// Image Dialog
DlgImgTitle : "Svojstva slika",
DlgImgInfoTab : "Info slike",
DlgImgBtnUpload : "Pošalji na server",
DlgImgURL : "URL",
DlgImgUpload : "Pošalji",
DlgImgAlt : "Alternativni tekst",
DlgImgWidth : "Širina",
DlgImgHeight : "Visina",
DlgImgLockRatio : "Zaključaj odnos",
DlgBtnResetSize : "Obriši veličinu",
DlgImgBorder : "Okvir",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Poravnaj",
DlgImgAlignLeft : "Lijevo",
DlgImgAlignAbsBottom: "Abs dolje",
DlgImgAlignAbsMiddle: "Abs sredina",
DlgImgAlignBaseline : "Bazno",
DlgImgAlignBottom : "Dolje",
DlgImgAlignMiddle : "Sredina",
DlgImgAlignRight : "Desno",
DlgImgAlignTextTop : "Vrh teksta",
DlgImgAlignTop : "Vrh",
DlgImgPreview : "Pregledaj",
DlgImgAlertUrl : "Unesite URL slike",
DlgImgLinkTab : "Link",
// Flash Dialog
DlgFlashTitle : "Flash svojstva",
DlgFlashChkPlay : "Auto Play",
DlgFlashChkLoop : "Ponavljaj",
DlgFlashChkMenu : "Omogući Flash izbornik",
DlgFlashScale : "Omjer",
DlgFlashScaleAll : "Prikaži sve",
DlgFlashScaleNoBorder : "Bez okvira",
DlgFlashScaleFit : "Točna veličina",
// Link Dialog
DlgLnkWindowTitle : "Link",
DlgLnkInfoTab : "Link Info",
DlgLnkTargetTab : "Meta",
DlgLnkType : "Link vrsta",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Sidro na ovoj stranici",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<drugo>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Odaberi sidro",
DlgLnkAnchorByName : "Po nazivu sidra",
DlgLnkAnchorById : "Po Id elementa",
DlgLnkNoAnchors : "(Nema dostupnih sidra)",
DlgLnkEMail : "E-Mail adresa",
DlgLnkEMailSubject : "Naslov",
DlgLnkEMailBody : "Sadržaj poruke",
DlgLnkUpload : "Pošalji",
DlgLnkBtnUpload : "Pošalji na server",
DlgLnkTarget : "Meta",
DlgLnkTargetFrame : "<okvir>",
DlgLnkTargetPopup : "<popup prozor>",
DlgLnkTargetBlank : "Novi prozor (_blank)",
DlgLnkTargetParent : "Roditeljski prozor (_parent)",
DlgLnkTargetSelf : "Isti prozor (_self)",
DlgLnkTargetTop : "Vršni prozor (_top)",
DlgLnkTargetFrameName : "Ime ciljnog okvira",
DlgLnkPopWinName : "Naziv popup prozora",
DlgLnkPopWinFeat : "Mogućnosti popup prozora",
DlgLnkPopResize : "Promjenljive veličine",
DlgLnkPopLocation : "Traka za lokaciju",
DlgLnkPopMenu : "Izborna traka",
DlgLnkPopScroll : "Scroll traka",
DlgLnkPopStatus : "Statusna traka",
DlgLnkPopToolbar : "Traka s alatima",
DlgLnkPopFullScrn : "Cijeli ekran (IE)",
DlgLnkPopDependent : "Ovisno (Netscape)",
DlgLnkPopWidth : "Širina",
DlgLnkPopHeight : "Visina",
DlgLnkPopLeft : "Lijeva pozicija",
DlgLnkPopTop : "Gornja pozicija",
DlnLnkMsgNoUrl : "Molimo upišite URL link",
DlnLnkMsgNoEMail : "Molimo upišite e-mail adresu",
DlnLnkMsgNoAnchor : "Molimo odaberite sidro",
DlnLnkMsgInvPopName : "Ime popup prozora mora početi sa slovom i ne smije sadržavati razmake",
// Color Dialog
DlgColorTitle : "Odaberite boju",
DlgColorBtnClear : "Obriši",
DlgColorHighlight : "Osvijetli",
DlgColorSelected : "Odaberi",
// Smiley Dialog
DlgSmileyTitle : "Ubaci smješka",
// Special Character Dialog
DlgSpecialCharTitle : "Odaberite posebni karakter",
// Table Dialog
DlgTableTitle : "Svojstva tablice",
DlgTableRows : "Redova",
DlgTableColumns : "Kolona",
DlgTableBorder : "Veličina okvira",
DlgTableAlign : "Poravnanje",
DlgTableAlignNotSet : "<nije postavljeno>",
DlgTableAlignLeft : "Lijevo",
DlgTableAlignCenter : "Središnje",
DlgTableAlignRight : "Desno",
DlgTableWidth : "Širina",
DlgTableWidthPx : "piksela",
DlgTableWidthPc : "postotaka",
DlgTableHeight : "Visina",
DlgTableCellSpace : "Prostornost ćelija",
DlgTableCellPad : "Razmak ćelija",
DlgTableCaption : "Naslov",
DlgTableSummary : "Sažetak",
// Table Cell Dialog
DlgCellTitle : "Svojstva ćelije",
DlgCellWidth : "Širina",
DlgCellWidthPx : "piksela",
DlgCellWidthPc : "postotaka",
DlgCellHeight : "Visina",
DlgCellWordWrap : "Word Wrap",
DlgCellWordWrapNotSet : "<nije postavljeno>",
DlgCellWordWrapYes : "Da",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Vodoravno poravnanje",
DlgCellHorAlignNotSet : "<nije postavljeno>",
DlgCellHorAlignLeft : "Lijevo",
DlgCellHorAlignCenter : "Središnje",
DlgCellHorAlignRight: "Desno",
DlgCellVerAlign : "Okomito poravnanje",
DlgCellVerAlignNotSet : "<nije postavljeno>",
DlgCellVerAlignTop : "Gornje",
DlgCellVerAlignMiddle : "Srednišnje",
DlgCellVerAlignBottom : "Donje",
DlgCellVerAlignBaseline : "Bazno",
DlgCellRowSpan : "Spajanje redova",
DlgCellCollSpan : "Spajanje kolona",
DlgCellBackColor : "Boja pozadine",
DlgCellBorderColor : "Boja okvira",
DlgCellBtnSelect : "Odaberi...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Pronađi i zamijeni",
// Find Dialog
DlgFindTitle : "Pronađi",
DlgFindFindBtn : "Pronađi",
DlgFindNotFoundMsg : "Traženi tekst nije pronađen.",
// Replace Dialog
DlgReplaceTitle : "Zamijeni",
DlgReplaceFindLbl : "Pronađi:",
DlgReplaceReplaceLbl : "Zamijeni s:",
DlgReplaceCaseChk : "Usporedi mala/velika slova",
DlgReplaceReplaceBtn : "Zamijeni",
DlgReplaceReplAllBtn : "Zamijeni sve",
DlgReplaceWordChk : "Usporedi cijele riječi",
// Paste Operations / Dialog
PasteErrorCut : "Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl+X).",
PasteErrorCopy : "Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl+C).",
PasteAsText : "Zalijepi kao čisti tekst",
PasteFromWord : "Zalijepi iz Worda",
DlgPasteMsg2 : "Molimo zaljepite unutar doljnjeg okvira koristeći tipkovnicu (<STRONG>Ctrl+V</STRONG>) i kliknite <STRONG>OK</STRONG>.",
DlgPasteSec : "Zbog sigurnosnih postavki Vašeg pretraživača, editor nema direktan pristup Vašem međuspremniku. Potrebno je ponovno zalijepiti tekst u ovaj prozor.",
DlgPasteIgnoreFont : "Zanemari definiciju vrste fonta",
DlgPasteRemoveStyles : "Ukloni definicije stilova",
// Color Picker
ColorAutomatic : "Automatski",
ColorMoreColors : "Više boja...",
// Document Properties
DocProps : "Svojstva dokumenta",
// Anchor Dialog
DlgAnchorTitle : "Svojstva sidra",
DlgAnchorName : "Ime sidra",
DlgAnchorErrorName : "Molimo unesite ime sidra",
// Speller Pages Dialog
DlgSpellNotInDic : "Nije u rječniku",
DlgSpellChangeTo : "Promijeni u",
DlgSpellBtnIgnore : "Zanemari",
DlgSpellBtnIgnoreAll : "Zanemari sve",
DlgSpellBtnReplace : "Zamijeni",
DlgSpellBtnReplaceAll : "Zamijeni sve",
DlgSpellBtnUndo : "Vrati",
DlgSpellNoSuggestions : "-Nema preporuke-",
DlgSpellProgress : "Provjera u tijeku...",
DlgSpellNoMispell : "Provjera završena: Nema grešaka",
DlgSpellNoChanges : "Provjera završena: Nije napravljena promjena",
DlgSpellOneChange : "Provjera završena: Jedna riječ promjenjena",
DlgSpellManyChanges : "Provjera završena: Promijenjeno %1 riječi",
IeSpellDownload : "Provjera pravopisa nije instalirana. Želite li skinuti provjeru pravopisa?",
// Button Dialog
DlgButtonText : "Tekst (vrijednost)",
DlgButtonType : "Vrsta",
DlgButtonTypeBtn : "Gumb",
DlgButtonTypeSbm : "Pošalji",
DlgButtonTypeRst : "Poništi",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Ime",
DlgCheckboxValue : "Vrijednost",
DlgCheckboxSelected : "Odabrano",
// Form Dialog
DlgFormName : "Ime",
DlgFormAction : "Akcija",
DlgFormMethod : "Metoda",
// Select Field Dialog
DlgSelectName : "Ime",
DlgSelectValue : "Vrijednost",
DlgSelectSize : "Veličina",
DlgSelectLines : "linija",
DlgSelectChkMulti : "Dozvoli višestruki odabir",
DlgSelectOpAvail : "Dostupne opcije",
DlgSelectOpText : "Tekst",
DlgSelectOpValue : "Vrijednost",
DlgSelectBtnAdd : "Dodaj",
DlgSelectBtnModify : "Promijeni",
DlgSelectBtnUp : "Gore",
DlgSelectBtnDown : "Dolje",
DlgSelectBtnSetValue : "Postavi kao odabranu vrijednost",
DlgSelectBtnDelete : "Obriši",
// Textarea Dialog
DlgTextareaName : "Ime",
DlgTextareaCols : "Kolona",
DlgTextareaRows : "Redova",
// Text Field Dialog
DlgTextName : "Ime",
DlgTextValue : "Vrijednost",
DlgTextCharWidth : "Širina",
DlgTextMaxChars : "Najviše karaktera",
DlgTextType : "Vrsta",
DlgTextTypeText : "Tekst",
DlgTextTypePass : "Šifra",
// Hidden Field Dialog
DlgHiddenName : "Ime",
DlgHiddenValue : "Vrijednost",
// Bulleted List Dialog
BulletedListProp : "Svojstva liste",
NumberedListProp : "Svojstva brojčane liste",
DlgLstStart : "Početak",
DlgLstType : "Vrsta",
DlgLstTypeCircle : "Krug",
DlgLstTypeDisc : "Disk",
DlgLstTypeSquare : "Kvadrat",
DlgLstTypeNumbers : "Brojevi (1, 2, 3)",
DlgLstTypeLCase : "Mala slova (a, b, c)",
DlgLstTypeUCase : "Velika slova (A, B, C)",
DlgLstTypeSRoman : "Male rimske brojke (i, ii, iii)",
DlgLstTypeLRoman : "Velike rimske brojke (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Općenito",
DlgDocBackTab : "Pozadina",
DlgDocColorsTab : "Boje i margine",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Naslov stranice",
DlgDocLangDir : "Smjer jezika",
DlgDocLangDirLTR : "S lijeva na desno",
DlgDocLangDirRTL : "S desna na lijevo",
DlgDocLangCode : "Kôd jezika",
DlgDocCharSet : "Enkodiranje znakova",
DlgDocCharSetCE : "Središnja Europa",
DlgDocCharSetCT : "Tradicionalna kineska (Big5)",
DlgDocCharSetCR : "Ćirilica",
DlgDocCharSetGR : "Grčka",
DlgDocCharSetJP : "Japanska",
DlgDocCharSetKR : "Koreanska",
DlgDocCharSetTR : "Turska",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Zapadna Europa",
DlgDocCharSetOther : "Ostalo enkodiranje znakova",
DlgDocDocType : "Zaglavlje vrste dokumenta",
DlgDocDocTypeOther : "Ostalo zaglavlje vrste dokumenta",
DlgDocIncXHTML : "Ubaci XHTML deklaracije",
DlgDocBgColor : "Boja pozadine",
DlgDocBgImage : "URL slike pozadine",
DlgDocBgNoScroll : "Pozadine se ne pomiče",
DlgDocCText : "Tekst",
DlgDocCLink : "Link",
DlgDocCVisited : "Posjećeni link",
DlgDocCActive : "Aktivni link",
DlgDocMargins : "Margine stranice",
DlgDocMaTop : "Vrh",
DlgDocMaLeft : "Lijevo",
DlgDocMaRight : "Desno",
DlgDocMaBottom : "Dolje",
DlgDocMeIndex : "Ključne riječi dokumenta (odvojene zarezom)",
DlgDocMeDescr : "Opis dokumenta",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Autorska prava",
DlgDocPreview : "Pregledaj",
// Templates Dialog
Templates : "Predlošci",
DlgTemplatesTitle : "Predlošci sadržaja",
DlgTemplatesSelMsg : "Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):",
DlgTemplatesLoading : "Učitavam listu predložaka. Molimo pričekajte...",
DlgTemplatesNoTpl : "(Nema definiranih predložaka)",
DlgTemplatesReplace : "Zamijeni trenutne sadržaje",
// About Dialog
DlgAboutAboutTab : "O FCKEditoru",
DlgAboutBrowserInfoTab : "Podaci o pretraživaču",
DlgAboutLicenseTab : "Licenca",
DlgAboutVersion : "inačica",
DlgAboutInfo : "Za više informacija posjetite",
// Div Dialog
DlgDivGeneralTab : "Općenito",
DlgDivAdvancedTab : "Napredno",
DlgDivStyle : "Stil",
DlgDivInlineStyle : "Stil u redu"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Malay language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Collapse Toolbar",
ToolbarExpand : "Expand Toolbar",
// Toolbar Items and Context Menu
Save : "Simpan",
NewPage : "Helaian Baru",
Preview : "Prebiu",
Cut : "Potong",
Copy : "Salin",
Paste : "Tampal",
PasteText : "Tampal sebagai Text Biasa",
PasteWord : "Tampal dari Word",
Print : "Cetak",
SelectAll : "Pilih Semua",
RemoveFormat : "Buang Format",
InsertLinkLbl : "Sambungan",
InsertLink : "Masukkan/Sunting Sambungan",
RemoveLink : "Buang Sambungan",
VisitLink : "Open Link", //MISSING
Anchor : "Masukkan/Sunting Pautan",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Gambar",
InsertImage : "Masukkan/Sunting Gambar",
InsertFlashLbl : "Flash", //MISSING
InsertFlash : "Insert/Edit Flash", //MISSING
InsertTableLbl : "Jadual",
InsertTable : "Masukkan/Sunting Jadual",
InsertLineLbl : "Garisan",
InsertLine : "Masukkan Garisan Membujur",
InsertSpecialCharLbl: "Huruf Istimewa",
InsertSpecialChar : "Masukkan Huruf Istimewa",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Masukkan Smiley",
About : "Tentang FCKeditor",
Bold : "Bold",
Italic : "Italic",
Underline : "Underline",
StrikeThrough : "Strike Through",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Jajaran Kiri",
CenterJustify : "Jajaran Tengah",
RightJustify : "Jajaran Kanan",
BlockJustify : "Jajaran Blok",
DecreaseIndent : "Kurangkan Inden",
IncreaseIndent : "Tambahkan Inden",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Batalkan",
Redo : "Ulangkan",
NumberedListLbl : "Senarai bernombor",
NumberedList : "Masukkan/Sunting Senarai bernombor",
BulletedListLbl : "Senarai tidak bernombor",
BulletedList : "Masukkan/Sunting Senarai tidak bernombor",
ShowTableBorders : "Tunjukkan Border Jadual",
ShowDetails : "Tunjukkan Butiran",
Style : "Stail",
FontFormat : "Format",
Font : "Font",
FontSize : "Saiz",
TextColor : "Warna Text",
BGColor : "Warna Latarbelakang",
Source : "Sumber",
Find : "Cari",
Replace : "Ganti",
SpellCheck : "Semak Ejaan",
UniversalKeyboard : "Papan Kekunci Universal",
PageBreakLbl : "Page Break", //MISSING
PageBreak : "Insert Page Break", //MISSING
Form : "Borang",
Checkbox : "Checkbox",
RadioButton : "Butang Radio",
TextField : "Text Field",
Textarea : "Textarea",
HiddenField : "Field Tersembunyi",
Button : "Butang",
SelectionField : "Field Pilihan",
ImageButton : "Butang Bergambar",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Sunting Sambungan",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Buangkan Baris",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Buangkan Lajur",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Buangkan Sel-sel",
MergeCells : "Cantumkan Sel-sel",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Delete Table", //MISSING
CellProperties : "Ciri-ciri Sel",
TableProperties : "Ciri-ciri Jadual",
ImageProperties : "Ciri-ciri Gambar",
FlashProperties : "Flash Properties", //MISSING
AnchorProp : "Ciri-ciri Pautan",
ButtonProp : "Ciri-ciri Butang",
CheckboxProp : "Ciri-ciri Checkbox",
HiddenFieldProp : "Ciri-ciri Field Tersembunyi",
RadioButtonProp : "Ciri-ciri Butang Radio",
ImageButtonProp : "Ciri-ciri Butang Bergambar",
TextFieldProp : "Ciri-ciri Text Field",
SelectionFieldProp : "Ciri-ciri Selection Field",
TextareaProp : "Ciri-ciri Textarea",
FormProp : "Ciri-ciri Borang",
FontFormats : "Normal;Telah Diformat;Alamat;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Perenggan (DIV)",
// Alerts and Messages
ProcessingXHTML : "Memproses XHTML. Sila tunggu...",
Done : "Siap",
PasteWordConfirm : "Text yang anda hendak tampal adalah berasal dari Word. Adakah anda mahu membuang semua format Word sebelum tampal ke dalam text?",
NotCompatiblePaste : "Arahan ini bole dilakukan jika anda mempuunyai Internet Explorer version 5.5 atau yang lebih tinggi. Adakah anda hendak tampal text tanpa membuang format Word?",
UnknownToolbarItem : "Toolbar item tidak diketahui\"%1\"",
UnknownCommand : "Arahan tidak diketahui \"%1\"",
NotImplemented : "Arahan tidak terdapat didalam sistem",
UnknownToolbarSet : "Set toolbar \"%1\" tidak wujud",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Batal",
DlgBtnClose : "Tutup",
DlgBtnBrowseServer : "Browse Server",
DlgAdvancedTag : "Advanced",
DlgOpOther : "<Lain-lain>",
DlgInfoTab : "Info", //MISSING
DlgAlertUrl : "Please insert the URL", //MISSING
// General Dialogs Labels
DlgGenNotSet : "<tidak di set>",
DlgGenId : "Id",
DlgGenLangDir : "Arah Tulisan",
DlgGenLangDirLtr : "Kiri ke Kanan (LTR)",
DlgGenLangDirRtl : "Kanan ke Kiri (RTL)",
DlgGenLangCode : "Kod Bahasa",
DlgGenAccessKey : "Kunci Akses",
DlgGenName : "Nama",
DlgGenTabIndex : "Indeks Tab ",
DlgGenLongDescr : "Butiran Panjang URL",
DlgGenClass : "Kelas-kelas Stylesheet",
DlgGenTitle : "Tajuk Makluman",
DlgGenContType : "Jenis Kandungan Makluman",
DlgGenLinkCharset : "Linked Resource Charset",
DlgGenStyle : "Stail",
// Image Dialog
DlgImgTitle : "Ciri-ciri Imej",
DlgImgInfoTab : "Info Imej",
DlgImgBtnUpload : "Hantar ke Server",
DlgImgURL : "URL",
DlgImgUpload : "Muat Naik",
DlgImgAlt : "Text Alternatif",
DlgImgWidth : "Lebar",
DlgImgHeight : "Tinggi",
DlgImgLockRatio : "Tetapkan Nisbah",
DlgBtnResetSize : "Saiz Set Semula",
DlgImgBorder : "Border",
DlgImgHSpace : "Ruang Melintang",
DlgImgVSpace : "Ruang Menegak",
DlgImgAlign : "Jajaran",
DlgImgAlignLeft : "Kiri",
DlgImgAlignAbsBottom: "Bawah Mutlak",
DlgImgAlignAbsMiddle: "Pertengahan Mutlak",
DlgImgAlignBaseline : "Garis Dasar",
DlgImgAlignBottom : "Bawah",
DlgImgAlignMiddle : "Pertengahan",
DlgImgAlignRight : "Kanan",
DlgImgAlignTextTop : "Atas Text",
DlgImgAlignTop : "Atas",
DlgImgPreview : "Prebiu",
DlgImgAlertUrl : "Sila taip URL untuk fail gambar",
DlgImgLinkTab : "Sambungan",
// Flash Dialog
DlgFlashTitle : "Flash Properties", //MISSING
DlgFlashChkPlay : "Auto Play", //MISSING
DlgFlashChkLoop : "Loop", //MISSING
DlgFlashChkMenu : "Enable Flash Menu", //MISSING
DlgFlashScale : "Scale", //MISSING
DlgFlashScaleAll : "Show all", //MISSING
DlgFlashScaleNoBorder : "No Border", //MISSING
DlgFlashScaleFit : "Exact Fit", //MISSING
// Link Dialog
DlgLnkWindowTitle : "Sambungan",
DlgLnkInfoTab : "Butiran Sambungan",
DlgLnkTargetTab : "Sasaran",
DlgLnkType : "Jenis Sambungan",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Pautan dalam muka surat ini",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<lain-lain>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Sila pilih pautan",
DlgLnkAnchorByName : "dengan menggunakan nama pautan",
DlgLnkAnchorById : "dengan menggunakan ID elemen",
DlgLnkNoAnchors : "(Tiada pautan terdapat dalam dokumen ini)",
DlgLnkEMail : "Alamat E-Mail",
DlgLnkEMailSubject : "Subjek Mesej",
DlgLnkEMailBody : "Isi Kandungan Mesej",
DlgLnkUpload : "Muat Naik",
DlgLnkBtnUpload : "Hantar ke Server",
DlgLnkTarget : "Sasaran",
DlgLnkTargetFrame : "<bingkai>",
DlgLnkTargetPopup : "<tetingkap popup>",
DlgLnkTargetBlank : "Tetingkap Baru (_blank)",
DlgLnkTargetParent : "Tetingkap Parent (_parent)",
DlgLnkTargetSelf : "Tetingkap yang Sama (_self)",
DlgLnkTargetTop : "Tetingkap yang paling atas (_top)",
DlgLnkTargetFrameName : "Nama Bingkai Sasaran",
DlgLnkPopWinName : "Nama Tetingkap Popup",
DlgLnkPopWinFeat : "Ciri Tetingkap Popup",
DlgLnkPopResize : "Saiz bolehubah",
DlgLnkPopLocation : "Bar Lokasi",
DlgLnkPopMenu : "Bar Menu",
DlgLnkPopScroll : "Bar-bar skrol",
DlgLnkPopStatus : "Bar Status",
DlgLnkPopToolbar : "Toolbar",
DlgLnkPopFullScrn : "Skrin Penuh (IE)",
DlgLnkPopDependent : "Bergantungan (Netscape)",
DlgLnkPopWidth : "Lebar",
DlgLnkPopHeight : "Tinggi",
DlgLnkPopLeft : "Posisi Kiri",
DlgLnkPopTop : "Posisi Atas",
DlnLnkMsgNoUrl : "Sila taip sambungan URL",
DlnLnkMsgNoEMail : "Sila taip alamat e-mail",
DlnLnkMsgNoAnchor : "Sila pilih pautan berkenaaan",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Pilihan Warna",
DlgColorBtnClear : "Nyahwarna",
DlgColorHighlight : "Terang",
DlgColorSelected : "Dipilih",
// Smiley Dialog
DlgSmileyTitle : "Masukkan Smiley",
// Special Character Dialog
DlgSpecialCharTitle : "Sila pilih huruf istimewa",
// Table Dialog
DlgTableTitle : "Ciri-ciri Jadual",
DlgTableRows : "Barisan",
DlgTableColumns : "Jaluran",
DlgTableBorder : "Saiz Border",
DlgTableAlign : "Penjajaran",
DlgTableAlignNotSet : "<Tidak diset>",
DlgTableAlignLeft : "Kiri",
DlgTableAlignCenter : "Tengah",
DlgTableAlignRight : "Kanan",
DlgTableWidth : "Lebar",
DlgTableWidthPx : "piksel-piksel",
DlgTableWidthPc : "peratus",
DlgTableHeight : "Tinggi",
DlgTableCellSpace : "Ruangan Antara Sel",
DlgTableCellPad : "Tambahan Ruang Sel",
DlgTableCaption : "Keterangan",
DlgTableSummary : "Summary", //MISSING
// Table Cell Dialog
DlgCellTitle : "Ciri-ciri Sel",
DlgCellWidth : "Lebar",
DlgCellWidthPx : "piksel-piksel",
DlgCellWidthPc : "peratus",
DlgCellHeight : "Tinggi",
DlgCellWordWrap : "Mengulung Perkataan",
DlgCellWordWrapNotSet : "<Tidak diset>",
DlgCellWordWrapYes : "Ya",
DlgCellWordWrapNo : "Tidak",
DlgCellHorAlign : "Jajaran Membujur",
DlgCellHorAlignNotSet : "<Tidak diset>",
DlgCellHorAlignLeft : "Kiri",
DlgCellHorAlignCenter : "Tengah",
DlgCellHorAlignRight: "Kanan",
DlgCellVerAlign : "Jajaran Menegak",
DlgCellVerAlignNotSet : "<Tidak diset>",
DlgCellVerAlignTop : "Atas",
DlgCellVerAlignMiddle : "Tengah",
DlgCellVerAlignBottom : "Bawah",
DlgCellVerAlignBaseline : "Garis Dasar",
DlgCellRowSpan : "Penggunaan Baris",
DlgCellCollSpan : "Penggunaan Lajur",
DlgCellBackColor : "Warna Latarbelakang",
DlgCellBorderColor : "Warna Border",
DlgCellBtnSelect : "Pilih...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Carian",
DlgFindFindBtn : "Cari",
DlgFindNotFoundMsg : "Text yang dicari tidak dijumpai.",
// Replace Dialog
DlgReplaceTitle : "Gantian",
DlgReplaceFindLbl : "Perkataan yang dicari:",
DlgReplaceReplaceLbl : "Diganti dengan:",
DlgReplaceCaseChk : "Padanan case huruf",
DlgReplaceReplaceBtn : "Ganti",
DlgReplaceReplAllBtn : "Ganti semua",
DlgReplaceWordChk : "Padana Keseluruhan perkataan",
// Paste Operations / Dialog
PasteErrorCut : "Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl+X).",
PasteErrorCopy : "Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl+C).",
PasteAsText : "Tampal sebagai text biasa",
PasteFromWord : "Tampal dari perisian \"Word\"",
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.", //MISSING
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING
// Color Picker
ColorAutomatic : "Otomatik",
ColorMoreColors : "Warna lain-lain...",
// Document Properties
DocProps : "Ciri-ciri dokumen",
// Anchor Dialog
DlgAnchorTitle : "Ciri-ciri Pautan",
DlgAnchorName : "Nama Pautan",
DlgAnchorErrorName : "Sila taip nama pautan",
// Speller Pages Dialog
DlgSpellNotInDic : "Tidak terdapat didalam kamus",
DlgSpellChangeTo : "Tukarkan kepada",
DlgSpellBtnIgnore : "Biar",
DlgSpellBtnIgnoreAll : "Biarkan semua",
DlgSpellBtnReplace : "Ganti",
DlgSpellBtnReplaceAll : "Gantikan Semua",
DlgSpellBtnUndo : "Batalkan",
DlgSpellNoSuggestions : "- Tiada cadangan -",
DlgSpellProgress : "Pemeriksaan ejaan sedang diproses...",
DlgSpellNoMispell : "Pemeriksaan ejaan siap: Tiada salah ejaan",
DlgSpellNoChanges : "Pemeriksaan ejaan siap: Tiada perkataan diubah",
DlgSpellOneChange : "Pemeriksaan ejaan siap: Satu perkataan telah diubah",
DlgSpellManyChanges : "Pemeriksaan ejaan siap: %1 perkataan diubah",
IeSpellDownload : "Pemeriksa ejaan tidak dipasang. Adakah anda mahu muat turun sekarang?",
// Button Dialog
DlgButtonText : "Teks (Nilai)",
DlgButtonType : "Jenis",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nama",
DlgCheckboxValue : "Nilai",
DlgCheckboxSelected : "Dipilih",
// Form Dialog
DlgFormName : "Nama",
DlgFormAction : "Tindakan borang",
DlgFormMethod : "Cara borang dihantar",
// Select Field Dialog
DlgSelectName : "Nama",
DlgSelectValue : "Nilai",
DlgSelectSize : "Saiz",
DlgSelectLines : "garisan",
DlgSelectChkMulti : "Benarkan pilihan pelbagai",
DlgSelectOpAvail : "Pilihan sediada",
DlgSelectOpText : "Teks",
DlgSelectOpValue : "Nilai",
DlgSelectBtnAdd : "Tambah Pilihan",
DlgSelectBtnModify : "Ubah Pilihan",
DlgSelectBtnUp : "Naik ke atas",
DlgSelectBtnDown : "Turun ke bawah",
DlgSelectBtnSetValue : "Set sebagai nilai terpilih",
DlgSelectBtnDelete : "Padam",
// Textarea Dialog
DlgTextareaName : "Nama",
DlgTextareaCols : "Lajur",
DlgTextareaRows : "Baris",
// Text Field Dialog
DlgTextName : "Nama",
DlgTextValue : "Nilai",
DlgTextCharWidth : "Lebar isian",
DlgTextMaxChars : "Isian Maksimum",
DlgTextType : "Jenis",
DlgTextTypeText : "Teks",
DlgTextTypePass : "Kata Laluan",
// Hidden Field Dialog
DlgHiddenName : "Nama",
DlgHiddenValue : "Nilai",
// Bulleted List Dialog
BulletedListProp : "Ciri-ciri senarai berpeluru",
NumberedListProp : "Ciri-ciri senarai bernombor",
DlgLstStart : "Start", //MISSING
DlgLstType : "Jenis",
DlgLstTypeCircle : "Circle",
DlgLstTypeDisc : "Disc", //MISSING
DlgLstTypeSquare : "Square",
DlgLstTypeNumbers : "Nombor-nombor (1, 2, 3)",
DlgLstTypeLCase : "Huruf-huruf kecil (a, b, c)",
DlgLstTypeUCase : "Huruf-huruf besar (A, B, C)",
DlgLstTypeSRoman : "Nombor Roman Kecil (i, ii, iii)",
DlgLstTypeLRoman : "Nombor Roman Besar (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Umum",
DlgDocBackTab : "Latarbelakang",
DlgDocColorsTab : "Warna dan margin",
DlgDocMetaTab : "Data Meta",
DlgDocPageTitle : "Tajuk Muka Surat",
DlgDocLangDir : "Arah Tulisan",
DlgDocLangDirLTR : "Kiri ke Kanan (LTR)",
DlgDocLangDirRTL : "Kanan ke Kiri (RTL)",
DlgDocLangCode : "Kod Bahasa",
DlgDocCharSet : "Enkod Set Huruf",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Enkod Set Huruf yang Lain",
DlgDocDocType : "Jenis Kepala Dokumen",
DlgDocDocTypeOther : "Jenis Kepala Dokumen yang Lain",
DlgDocIncXHTML : "Masukkan pemula kod XHTML",
DlgDocBgColor : "Warna Latarbelakang",
DlgDocBgImage : "URL Gambar Latarbelakang",
DlgDocBgNoScroll : "Imej Latarbelakang tanpa Skrol",
DlgDocCText : "Teks",
DlgDocCLink : "Sambungan",
DlgDocCVisited : "Sambungan telah Dilawati",
DlgDocCActive : "Sambungan Aktif",
DlgDocMargins : "Margin Muka Surat",
DlgDocMaTop : "Atas",
DlgDocMaLeft : "Kiri",
DlgDocMaRight : "Kanan",
DlgDocMaBottom : "Bawah",
DlgDocMeIndex : "Kata Kunci Indeks Dokumen (dipisahkan oleh koma)",
DlgDocMeDescr : "Keterangan Dokumen",
DlgDocMeAuthor : "Penulis",
DlgDocMeCopy : "Hakcipta",
DlgDocPreview : "Prebiu",
// Templates Dialog
Templates : "Templat",
DlgTemplatesTitle : "Templat Kandungan",
DlgTemplatesSelMsg : "Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):",
DlgTemplatesLoading : "Senarai Templat sedang diproses. Sila Tunggu...",
DlgTemplatesNoTpl : "(Tiada Templat Disimpan)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "Tentang",
DlgAboutBrowserInfoTab : "Maklumat Perisian Browser",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "versi",
DlgAboutInfo : "Untuk maklumat lanjut sila pergi ke",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Polish language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Zwiń pasek narzędzi",
ToolbarExpand : "Rozwiń pasek narzędzi",
// Toolbar Items and Context Menu
Save : "Zapisz",
NewPage : "Nowa strona",
Preview : "Podgląd",
Cut : "Wytnij",
Copy : "Kopiuj",
Paste : "Wklej",
PasteText : "Wklej jako czysty tekst",
PasteWord : "Wklej z Worda",
Print : "Drukuj",
SelectAll : "Zaznacz wszystko",
RemoveFormat : "Usuń formatowanie",
InsertLinkLbl : "Hiperłącze",
InsertLink : "Wstaw/edytuj hiperłącze",
RemoveLink : "Usuń hiperłącze",
VisitLink : "Open Link", //MISSING
Anchor : "Wstaw/edytuj kotwicę",
AnchorDelete : "Usuń kotwicę",
InsertImageLbl : "Obrazek",
InsertImage : "Wstaw/edytuj obrazek",
InsertFlashLbl : "Flash",
InsertFlash : "Dodaj/Edytuj element Flash",
InsertTableLbl : "Tabela",
InsertTable : "Wstaw/edytuj tabelę",
InsertLineLbl : "Linia pozioma",
InsertLine : "Wstaw poziomą linię",
InsertSpecialCharLbl: "Znak specjalny",
InsertSpecialChar : "Wstaw znak specjalny",
InsertSmileyLbl : "Emotikona",
InsertSmiley : "Wstaw emotikonę",
About : "O programie FCKeditor",
Bold : "Pogrubienie",
Italic : "Kursywa",
Underline : "Podkreślenie",
StrikeThrough : "Przekreślenie",
Subscript : "Indeks dolny",
Superscript : "Indeks górny",
LeftJustify : "Wyrównaj do lewej",
CenterJustify : "Wyrównaj do środka",
RightJustify : "Wyrównaj do prawej",
BlockJustify : "Wyrównaj do lewej i prawej",
DecreaseIndent : "Zmniejsz wcięcie",
IncreaseIndent : "Zwiększ wcięcie",
Blockquote : "Cytat",
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Cofnij",
Redo : "Ponów",
NumberedListLbl : "Lista numerowana",
NumberedList : "Wstaw/usuń numerowanie listy",
BulletedListLbl : "Lista wypunktowana",
BulletedList : "Wstaw/usuń wypunktowanie listy",
ShowTableBorders : "Pokazuj ramkę tabeli",
ShowDetails : "Pokaż szczegóły",
Style : "Styl",
FontFormat : "Format",
Font : "Czcionka",
FontSize : "Rozmiar",
TextColor : "Kolor tekstu",
BGColor : "Kolor tła",
Source : "Źródło dokumentu",
Find : "Znajdź",
Replace : "Zamień",
SpellCheck : "Sprawdź pisownię",
UniversalKeyboard : "Klawiatura Uniwersalna",
PageBreakLbl : "Odstęp",
PageBreak : "Wstaw odstęp",
Form : "Formularz",
Checkbox : "Pole wyboru (checkbox)",
RadioButton : "Pole wyboru (radio)",
TextField : "Pole tekstowe",
Textarea : "Obszar tekstowy",
HiddenField : "Pole ukryte",
Button : "Przycisk",
SelectionField : "Lista wyboru",
ImageButton : "Przycisk-obrazek",
FitWindow : "Maksymalizuj rozmiar edytora",
ShowBlocks : "Pokaż bloki",
// Context Menu
EditLink : "Edytuj hiperłącze",
CellCM : "Komórka",
RowCM : "Wiersz",
ColumnCM : "Kolumna",
InsertRowAfter : "Wstaw wiersz poniżej",
InsertRowBefore : "Wstaw wiersz powyżej",
DeleteRows : "Usuń wiersze",
InsertColumnAfter : "Wstaw kolumnę z prawej",
InsertColumnBefore : "Wstaw kolumnę z lewej",
DeleteColumns : "Usuń kolumny",
InsertCellAfter : "Wstaw komórkę z prawej",
InsertCellBefore : "Wstaw komórkę z lewej",
DeleteCells : "Usuń komórki",
MergeCells : "Połącz komórki",
MergeRight : "Połącz z komórką z prawej",
MergeDown : "Połącz z komórką poniżej",
HorizontalSplitCell : "Podziel komórkę poziomo",
VerticalSplitCell : "Podziel komórkę pionowo",
TableDelete : "Usuń tabelę",
CellProperties : "Właściwości komórki",
TableProperties : "Właściwości tabeli",
ImageProperties : "Właściwości obrazka",
FlashProperties : "Właściwości elementu Flash",
AnchorProp : "Właściwości kotwicy",
ButtonProp : "Właściwości przycisku",
CheckboxProp : "Właściwości pola wyboru (checkbox)",
HiddenFieldProp : "Właściwości pola ukrytego",
RadioButtonProp : "Właściwości pola wyboru (radio)",
ImageButtonProp : "Właściwości przycisku obrazka",
TextFieldProp : "Właściwości pola tekstowego",
SelectionFieldProp : "Właściwości listy wyboru",
TextareaProp : "Właściwości obszaru tekstowego",
FormProp : "Właściwości formularza",
FontFormats : "Normalny;Tekst sformatowany;Adres;Nagłówek 1;Nagłówek 2;Nagłówek 3;Nagłówek 4;Nagłówek 5;Nagłówek 6",
// Alerts and Messages
ProcessingXHTML : "Przetwarzanie XHTML. Proszę czekać...",
Done : "Gotowe",
PasteWordConfirm : "Tekst, który chcesz wkleić, prawdopodobnie pochodzi z programu Word. Czy chcesz go wyczyścic przed wklejeniem?",
NotCompatiblePaste : "Ta funkcja jest dostępna w programie Internet Explorer w wersji 5.5 lub wyższej. Czy chcesz wkleić tekst bez czyszczenia?",
UnknownToolbarItem : "Nieznany element paska narzędzi \"%1\"",
UnknownCommand : "Nieznana komenda \"%1\"",
NotImplemented : "Komenda niezaimplementowana",
UnknownToolbarSet : "Pasek narzędzi \"%1\" nie istnieje",
NoActiveX : "Ustawienia zabezpieczeń twojej przeglądarki mogą ograniczyć niektóre funkcje edytora. Musisz włączyć opcję \"Uruchamianie formantów Activex i dodatków plugin\". W przeciwnym wypadku mogą pojawiać się błędy.",
BrowseServerBlocked : "Nie można otworzyć okno menadżera plików. Upewnij się, że wszystkie blokady wyskakujących okienek są wyłączone.",
DialogBlocked : "Nie można otworzyć okna dialogowego. Upewnij się, że wszystkie blokady wyskakujących okienek są wyłączone.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Anuluj",
DlgBtnClose : "Zamknij",
DlgBtnBrowseServer : "Przeglądaj",
DlgAdvancedTag : "Zaawansowane",
DlgOpOther : "<Inny>",
DlgInfoTab : "Informacje",
DlgAlertUrl : "Proszę podać URL",
// General Dialogs Labels
DlgGenNotSet : "<nie ustawione>",
DlgGenId : "Id",
DlgGenLangDir : "Kierunek tekstu",
DlgGenLangDirLtr : "Od lewej do prawej (LTR)",
DlgGenLangDirRtl : "Od prawej do lewej (RTL)",
DlgGenLangCode : "Kod języka",
DlgGenAccessKey : "Klawisz dostępu",
DlgGenName : "Nazwa",
DlgGenTabIndex : "Indeks tabeli",
DlgGenLongDescr : "Długi opis hiperłącza",
DlgGenClass : "Nazwa klasy CSS",
DlgGenTitle : "Opis obiektu docelowego",
DlgGenContType : "Typ MIME obiektu docelowego",
DlgGenLinkCharset : "Kodowanie znaków obiektu docelowego",
DlgGenStyle : "Styl",
// Image Dialog
DlgImgTitle : "Właściwości obrazka",
DlgImgInfoTab : "Informacje o obrazku",
DlgImgBtnUpload : "Wyślij",
DlgImgURL : "Adres URL",
DlgImgUpload : "Wyślij",
DlgImgAlt : "Tekst zastępczy",
DlgImgWidth : "Szerokość",
DlgImgHeight : "Wysokość",
DlgImgLockRatio : "Zablokuj proporcje",
DlgBtnResetSize : "Przywróć rozmiar",
DlgImgBorder : "Ramka",
DlgImgHSpace : "Odstęp poziomy",
DlgImgVSpace : "Odstęp pionowy",
DlgImgAlign : "Wyrównaj",
DlgImgAlignLeft : "Do lewej",
DlgImgAlignAbsBottom: "Do dołu",
DlgImgAlignAbsMiddle: "Do środka w pionie",
DlgImgAlignBaseline : "Do linii bazowej",
DlgImgAlignBottom : "Do dołu",
DlgImgAlignMiddle : "Do środka",
DlgImgAlignRight : "Do prawej",
DlgImgAlignTextTop : "Do góry tekstu",
DlgImgAlignTop : "Do góry",
DlgImgPreview : "Podgląd",
DlgImgAlertUrl : "Podaj adres obrazka.",
DlgImgLinkTab : "Hiperłącze",
// Flash Dialog
DlgFlashTitle : "Właściwości elementu Flash",
DlgFlashChkPlay : "Auto Odtwarzanie",
DlgFlashChkLoop : "Pętla",
DlgFlashChkMenu : "Włącz menu",
DlgFlashScale : "Skaluj",
DlgFlashScaleAll : "Pokaż wszystko",
DlgFlashScaleNoBorder : "Bez Ramki",
DlgFlashScaleFit : "Dokładne dopasowanie",
// Link Dialog
DlgLnkWindowTitle : "Hiperłącze",
DlgLnkInfoTab : "Informacje ",
DlgLnkTargetTab : "Cel",
DlgLnkType : "Typ hiperłącza",
DlgLnkTypeURL : "Adres URL",
DlgLnkTypeAnchor : "Odnośnik wewnątrz strony",
DlgLnkTypeEMail : "Adres e-mail",
DlgLnkProto : "Protokół",
DlgLnkProtoOther : "<inny>",
DlgLnkURL : "Adres URL",
DlgLnkAnchorSel : "Wybierz etykietę",
DlgLnkAnchorByName : "Wg etykiety",
DlgLnkAnchorById : "Wg identyfikatora elementu",
DlgLnkNoAnchors : "(W dokumencie nie zdefiniowano żadnych etykiet)",
DlgLnkEMail : "Adres e-mail",
DlgLnkEMailSubject : "Temat",
DlgLnkEMailBody : "Treść",
DlgLnkUpload : "Wyślij",
DlgLnkBtnUpload : "Wyślij",
DlgLnkTarget : "Cel",
DlgLnkTargetFrame : "<ramka>",
DlgLnkTargetPopup : "<wyskakujące okno>",
DlgLnkTargetBlank : "Nowe okno (_blank)",
DlgLnkTargetParent : "Okno nadrzędne (_parent)",
DlgLnkTargetSelf : "To samo okno (_self)",
DlgLnkTargetTop : "Okno najwyższe w hierarchii (_top)",
DlgLnkTargetFrameName : "Nazwa Ramki Docelowej",
DlgLnkPopWinName : "Nazwa wyskakującego okna",
DlgLnkPopWinFeat : "Właściwości wyskakującego okna",
DlgLnkPopResize : "Możliwa zmiana rozmiaru",
DlgLnkPopLocation : "Pasek adresu",
DlgLnkPopMenu : "Pasek menu",
DlgLnkPopScroll : "Paski przewijania",
DlgLnkPopStatus : "Pasek statusu",
DlgLnkPopToolbar : "Pasek narzędzi",
DlgLnkPopFullScrn : "Pełny ekran (IE)",
DlgLnkPopDependent : "Okno zależne (Netscape)",
DlgLnkPopWidth : "Szerokość",
DlgLnkPopHeight : "Wysokość",
DlgLnkPopLeft : "Pozycja w poziomie",
DlgLnkPopTop : "Pozycja w pionie",
DlnLnkMsgNoUrl : "Podaj adres URL",
DlnLnkMsgNoEMail : "Podaj adres e-mail",
DlnLnkMsgNoAnchor : "Wybierz etykietę",
DlnLnkMsgInvPopName : "Nazwa wyskakującego okienka musi zaczynać się od znaku alfanumerycznego i nie może zawierać spacji",
// Color Dialog
DlgColorTitle : "Wybierz kolor",
DlgColorBtnClear : "Wyczyść",
DlgColorHighlight : "Podgląd",
DlgColorSelected : "Wybrane",
// Smiley Dialog
DlgSmileyTitle : "Wstaw emotikonę",
// Special Character Dialog
DlgSpecialCharTitle : "Wybierz znak specjalny",
// Table Dialog
DlgTableTitle : "Właściwości tabeli",
DlgTableRows : "Liczba wierszy",
DlgTableColumns : "Liczba kolumn",
DlgTableBorder : "Grubość ramki",
DlgTableAlign : "Wyrównanie",
DlgTableAlignNotSet : "<brak ustawień>",
DlgTableAlignLeft : "Do lewej",
DlgTableAlignCenter : "Do środka",
DlgTableAlignRight : "Do prawej",
DlgTableWidth : "Szerokość",
DlgTableWidthPx : "piksele",
DlgTableWidthPc : "%",
DlgTableHeight : "Wysokość",
DlgTableCellSpace : "Odstęp pomiędzy komórkami",
DlgTableCellPad : "Margines wewnętrzny komórek",
DlgTableCaption : "Tytuł",
DlgTableSummary : "Podsumowanie",
// Table Cell Dialog
DlgCellTitle : "Właściwości komórki",
DlgCellWidth : "Szerokość",
DlgCellWidthPx : "piksele",
DlgCellWidthPc : "%",
DlgCellHeight : "Wysokość",
DlgCellWordWrap : "Zawijanie tekstu",
DlgCellWordWrapNotSet : "<brak ustawień>",
DlgCellWordWrapYes : "Tak",
DlgCellWordWrapNo : "Nie",
DlgCellHorAlign : "Wyrównanie poziome",
DlgCellHorAlignNotSet : "<brak ustawień>",
DlgCellHorAlignLeft : "Do lewej",
DlgCellHorAlignCenter : "Do środka",
DlgCellHorAlignRight: "Do prawej",
DlgCellVerAlign : "Wyrównanie pionowe",
DlgCellVerAlignNotSet : "<brak ustawień>",
DlgCellVerAlignTop : "Do góry",
DlgCellVerAlignMiddle : "Do środka",
DlgCellVerAlignBottom : "Do dołu",
DlgCellVerAlignBaseline : "Do linii bazowej",
DlgCellRowSpan : "Zajętość wierszy",
DlgCellCollSpan : "Zajętość kolumn",
DlgCellBackColor : "Kolor tła",
DlgCellBorderColor : "Kolor ramki",
DlgCellBtnSelect : "Wybierz...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Znajdź i zamień",
// Find Dialog
DlgFindTitle : "Znajdź",
DlgFindFindBtn : "Znajdź",
DlgFindNotFoundMsg : "Nie znaleziono szukanego hasła.",
// Replace Dialog
DlgReplaceTitle : "Zamień",
DlgReplaceFindLbl : "Znajdź:",
DlgReplaceReplaceLbl : "Zastąp przez:",
DlgReplaceCaseChk : "Uwzględnij wielkość liter",
DlgReplaceReplaceBtn : "Zastąp",
DlgReplaceReplAllBtn : "Zastąp wszystko",
DlgReplaceWordChk : "Całe słowa",
// Paste Operations / Dialog
PasteErrorCut : "Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl+X.",
PasteErrorCopy : "Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl+C.",
PasteAsText : "Wklej jako czysty tekst",
PasteFromWord : "Wklej z Worda",
DlgPasteMsg2 : "Proszę wkleić w poniższym polu używając klawiaturowego skrótu (<STRONG>Ctrl+V</STRONG>) i kliknąć <STRONG>OK</STRONG>.",
DlgPasteSec : "Zabezpieczenia przeglądarki uniemożliwiają wklejenie danych bezpośrednio do edytora. Proszę dane wkleić ponownie w tym okienku.",
DlgPasteIgnoreFont : "Ignoruj definicje 'Font Face'",
DlgPasteRemoveStyles : "Usuń definicje Stylów",
// Color Picker
ColorAutomatic : "Automatycznie",
ColorMoreColors : "Więcej kolorów...",
// Document Properties
DocProps : "Właściwości dokumentu",
// Anchor Dialog
DlgAnchorTitle : "Właściwości kotwicy",
DlgAnchorName : "Nazwa kotwicy",
DlgAnchorErrorName : "Wpisz nazwę kotwicy",
// Speller Pages Dialog
DlgSpellNotInDic : "Słowa nie ma w słowniku",
DlgSpellChangeTo : "Zmień na",
DlgSpellBtnIgnore : "Ignoruj",
DlgSpellBtnIgnoreAll : "Ignoruj wszystkie",
DlgSpellBtnReplace : "Zmień",
DlgSpellBtnReplaceAll : "Zmień wszystkie",
DlgSpellBtnUndo : "Cofnij",
DlgSpellNoSuggestions : "- Brak sugestii -",
DlgSpellProgress : "Trwa sprawdzanie ...",
DlgSpellNoMispell : "Sprawdzanie zakończone: nie znaleziono błędów",
DlgSpellNoChanges : "Sprawdzanie zakończone: nie zmieniono żadnego słowa",
DlgSpellOneChange : "Sprawdzanie zakończone: zmieniono jedno słowo",
DlgSpellManyChanges : "Sprawdzanie zakończone: zmieniono %l słów",
IeSpellDownload : "Słownik nie jest zainstalowany. Chcesz go ściągnąć?",
// Button Dialog
DlgButtonText : "Tekst (Wartość)",
DlgButtonType : "Typ",
DlgButtonTypeBtn : "Przycisk",
DlgButtonTypeSbm : "Wyślij",
DlgButtonTypeRst : "Wyzeruj",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nazwa",
DlgCheckboxValue : "Wartość",
DlgCheckboxSelected : "Zaznaczone",
// Form Dialog
DlgFormName : "Nazwa",
DlgFormAction : "Akcja",
DlgFormMethod : "Metoda",
// Select Field Dialog
DlgSelectName : "Nazwa",
DlgSelectValue : "Wartość",
DlgSelectSize : "Rozmiar",
DlgSelectLines : "linii",
DlgSelectChkMulti : "Wielokrotny wybór",
DlgSelectOpAvail : "Dostępne opcje",
DlgSelectOpText : "Tekst",
DlgSelectOpValue : "Wartość",
DlgSelectBtnAdd : "Dodaj",
DlgSelectBtnModify : "Zmień",
DlgSelectBtnUp : "Do góry",
DlgSelectBtnDown : "Do dołu",
DlgSelectBtnSetValue : "Ustaw wartość zaznaczoną",
DlgSelectBtnDelete : "Usuń",
// Textarea Dialog
DlgTextareaName : "Nazwa",
DlgTextareaCols : "Kolumnu",
DlgTextareaRows : "Wiersze",
// Text Field Dialog
DlgTextName : "Nazwa",
DlgTextValue : "Wartość",
DlgTextCharWidth : "Szerokość w znakach",
DlgTextMaxChars : "Max. szerokość",
DlgTextType : "Typ",
DlgTextTypeText : "Tekst",
DlgTextTypePass : "Hasło",
// Hidden Field Dialog
DlgHiddenName : "Nazwa",
DlgHiddenValue : "Wartość",
// Bulleted List Dialog
BulletedListProp : "Właściwości listy punktowanej",
NumberedListProp : "Właściwości listy numerowanej",
DlgLstStart : "Początek",
DlgLstType : "Typ",
DlgLstTypeCircle : "Koło",
DlgLstTypeDisc : "Dysk",
DlgLstTypeSquare : "Kwadrat",
DlgLstTypeNumbers : "Cyfry (1, 2, 3)",
DlgLstTypeLCase : "Małe litery (a, b, c)",
DlgLstTypeUCase : "Duże litery (A, B, C)",
DlgLstTypeSRoman : "Numeracja rzymska (i, ii, iii)",
DlgLstTypeLRoman : "Numeracja rzymska (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Ogólne",
DlgDocBackTab : "Tło",
DlgDocColorsTab : "Kolory i marginesy",
DlgDocMetaTab : "Meta Dane",
DlgDocPageTitle : "Tytuł strony",
DlgDocLangDir : "Kierunek pisania",
DlgDocLangDirLTR : "Od lewej do prawej (LTR)",
DlgDocLangDirRTL : "Od prawej do lewej (RTL)",
DlgDocLangCode : "Kod języka",
DlgDocCharSet : "Kodowanie znaków",
DlgDocCharSetCE : "Środkowoeuropejskie",
DlgDocCharSetCT : "Chińskie tradycyjne (Big5)",
DlgDocCharSetCR : "Cyrylica",
DlgDocCharSetGR : "Greckie",
DlgDocCharSetJP : "Japońskie",
DlgDocCharSetKR : "Koreańskie",
DlgDocCharSetTR : "Tureckie",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Zachodnioeuropejskie",
DlgDocCharSetOther : "Inne kodowanie znaków",
DlgDocDocType : "Nagłówek typu dokumentu",
DlgDocDocTypeOther : "Inny typ dokumentu",
DlgDocIncXHTML : "Dołącz deklarację XHTML",
DlgDocBgColor : "Kolor tła",
DlgDocBgImage : "Obrazek tła",
DlgDocBgNoScroll : "Tło nieruchome",
DlgDocCText : "Tekst",
DlgDocCLink : "Hiperłącze",
DlgDocCVisited : "Odwiedzane hiperłącze",
DlgDocCActive : "Aktywne hiperłącze",
DlgDocMargins : "Marginesy strony",
DlgDocMaTop : "Górny",
DlgDocMaLeft : "Lewy",
DlgDocMaRight : "Prawy",
DlgDocMaBottom : "Dolny",
DlgDocMeIndex : "Słowa kluczowe (oddzielone przecinkami)",
DlgDocMeDescr : "Opis dokumentu",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Prawa autorskie",
DlgDocPreview : "Podgląd",
// Templates Dialog
Templates : "Sablony",
DlgTemplatesTitle : "Szablony zawartości",
DlgTemplatesSelMsg : "Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):",
DlgTemplatesLoading : "Ładowanie listy szablonów. Proszę czekać...",
DlgTemplatesNoTpl : "(Brak zdefiniowanych szablonów)",
DlgTemplatesReplace : "Zastąp aktualną zawartość",
// About Dialog
DlgAboutAboutTab : "O ...",
DlgAboutBrowserInfoTab : "O przeglądarce",
DlgAboutLicenseTab : "Licencja",
DlgAboutVersion : "wersja",
DlgAboutInfo : "Więcej informacji uzyskasz pod adresem",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Basque language file.
* Euskara hizkuntza fitxategia.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Estutu Tresna Barra",
ToolbarExpand : "Hedatu Tresna Barra",
// Toolbar Items and Context Menu
Save : "Gorde",
NewPage : "Orrialde Berria",
Preview : "Aurrebista",
Cut : "Ebaki",
Copy : "Kopiatu",
Paste : "Itsatsi",
PasteText : "Itsatsi testu bezala",
PasteWord : "Itsatsi Word-etik",
Print : "Inprimatu",
SelectAll : "Hautatu dena",
RemoveFormat : "Kendu Formatoa",
InsertLinkLbl : "Esteka",
InsertLink : "Txertatu/Editatu Esteka",
RemoveLink : "Kendu Esteka",
VisitLink : "Open Link", //MISSING
Anchor : "Aingura",
AnchorDelete : "Ezabatu Aingura",
InsertImageLbl : "Irudia",
InsertImage : "Txertatu/Editatu Irudia",
InsertFlashLbl : "Flasha",
InsertFlash : "Txertatu/Editatu Flasha",
InsertTableLbl : "Taula",
InsertTable : "Txertatu/Editatu Taula",
InsertLineLbl : "Lerroa",
InsertLine : "Txertatu Marra Horizontala",
InsertSpecialCharLbl: "Karaktere Berezia",
InsertSpecialChar : "Txertatu Karaktere Berezia",
InsertSmileyLbl : "Aurpegierak",
InsertSmiley : "Txertatu Aurpegierak",
About : "FCKeditor-ri buruz",
Bold : "Lodia",
Italic : "Etzana",
Underline : "Azpimarratu",
StrikeThrough : "Marratua",
Subscript : "Azpi-indize",
Superscript : "Goi-indize",
LeftJustify : "Lerrokatu Ezkerrean",
CenterJustify : "Lerrokatu Erdian",
RightJustify : "Lerrokatu Eskuman",
BlockJustify : "Justifikatu",
DecreaseIndent : "Txikitu Koska",
IncreaseIndent : "Handitu Koska",
Blockquote : "Aipamen blokea",
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Desegin",
Redo : "Berregin",
NumberedListLbl : "Zenbakidun Zerrenda",
NumberedList : "Txertatu/Kendu Zenbakidun zerrenda",
BulletedListLbl : "Buletdun Zerrenda",
BulletedList : "Txertatu/Kendu Buletdun zerrenda",
ShowTableBorders : "Erakutsi Taularen Ertzak",
ShowDetails : "Erakutsi Xehetasunak",
Style : "Estiloa",
FontFormat : "Formatoa",
Font : "Letra-tipoa",
FontSize : "Tamaina",
TextColor : "Testu Kolorea",
BGColor : "Atzeko kolorea",
Source : "HTML Iturburua",
Find : "Bilatu",
Replace : "Ordezkatu",
SpellCheck : "Ortografia",
UniversalKeyboard : "Teklatu Unibertsala",
PageBreakLbl : "Orrialde-jauzia",
PageBreak : "Txertatu Orrialde-jauzia",
Form : "Formularioa",
Checkbox : "Kontrol-laukia",
RadioButton : "Aukera-botoia",
TextField : "Testu Eremua",
Textarea : "Testu-area",
HiddenField : "Ezkutuko Eremua",
Button : "Botoia",
SelectionField : "Hautespen Eremua",
ImageButton : "Irudi Botoia",
FitWindow : "Maximizatu editorearen tamaina",
ShowBlocks : "Blokeak erakutsi",
// Context Menu
EditLink : "Aldatu Esteka",
CellCM : "Gelaxka",
RowCM : "Errenkada",
ColumnCM : "Zutabea",
InsertRowAfter : "Txertatu Lerroa Ostean",
InsertRowBefore : "Txertatu Lerroa Aurretik",
DeleteRows : "Ezabatu Errenkadak",
InsertColumnAfter : "Txertatu Zutabea Ostean",
InsertColumnBefore : "Txertatu Zutabea Aurretik",
DeleteColumns : "Ezabatu Zutabeak",
InsertCellAfter : "Txertatu Gelaxka Ostean",
InsertCellBefore : "Txertatu Gelaxka Aurretik",
DeleteCells : "Kendu Gelaxkak",
MergeCells : "Batu Gelaxkak",
MergeRight : "Elkartu Eskumara",
MergeDown : "Elkartu Behera",
HorizontalSplitCell : "Banatu Gelaxkak Horizontalki",
VerticalSplitCell : "Banatu Gelaxkak Bertikalki",
TableDelete : "Ezabatu Taula",
CellProperties : "Gelaxkaren Ezaugarriak",
TableProperties : "Taularen Ezaugarriak",
ImageProperties : "Irudiaren Ezaugarriak",
FlashProperties : "Flasharen Ezaugarriak",
AnchorProp : "Ainguraren Ezaugarriak",
ButtonProp : "Botoiaren Ezaugarriak",
CheckboxProp : "Kontrol-laukiko Ezaugarriak",
HiddenFieldProp : "Ezkutuko Eremuaren Ezaugarriak",
RadioButtonProp : "Aukera-botoiaren Ezaugarriak",
ImageButtonProp : "Irudi Botoiaren Ezaugarriak",
TextFieldProp : "Testu Eremuaren Ezaugarriak",
SelectionFieldProp : "Hautespen Eremuaren Ezaugarriak",
TextareaProp : "Testu-arearen Ezaugarriak",
FormProp : "Formularioaren Ezaugarriak",
FontFormats : "Arrunta;Formateatua;Helbidea;Izenburua 1;Izenburua 2;Izenburua 3;Izenburua 4;Izenburua 5;Izenburua 6;Paragrafoa (DIV)",
// Alerts and Messages
ProcessingXHTML : "XHTML Prozesatzen. Itxaron mesedez...",
Done : "Eginda",
PasteWordConfirm : "Itsatsi nahi duzun textua Wordetik hartua dela dirudi. Itsatsi baino lehen garbitu nahi duzu?",
NotCompatiblePaste : "Komando hau Internet Explorer 5.5 bertsiorako edo ondorengoentzako erabilgarria dago. Garbitu gabe itsatsi nahi duzu?",
UnknownToolbarItem : "Ataza barrako elementu ezezaguna \"%1\"",
UnknownCommand : "Komando izen ezezaguna \"%1\"",
NotImplemented : "Komando ez inplementatua",
UnknownToolbarSet : "Ataza barra \"%1\" taldea ez da existitzen",
NoActiveX : "Zure nabigatzailearen segustasun hobespenak editore honen zenbait ezaugarri mugatu ditzake. \"ActiveX kontrolak eta plug-inak\" aktibatu beharko zenituzke, bestela erroreak eta ezaugarrietan mugak egon daitezke.",
BrowseServerBlocked : "Baliabideen arakatzailea ezin da ireki. Ziurtatu popup blokeatzaileak desgaituta dituzula.",
DialogBlocked : "Ezin da elkarrizketa-leihoa ireki. Ziurtatu popup blokeatzaileak desgaituta dituzula.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "Ados",
DlgBtnCancel : "Utzi",
DlgBtnClose : "Itxi",
DlgBtnBrowseServer : "Zerbitzaria arakatu",
DlgAdvancedTag : "Aurreratua",
DlgOpOther : "<Bestelakoak>",
DlgInfoTab : "Informazioa",
DlgAlertUrl : "Mesedez URLa idatzi ezazu",
// General Dialogs Labels
DlgGenNotSet : "<Ezarri gabe>",
DlgGenId : "Id",
DlgGenLangDir : "Hizkuntzaren Norabidea",
DlgGenLangDirLtr : "Ezkerretik Eskumara(LTR)",
DlgGenLangDirRtl : "Eskumatik Ezkerrera (RTL)",
DlgGenLangCode : "Hizkuntza Kodea",
DlgGenAccessKey : "Sarbide-gakoa",
DlgGenName : "Izena",
DlgGenTabIndex : "Tabulazio Indizea",
DlgGenLongDescr : "URL Deskribapen Luzea",
DlgGenClass : "Estilo-orriko Klaseak",
DlgGenTitle : "Izenburua",
DlgGenContType : "Eduki Mota (Content Type)",
DlgGenLinkCharset : "Estekatutako Karaktere Multzoa",
DlgGenStyle : "Estiloa",
// Image Dialog
DlgImgTitle : "Irudi Ezaugarriak",
DlgImgInfoTab : "Irudi informazioa",
DlgImgBtnUpload : "Zerbitzarira bidalia",
DlgImgURL : "URL",
DlgImgUpload : "Gora Kargatu",
DlgImgAlt : "Textu Alternatiboa",
DlgImgWidth : "Zabalera",
DlgImgHeight : "Altuera",
DlgImgLockRatio : "Erlazioa Blokeatu",
DlgBtnResetSize : "Tamaina Berrezarri",
DlgImgBorder : "Ertza",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Lerrokatu",
DlgImgAlignLeft : "Ezkerrera",
DlgImgAlignAbsBottom: "Abs Behean",
DlgImgAlignAbsMiddle: "Abs Erdian",
DlgImgAlignBaseline : "Oinan",
DlgImgAlignBottom : "Behean",
DlgImgAlignMiddle : "Erdian",
DlgImgAlignRight : "Eskuman",
DlgImgAlignTextTop : "Testua Goian",
DlgImgAlignTop : "Goian",
DlgImgPreview : "Aurrebista",
DlgImgAlertUrl : "Mesedez Irudiaren URLa idatzi",
DlgImgLinkTab : "Esteka",
// Flash Dialog
DlgFlashTitle : "Flasharen Ezaugarriak",
DlgFlashChkPlay : "Automatikoki Erreproduzitu",
DlgFlashChkLoop : "Begizta",
DlgFlashChkMenu : "Flasharen Menua Gaitu",
DlgFlashScale : "Eskalatu",
DlgFlashScaleAll : "Dena erakutsi",
DlgFlashScaleNoBorder : "Ertzarik gabe",
DlgFlashScaleFit : "Doitu",
// Link Dialog
DlgLnkWindowTitle : "Esteka",
DlgLnkInfoTab : "Estekaren Informazioa",
DlgLnkTargetTab : "Helburua",
DlgLnkType : "Esteka Mota",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Aingura horrialde honentan",
DlgLnkTypeEMail : "ePosta",
DlgLnkProto : "Protokoloa",
DlgLnkProtoOther : "<Beste batzuk>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Aingura bat hautatu",
DlgLnkAnchorByName : "Aingura izenagatik",
DlgLnkAnchorById : "Elementuaren ID-gatik",
DlgLnkNoAnchors : "(Ez daude aingurak eskuragarri dokumentuan)",
DlgLnkEMail : "ePosta Helbidea",
DlgLnkEMailSubject : "Mezuaren Gaia",
DlgLnkEMailBody : "Mezuaren Gorputza",
DlgLnkUpload : "Gora kargatu",
DlgLnkBtnUpload : "Zerbitzarira bidali",
DlgLnkTarget : "Target (Helburua)",
DlgLnkTargetFrame : "<marko>",
DlgLnkTargetPopup : "<popup lehioa>",
DlgLnkTargetBlank : "Lehio Berria (_blank)",
DlgLnkTargetParent : "Lehio Gurasoa (_parent)",
DlgLnkTargetSelf : "Lehio Berdina (_self)",
DlgLnkTargetTop : "Goiko Lehioa (_top)",
DlgLnkTargetFrameName : "Marko Helburuaren Izena",
DlgLnkPopWinName : "Popup Lehioaren Izena",
DlgLnkPopWinFeat : "Popup Lehioaren Ezaugarriak",
DlgLnkPopResize : "Tamaina Aldakorra",
DlgLnkPopLocation : "Kokaleku Barra",
DlgLnkPopMenu : "Menu Barra",
DlgLnkPopScroll : "Korritze Barrak",
DlgLnkPopStatus : "Egoera Barra",
DlgLnkPopToolbar : "Tresna Barra",
DlgLnkPopFullScrn : "Pantaila Osoa (IE)",
DlgLnkPopDependent : "Menpekoa (Netscape)",
DlgLnkPopWidth : "Zabalera",
DlgLnkPopHeight : "Altuera",
DlgLnkPopLeft : "Ezkerreko Posizioa",
DlgLnkPopTop : "Goiko Posizioa",
DlnLnkMsgNoUrl : "Mesedez URL esteka idatzi",
DlnLnkMsgNoEMail : "Mesedez ePosta helbidea idatzi",
DlnLnkMsgNoAnchor : "Mesedez aingura bat aukeratu",
DlnLnkMsgInvPopName : "Popup lehioaren izenak karaktere alfabetiko batekin hasi behar du eta eta ezin du zuriunerik izan",
// Color Dialog
DlgColorTitle : "Kolore Aukeraketa",
DlgColorBtnClear : "Garbitu",
DlgColorHighlight : "Nabarmendu",
DlgColorSelected : "Aukeratuta",
// Smiley Dialog
DlgSmileyTitle : "Aurpegiera Sartu",
// Special Character Dialog
DlgSpecialCharTitle : "Karaktere Berezia Aukeratu",
// Table Dialog
DlgTableTitle : "Taularen Ezaugarriak",
DlgTableRows : "Lerroak",
DlgTableColumns : "Zutabeak",
DlgTableBorder : "Ertzaren Zabalera",
DlgTableAlign : "Lerrokatu",
DlgTableAlignNotSet : "<Ezarri gabe>",
DlgTableAlignLeft : "Ezkerrean",
DlgTableAlignCenter : "Erdian",
DlgTableAlignRight : "Eskuman",
DlgTableWidth : "Zabalera",
DlgTableWidthPx : "pixel",
DlgTableWidthPc : "ehuneko",
DlgTableHeight : "Altuera",
DlgTableCellSpace : "Gelaxka arteko tartea",
DlgTableCellPad : "Gelaxken betegarria",
DlgTableCaption : "Epigrafea",
DlgTableSummary : "Laburpena",
// Table Cell Dialog
DlgCellTitle : "Gelaxken Ezaugarriak",
DlgCellWidth : "Zabalera",
DlgCellWidthPx : "pixel",
DlgCellWidthPc : "ehuneko",
DlgCellHeight : "Altuera",
DlgCellWordWrap : "Itzulbira",
DlgCellWordWrapNotSet : "<Ezarri gabe>",
DlgCellWordWrapYes : "Bai",
DlgCellWordWrapNo : "Ez",
DlgCellHorAlign : "Horizontal Alignment",
DlgCellHorAlignNotSet : "<Ezarri gabe>",
DlgCellHorAlignLeft : "Ezkerrean",
DlgCellHorAlignCenter : "Erdian",
DlgCellHorAlignRight: "Eskuman",
DlgCellVerAlign : "Lerrokatu Bertikalki",
DlgCellVerAlignNotSet : "<Ezarri gabe>",
DlgCellVerAlignTop : "Goian",
DlgCellVerAlignMiddle : "Erdian",
DlgCellVerAlignBottom : "Behean",
DlgCellVerAlignBaseline : "Oinan",
DlgCellRowSpan : "Lerroak Hedatu",
DlgCellCollSpan : "Zutabeak Hedatu",
DlgCellBackColor : "Atzeko Kolorea",
DlgCellBorderColor : "Ertzako Kolorea",
DlgCellBtnSelect : "Aukertau...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Bilatu eta Ordeztu",
// Find Dialog
DlgFindTitle : "Bilaketa",
DlgFindFindBtn : "Bilatu",
DlgFindNotFoundMsg : "Idatzitako testua ez da topatu.",
// Replace Dialog
DlgReplaceTitle : "Ordeztu",
DlgReplaceFindLbl : "Zer bilatu:",
DlgReplaceReplaceLbl : "Zerekin ordeztu:",
DlgReplaceCaseChk : "Maiuskula/minuskula",
DlgReplaceReplaceBtn : "Ordeztu",
DlgReplaceReplAllBtn : "Ordeztu Guztiak",
DlgReplaceWordChk : "Esaldi osoa bilatu",
// Paste Operations / Dialog
PasteErrorCut : "Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki moztea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl+X).",
PasteErrorCopy : "Zure web nabigatzailearen segurtasun ezarpenak testuak automatikoki kopiatzea ez dute baimentzen. Mesedez teklatua erabili ezazu (Ctrl+C).",
PasteAsText : "Testu Arrunta bezala Itsatsi",
PasteFromWord : "Word-etik itsatsi",
DlgPasteMsg2 : "Mesedez teklatua erabilita (<STRONG>Ctrl+V</STRONG>) ondorego eremuan testua itsatsi eta <STRONG>OK</STRONG> sakatu.",
DlgPasteSec : "Nabigatzailearen segurtasun ezarpenak direla eta, editoreak ezin du arbela zuzenean erabili. Leiho honetan berriro itsatsi behar duzu.",
DlgPasteIgnoreFont : "Letra Motaren definizioa ezikusi",
DlgPasteRemoveStyles : "Estilo definizioak kendu",
// Color Picker
ColorAutomatic : "Automatikoa",
ColorMoreColors : "Kolore gehiago...",
// Document Properties
DocProps : "Dokumentuaren Ezarpenak",
// Anchor Dialog
DlgAnchorTitle : "Ainguraren Ezaugarriak",
DlgAnchorName : "Ainguraren Izena",
DlgAnchorErrorName : "Idatzi ainguraren izena",
// Speller Pages Dialog
DlgSpellNotInDic : "Ez dago hiztegian",
DlgSpellChangeTo : "Honekin ordezkatu",
DlgSpellBtnIgnore : "Ezikusi",
DlgSpellBtnIgnoreAll : "Denak Ezikusi",
DlgSpellBtnReplace : "Ordezkatu",
DlgSpellBtnReplaceAll : "Denak Ordezkatu",
DlgSpellBtnUndo : "Desegin",
DlgSpellNoSuggestions : "- Iradokizunik ez -",
DlgSpellProgress : "Zuzenketa ortografikoa martxan...",
DlgSpellNoMispell : "Zuzenketa ortografikoa bukatuta: Akatsik ez",
DlgSpellNoChanges : "Zuzenketa ortografikoa bukatuta: Ez da ezer aldatu",
DlgSpellOneChange : "Zuzenketa ortografikoa bukatuta: Hitz bat aldatu da",
DlgSpellManyChanges : "Zuzenketa ortografikoa bukatuta: %1 hitz aldatu dira",
IeSpellDownload : "Zuzentzaile ortografikoa ez dago instalatuta. Deskargatu nahi duzu?",
// Button Dialog
DlgButtonText : "Testua (Balorea)",
DlgButtonType : "Mota",
DlgButtonTypeBtn : "Botoia",
DlgButtonTypeSbm : "Bidali",
DlgButtonTypeRst : "Garbitu",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Izena",
DlgCheckboxValue : "Balorea",
DlgCheckboxSelected : "Hautatuta",
// Form Dialog
DlgFormName : "Izena",
DlgFormAction : "Ekintza",
DlgFormMethod : "Method",
// Select Field Dialog
DlgSelectName : "Izena",
DlgSelectValue : "Balorea",
DlgSelectSize : "Tamaina",
DlgSelectLines : "lerro kopurura",
DlgSelectChkMulti : "Hautaketa anitzak baimendu",
DlgSelectOpAvail : "Aukera Eskuragarriak",
DlgSelectOpText : "Testua",
DlgSelectOpValue : "Balorea",
DlgSelectBtnAdd : "Gehitu",
DlgSelectBtnModify : "Aldatu",
DlgSelectBtnUp : "Gora",
DlgSelectBtnDown : "Behera",
DlgSelectBtnSetValue : "Aukeratutako balorea ezarri",
DlgSelectBtnDelete : "Ezabatu",
// Textarea Dialog
DlgTextareaName : "Izena",
DlgTextareaCols : "Zutabeak",
DlgTextareaRows : "Lerroak",
// Text Field Dialog
DlgTextName : "Izena",
DlgTextValue : "Balorea",
DlgTextCharWidth : "Zabalera",
DlgTextMaxChars : "Zenbat karaktere gehienez",
DlgTextType : "Mota",
DlgTextTypeText : "Testua",
DlgTextTypePass : "Pasahitza",
// Hidden Field Dialog
DlgHiddenName : "Izena",
DlgHiddenValue : "Balorea",
// Bulleted List Dialog
BulletedListProp : "Buletdun Zerrendaren Ezarpenak",
NumberedListProp : "Zenbakidun Zerrendaren Ezarpenak",
DlgLstStart : "Hasiera",
DlgLstType : "Mota",
DlgLstTypeCircle : "Zirkulua",
DlgLstTypeDisc : "Diskoa",
DlgLstTypeSquare : "Karratua",
DlgLstTypeNumbers : "Zenbakiak (1, 2, 3)",
DlgLstTypeLCase : "Letra xeheak (a, b, c)",
DlgLstTypeUCase : "Letra larriak (A, B, C)",
DlgLstTypeSRoman : "Erromatar zenbaki zeheak (i, ii, iii)",
DlgLstTypeLRoman : "Erromatar zenbaki larriak (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Orokorra",
DlgDocBackTab : "Atzekaldea",
DlgDocColorsTab : "Koloreak eta Marjinak",
DlgDocMetaTab : "Meta Informazioa",
DlgDocPageTitle : "Orriaren Izenburua",
DlgDocLangDir : "Hizkuntzaren Norabidea",
DlgDocLangDirLTR : "Ezkerretik eskumara (LTR)",
DlgDocLangDirRTL : "Eskumatik ezkerrera (RTL)",
DlgDocLangCode : "Hizkuntzaren Kodea",
DlgDocCharSet : "Karaktere Multzoaren Kodeketa",
DlgDocCharSetCE : "Erdialdeko Europakoa",
DlgDocCharSetCT : "Txinatar Tradizionala (Big5)",
DlgDocCharSetCR : "Zirilikoa",
DlgDocCharSetGR : "Grekoa",
DlgDocCharSetJP : "Japoniarra",
DlgDocCharSetKR : "Korearra",
DlgDocCharSetTR : "Turkiarra",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Mendebaldeko Europakoa",
DlgDocCharSetOther : "Beste Karaktere Multzoko Kodeketa",
DlgDocDocType : "Document Type Goiburua",
DlgDocDocTypeOther : "Beste Document Type Goiburua",
DlgDocIncXHTML : "XHTML Ezarpenak",
DlgDocBgColor : "Atzeko Kolorea",
DlgDocBgImage : "Atzeko Irudiaren URL-a",
DlgDocBgNoScroll : "Korritze gabeko Atzekaldea",
DlgDocCText : "Testua",
DlgDocCLink : "Estekak",
DlgDocCVisited : "Bisitatutako Estekak",
DlgDocCActive : "Esteka Aktiboa",
DlgDocMargins : "Orrialdearen marjinak",
DlgDocMaTop : "Goian",
DlgDocMaLeft : "Ezkerrean",
DlgDocMaRight : "Eskuman",
DlgDocMaBottom : "Behean",
DlgDocMeIndex : "Dokumentuaren Gako-hitzak (komarekin bananduta)",
DlgDocMeDescr : "Dokumentuaren Deskribapena",
DlgDocMeAuthor : "Egilea",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Aurrebista",
// Templates Dialog
Templates : "Txantiloiak",
DlgTemplatesTitle : "Eduki Txantiloiak",
DlgTemplatesSelMsg : "Mesedez txantiloia aukeratu editorean kargatzeko<br>(orain dauden edukiak galduko dira):",
DlgTemplatesLoading : "Txantiloiak kargatzen. Itxaron mesedez...",
DlgTemplatesNoTpl : "(Ez dago definitutako txantiloirik)",
DlgTemplatesReplace : "Ordeztu oraingo edukiak",
// About Dialog
DlgAboutAboutTab : "Honi buruz",
DlgAboutBrowserInfoTab : "Nabigatzailearen Informazioa",
DlgAboutLicenseTab : "Lizentzia",
DlgAboutVersion : "bertsioa",
DlgAboutInfo : "Informazio gehiago eskuratzeko hona joan",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Vietnamese language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Thu gọn Thanh công cụ",
ToolbarExpand : "Mở rộng Thanh công cụ",
// Toolbar Items and Context Menu
Save : "Lưu",
NewPage : "Trang mới",
Preview : "Xem trước",
Cut : "Cắt",
Copy : "Sao chép",
Paste : "Dán",
PasteText : "Dán theo dạng văn bản thuần",
PasteWord : "Dán với định dạng Word",
Print : "In",
SelectAll : "Chọn Tất cả",
RemoveFormat : "Xoá Định dạng",
InsertLinkLbl : "Liên kết",
InsertLink : "Chèn/Sửa Liên kết",
RemoveLink : "Xoá Liên kết",
VisitLink : "Mở Liên Kết",
Anchor : "Chèn/Sửa Neo",
AnchorDelete : "Gỡ bỏ Neo",
InsertImageLbl : "Hình ảnh",
InsertImage : "Chèn/Sửa Hình ảnh",
InsertFlashLbl : "Flash",
InsertFlash : "Chèn/Sửa Flash",
InsertTableLbl : "Bảng",
InsertTable : "Chèn/Sửa Bảng",
InsertLineLbl : "Đường phân cách ngang",
InsertLine : "Chèn Đường phân cách ngang",
InsertSpecialCharLbl: "Ký tự đặc biệt",
InsertSpecialChar : "Chèn Ký tự đặc biệt",
InsertSmileyLbl : "Hình biểu lộ cảm xúc (mặt cười)",
InsertSmiley : "Chèn Hình biểu lộ cảm xúc (mặt cười)",
About : "Giới thiệu về FCKeditor",
Bold : "Đậm",
Italic : "Nghiêng",
Underline : "Gạch chân",
StrikeThrough : "Gạch xuyên ngang",
Subscript : "Chỉ số dưới",
Superscript : "Chỉ số trên",
LeftJustify : "Canh trái",
CenterJustify : "Canh giữa",
RightJustify : "Canh phải",
BlockJustify : "Canh đều",
DecreaseIndent : "Dịch ra ngoài",
IncreaseIndent : "Dịch vào trong",
Blockquote : "Khối Trích dẫn",
CreateDiv : "Tạo Div Container",
EditDiv : "Chỉnh sửa Div Container",
DeleteDiv : "Gỡ bỏ Div Container",
Undo : "Khôi phục thao tác",
Redo : "Làm lại thao tác",
NumberedListLbl : "Danh sách có thứ tự",
NumberedList : "Chèn/Xoá Danh sách có thứ tự",
BulletedListLbl : "Danh sách không thứ tự",
BulletedList : "Chèn/Xoá Danh sách không thứ tự",
ShowTableBorders : "Hiển thị Đường viền bảng",
ShowDetails : "Hiển thị Chi tiết",
Style : "Mẫu",
FontFormat : "Định dạng",
Font : "Phông",
FontSize : "Cỡ chữ",
TextColor : "Màu chữ",
BGColor : "Màu nền",
Source : "Mã HTML",
Find : "Tìm kiếm",
Replace : "Thay thế",
SpellCheck : "Kiểm tra Chính tả",
UniversalKeyboard : "Bàn phím Quốc tế",
PageBreakLbl : "Ngắt trang",
PageBreak : "Chèn Ngắt trang",
Form : "Biểu mẫu",
Checkbox : "Nút kiểm",
RadioButton : "Nút chọn",
TextField : "Trường văn bản",
Textarea : "Vùng văn bản",
HiddenField : "Trường ẩn",
Button : "Nút",
SelectionField : "Ô chọn",
ImageButton : "Nút hình ảnh",
FitWindow : "Mở rộng tối đa kích thước trình biên tập",
ShowBlocks : "Hiển thị các Khối",
// Context Menu
EditLink : "Sửa Liên kết",
CellCM : "Ô",
RowCM : "Hàng",
ColumnCM : "Cột",
InsertRowAfter : "Chèn Hàng Phía sau",
InsertRowBefore : "Chèn Hàng Phía trước",
DeleteRows : "Xoá Hàng",
InsertColumnAfter : "Chèn Cột Phía sau",
InsertColumnBefore : "Chèn Cột Phía trước",
DeleteColumns : "Xoá Cột",
InsertCellAfter : "Chèn Ô Phía sau",
InsertCellBefore : "Chèn Ô Phía trước",
DeleteCells : "Xoá Ô",
MergeCells : "Kết hợp Ô",
MergeRight : "Kết hợp Sang phải",
MergeDown : "Kết hợp Xuống dưới",
HorizontalSplitCell : "Tách ngang Ô",
VerticalSplitCell : "Tách dọc Ô",
TableDelete : "Xóa Bảng",
CellProperties : "Thuộc tính Ô",
TableProperties : "Thuộc tính Bảng",
ImageProperties : "Thuộc tính Hình ảnh",
FlashProperties : "Thuộc tính Flash",
AnchorProp : "Thuộc tính Neo",
ButtonProp : "Thuộc tính Nút",
CheckboxProp : "Thuộc tính Nút kiểm",
HiddenFieldProp : "Thuộc tính Trường ẩn",
RadioButtonProp : "Thuộc tính Nút chọn",
ImageButtonProp : "Thuộc tính Nút hình ảnh",
TextFieldProp : "Thuộc tính Trường văn bản",
SelectionFieldProp : "Thuộc tính Ô chọn",
TextareaProp : "Thuộc tính Vùng văn bản",
FormProp : "Thuộc tính Biểu mẫu",
FontFormats : "Normal;Formatted;Address;Heading 1;Heading 2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Đang xử lý XHTML. Vui lòng đợi trong giây lát...",
Done : "Đã hoàn thành",
PasteWordConfirm : "Văn bản bạn muốn dán có kèm định dạng của Word. Bạn có muốn loại bỏ định dạng Word trước khi dán?",
NotCompatiblePaste : "Lệnh này chỉ được hỗ trợ từ trình duyệt Internet Explorer phiên bản 5.5 hoặc mới hơn. Bạn có muốn dán nguyên mẫu?",
UnknownToolbarItem : "Không rõ mục trên thanh công cụ \"%1\"",
UnknownCommand : "Không rõ lệnh \"%1\"",
NotImplemented : "Lệnh không được thực hiện",
UnknownToolbarSet : "Thanh công cụ \"%1\" không tồn tại",
NoActiveX : "Các thiết lập bảo mật của trình duyệt có thể giới hạn một số chức năng của trình biên tập. Bạn phải bật tùy chọn \"Run ActiveX controls and plug-ins\". Bạn có thể gặp một số lỗi và thấy thiếu một số chức năng.",
BrowseServerBlocked : "Không thể mở được bộ duyệt tài nguyên. Hãy đảm bảo chức năng chặn popup đã bị vô hiệu hóa.",
DialogBlocked : "Không thể mở được cửa sổ hộp thoại. Hãy đảm bảo chức năng chặn popup đã bị vô hiệu hóa.",
VisitLinkBlocked : "Không thể mở được cửa sổ trình duyệt mới. Hãy đảm bảo chức năng chặn popup đã bị vô hiệu hóa.",
// Dialogs
DlgBtnOK : "Đồng ý",
DlgBtnCancel : "Bỏ qua",
DlgBtnClose : "Đóng",
DlgBtnBrowseServer : "Duyệt trên máy chủ",
DlgAdvancedTag : "Mở rộng",
DlgOpOther : "<Khác>",
DlgInfoTab : "Thông tin",
DlgAlertUrl : "Hãy nhập vào một URL",
// General Dialogs Labels
DlgGenNotSet : "<không thiết lập>",
DlgGenId : "Định danh",
DlgGenLangDir : "Đường dẫn Ngôn ngữ",
DlgGenLangDirLtr : "Trái sang Phải (LTR)",
DlgGenLangDirRtl : "Phải sang Trái (RTL)",
DlgGenLangCode : "Mã Ngôn ngữ",
DlgGenAccessKey : "Phím Hỗ trợ truy cập",
DlgGenName : "Tên",
DlgGenTabIndex : "Chỉ số của Tab",
DlgGenLongDescr : "Mô tả URL",
DlgGenClass : "Lớp Stylesheet",
DlgGenTitle : "Advisory Title",
DlgGenContType : "Advisory Content Type",
DlgGenLinkCharset : "Bảng mã của tài nguyên được liên kết đến",
DlgGenStyle : "Mẫu",
// Image Dialog
DlgImgTitle : "Thuộc tính Hình ảnh",
DlgImgInfoTab : "Thông tin Hình ảnh",
DlgImgBtnUpload : "Tải lên Máy chủ",
DlgImgURL : "URL",
DlgImgUpload : "Tải lên",
DlgImgAlt : "Chú thích Hình ảnh",
DlgImgWidth : "Rộng",
DlgImgHeight : "Cao",
DlgImgLockRatio : "Giữ nguyên tỷ lệ",
DlgBtnResetSize : "Kích thước gốc",
DlgImgBorder : "Đường viền",
DlgImgHSpace : "HSpace",
DlgImgVSpace : "VSpace",
DlgImgAlign : "Vị trí",
DlgImgAlignLeft : "Trái",
DlgImgAlignAbsBottom: "Dưới tuyệt đối",
DlgImgAlignAbsMiddle: "Giữa tuyệt đối",
DlgImgAlignBaseline : "Đường cơ sở",
DlgImgAlignBottom : "Dưới",
DlgImgAlignMiddle : "Giữa",
DlgImgAlignRight : "Phải",
DlgImgAlignTextTop : "Phía trên chữ",
DlgImgAlignTop : "Trên",
DlgImgPreview : "Xem trước",
DlgImgAlertUrl : "Hãy đưa vào URL của hình ảnh",
DlgImgLinkTab : "Liên kết",
// Flash Dialog
DlgFlashTitle : "Thuộc tính Flash",
DlgFlashChkPlay : "Tự động chạy",
DlgFlashChkLoop : "Lặp",
DlgFlashChkMenu : "Cho phép bật Menu của Flash",
DlgFlashScale : "Tỷ lệ",
DlgFlashScaleAll : "Hiển thị tất cả",
DlgFlashScaleNoBorder : "Không đường viền",
DlgFlashScaleFit : "Vừa vặn",
// Link Dialog
DlgLnkWindowTitle : "Liên kết",
DlgLnkInfoTab : "Thông tin Liên kết",
DlgLnkTargetTab : "Đích",
DlgLnkType : "Kiểu Liên kết",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Neo trong trang này",
DlgLnkTypeEMail : "Thư điện tử",
DlgLnkProto : "Giao thức",
DlgLnkProtoOther : "<khác>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Chọn một Neo",
DlgLnkAnchorByName : "Theo Tên Neo",
DlgLnkAnchorById : "Theo Định danh Element",
DlgLnkNoAnchors : "(Không có Neo nào trong tài liệu)",
DlgLnkEMail : "Thư điện tử",
DlgLnkEMailSubject : "Tiêu đề Thông điệp",
DlgLnkEMailBody : "Nội dung Thông điệp",
DlgLnkUpload : "Tải lên",
DlgLnkBtnUpload : "Tải lên Máy chủ",
DlgLnkTarget : "Đích",
DlgLnkTargetFrame : "<khung>",
DlgLnkTargetPopup : "<cửa sổ popup>",
DlgLnkTargetBlank : "Cửa sổ mới (_blank)",
DlgLnkTargetParent : "Cửa sổ cha (_parent)",
DlgLnkTargetSelf : "Cùng cửa sổ (_self)",
DlgLnkTargetTop : "Cửa sổ trên cùng(_top)",
DlgLnkTargetFrameName : "Tên Khung đích",
DlgLnkPopWinName : "Tên Cửa sổ Popup",
DlgLnkPopWinFeat : "Đặc điểm của Cửa sổ Popup",
DlgLnkPopResize : "Kích thước thay đổi",
DlgLnkPopLocation : "Thanh vị trí",
DlgLnkPopMenu : "Thanh Menu",
DlgLnkPopScroll : "Thanh cuộn",
DlgLnkPopStatus : "Thanh trạng thái",
DlgLnkPopToolbar : "Thanh công cụ",
DlgLnkPopFullScrn : "Toàn màn hình (IE)",
DlgLnkPopDependent : "Phụ thuộc (Netscape)",
DlgLnkPopWidth : "Rộng",
DlgLnkPopHeight : "Cao",
DlgLnkPopLeft : "Vị trí Trái",
DlgLnkPopTop : "Vị trí Trên",
DlnLnkMsgNoUrl : "Hãy đưa vào Liên kết URL",
DlnLnkMsgNoEMail : "Hãy đưa vào địa chỉ thư điện tử",
DlnLnkMsgNoAnchor : "Hãy chọn một Neo",
DlnLnkMsgInvPopName : "Tên của cửa sổ Popup phải bắt đầu bằng một ký tự và không được chứa khoảng trắng",
// Color Dialog
DlgColorTitle : "Chọn màu",
DlgColorBtnClear : "Xoá",
DlgColorHighlight : "Tô sáng",
DlgColorSelected : "Đã chọn",
// Smiley Dialog
DlgSmileyTitle : "Chèn Hình biểu lộ cảm xúc (mặt cười)",
// Special Character Dialog
DlgSpecialCharTitle : "Hãy chọn Ký tự đặc biệt",
// Table Dialog
DlgTableTitle : "Thuộc tính bảng",
DlgTableRows : "Hàng",
DlgTableColumns : "Cột",
DlgTableBorder : "Cỡ Đường viền",
DlgTableAlign : "Canh lề",
DlgTableAlignNotSet : "<Chưa thiết lập>",
DlgTableAlignLeft : "Trái",
DlgTableAlignCenter : "Giữa",
DlgTableAlignRight : "Phải",
DlgTableWidth : "Rộng",
DlgTableWidthPx : "điểm (px)",
DlgTableWidthPc : "%",
DlgTableHeight : "Cao",
DlgTableCellSpace : "Khoảng cách Ô",
DlgTableCellPad : "Đệm Ô",
DlgTableCaption : "Đầu đề",
DlgTableSummary : "Tóm lược",
// Table Cell Dialog
DlgCellTitle : "Thuộc tính Ô",
DlgCellWidth : "Rộng",
DlgCellWidthPx : "điểm (px)",
DlgCellWidthPc : "%",
DlgCellHeight : "Cao",
DlgCellWordWrap : "Bọc từ",
DlgCellWordWrapNotSet : "<Chưa thiết lập>",
DlgCellWordWrapYes : "Đồng ý",
DlgCellWordWrapNo : "Không",
DlgCellHorAlign : "Canh theo Chiều ngang",
DlgCellHorAlignNotSet : "<Chưa thiết lập>",
DlgCellHorAlignLeft : "Trái",
DlgCellHorAlignCenter : "Giữa",
DlgCellHorAlignRight: "Phải",
DlgCellVerAlign : "Canh theo Chiều dọc",
DlgCellVerAlignNotSet : "<Chưa thiết lập>",
DlgCellVerAlignTop : "Trên",
DlgCellVerAlignMiddle : "Giữa",
DlgCellVerAlignBottom : "Dưới",
DlgCellVerAlignBaseline : "Đường cơ sở",
DlgCellRowSpan : "Nối Hàng",
DlgCellCollSpan : "Nối Cột",
DlgCellBackColor : "Màu nền",
DlgCellBorderColor : "Màu viền",
DlgCellBtnSelect : "Chọn...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Tìm kiếm và Thay Thế",
// Find Dialog
DlgFindTitle : "Tìm kiếm",
DlgFindFindBtn : "Tìm kiếm",
DlgFindNotFoundMsg : "Không tìm thấy chuỗi cần tìm.",
// Replace Dialog
DlgReplaceTitle : "Thay thế",
DlgReplaceFindLbl : "Tìm chuỗi:",
DlgReplaceReplaceLbl : "Thay bằng:",
DlgReplaceCaseChk : "Phân biệt chữ hoa/thường",
DlgReplaceReplaceBtn : "Thay thế",
DlgReplaceReplAllBtn : "Thay thế Tất cả",
DlgReplaceWordChk : "Đúng toàn bộ từ",
// Paste Operations / Dialog
PasteErrorCut : "Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl+X).",
PasteErrorCopy : "Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl+C).",
PasteAsText : "Dán theo định dạng văn bản thuần",
PasteFromWord : "Dán với định dạng Word",
DlgPasteMsg2 : "Hãy dán nội dung vào trong khung bên dưới, sử dụng tổ hợp phím (<STRONG>Ctrl+V</STRONG>) và nhấn vào nút <STRONG>Đồng ý</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Chấp nhận các định dạng phông",
DlgPasteRemoveStyles : "Gỡ bỏ các định dạng Styles",
// Color Picker
ColorAutomatic : "Tự động",
ColorMoreColors : "Màu khác...",
// Document Properties
DocProps : "Thuộc tính Tài liệu",
// Anchor Dialog
DlgAnchorTitle : "Thuộc tính Neo",
DlgAnchorName : "Tên của Neo",
DlgAnchorErrorName : "Hãy nhập vào tên của Neo",
// Speller Pages Dialog
DlgSpellNotInDic : "Không có trong từ điển",
DlgSpellChangeTo : "Chuyển thành",
DlgSpellBtnIgnore : "Bỏ qua",
DlgSpellBtnIgnoreAll : "Bỏ qua Tất cả",
DlgSpellBtnReplace : "Thay thế",
DlgSpellBtnReplaceAll : "Thay thế Tất cả",
DlgSpellBtnUndo : "Phục hồi lại",
DlgSpellNoSuggestions : "- Không đưa ra gợi ý về từ -",
DlgSpellProgress : "Đang tiến hành kiểm tra chính tả...",
DlgSpellNoMispell : "Hoàn tất kiểm tra chính tả: Không có lỗi chính tả",
DlgSpellNoChanges : "Hoàn tất kiểm tra chính tả: Không có từ nào được thay đổi",
DlgSpellOneChange : "Hoàn tất kiểm tra chính tả: Một từ đã được thay đổi",
DlgSpellManyChanges : "Hoàn tất kiểm tra chính tả: %1 từ đã được thay đổi",
IeSpellDownload : "Chức năng kiểm tra chính tả chưa được cài đặt. Bạn có muốn tải về ngay bây giờ?",
// Button Dialog
DlgButtonText : "Chuỗi hiển thị (Giá trị)",
DlgButtonType : "Kiểu",
DlgButtonTypeBtn : "Nút Bấm",
DlgButtonTypeSbm : "Nút Gửi",
DlgButtonTypeRst : "Nút Nhập lại",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Tên",
DlgCheckboxValue : "Giá trị",
DlgCheckboxSelected : "Được chọn",
// Form Dialog
DlgFormName : "Tên",
DlgFormAction : "Hành động",
DlgFormMethod : "Phương thức",
// Select Field Dialog
DlgSelectName : "Tên",
DlgSelectValue : "Giá trị",
DlgSelectSize : "Kích cỡ",
DlgSelectLines : "dòng",
DlgSelectChkMulti : "Cho phép chọn nhiều",
DlgSelectOpAvail : "Các tùy chọn có thể sử dụng",
DlgSelectOpText : "Văn bản",
DlgSelectOpValue : "Giá trị",
DlgSelectBtnAdd : "Thêm",
DlgSelectBtnModify : "Thay đổi",
DlgSelectBtnUp : "Lên",
DlgSelectBtnDown : "Xuống",
DlgSelectBtnSetValue : "Giá trị được chọn",
DlgSelectBtnDelete : "Xoá",
// Textarea Dialog
DlgTextareaName : "Tên",
DlgTextareaCols : "Cột",
DlgTextareaRows : "Hàng",
// Text Field Dialog
DlgTextName : "Tên",
DlgTextValue : "Giá trị",
DlgTextCharWidth : "Rộng",
DlgTextMaxChars : "Số Ký tự tối đa",
DlgTextType : "Kiểu",
DlgTextTypeText : "Ký tự",
DlgTextTypePass : "Mật khẩu",
// Hidden Field Dialog
DlgHiddenName : "Tên",
DlgHiddenValue : "Giá trị",
// Bulleted List Dialog
BulletedListProp : "Thuộc tính Danh sách không thứ tự",
NumberedListProp : "Thuộc tính Danh sách có thứ tự",
DlgLstStart : "Bắt đầu",
DlgLstType : "Kiểu",
DlgLstTypeCircle : "Hình tròn",
DlgLstTypeDisc : "Hình đĩa",
DlgLstTypeSquare : "Hình vuông",
DlgLstTypeNumbers : "Số thứ tự (1, 2, 3)",
DlgLstTypeLCase : "Chữ cái thường (a, b, c)",
DlgLstTypeUCase : "Chữ cái hoa (A, B, C)",
DlgLstTypeSRoman : "Số La Mã thường (i, ii, iii)",
DlgLstTypeLRoman : "Số La Mã hoa (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Toàn thể",
DlgDocBackTab : "Nền",
DlgDocColorsTab : "Màu sắc và Đường biên",
DlgDocMetaTab : "Siêu dữ liệu",
DlgDocPageTitle : "Tiêu đề Trang",
DlgDocLangDir : "Đường dẫn Ngôn ngữ",
DlgDocLangDirLTR : "Trái sang Phải (LTR)",
DlgDocLangDirRTL : "Phải sang Trái (RTL)",
DlgDocLangCode : "Mã Ngôn ngữ",
DlgDocCharSet : "Bảng mã ký tự",
DlgDocCharSetCE : "Trung Âu",
DlgDocCharSetCT : "Tiếng Trung Quốc (Big5)",
DlgDocCharSetCR : "Tiếng Kirin",
DlgDocCharSetGR : "Tiếng Hy Lạp",
DlgDocCharSetJP : "Tiếng Nhật",
DlgDocCharSetKR : "Tiếng Hàn",
DlgDocCharSetTR : "Tiếng Thổ Nhĩ Kỳ",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Tây Âu",
DlgDocCharSetOther : "Bảng mã ký tự khác",
DlgDocDocType : "Kiểu Đề mục Tài liệu",
DlgDocDocTypeOther : "Kiểu Đề mục Tài liệu khác",
DlgDocIncXHTML : "Bao gồm cả định nghĩa XHTML",
DlgDocBgColor : "Màu nền",
DlgDocBgImage : "URL của Hình ảnh nền",
DlgDocBgNoScroll : "Không cuộn nền",
DlgDocCText : "Văn bản",
DlgDocCLink : "Liên kết",
DlgDocCVisited : "Liên kết Đã ghé thăm",
DlgDocCActive : "Liên kết Hiện hành",
DlgDocMargins : "Đường biên của Trang",
DlgDocMaTop : "Trên",
DlgDocMaLeft : "Trái",
DlgDocMaRight : "Phải",
DlgDocMaBottom : "Dưới",
DlgDocMeIndex : "Các từ khóa chỉ mục tài liệu (phân cách bởi dấu phẩy)",
DlgDocMeDescr : "Mô tả tài liệu",
DlgDocMeAuthor : "Tác giả",
DlgDocMeCopy : "Bản quyền",
DlgDocPreview : "Xem trước",
// Templates Dialog
Templates : "Mẫu dựng sẵn",
DlgTemplatesTitle : "Nội dung Mẫu dựng sẵn",
DlgTemplatesSelMsg : "Hãy chọn Mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):",
DlgTemplatesLoading : "Đang nạp Danh sách Mẫu dựng sẵn. Vui lòng đợi trong giây lát...",
DlgTemplatesNoTpl : "(Không có Mẫu dựng sẵn nào được định nghĩa)",
DlgTemplatesReplace : "Thay thế nội dung hiện tại",
// About Dialog
DlgAboutAboutTab : "Giới thiệu",
DlgAboutBrowserInfoTab : "Thông tin trình duyệt",
DlgAboutLicenseTab : "Giấy phép",
DlgAboutVersion : "phiên bản",
DlgAboutInfo : "Để biết thêm thông tin, hãy truy cập",
// Div Dialog
DlgDivGeneralTab : "Chung",
DlgDivAdvancedTab : "Nâng cao",
DlgDivStyle : "Kiểu Style",
DlgDivInlineStyle : "Kiểu Style Trực tiếp"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Canadian French language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Masquer Outils",
ToolbarExpand : "Afficher Outils",
// Toolbar Items and Context Menu
Save : "Sauvegarder",
NewPage : "Nouvelle page",
Preview : "Previsualiser",
Cut : "Couper",
Copy : "Copier",
Paste : "Coller",
PasteText : "Coller en tant que texte",
PasteWord : "Coller en tant que Word (formaté)",
Print : "Imprimer",
SelectAll : "Tout sélectionner",
RemoveFormat : "Supprimer le formatage",
InsertLinkLbl : "Lien",
InsertLink : "Insérer/modifier le lien",
RemoveLink : "Supprimer le lien",
VisitLink : "Suivre le lien",
Anchor : "Insérer/modifier l'ancre",
AnchorDelete : "Supprimer l'ancre",
InsertImageLbl : "Image",
InsertImage : "Insérer/modifier l'image",
InsertFlashLbl : "Animation Flash",
InsertFlash : "Insérer/modifier l'animation Flash",
InsertTableLbl : "Tableau",
InsertTable : "Insérer/modifier le tableau",
InsertLineLbl : "Séparateur",
InsertLine : "Insérer un séparateur",
InsertSpecialCharLbl: "Caractères spéciaux",
InsertSpecialChar : "Insérer un caractère spécial",
InsertSmileyLbl : "Emoticon",
InsertSmiley : "Insérer un Emoticon",
About : "A propos de FCKeditor",
Bold : "Gras",
Italic : "Italique",
Underline : "Souligné",
StrikeThrough : "Barrer",
Subscript : "Indice",
Superscript : "Exposant",
LeftJustify : "Aligner à gauche",
CenterJustify : "Centrer",
RightJustify : "Aligner à Droite",
BlockJustify : "Texte justifié",
DecreaseIndent : "Diminuer le retrait",
IncreaseIndent : "Augmenter le retrait",
Blockquote : "Citation",
CreateDiv : "Créer Balise Div",
EditDiv : "Modifier Balise Div",
DeleteDiv : "Supprimer Balise Div",
Undo : "Annuler",
Redo : "Refaire",
NumberedListLbl : "Liste numérotée",
NumberedList : "Insérer/supprimer la liste numérotée",
BulletedListLbl : "Liste à puces",
BulletedList : "Insérer/supprimer la liste à puces",
ShowTableBorders : "Afficher les bordures du tableau",
ShowDetails : "Afficher les caractères invisibles",
Style : "Style",
FontFormat : "Format",
Font : "Police",
FontSize : "Taille",
TextColor : "Couleur de caractère",
BGColor : "Couleur de fond",
Source : "Source",
Find : "Chercher",
Replace : "Remplacer",
SpellCheck : "Orthographe",
UniversalKeyboard : "Clavier universel",
PageBreakLbl : "Saut de page",
PageBreak : "Insérer un saut de page",
Form : "Formulaire",
Checkbox : "Case à cocher",
RadioButton : "Bouton radio",
TextField : "Champ texte",
Textarea : "Zone de texte",
HiddenField : "Champ caché",
Button : "Bouton",
SelectionField : "Champ de sélection",
ImageButton : "Bouton image",
FitWindow : "Edition pleine page",
ShowBlocks : "Afficher les blocs",
// Context Menu
EditLink : "Modifier le lien",
CellCM : "Cellule",
RowCM : "Ligne",
ColumnCM : "Colonne",
InsertRowAfter : "Insérer une ligne après",
InsertRowBefore : "Insérer une ligne avant",
DeleteRows : "Supprimer des lignes",
InsertColumnAfter : "Insérer une colonne après",
InsertColumnBefore : "Insérer une colonne avant",
DeleteColumns : "Supprimer des colonnes",
InsertCellAfter : "Insérer une cellule après",
InsertCellBefore : "Insérer une cellule avant",
DeleteCells : "Supprimer des cellules",
MergeCells : "Fusionner les cellules",
MergeRight : "Fusionner à droite",
MergeDown : "Fusionner en bas",
HorizontalSplitCell : "Scinder la cellule horizontalement",
VerticalSplitCell : "Scinder la cellule verticalement",
TableDelete : "Supprimer le tableau",
CellProperties : "Propriétés de cellule",
TableProperties : "Propriétés du tableau",
ImageProperties : "Propriétés de l'image",
FlashProperties : "Propriétés de l'animation Flash",
AnchorProp : "Propriétés de l'ancre",
ButtonProp : "Propriétés du bouton",
CheckboxProp : "Propriétés de la case à cocher",
HiddenFieldProp : "Propriétés du champ caché",
RadioButtonProp : "Propriétés du bouton radio",
ImageButtonProp : "Propriétés du bouton image",
TextFieldProp : "Propriétés du champ texte",
SelectionFieldProp : "Propriétés de la liste/du menu",
TextareaProp : "Propriétés de la zone de texte",
FormProp : "Propriétés du formulaire",
FontFormats : "Normal;Formaté;Adresse;En-tête 1;En-tête 2;En-tête 3;En-tête 4;En-tête 5;En-tête 6;Normal (DIV)",
// Alerts and Messages
ProcessingXHTML : "Calcul XHTML. Veuillez patienter...",
Done : "Terminé",
PasteWordConfirm : "Le texte à coller semble provenir de Word. Désirez-vous le nettoyer avant de coller?",
NotCompatiblePaste : "Cette commande nécessite Internet Explorer version 5.5 et plus. Souhaitez-vous coller sans nettoyage?",
UnknownToolbarItem : "Élément de barre d'outil inconnu \"%1\"",
UnknownCommand : "Nom de commande inconnu \"%1\"",
NotImplemented : "Commande indisponible",
UnknownToolbarSet : "La barre d'outils \"%1\" n'existe pas",
NoActiveX : "Les paramètres de sécurité de votre navigateur peuvent limiter quelques fonctionnalités de l'éditeur. Veuillez activer l'option \"Exécuter les contrôles ActiveX et les plug-ins\". Il se peut que vous rencontriez des erreurs et remarquiez quelques limitations.",
BrowseServerBlocked : "Le navigateur n'a pas pu être ouvert. Assurez-vous que les bloqueurs de popups soient désactivés.",
DialogBlocked : "La fenêtre de dialogue n'a pas pu s'ouvrir. Assurez-vous que les bloqueurs de popups soient désactivés.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Annuler",
DlgBtnClose : "Fermer",
DlgBtnBrowseServer : "Parcourir le serveur",
DlgAdvancedTag : "Avancée",
DlgOpOther : "<autre>",
DlgInfoTab : "Info",
DlgAlertUrl : "Veuillez saisir l'URL",
// General Dialogs Labels
DlgGenNotSet : "<Par défaut>",
DlgGenId : "Id",
DlgGenLangDir : "Sens d'écriture",
DlgGenLangDirLtr : "De gauche à droite (LTR)",
DlgGenLangDirRtl : "De droite à gauche (RTL)",
DlgGenLangCode : "Code langue",
DlgGenAccessKey : "Équivalent clavier",
DlgGenName : "Nom",
DlgGenTabIndex : "Ordre de tabulation",
DlgGenLongDescr : "URL de description longue",
DlgGenClass : "Classes de feuilles de style",
DlgGenTitle : "Titre",
DlgGenContType : "Type de contenu",
DlgGenLinkCharset : "Encodage de caractère",
DlgGenStyle : "Style",
// Image Dialog
DlgImgTitle : "Propriétés de l'image",
DlgImgInfoTab : "Informations sur l'image",
DlgImgBtnUpload : "Envoyer sur le serveur",
DlgImgURL : "URL",
DlgImgUpload : "Télécharger",
DlgImgAlt : "Texte de remplacement",
DlgImgWidth : "Largeur",
DlgImgHeight : "Hauteur",
DlgImgLockRatio : "Garder les proportions",
DlgBtnResetSize : "Taille originale",
DlgImgBorder : "Bordure",
DlgImgHSpace : "Espacement horizontal",
DlgImgVSpace : "Espacement vertical",
DlgImgAlign : "Alignement",
DlgImgAlignLeft : "Gauche",
DlgImgAlignAbsBottom: "Abs Bas",
DlgImgAlignAbsMiddle: "Abs Milieu",
DlgImgAlignBaseline : "Bas du texte",
DlgImgAlignBottom : "Bas",
DlgImgAlignMiddle : "Milieu",
DlgImgAlignRight : "Droite",
DlgImgAlignTextTop : "Haut du texte",
DlgImgAlignTop : "Haut",
DlgImgPreview : "Prévisualisation",
DlgImgAlertUrl : "Veuillez saisir l'URL de l'image",
DlgImgLinkTab : "Lien",
// Flash Dialog
DlgFlashTitle : "Propriétés de l'animation Flash",
DlgFlashChkPlay : "Lecture automatique",
DlgFlashChkLoop : "Boucle",
DlgFlashChkMenu : "Activer le menu Flash",
DlgFlashScale : "Affichage",
DlgFlashScaleAll : "Par défaut (tout montrer)",
DlgFlashScaleNoBorder : "Sans bordure",
DlgFlashScaleFit : "Ajuster aux dimensions",
// Link Dialog
DlgLnkWindowTitle : "Propriétés du lien",
DlgLnkInfoTab : "Informations sur le lien",
DlgLnkTargetTab : "Destination",
DlgLnkType : "Type de lien",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Ancre dans cette page",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocole",
DlgLnkProtoOther : "<autre>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Sélectionner une ancre",
DlgLnkAnchorByName : "Par nom",
DlgLnkAnchorById : "Par id",
DlgLnkNoAnchors : "(Pas d'ancre disponible dans le document)",
DlgLnkEMail : "Adresse E-Mail",
DlgLnkEMailSubject : "Sujet du message",
DlgLnkEMailBody : "Corps du message",
DlgLnkUpload : "Télécharger",
DlgLnkBtnUpload : "Envoyer sur le serveur",
DlgLnkTarget : "Destination",
DlgLnkTargetFrame : "<Cadre>",
DlgLnkTargetPopup : "<fenêtre popup>",
DlgLnkTargetBlank : "Nouvelle fenêtre (_blank)",
DlgLnkTargetParent : "Fenêtre mère (_parent)",
DlgLnkTargetSelf : "Même fenêtre (_self)",
DlgLnkTargetTop : "Fenêtre supérieure (_top)",
DlgLnkTargetFrameName : "Nom du cadre de destination",
DlgLnkPopWinName : "Nom de la fenêtre popup",
DlgLnkPopWinFeat : "Caractéristiques de la fenêtre popup",
DlgLnkPopResize : "Taille modifiable",
DlgLnkPopLocation : "Barre d'adresses",
DlgLnkPopMenu : "Barre de menu",
DlgLnkPopScroll : "Barres de défilement",
DlgLnkPopStatus : "Barre d'état",
DlgLnkPopToolbar : "Barre d'outils",
DlgLnkPopFullScrn : "Plein écran (IE)",
DlgLnkPopDependent : "Dépendante (Netscape)",
DlgLnkPopWidth : "Largeur",
DlgLnkPopHeight : "Hauteur",
DlgLnkPopLeft : "Position à partir de la gauche",
DlgLnkPopTop : "Position à partir du haut",
DlnLnkMsgNoUrl : "Veuillez saisir l'URL",
DlnLnkMsgNoEMail : "Veuillez saisir l'adresse e-mail",
DlnLnkMsgNoAnchor : "Veuillez sélectionner une ancre",
DlnLnkMsgInvPopName : "Le nom de la fenêtre popup doit commencer par une lettre et ne doit pas contenir d'espace",
// Color Dialog
DlgColorTitle : "Sélectionner",
DlgColorBtnClear : "Effacer",
DlgColorHighlight : "Prévisualisation",
DlgColorSelected : "Sélectionné",
// Smiley Dialog
DlgSmileyTitle : "Insérer un Emoticon",
// Special Character Dialog
DlgSpecialCharTitle : "Insérer un caractère spécial",
// Table Dialog
DlgTableTitle : "Propriétés du tableau",
DlgTableRows : "Lignes",
DlgTableColumns : "Colonnes",
DlgTableBorder : "Taille de la bordure",
DlgTableAlign : "Alignement",
DlgTableAlignNotSet : "<Par défaut>",
DlgTableAlignLeft : "Gauche",
DlgTableAlignCenter : "Centré",
DlgTableAlignRight : "Droite",
DlgTableWidth : "Largeur",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "pourcentage",
DlgTableHeight : "Hauteur",
DlgTableCellSpace : "Espacement",
DlgTableCellPad : "Contour",
DlgTableCaption : "Titre",
DlgTableSummary : "Résumé",
// Table Cell Dialog
DlgCellTitle : "Propriétés de la cellule",
DlgCellWidth : "Largeur",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "pourcentage",
DlgCellHeight : "Hauteur",
DlgCellWordWrap : "Retour à la ligne",
DlgCellWordWrapNotSet : "<Par défaut>",
DlgCellWordWrapYes : "Oui",
DlgCellWordWrapNo : "Non",
DlgCellHorAlign : "Alignement horizontal",
DlgCellHorAlignNotSet : "<Par défaut>",
DlgCellHorAlignLeft : "Gauche",
DlgCellHorAlignCenter : "Centré",
DlgCellHorAlignRight: "Droite",
DlgCellVerAlign : "Alignement vertical",
DlgCellVerAlignNotSet : "<Par défaut>",
DlgCellVerAlignTop : "Haut",
DlgCellVerAlignMiddle : "Milieu",
DlgCellVerAlignBottom : "Bas",
DlgCellVerAlignBaseline : "Bas du texte",
DlgCellRowSpan : "Lignes fusionnées",
DlgCellCollSpan : "Colonnes fusionnées",
DlgCellBackColor : "Couleur de fond",
DlgCellBorderColor : "Couleur de bordure",
DlgCellBtnSelect : "Sélectionner...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Chercher et Remplacer",
// Find Dialog
DlgFindTitle : "Chercher",
DlgFindFindBtn : "Chercher",
DlgFindNotFoundMsg : "Le texte indiqué est introuvable.",
// Replace Dialog
DlgReplaceTitle : "Remplacer",
DlgReplaceFindLbl : "Rechercher:",
DlgReplaceReplaceLbl : "Remplacer par:",
DlgReplaceCaseChk : "Respecter la casse",
DlgReplaceReplaceBtn : "Remplacer",
DlgReplaceReplAllBtn : "Tout remplacer",
DlgReplaceWordChk : "Mot entier",
// Paste Operations / Dialog
PasteErrorCut : "Les paramètres de sécurité de votre navigateur empêchent l'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl+X).",
PasteErrorCopy : "Les paramètres de sécurité de votre navigateur empêchent l'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl+C).",
PasteAsText : "Coller comme texte",
PasteFromWord : "Coller à partir de Word",
DlgPasteMsg2 : "Veuillez coller dans la zone ci-dessous en utilisant le clavier (<STRONG>Ctrl+V</STRONG>) et appuyer sur <STRONG>OK</STRONG>.",
DlgPasteSec : "A cause des paramètres de sécurité de votre navigateur, l'éditeur ne peut accéder au presse-papier directement. Vous devez coller à nouveau le contenu dans cette fenêtre.",
DlgPasteIgnoreFont : "Ignorer les polices de caractères",
DlgPasteRemoveStyles : "Supprimer les styles",
// Color Picker
ColorAutomatic : "Automatique",
ColorMoreColors : "Plus de couleurs...",
// Document Properties
DocProps : "Propriétés du document",
// Anchor Dialog
DlgAnchorTitle : "Propriétés de l'ancre",
DlgAnchorName : "Nom de l'ancre",
DlgAnchorErrorName : "Veuillez saisir le nom de l'ancre",
// Speller Pages Dialog
DlgSpellNotInDic : "Pas dans le dictionnaire",
DlgSpellChangeTo : "Changer en",
DlgSpellBtnIgnore : "Ignorer",
DlgSpellBtnIgnoreAll : "Ignorer tout",
DlgSpellBtnReplace : "Remplacer",
DlgSpellBtnReplaceAll : "Remplacer tout",
DlgSpellBtnUndo : "Annuler",
DlgSpellNoSuggestions : "- Pas de suggestion -",
DlgSpellProgress : "Vérification d'orthographe en cours...",
DlgSpellNoMispell : "Vérification d'orthographe terminée: pas d'erreur trouvée",
DlgSpellNoChanges : "Vérification d'orthographe terminée: Pas de modifications",
DlgSpellOneChange : "Vérification d'orthographe terminée: Un mot modifié",
DlgSpellManyChanges : "Vérification d'orthographe terminée: %1 mots modifiés",
IeSpellDownload : "Le Correcteur d'orthographe n'est pas installé. Souhaitez-vous le télécharger maintenant?",
// Button Dialog
DlgButtonText : "Texte (Valeur)",
DlgButtonType : "Type",
DlgButtonTypeBtn : "Bouton",
DlgButtonTypeSbm : "Soumettre",
DlgButtonTypeRst : "Réinitialiser",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nom",
DlgCheckboxValue : "Valeur",
DlgCheckboxSelected : "Sélectionné",
// Form Dialog
DlgFormName : "Nom",
DlgFormAction : "Action",
DlgFormMethod : "Méthode",
// Select Field Dialog
DlgSelectName : "Nom",
DlgSelectValue : "Valeur",
DlgSelectSize : "Taille",
DlgSelectLines : "lignes",
DlgSelectChkMulti : "Sélection multiple",
DlgSelectOpAvail : "Options disponibles",
DlgSelectOpText : "Texte",
DlgSelectOpValue : "Valeur",
DlgSelectBtnAdd : "Ajouter",
DlgSelectBtnModify : "Modifier",
DlgSelectBtnUp : "Monter",
DlgSelectBtnDown : "Descendre",
DlgSelectBtnSetValue : "Valeur sélectionnée",
DlgSelectBtnDelete : "Supprimer",
// Textarea Dialog
DlgTextareaName : "Nom",
DlgTextareaCols : "Colonnes",
DlgTextareaRows : "Lignes",
// Text Field Dialog
DlgTextName : "Nom",
DlgTextValue : "Valeur",
DlgTextCharWidth : "Largeur en caractères",
DlgTextMaxChars : "Nombre maximum de caractères",
DlgTextType : "Type",
DlgTextTypeText : "Texte",
DlgTextTypePass : "Mot de passe",
// Hidden Field Dialog
DlgHiddenName : "Nom",
DlgHiddenValue : "Valeur",
// Bulleted List Dialog
BulletedListProp : "Propriétés de liste à puces",
NumberedListProp : "Propriétés de liste numérotée",
DlgLstStart : "Début",
DlgLstType : "Type",
DlgLstTypeCircle : "Cercle",
DlgLstTypeDisc : "Disque",
DlgLstTypeSquare : "Carré",
DlgLstTypeNumbers : "Nombres (1, 2, 3)",
DlgLstTypeLCase : "Lettres minuscules (a, b, c)",
DlgLstTypeUCase : "Lettres majuscules (A, B, C)",
DlgLstTypeSRoman : "Chiffres romains minuscules (i, ii, iii)",
DlgLstTypeLRoman : "Chiffres romains majuscules (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Général",
DlgDocBackTab : "Fond",
DlgDocColorsTab : "Couleurs et Marges",
DlgDocMetaTab : "Méta-Données",
DlgDocPageTitle : "Titre de la page",
DlgDocLangDir : "Sens d'écriture",
DlgDocLangDirLTR : "De la gauche vers la droite (LTR)",
DlgDocLangDirRTL : "De la droite vers la gauche (RTL)",
DlgDocLangCode : "Code langue",
DlgDocCharSet : "Encodage de caractère",
DlgDocCharSetCE : "Europe Centrale",
DlgDocCharSetCT : "Chinois Traditionnel (Big5)",
DlgDocCharSetCR : "Cyrillique",
DlgDocCharSetGR : "Grecque",
DlgDocCharSetJP : "Japonais",
DlgDocCharSetKR : "Coréen",
DlgDocCharSetTR : "Turcque",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Occidental",
DlgDocCharSetOther : "Autre encodage de caractère",
DlgDocDocType : "Type de document",
DlgDocDocTypeOther : "Autre type de document",
DlgDocIncXHTML : "Inclure les déclarations XHTML",
DlgDocBgColor : "Couleur de fond",
DlgDocBgImage : "Image de fond",
DlgDocBgNoScroll : "Image fixe sans défilement",
DlgDocCText : "Texte",
DlgDocCLink : "Lien",
DlgDocCVisited : "Lien visité",
DlgDocCActive : "Lien activé",
DlgDocMargins : "Marges",
DlgDocMaTop : "Haut",
DlgDocMaLeft : "Gauche",
DlgDocMaRight : "Droite",
DlgDocMaBottom : "Bas",
DlgDocMeIndex : "Mots-clés (séparés par des virgules)",
DlgDocMeDescr : "Description",
DlgDocMeAuthor : "Auteur",
DlgDocMeCopy : "Copyright",
DlgDocPreview : "Prévisualisation",
// Templates Dialog
Templates : "Modèles",
DlgTemplatesTitle : "Modèles de contenu",
DlgTemplatesSelMsg : "Sélectionner le modèle à ouvrir dans l'éditeur<br>(le contenu actuel sera remplacé):",
DlgTemplatesLoading : "Chargement de la liste des modèles. Veuillez patienter...",
DlgTemplatesNoTpl : "(Aucun modèle disponible)",
DlgTemplatesReplace : "Remplacer tout le contenu actuel",
// About Dialog
DlgAboutAboutTab : "Á propos de",
DlgAboutBrowserInfoTab : "Navigateur",
DlgAboutLicenseTab : "License",
DlgAboutVersion : "Version",
DlgAboutInfo : "Pour plus d'informations, visiter",
// Div Dialog
DlgDivGeneralTab : "Général",
DlgDivAdvancedTab : "Avancé",
DlgDivStyle : "Style",
DlgDivInlineStyle : "Attribut Style"
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Afrikaans language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Vou Gereedskaps balk toe",
ToolbarExpand : "Vou Gereedskaps balk oop",
// Toolbar Items and Context Menu
Save : "Bewaar",
NewPage : "Nuwe Bladsy",
Preview : "Voorskou",
Cut : "Uitsny ",
Copy : "Kopieer",
Paste : "Byvoeg",
PasteText : "Slegs inhoud byvoeg",
PasteWord : "Van Word af byvoeg",
Print : "Druk",
SelectAll : "Selekteer alles",
RemoveFormat : "Formaat verweider",
InsertLinkLbl : "Skakel",
InsertLink : "Skakel byvoeg/verander",
RemoveLink : "Skakel verweider",
VisitLink : "Open Link", //MISSING
Anchor : "Plekhouer byvoeg/verander",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Beeld",
InsertImage : "Beeld byvoeg/verander",
InsertFlashLbl : "Flash",
InsertFlash : "Flash byvoeg/verander",
InsertTableLbl : "Tabel",
InsertTable : "Tabel byvoeg/verander",
InsertLineLbl : "Lyn",
InsertLine : "Horisontale lyn byvoeg",
InsertSpecialCharLbl: "Spesiaale karakter",
InsertSpecialChar : "Spesiaale Karakter byvoeg",
InsertSmileyLbl : "Smiley",
InsertSmiley : "Smiley byvoeg",
About : "Meer oor FCKeditor",
Bold : "Vet",
Italic : "Skuins",
Underline : "Onderstreep",
StrikeThrough : "Gestreik",
Subscript : "Subscript",
Superscript : "Superscript",
LeftJustify : "Links rig",
CenterJustify : "Rig Middel",
RightJustify : "Regs rig",
BlockJustify : "Blok paradeer",
DecreaseIndent : "Paradeering verkort",
IncreaseIndent : "Paradeering verleng",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Ont-skep",
Redo : "Her-skep",
NumberedListLbl : "Genommerde lys",
NumberedList : "Genommerde lys byvoeg/verweider",
BulletedListLbl : "Gepunkte lys",
BulletedList : "Gepunkte lys byvoeg/verweider",
ShowTableBorders : "Wys tabel kante",
ShowDetails : "Wys informasie",
Style : "Styl",
FontFormat : "Karakter formaat",
Font : "Karakters",
FontSize : "Karakter grote",
TextColor : "Karakter kleur",
BGColor : "Agtergrond kleur",
Source : "Source",
Find : "Vind",
Replace : "Vervang",
SpellCheck : "Spelling nagaan",
UniversalKeyboard : "Universeele Sleutelbord",
PageBreakLbl : "Bladsy breek",
PageBreak : "Bladsy breek byvoeg",
Form : "Form",
Checkbox : "HakBox",
RadioButton : "PuntBox",
TextField : "Byvoegbare karakter strook",
Textarea : "Byvoegbare karakter area",
HiddenField : "Blinde strook",
Button : "Knop",
SelectionField : "Opklapbare keuse strook",
ImageButton : "Beeld knop",
FitWindow : "Maksimaliseer venster grote",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Verander skakel",
CellCM : "Cell",
RowCM : "Ry",
ColumnCM : "Kolom",
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Ry verweider",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Kolom verweider",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Cell verweider",
MergeCells : "Cell verenig",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Tabel verweider",
CellProperties : "Cell eienskappe",
TableProperties : "Tabel eienskappe",
ImageProperties : "Beeld eienskappe",
FlashProperties : "Flash eienskappe",
AnchorProp : "Plekhouer eienskappe",
ButtonProp : "Knop eienskappe",
CheckboxProp : "HakBox eienskappe",
HiddenFieldProp : "Blinde strook eienskappe",
RadioButtonProp : "PuntBox eienskappe",
ImageButtonProp : "Beeld knop eienskappe",
TextFieldProp : "Karakter strook eienskappe",
SelectionFieldProp : "Opklapbare keuse strook eienskappe",
TextareaProp : "Karakter area eienskappe",
FormProp : "Form eienskappe",
FontFormats : "Normaal;Geformateerd;Adres;Opskrif 1;Opskrif 2;Opskrif 3;Opskrif 4;Opskrif 5;Opskrif 6;Normaal (DIV)",
// Alerts and Messages
ProcessingXHTML : "XHTML word verarbeit. U geduld asseblief...",
Done : "Kompleet",
PasteWordConfirm : "Die informasie wat U probeer byvoeg is warskynlik van Word. Wil U dit reinig voor die byvoeging?",
NotCompatiblePaste : "Die instruksie is beskikbaar vir Internet Explorer weergawe 5.5 of hor. Wil U dir byvoeg sonder reiniging?",
UnknownToolbarItem : "Unbekende gereedskaps balk item \"%1\"",
UnknownCommand : "Unbekende instruksie naam \"%1\"",
NotImplemented : "Instruksie is nie geimplementeer nie.",
UnknownToolbarSet : "Gereedskaps balk \"%1\" bestaan nie",
NoActiveX : "U browser sekuriteit instellings kan die funksies van die editor behinder. U moet die opsie \"Run ActiveX controls and plug-ins\" aktiveer. U ondervinding mag problematies geskiet of sekere funksionaliteit mag verhinder word.",
BrowseServerBlocked : "Die vorraad venster word geblok! Verseker asseblief dat U die \"popup blocker\" instelling verander.",
DialogBlocked : "Die dialoog venster vir verdere informasie word geblok. De-aktiveer asseblief die \"popup blocker\" instellings wat dit behinder.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Kanseleer",
DlgBtnClose : "Sluit",
DlgBtnBrowseServer : "Server deurblaai",
DlgAdvancedTag : "Ingewikkeld",
DlgOpOther : "<Ander>",
DlgInfoTab : "Info",
DlgAlertUrl : "Voeg asseblief die URL in",
// General Dialogs Labels
DlgGenNotSet : "<geen instelling>",
DlgGenId : "Id",
DlgGenLangDir : "Taal rigting",
DlgGenLangDirLtr : "Links na regs (LTR)",
DlgGenLangDirRtl : "Regs na links (RTL)",
DlgGenLangCode : "Taal kode",
DlgGenAccessKey : "Toegang sleutel",
DlgGenName : "Naam",
DlgGenTabIndex : "Tab Index",
DlgGenLongDescr : "Lang beskreiwing URL",
DlgGenClass : "Skakel Tiepe",
DlgGenTitle : "Voorbeveelings Titel",
DlgGenContType : "Voorbeveelings inhoud soort",
DlgGenLinkCharset : "Geskakelde voorbeeld karakterstel",
DlgGenStyle : "Styl",
// Image Dialog
DlgImgTitle : "Beeld eienskappe",
DlgImgInfoTab : "Beeld informasie",
DlgImgBtnUpload : "Stuur dit na die Server",
DlgImgURL : "URL",
DlgImgUpload : "Uplaai",
DlgImgAlt : "Alternatiewe beskrywing",
DlgImgWidth : "Weidte",
DlgImgHeight : "Hoogde",
DlgImgLockRatio : "Behou preporsie",
DlgBtnResetSize : "Herstel groote",
DlgImgBorder : "Kant",
DlgImgHSpace : "HSpasie",
DlgImgVSpace : "VSpasie",
DlgImgAlign : "Paradeer",
DlgImgAlignLeft : "Links",
DlgImgAlignAbsBottom: "Abs Onder",
DlgImgAlignAbsMiddle: "Abs Middel",
DlgImgAlignBaseline : "Baseline",
DlgImgAlignBottom : "Onder",
DlgImgAlignMiddle : "Middel",
DlgImgAlignRight : "Regs",
DlgImgAlignTextTop : "Text Bo",
DlgImgAlignTop : "Bo",
DlgImgPreview : "Voorskou",
DlgImgAlertUrl : "Voeg asseblief Beeld URL in.",
DlgImgLinkTab : "Skakel",
// Flash Dialog
DlgFlashTitle : "Flash eienskappe",
DlgFlashChkPlay : "Automaties Speel",
DlgFlashChkLoop : "Herhaling",
DlgFlashChkMenu : "Laat Flash Menu toe",
DlgFlashScale : "Scale",
DlgFlashScaleAll : "Wys alles",
DlgFlashScaleNoBorder : "Geen kante",
DlgFlashScaleFit : "Presiese pas",
// Link Dialog
DlgLnkWindowTitle : "Skakel",
DlgLnkInfoTab : "Skakel informasie",
DlgLnkTargetTab : "Mikpunt",
DlgLnkType : "Skakel soort",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Skakel na plekhouers in text",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<ander>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Kies 'n plekhouer",
DlgLnkAnchorByName : "Volgens plekhouer naam",
DlgLnkAnchorById : "Volgens element Id",
DlgLnkNoAnchors : "(Geen plekhouers beskikbaar in dokument}",
DlgLnkEMail : "E-Mail Adres",
DlgLnkEMailSubject : "Boodskap Opskrif",
DlgLnkEMailBody : "Boodskap Inhoud",
DlgLnkUpload : "Oplaai",
DlgLnkBtnUpload : "Stuur na Server",
DlgLnkTarget : "Mikpunt",
DlgLnkTargetFrame : "<raam>",
DlgLnkTargetPopup : "<popup venster>",
DlgLnkTargetBlank : "Nuwe Venster (_blank)",
DlgLnkTargetParent : "Vorige Venster (_parent)",
DlgLnkTargetSelf : "Selfde Venster (_self)",
DlgLnkTargetTop : "Boonste Venster (_top)",
DlgLnkTargetFrameName : "Mikpunt Venster Naam",
DlgLnkPopWinName : "Popup Venster Naam",
DlgLnkPopWinFeat : "Popup Venster Geaartheid",
DlgLnkPopResize : "Verstelbare Groote",
DlgLnkPopLocation : "Adres Balk",
DlgLnkPopMenu : "Menu Balk",
DlgLnkPopScroll : "Gleibalkstuk",
DlgLnkPopStatus : "Status Balk",
DlgLnkPopToolbar : "Gereedskap Balk",
DlgLnkPopFullScrn : "Voll Skerm (IE)",
DlgLnkPopDependent : "Afhanklik (Netscape)",
DlgLnkPopWidth : "Weite",
DlgLnkPopHeight : "Hoogde",
DlgLnkPopLeft : "Links Posisie",
DlgLnkPopTop : "Bo Posisie",
DlnLnkMsgNoUrl : "Voeg asseblief die URL in",
DlnLnkMsgNoEMail : "Voeg asseblief die e-mail adres in",
DlnLnkMsgNoAnchor : "Kies asseblief 'n plekhouer",
DlnLnkMsgInvPopName : "Die popup naam moet begin met alphabetiese karakters sonder spasies.",
// Color Dialog
DlgColorTitle : "Kies Kleur",
DlgColorBtnClear : "Maak skoon",
DlgColorHighlight : "Highlight",
DlgColorSelected : "Geselekteer",
// Smiley Dialog
DlgSmileyTitle : "Voeg Smiley by",
// Special Character Dialog
DlgSpecialCharTitle : "Kies spesiale karakter",
// Table Dialog
DlgTableTitle : "Tabel eienskappe",
DlgTableRows : "Reie",
DlgTableColumns : "Kolome",
DlgTableBorder : "Kant groote",
DlgTableAlign : "Parideering",
DlgTableAlignNotSet : "<geen instelling>",
DlgTableAlignLeft : "Links",
DlgTableAlignCenter : "Middel",
DlgTableAlignRight : "Regs",
DlgTableWidth : "Weite",
DlgTableWidthPx : "pixels",
DlgTableWidthPc : "percent",
DlgTableHeight : "Hoogde",
DlgTableCellSpace : "Cell spasieering",
DlgTableCellPad : "Cell buffer",
DlgTableCaption : "Beskreiwing",
DlgTableSummary : "Opsomming",
// Table Cell Dialog
DlgCellTitle : "Cell eienskappe",
DlgCellWidth : "Weite",
DlgCellWidthPx : "pixels",
DlgCellWidthPc : "percent",
DlgCellHeight : "Hoogde",
DlgCellWordWrap : "Woord Wrap",
DlgCellWordWrapNotSet : "<geen instelling>",
DlgCellWordWrapYes : "Ja",
DlgCellWordWrapNo : "Nee",
DlgCellHorAlign : "Horisontale rigting",
DlgCellHorAlignNotSet : "<geen instelling>",
DlgCellHorAlignLeft : "Links",
DlgCellHorAlignCenter : "Middel",
DlgCellHorAlignRight: "Regs",
DlgCellVerAlign : "Vertikale rigting",
DlgCellVerAlignNotSet : "<geen instelling>",
DlgCellVerAlignTop : "Bo",
DlgCellVerAlignMiddle : "Middel",
DlgCellVerAlignBottom : "Onder",
DlgCellVerAlignBaseline : "Baseline",
DlgCellRowSpan : "Rei strekking",
DlgCellCollSpan : "Kolom strekking",
DlgCellBackColor : "Agtergrond Kleur",
DlgCellBorderColor : "Kant Kleur",
DlgCellBtnSelect : "Keuse...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Vind",
DlgFindFindBtn : "Vind",
DlgFindNotFoundMsg : "Die gespesifiseerde karakters word nie gevind nie.",
// Replace Dialog
DlgReplaceTitle : "Vervang",
DlgReplaceFindLbl : "Soek wat:",
DlgReplaceReplaceLbl : "Vervang met:",
DlgReplaceCaseChk : "Vergelyk karakter skryfweise",
DlgReplaceReplaceBtn : "Vervang",
DlgReplaceReplAllBtn : "Vervang alles",
DlgReplaceWordChk : "Vergelyk komplete woord",
// Paste Operations / Dialog
PasteErrorCut : "U browser se sekuriteit instelling behinder die uitsny aksie. Gebruik asseblief die sleutel kombenasie(Ctrl+X).",
PasteErrorCopy : "U browser se sekuriteit instelling behinder die kopieerings aksie. Gebruik asseblief die sleutel kombenasie(Ctrl+C).",
PasteAsText : "Voeg slegs karakters by",
PasteFromWord : "Byvoeging uit Word",
DlgPasteMsg2 : "Voeg asseblief die inhoud in die gegewe box by met sleutel kombenasie(<STRONG>Ctrl+V</STRONG>) en druk <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignoreer karakter soort defenisies",
DlgPasteRemoveStyles : "Verweider Styl defenisies",
// Color Picker
ColorAutomatic : "Automaties",
ColorMoreColors : "Meer Kleure...",
// Document Properties
DocProps : "Dokument Eienskappe",
// Anchor Dialog
DlgAnchorTitle : "Plekhouer Eienskappe",
DlgAnchorName : "Plekhouer Naam",
DlgAnchorErrorName : "Voltooi die plekhouer naam asseblief",
// Speller Pages Dialog
DlgSpellNotInDic : "Nie in woordeboek nie",
DlgSpellChangeTo : "Verander na",
DlgSpellBtnIgnore : "Ignoreer",
DlgSpellBtnIgnoreAll : "Ignoreer na-volgende",
DlgSpellBtnReplace : "Vervang",
DlgSpellBtnReplaceAll : "vervang na-volgende",
DlgSpellBtnUndo : "Ont-skep",
DlgSpellNoSuggestions : "- Geen voorstel -",
DlgSpellProgress : "Spelling word beproef...",
DlgSpellNoMispell : "Spellproef kompleet: Geen foute",
DlgSpellNoChanges : "Spellproef kompleet: Geen woord veranderings",
DlgSpellOneChange : "Spellproef kompleet: Een woord verander",
DlgSpellManyChanges : "Spellproef kompleet: %1 woorde verander",
IeSpellDownload : "Geen Spellproefer geinstaleer nie. Wil U dit aflaai?",
// Button Dialog
DlgButtonText : "Karakters (Waarde)",
DlgButtonType : "Soort",
DlgButtonTypeBtn : "Knop",
DlgButtonTypeSbm : "Indien",
DlgButtonTypeRst : "Reset",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Naam",
DlgCheckboxValue : "Waarde",
DlgCheckboxSelected : "Uitgekies",
// Form Dialog
DlgFormName : "Naam",
DlgFormAction : "Aksie",
DlgFormMethod : "Metode",
// Select Field Dialog
DlgSelectName : "Naam",
DlgSelectValue : "Waarde",
DlgSelectSize : "Grote",
DlgSelectLines : "lyne",
DlgSelectChkMulti : "Laat meerere keuses toe",
DlgSelectOpAvail : "Beskikbare Opsies",
DlgSelectOpText : "Karakters",
DlgSelectOpValue : "Waarde",
DlgSelectBtnAdd : "Byvoeg",
DlgSelectBtnModify : "Verander",
DlgSelectBtnUp : "Op",
DlgSelectBtnDown : "Af",
DlgSelectBtnSetValue : "Stel as uitgekiesde waarde",
DlgSelectBtnDelete : "Verweider",
// Textarea Dialog
DlgTextareaName : "Naam",
DlgTextareaCols : "Kolom",
DlgTextareaRows : "Reie",
// Text Field Dialog
DlgTextName : "Naam",
DlgTextValue : "Waarde",
DlgTextCharWidth : "Karakter weite",
DlgTextMaxChars : "Maximale karakters",
DlgTextType : "Soort",
DlgTextTypeText : "Karakters",
DlgTextTypePass : "Wagwoord",
// Hidden Field Dialog
DlgHiddenName : "Naam",
DlgHiddenValue : "Waarde",
// Bulleted List Dialog
BulletedListProp : "Gepunkte lys eienskappe",
NumberedListProp : "Genommerde lys eienskappe",
DlgLstStart : "Begin",
DlgLstType : "Soort",
DlgLstTypeCircle : "Sirkel",
DlgLstTypeDisc : "Skyf",
DlgLstTypeSquare : "Vierkant",
DlgLstTypeNumbers : "Nommer (1, 2, 3)",
DlgLstTypeLCase : "Klein Letters (a, b, c)",
DlgLstTypeUCase : "Hoof Letters (A, B, C)",
DlgLstTypeSRoman : "Klein Romeinse nommers (i, ii, iii)",
DlgLstTypeLRoman : "Groot Romeinse nommers (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Algemeen",
DlgDocBackTab : "Agtergrond",
DlgDocColorsTab : "Kleure en Rante",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Bladsy Opskrif",
DlgDocLangDir : "Taal rigting",
DlgDocLangDirLTR : "Link na Regs (LTR)",
DlgDocLangDirRTL : "Regs na Links (RTL)",
DlgDocLangCode : "Taal Kode",
DlgDocCharSet : "Karakterstel Kodeering",
DlgDocCharSetCE : "Sentraal Europa",
DlgDocCharSetCT : "Chinees Traditioneel (Big5)",
DlgDocCharSetCR : "Cyrillic",
DlgDocCharSetGR : "Grieks",
DlgDocCharSetJP : "Japanees",
DlgDocCharSetKR : "Koreans",
DlgDocCharSetTR : "Turks",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Western European",
DlgDocCharSetOther : "Ander Karakterstel Kodeering",
DlgDocDocType : "Dokument Opskrif Soort",
DlgDocDocTypeOther : "Ander Dokument Opskrif Soort",
DlgDocIncXHTML : "Voeg XHTML verklaring by",
DlgDocBgColor : "Agtergrond kleur",
DlgDocBgImage : "Agtergrond Beeld URL",
DlgDocBgNoScroll : "Vasgeklemde Agtergrond",
DlgDocCText : "Karakters",
DlgDocCLink : "Skakel",
DlgDocCVisited : "Besoekte Skakel",
DlgDocCActive : "Aktiewe Skakel",
DlgDocMargins : "Bladsy Rante",
DlgDocMaTop : "Bo",
DlgDocMaLeft : "Links",
DlgDocMaRight : "Regs",
DlgDocMaBottom : "Onder",
DlgDocMeIndex : "Dokument Index Sleutelwoorde(comma verdeelt)",
DlgDocMeDescr : "Dokument Beskrywing",
DlgDocMeAuthor : "Skrywer",
DlgDocMeCopy : "Kopiereg",
DlgDocPreview : "Voorskou",
// Templates Dialog
Templates : "Templates",
DlgTemplatesTitle : "Inhoud Templates",
DlgTemplatesSelMsg : "Kies die template om te gebruik in die editor<br>(Inhoud word vervang!):",
DlgTemplatesLoading : "Templates word gelaai. U geduld asseblief...",
DlgTemplatesNoTpl : "(Geen templates gedefinieerd)",
DlgTemplatesReplace : "Vervang bestaande inhoud",
// About Dialog
DlgAboutAboutTab : "Meer oor",
DlgAboutBrowserInfoTab : "Blaai Informasie deur",
DlgAboutLicenseTab : "Lesensie",
DlgAboutVersion : "weergawe",
DlgAboutInfo : "Vir meer informasie gaan na ",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Ukrainian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Згорнути панель інструментів",
ToolbarExpand : "Розгорнути панель інструментів",
// Toolbar Items and Context Menu
Save : "Зберегти",
NewPage : "Нова сторінка",
Preview : "Попередній перегляд",
Cut : "Вирізати",
Copy : "Копіювати",
Paste : "Вставити",
PasteText : "Вставити тільки текст",
PasteWord : "Вставити з Word",
Print : "Друк",
SelectAll : "Виділити все",
RemoveFormat : "Прибрати форматування",
InsertLinkLbl : "Посилання",
InsertLink : "Вставити/Редагувати посилання",
RemoveLink : "Знищити посилання",
VisitLink : "Open Link", //MISSING
Anchor : "Вставити/Редагувати якір",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Зображення",
InsertImage : "Вставити/Редагувати зображення",
InsertFlashLbl : "Flash",
InsertFlash : "Вставити/Редагувати Flash",
InsertTableLbl : "Таблиця",
InsertTable : "Вставити/Редагувати таблицю",
InsertLineLbl : "Лінія",
InsertLine : "Вставити горизонтальну лінію",
InsertSpecialCharLbl: "Спеціальний символ",
InsertSpecialChar : "Вставити спеціальний символ",
InsertSmileyLbl : "Смайлик",
InsertSmiley : "Вставити смайлик",
About : "Про FCKeditor",
Bold : "Жирний",
Italic : "Курсив",
Underline : "Підкреслений",
StrikeThrough : "Закреслений",
Subscript : "Підрядковий індекс",
Superscript : "Надрядковий индекс",
LeftJustify : "По лівому краю",
CenterJustify : "По центру",
RightJustify : "По правому краю",
BlockJustify : "По ширині",
DecreaseIndent : "Зменшити відступ",
IncreaseIndent : "Збільшити відступ",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Повернути",
Redo : "Повторити",
NumberedListLbl : "Нумерований список",
NumberedList : "Вставити/Видалити нумерований список",
BulletedListLbl : "Маркований список",
BulletedList : "Вставити/Видалити маркований список",
ShowTableBorders : "Показати бордюри таблиці",
ShowDetails : "Показати деталі",
Style : "Стиль",
FontFormat : "Форматування",
Font : "Шрифт",
FontSize : "Розмір",
TextColor : "Колір тексту",
BGColor : "Колір фону",
Source : "Джерело",
Find : "Пошук",
Replace : "Заміна",
SpellCheck : "Перевірити орфографію",
UniversalKeyboard : "Універсальна клавіатура",
PageBreakLbl : "Розривши сторінки",
PageBreak : "Вставити розривши сторінки",
Form : "Форма",
Checkbox : "Флагова кнопка",
RadioButton : "Кнопка вибору",
TextField : "Текстове поле",
Textarea : "Текстова область",
HiddenField : "Приховане поле",
Button : "Кнопка",
SelectionField : "Список",
ImageButton : "Кнопка із зображенням",
FitWindow : "Розвернути вікно редактора",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Вставити посилання",
CellCM : "Осередок",
RowCM : "Рядок",
ColumnCM : "Колонка",
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Видалити строки",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Видалити колонки",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Видалити комірки",
MergeCells : "Об'єднати комірки",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Видалити таблицю",
CellProperties : "Властивості комірки",
TableProperties : "Властивості таблиці",
ImageProperties : "Властивості зображення",
FlashProperties : "Властивості Flash",
AnchorProp : "Властивості якоря",
ButtonProp : "Властивості кнопки",
CheckboxProp : "Властивості флагової кнопки",
HiddenFieldProp : "Властивості прихованого поля",
RadioButtonProp : "Властивості кнопки вибору",
ImageButtonProp : "Властивості кнопки із зображенням",
TextFieldProp : "Властивості текстового поля",
SelectionFieldProp : "Властивості списку",
TextareaProp : "Властивості текстової області",
FormProp : "Властивості форми",
FontFormats : "Нормальний;Форматований;Адреса;Заголовок 1;Заголовок 2;Заголовок 3;Заголовок 4;Заголовок 5;Заголовок 6;Нормальний (DIV)",
// Alerts and Messages
ProcessingXHTML : "Обробка XHTML. Зачекайте, будь ласка...",
Done : "Зроблено",
PasteWordConfirm : "Текст, що ви хочете вставити, схожий на копійований з Word. Ви хочете очистити його перед вставкою?",
NotCompatiblePaste : "Ця команда доступна для Internet Explorer версії 5.5 або вище. Ви хочете вставити без очищення?",
UnknownToolbarItem : "Невідомий елемент панелі інструментів \"%1\"",
UnknownCommand : "Невідоме ім'я команди \"%1\"",
NotImplemented : "Команда не реалізована",
UnknownToolbarSet : "Панель інструментів \"%1\" не існує",
NoActiveX : "Настройки безпеки вашого браузера можуть обмежувати деякі властивості редактора. Ви повинні включити опцію \"Запускати елементи управління ACTIVEX і плугіни\". Ви можете бачити помилки і помічати відсутність можливостей.",
BrowseServerBlocked : "Ресурси браузера не можуть бути відкриті. Перевірте що блокування спливаючих вікон вимкнені.",
DialogBlocked : "Не можливо відкрити вікно діалогу. Перевірте що блокування спливаючих вікон вимкнені.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "ОК",
DlgBtnCancel : "Скасувати",
DlgBtnClose : "Зачинити",
DlgBtnBrowseServer : "Передивитися на сервері",
DlgAdvancedTag : "Розширений",
DlgOpOther : "<Інше>",
DlgInfoTab : "Інфо",
DlgAlertUrl : "Вставте, будь-ласка, URL",
// General Dialogs Labels
DlgGenNotSet : "<не визначено>",
DlgGenId : "Ідентифікатор",
DlgGenLangDir : "Напрямок мови",
DlgGenLangDirLtr : "Зліва на право (LTR)",
DlgGenLangDirRtl : "Зправа на ліво (RTL)",
DlgGenLangCode : "Мова",
DlgGenAccessKey : "Гаряча клавіша",
DlgGenName : "Им'я",
DlgGenTabIndex : "Послідовність переходу",
DlgGenLongDescr : "Довгий опис URL",
DlgGenClass : "Клас CSS",
DlgGenTitle : "Заголовок",
DlgGenContType : "Тип вмісту",
DlgGenLinkCharset : "Кодировка",
DlgGenStyle : "Стиль CSS",
// Image Dialog
DlgImgTitle : "Властивості зображення",
DlgImgInfoTab : "Інформація про изображении",
DlgImgBtnUpload : "Надіслати на сервер",
DlgImgURL : "URL",
DlgImgUpload : "Закачати",
DlgImgAlt : "Альтернативний текст",
DlgImgWidth : "Ширина",
DlgImgHeight : "Висота",
DlgImgLockRatio : "Зберегти пропорції",
DlgBtnResetSize : "Скинути розмір",
DlgImgBorder : "Бордюр",
DlgImgHSpace : "Горизонтальний відступ",
DlgImgVSpace : "Вертикальний відступ",
DlgImgAlign : "Вирівнювання",
DlgImgAlignLeft : "По лівому краю",
DlgImgAlignAbsBottom: "Абс по низу",
DlgImgAlignAbsMiddle: "Абс по середині",
DlgImgAlignBaseline : "По базовій лінії",
DlgImgAlignBottom : "По низу",
DlgImgAlignMiddle : "По середині",
DlgImgAlignRight : "По правому краю",
DlgImgAlignTextTop : "Текст на верху",
DlgImgAlignTop : "По верху",
DlgImgPreview : "Попередній перегляд",
DlgImgAlertUrl : "Будь ласка, введіть URL зображення",
DlgImgLinkTab : "Посилання",
// Flash Dialog
DlgFlashTitle : "Властивості Flash",
DlgFlashChkPlay : "Авто програвання",
DlgFlashChkLoop : "Зациклити",
DlgFlashChkMenu : "Дозволити меню Flash",
DlgFlashScale : "Масштаб",
DlgFlashScaleAll : "Показати всі",
DlgFlashScaleNoBorder : "Без рамки",
DlgFlashScaleFit : "Дійсний розмір",
// Link Dialog
DlgLnkWindowTitle : "Посилання",
DlgLnkInfoTab : "Інформація посилання",
DlgLnkTargetTab : "Ціль",
DlgLnkType : "Тип посилання",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Якір на цю сторінку",
DlgLnkTypeEMail : "Эл. пошта",
DlgLnkProto : "Протокол",
DlgLnkProtoOther : "<інше>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Оберіть якір",
DlgLnkAnchorByName : "За ім'ям якоря",
DlgLnkAnchorById : "За ідентифікатором елемента",
DlgLnkNoAnchors : "(Немає якорів доступних в цьому документі)",
DlgLnkEMail : "Адреса ел. пошти",
DlgLnkEMailSubject : "Тема листа",
DlgLnkEMailBody : "Тіло повідомлення",
DlgLnkUpload : "Закачати",
DlgLnkBtnUpload : "Переслати на сервер",
DlgLnkTarget : "Ціль",
DlgLnkTargetFrame : "<фрейм>",
DlgLnkTargetPopup : "<спливаюче вікно>",
DlgLnkTargetBlank : "Нове вікно (_blank)",
DlgLnkTargetParent : "Батьківське вікно (_parent)",
DlgLnkTargetSelf : "Теж вікно (_self)",
DlgLnkTargetTop : "Найвище вікно (_top)",
DlgLnkTargetFrameName : "Ім'я целевого фрейма",
DlgLnkPopWinName : "Ім'я спливаючого вікна",
DlgLnkPopWinFeat : "Властивості спливаючого вікна",
DlgLnkPopResize : "Змінюється в розмірах",
DlgLnkPopLocation : "Панель локації",
DlgLnkPopMenu : "Панель меню",
DlgLnkPopScroll : "Полоси прокрутки",
DlgLnkPopStatus : "Строка статусу",
DlgLnkPopToolbar : "Панель інструментів",
DlgLnkPopFullScrn : "Повний екран (IE)",
DlgLnkPopDependent : "Залежний (Netscape)",
DlgLnkPopWidth : "Ширина",
DlgLnkPopHeight : "Висота",
DlgLnkPopLeft : "Позиція зліва",
DlgLnkPopTop : "Позиція зверху",
DlnLnkMsgNoUrl : "Будь ласка, занесіть URL посилання",
DlnLnkMsgNoEMail : "Будь ласка, занесіть адрес эл. почты",
DlnLnkMsgNoAnchor : "Будь ласка, оберіть якір",
DlnLnkMsgInvPopName : "Назва спливаючого вікна повинна починатися букви і не може містити пропусків",
// Color Dialog
DlgColorTitle : "Оберіть колір",
DlgColorBtnClear : "Очистити",
DlgColorHighlight : "Підсвічений",
DlgColorSelected : "Обраний",
// Smiley Dialog
DlgSmileyTitle : "Вставити смайлик",
// Special Character Dialog
DlgSpecialCharTitle : "Оберіть спеціальний символ",
// Table Dialog
DlgTableTitle : "Властивості таблиці",
DlgTableRows : "Строки",
DlgTableColumns : "Колонки",
DlgTableBorder : "Розмір бордюра",
DlgTableAlign : "Вирівнювання",
DlgTableAlignNotSet : "<Не вст.>",
DlgTableAlignLeft : "Зліва",
DlgTableAlignCenter : "По центру",
DlgTableAlignRight : "Зправа",
DlgTableWidth : "Ширина",
DlgTableWidthPx : "пікселів",
DlgTableWidthPc : "відсотків",
DlgTableHeight : "Висота",
DlgTableCellSpace : "Проміжок (spacing)",
DlgTableCellPad : "Відступ (padding)",
DlgTableCaption : "Заголовок",
DlgTableSummary : "Резюме",
// Table Cell Dialog
DlgCellTitle : "Властивості комірки",
DlgCellWidth : "Ширина",
DlgCellWidthPx : "пікселів",
DlgCellWidthPc : "відсотків",
DlgCellHeight : "Висота",
DlgCellWordWrap : "Згортання текста",
DlgCellWordWrapNotSet : "<Не вст.>",
DlgCellWordWrapYes : "Так",
DlgCellWordWrapNo : "Ні",
DlgCellHorAlign : "Горизонтальне вирівнювання",
DlgCellHorAlignNotSet : "<Не вст.>",
DlgCellHorAlignLeft : "Зліва",
DlgCellHorAlignCenter : "По центру",
DlgCellHorAlignRight: "Зправа",
DlgCellVerAlign : "Вертикальное вирівнювання",
DlgCellVerAlignNotSet : "<Не вст.>",
DlgCellVerAlignTop : "Зверху",
DlgCellVerAlignMiddle : "Посередині",
DlgCellVerAlignBottom : "Знизу",
DlgCellVerAlignBaseline : "По базовій лінії",
DlgCellRowSpan : "Діапазон строк (span)",
DlgCellCollSpan : "Діапазон колонок (span)",
DlgCellBackColor : "Колір фона",
DlgCellBorderColor : "Колір бордюра",
DlgCellBtnSelect : "Оберіть...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Пошук",
DlgFindFindBtn : "Пошук",
DlgFindNotFoundMsg : "Вказаний текст не знайдений.",
// Replace Dialog
DlgReplaceTitle : "Замінити",
DlgReplaceFindLbl : "Шукати:",
DlgReplaceReplaceLbl : "Замінити на:",
DlgReplaceCaseChk : "Учитывать регистр",
DlgReplaceReplaceBtn : "Замінити",
DlgReplaceReplAllBtn : "Замінити все",
DlgReplaceWordChk : "Збіг цілих слів",
// Paste Operations / Dialog
PasteErrorCut : "Настройки безпеки вашого браузера не дозволяють редактору автоматично виконувати операції вирізування. Будь ласка, використовуйте клавіатуру для цього (Ctrl+X).",
PasteErrorCopy : "Настройки безпеки вашого браузера не дозволяють редактору автоматично виконувати операції копіювання. Будь ласка, використовуйте клавіатуру для цього (Ctrl+C).",
PasteAsText : "Вставити тільки текст",
PasteFromWord : "Вставити з Word",
DlgPasteMsg2 : "Будь-ласка, вставте з буфера обміну в цю область, користуючись комбінацією клавіш (<STRONG>Ctrl+V</STRONG>) та натисніть <STRONG>OK</STRONG>.",
DlgPasteSec : "Редактор не може отримати прямий доступ до буферу обміну у зв'язку з налаштуваннями вашого браузера. Вам потрібно вставити інформацію повторно в це вікно.",
DlgPasteIgnoreFont : "Ігнорувати налаштування шрифтів",
DlgPasteRemoveStyles : "Видалити налаштування стилів",
// Color Picker
ColorAutomatic : "Автоматичний",
ColorMoreColors : "Кольори...",
// Document Properties
DocProps : "Властивості документа",
// Anchor Dialog
DlgAnchorTitle : "Властивості якоря",
DlgAnchorName : "Ім'я якоря",
DlgAnchorErrorName : "Будь ласка, занесіть ім'я якоря",
// Speller Pages Dialog
DlgSpellNotInDic : "Не має в словнику",
DlgSpellChangeTo : "Замінити на",
DlgSpellBtnIgnore : "Ігнорувати",
DlgSpellBtnIgnoreAll : "Ігнорувати все",
DlgSpellBtnReplace : "Замінити",
DlgSpellBtnReplaceAll : "Замінити все",
DlgSpellBtnUndo : "Назад",
DlgSpellNoSuggestions : "- Немає припущень -",
DlgSpellProgress : "Виконується перевірка орфографії...",
DlgSpellNoMispell : "Перевірку орфографії завершено: помилок не знайдено",
DlgSpellNoChanges : "Перевірку орфографії завершено: жодне слово не змінено",
DlgSpellOneChange : "Перевірку орфографії завершено: змінено одно слово",
DlgSpellManyChanges : "Перевірку орфографії завершено: 1% слів змінено",
IeSpellDownload : "Модуль перевірки орфографії не встановлено. Бажаєтн завантажити його зараз?",
// Button Dialog
DlgButtonText : "Текст (Значення)",
DlgButtonType : "Тип",
DlgButtonTypeBtn : "Кнопка",
DlgButtonTypeSbm : "Відправити",
DlgButtonTypeRst : "Скинути",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Ім'я",
DlgCheckboxValue : "Значення",
DlgCheckboxSelected : "Обрана",
// Form Dialog
DlgFormName : "Ім'я",
DlgFormAction : "Дія",
DlgFormMethod : "Метод",
// Select Field Dialog
DlgSelectName : "Ім'я",
DlgSelectValue : "Значення",
DlgSelectSize : "Розмір",
DlgSelectLines : "лінії",
DlgSelectChkMulti : "Дозволити обрання декількох позицій",
DlgSelectOpAvail : "Доступні варіанти",
DlgSelectOpText : "Текст",
DlgSelectOpValue : "Значення",
DlgSelectBtnAdd : "Добавити",
DlgSelectBtnModify : "Змінити",
DlgSelectBtnUp : "Вгору",
DlgSelectBtnDown : "Вниз",
DlgSelectBtnSetValue : "Встановити як вибране значення",
DlgSelectBtnDelete : "Видалити",
// Textarea Dialog
DlgTextareaName : "Ім'я",
DlgTextareaCols : "Колонки",
DlgTextareaRows : "Строки",
// Text Field Dialog
DlgTextName : "Ім'я",
DlgTextValue : "Значення",
DlgTextCharWidth : "Ширина",
DlgTextMaxChars : "Макс. кіл-ть символів",
DlgTextType : "Тип",
DlgTextTypeText : "Текст",
DlgTextTypePass : "Пароль",
// Hidden Field Dialog
DlgHiddenName : "Ім'я",
DlgHiddenValue : "Значення",
// Bulleted List Dialog
BulletedListProp : "Властивості маркованого списка",
NumberedListProp : "Властивості нумерованного списка",
DlgLstStart : "Початок",
DlgLstType : "Тип",
DlgLstTypeCircle : "Коло",
DlgLstTypeDisc : "Диск",
DlgLstTypeSquare : "Квадрат",
DlgLstTypeNumbers : "Номери (1, 2, 3)",
DlgLstTypeLCase : "Літери нижнього регістра(a, b, c)",
DlgLstTypeUCase : "Букви верхнього регістра (A, B, C)",
DlgLstTypeSRoman : "Малі римські літери (i, ii, iii)",
DlgLstTypeLRoman : "Великі римські літери (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Загальні",
DlgDocBackTab : "Заднє тло",
DlgDocColorsTab : "Кольори та відступи",
DlgDocMetaTab : "Мета дані",
DlgDocPageTitle : "Заголовок сторінки",
DlgDocLangDir : "Напрямок тексту",
DlgDocLangDirLTR : "Зліва на право (LTR)",
DlgDocLangDirRTL : "Зправа на лево (RTL)",
DlgDocLangCode : "Код мови",
DlgDocCharSet : "Кодування набору символів",
DlgDocCharSetCE : "Центрально-європейська",
DlgDocCharSetCT : "Китайська традиційна (Big5)",
DlgDocCharSetCR : "Кирилиця",
DlgDocCharSetGR : "Грецька",
DlgDocCharSetJP : "Японська",
DlgDocCharSetKR : "Корейська",
DlgDocCharSetTR : "Турецька",
DlgDocCharSetUN : "Юнікод (UTF-8)",
DlgDocCharSetWE : "Західно-европейская",
DlgDocCharSetOther : "Інше кодування набору символів",
DlgDocDocType : "Заголовок типу документу",
DlgDocDocTypeOther : "Інший заголовок типу документу",
DlgDocIncXHTML : "Ввімкнути XHTML оголошення",
DlgDocBgColor : "Колір тла",
DlgDocBgImage : "URL зображення тла",
DlgDocBgNoScroll : "Тло без прокрутки",
DlgDocCText : "Текст",
DlgDocCLink : "Посилання",
DlgDocCVisited : "Відвідане посилання",
DlgDocCActive : "Активне посилання",
DlgDocMargins : "Відступи сторінки",
DlgDocMaTop : "Верхній",
DlgDocMaLeft : "Лівий",
DlgDocMaRight : "Правий",
DlgDocMaBottom : "Нижній",
DlgDocMeIndex : "Ключові слова документа (розділені комами)",
DlgDocMeDescr : "Опис документа",
DlgDocMeAuthor : "Автор",
DlgDocMeCopy : "Авторські права",
DlgDocPreview : "Попередній перегляд",
// Templates Dialog
Templates : "Шаблони",
DlgTemplatesTitle : "Шаблони змісту",
DlgTemplatesSelMsg : "Оберіть, будь ласка, шаблон для відкриття в редакторі<br>(поточний зміст буде втрачено):",
DlgTemplatesLoading : "Завантаження списку шаблонів. Зачекайте, будь ласка...",
DlgTemplatesNoTpl : "(Не визначено жодного шаблону)",
DlgTemplatesReplace : "Замінити поточний вміст",
// About Dialog
DlgAboutAboutTab : "Про програму",
DlgAboutBrowserInfoTab : "Інформація браузера",
DlgAboutLicenseTab : "Ліцензія",
DlgAboutVersion : "Версія",
DlgAboutInfo : "Додаткову інформацію дивіться на ",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Portuguese language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Fechar Barra",
ToolbarExpand : "Expandir Barra",
// Toolbar Items and Context Menu
Save : "Guardar",
NewPage : "Nova Página",
Preview : "Pré-visualizar",
Cut : "Cortar",
Copy : "Copiar",
Paste : "Colar",
PasteText : "Colar como texto não formatado",
PasteWord : "Colar do Word",
Print : "Imprimir",
SelectAll : "Seleccionar Tudo",
RemoveFormat : "Eliminar Formato",
InsertLinkLbl : "Hiperligação",
InsertLink : "Inserir/Editar Hiperligação",
RemoveLink : "Eliminar Hiperligação",
VisitLink : "Open Link", //MISSING
Anchor : " Inserir/Editar Âncora",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Imagem",
InsertImage : "Inserir/Editar Imagem",
InsertFlashLbl : "Flash",
InsertFlash : "Inserir/Editar Flash",
InsertTableLbl : "Tabela",
InsertTable : "Inserir/Editar Tabela",
InsertLineLbl : "Linha",
InsertLine : "Inserir Linha Horizontal",
InsertSpecialCharLbl: "Caracter Especial",
InsertSpecialChar : "Inserir Caracter Especial",
InsertSmileyLbl : "Emoticons",
InsertSmiley : "Inserir Emoticons",
About : "Acerca do FCKeditor",
Bold : "Negrito",
Italic : "Itálico",
Underline : "Sublinhado",
StrikeThrough : "Rasurado",
Subscript : "Superior à Linha",
Superscript : "Inferior à Linha",
LeftJustify : "Alinhar à Esquerda",
CenterJustify : "Alinhar ao Centro",
RightJustify : "Alinhar à Direita",
BlockJustify : "Justificado",
DecreaseIndent : "Diminuir Avanço",
IncreaseIndent : "Aumentar Avanço",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Anular",
Redo : "Repetir",
NumberedListLbl : "Numeração",
NumberedList : "Inserir/Eliminar Numeração",
BulletedListLbl : "Marcas",
BulletedList : "Inserir/Eliminar Marcas",
ShowTableBorders : "Mostrar Limites da Tabelas",
ShowDetails : "Mostrar Parágrafo",
Style : "Estilo",
FontFormat : "Formato",
Font : "Tipo de Letra",
FontSize : "Tamanho",
TextColor : "Cor do Texto",
BGColor : "Cor de Fundo",
Source : "Fonte",
Find : "Procurar",
Replace : "Substituir",
SpellCheck : "Verificação Ortográfica",
UniversalKeyboard : "Teclado Universal",
PageBreakLbl : "Quebra de Página",
PageBreak : "Inserir Quebra de Página",
Form : "Formulário",
Checkbox : "Caixa de Verificação",
RadioButton : "Botão de Opção",
TextField : "Campo de Texto",
Textarea : "Área de Texto",
HiddenField : "Campo Escondido",
Button : "Botão",
SelectionField : "Caixa de Combinação",
ImageButton : "Botão de Imagem",
FitWindow : "Maximizar o tamanho do editor",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Editar Hiperligação",
CellCM : "Célula",
RowCM : "Linha",
ColumnCM : "Coluna",
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Eliminar Linhas",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Eliminar Coluna",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Eliminar Célula",
MergeCells : "Unir Células",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Eliminar Tabela",
CellProperties : "Propriedades da Célula",
TableProperties : "Propriedades da Tabela",
ImageProperties : "Propriedades da Imagem",
FlashProperties : "Propriedades do Flash",
AnchorProp : "Propriedades da Âncora",
ButtonProp : "Propriedades do Botão",
CheckboxProp : "Propriedades da Caixa de Verificação",
HiddenFieldProp : "Propriedades do Campo Escondido",
RadioButtonProp : "Propriedades do Botão de Opção",
ImageButtonProp : "Propriedades do Botão de imagens",
TextFieldProp : "Propriedades do Campo de Texto",
SelectionFieldProp : "Propriedades da Caixa de Combinação",
TextareaProp : "Propriedades da Área de Texto",
FormProp : "Propriedades do Formulário",
FontFormats : "Normal;Formatado;Endereço;Título 1;Título 2;Título 3;Título 4;Título 5;Título 6",
// Alerts and Messages
ProcessingXHTML : "A Processar XHTML. Por favor, espere...",
Done : "Concluído",
PasteWordConfirm : "O texto que deseja parece ter sido copiado do Word. Deseja limpar a formatação antes de colar?",
NotCompatiblePaste : "Este comando só está disponível para Internet Explorer versão 5.5 ou superior. Deseja colar sem limpar a formatação?",
UnknownToolbarItem : "Item de barra desconhecido \"%1\"",
UnknownCommand : "Nome de comando desconhecido \"%1\"",
NotImplemented : "Comando não implementado",
UnknownToolbarSet : "Nome de barra \"%1\" não definido",
NoActiveX : "As definições de segurança do navegador podem limitar algumas potencalidades do editr. Deve activar a opção \"Executar controlos e extensões ActiveX\". Pode ocorrer erros ou verificar que faltam potencialidades.",
BrowseServerBlocked : "Não foi possível abrir o navegador de recursos. Certifique-se que todos os bloqueadores de popup estão desactivados.",
DialogBlocked : "Não foi possível abrir a janela de diálogo. Certifique-se que todos os bloqueadores de popup estão desactivados.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Cancelar",
DlgBtnClose : "Fechar",
DlgBtnBrowseServer : "Navegar no Servidor",
DlgAdvancedTag : "Avançado",
DlgOpOther : "<Outro>",
DlgInfoTab : "Informação",
DlgAlertUrl : "Por favor introduza o URL",
// General Dialogs Labels
DlgGenNotSet : "<Não definido>",
DlgGenId : "Id",
DlgGenLangDir : "Orientação de idioma",
DlgGenLangDirLtr : "Esquerda à Direita (LTR)",
DlgGenLangDirRtl : "Direita a Esquerda (RTL)",
DlgGenLangCode : "Código de Idioma",
DlgGenAccessKey : "Chave de Acesso",
DlgGenName : "Nome",
DlgGenTabIndex : "Índice de Tubulação",
DlgGenLongDescr : "Descrição Completa do URL",
DlgGenClass : "Classes de Estilo de Folhas Classes",
DlgGenTitle : "Título",
DlgGenContType : "Tipo de Conteúdo",
DlgGenLinkCharset : "Fonte de caracteres vinculado",
DlgGenStyle : "Estilo",
// Image Dialog
DlgImgTitle : "Propriedades da Imagem",
DlgImgInfoTab : "Informação da Imagem",
DlgImgBtnUpload : "Enviar para o Servidor",
DlgImgURL : "URL",
DlgImgUpload : "Carregar",
DlgImgAlt : "Texto Alternativo",
DlgImgWidth : "Largura",
DlgImgHeight : "Altura",
DlgImgLockRatio : "Proporcional",
DlgBtnResetSize : "Tamanho Original",
DlgImgBorder : "Limite",
DlgImgHSpace : "Esp.Horiz",
DlgImgVSpace : "Esp.Vert",
DlgImgAlign : "Alinhamento",
DlgImgAlignLeft : "Esquerda",
DlgImgAlignAbsBottom: "Abs inferior",
DlgImgAlignAbsMiddle: "Abs centro",
DlgImgAlignBaseline : "Linha de base",
DlgImgAlignBottom : "Fundo",
DlgImgAlignMiddle : "Centro",
DlgImgAlignRight : "Direita",
DlgImgAlignTextTop : "Topo do texto",
DlgImgAlignTop : "Topo",
DlgImgPreview : "Pré-visualizar",
DlgImgAlertUrl : "Por favor introduza o URL da imagem",
DlgImgLinkTab : "Hiperligação",
// Flash Dialog
DlgFlashTitle : "Propriedades do Flash",
DlgFlashChkPlay : "Reproduzir automaticamente",
DlgFlashChkLoop : "Loop",
DlgFlashChkMenu : "Permitir Menu do Flash",
DlgFlashScale : "Escala",
DlgFlashScaleAll : "Mostrar tudo",
DlgFlashScaleNoBorder : "Sem Limites",
DlgFlashScaleFit : "Tamanho Exacto",
// Link Dialog
DlgLnkWindowTitle : "Hiperligação",
DlgLnkInfoTab : "Informação de Hiperligação",
DlgLnkTargetTab : "Destino",
DlgLnkType : "Tipo de Hiperligação",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Referência a esta página",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protocolo",
DlgLnkProtoOther : "<outro>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Seleccionar una referência",
DlgLnkAnchorByName : "Por Nome de Referência",
DlgLnkAnchorById : "Por ID de elemento",
DlgLnkNoAnchors : "(Não há referências disponíveis no documento)",
DlgLnkEMail : "Endereço de E-Mail",
DlgLnkEMailSubject : "Título de Mensagem",
DlgLnkEMailBody : "Corpo da Mensagem",
DlgLnkUpload : "Carregar",
DlgLnkBtnUpload : "Enviar ao Servidor",
DlgLnkTarget : "Destino",
DlgLnkTargetFrame : "<Frame>",
DlgLnkTargetPopup : "<Janela de popup>",
DlgLnkTargetBlank : "Nova Janela(_blank)",
DlgLnkTargetParent : "Janela Pai (_parent)",
DlgLnkTargetSelf : "Mesma janela (_self)",
DlgLnkTargetTop : "Janela primaria (_top)",
DlgLnkTargetFrameName : "Nome do Frame Destino",
DlgLnkPopWinName : "Nome da Janela de Popup",
DlgLnkPopWinFeat : "Características de Janela de Popup",
DlgLnkPopResize : "Ajustável",
DlgLnkPopLocation : "Barra de localização",
DlgLnkPopMenu : "Barra de Menu",
DlgLnkPopScroll : "Barras de deslocamento",
DlgLnkPopStatus : "Barra de Estado",
DlgLnkPopToolbar : "Barra de Ferramentas",
DlgLnkPopFullScrn : "Janela Completa (IE)",
DlgLnkPopDependent : "Dependente (Netscape)",
DlgLnkPopWidth : "Largura",
DlgLnkPopHeight : "Altura",
DlgLnkPopLeft : "Posição Esquerda",
DlgLnkPopTop : "Posição Direita",
DlnLnkMsgNoUrl : "Por favor introduza a hiperligação URL",
DlnLnkMsgNoEMail : "Por favor introduza o endereço de e-mail",
DlnLnkMsgNoAnchor : "Por favor seleccione uma referência",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Seleccionar Cor",
DlgColorBtnClear : "Nenhuma",
DlgColorHighlight : "Destacado",
DlgColorSelected : "Seleccionado",
// Smiley Dialog
DlgSmileyTitle : "Inserir um Emoticon",
// Special Character Dialog
DlgSpecialCharTitle : "Seleccione um caracter especial",
// Table Dialog
DlgTableTitle : "Propriedades da Tabela",
DlgTableRows : "Linhas",
DlgTableColumns : "Colunas",
DlgTableBorder : "Tamanho do Limite",
DlgTableAlign : "Alinhamento",
DlgTableAlignNotSet : "<Não definido>",
DlgTableAlignLeft : "Esquerda",
DlgTableAlignCenter : "Centrado",
DlgTableAlignRight : "Direita",
DlgTableWidth : "Largura",
DlgTableWidthPx : "pixeis",
DlgTableWidthPc : "percentagem",
DlgTableHeight : "Altura",
DlgTableCellSpace : "Esp. e/células",
DlgTableCellPad : "Esp. interior",
DlgTableCaption : "Título",
DlgTableSummary : "Sumário",
// Table Cell Dialog
DlgCellTitle : "Propriedades da Célula",
DlgCellWidth : "Largura",
DlgCellWidthPx : "pixeis",
DlgCellWidthPc : "percentagem",
DlgCellHeight : "Altura",
DlgCellWordWrap : "Moldar Texto",
DlgCellWordWrapNotSet : "<Não definido>",
DlgCellWordWrapYes : "Sim",
DlgCellWordWrapNo : "Não",
DlgCellHorAlign : "Alinhamento Horizontal",
DlgCellHorAlignNotSet : "<Não definido>",
DlgCellHorAlignLeft : "Esquerda",
DlgCellHorAlignCenter : "Centrado",
DlgCellHorAlignRight: "Direita",
DlgCellVerAlign : "Alinhamento Vertical",
DlgCellVerAlignNotSet : "<Não definido>",
DlgCellVerAlignTop : "Topo",
DlgCellVerAlignMiddle : "Médio",
DlgCellVerAlignBottom : "Fundi",
DlgCellVerAlignBaseline : "Linha de Base",
DlgCellRowSpan : "Unir Linhas",
DlgCellCollSpan : "Unir Colunas",
DlgCellBackColor : "Cor do Fundo",
DlgCellBorderColor : "Cor do Limite",
DlgCellBtnSelect : "Seleccione...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Procurar",
DlgFindFindBtn : "Procurar",
DlgFindNotFoundMsg : "O texto especificado não foi encontrado.",
// Replace Dialog
DlgReplaceTitle : "Substituir",
DlgReplaceFindLbl : "Texto a Procurar:",
DlgReplaceReplaceLbl : "Substituir por:",
DlgReplaceCaseChk : "Maiúsculas/Minúsculas",
DlgReplaceReplaceBtn : "Substituir",
DlgReplaceReplAllBtn : "Substituir Tudo",
DlgReplaceWordChk : "Coincidir com toda a palavra",
// Paste Operations / Dialog
PasteErrorCut : "A configuração de segurança do navegador não permite a execução automática de operações de cortar. Por favor use o teclado (Ctrl+X).",
PasteErrorCopy : "A configuração de segurança do navegador não permite a execução automática de operações de copiar. Por favor use o teclado (Ctrl+C).",
PasteAsText : "Colar como Texto Simples",
PasteFromWord : "Colar do Word",
DlgPasteMsg2 : "Por favor, cole dentro da seguinte caixa usando o teclado (<STRONG>Ctrl+V</STRONG>) e prima <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignorar da definições do Tipo de Letra ",
DlgPasteRemoveStyles : "Remover as definições de Estilos",
// Color Picker
ColorAutomatic : "Automático",
ColorMoreColors : "Mais Cores...",
// Document Properties
DocProps : "Propriedades do Documento",
// Anchor Dialog
DlgAnchorTitle : "Propriedades da Âncora",
DlgAnchorName : "Nome da Âncora",
DlgAnchorErrorName : "Por favor, introduza o nome da âncora",
// Speller Pages Dialog
DlgSpellNotInDic : "Não está num directório",
DlgSpellChangeTo : "Mudar para",
DlgSpellBtnIgnore : "Ignorar",
DlgSpellBtnIgnoreAll : "Ignorar Tudo",
DlgSpellBtnReplace : "Substituir",
DlgSpellBtnReplaceAll : "Substituir Tudo",
DlgSpellBtnUndo : "Anular",
DlgSpellNoSuggestions : "- Sem sugestões -",
DlgSpellProgress : "Verificação ortográfica em progresso…",
DlgSpellNoMispell : "Verificação ortográfica completa: não foram encontrados erros",
DlgSpellNoChanges : "Verificação ortográfica completa: não houve alteração de palavras",
DlgSpellOneChange : "Verificação ortográfica completa: uma palavra alterada",
DlgSpellManyChanges : "Verificação ortográfica completa: %1 palavras alteradas",
IeSpellDownload : " Verificação ortográfica não instalada. Quer descarregar agora?",
// Button Dialog
DlgButtonText : "Texto (Valor)",
DlgButtonType : "Tipo",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nome",
DlgCheckboxValue : "Valor",
DlgCheckboxSelected : "Seleccionado",
// Form Dialog
DlgFormName : "Nome",
DlgFormAction : "Acção",
DlgFormMethod : "Método",
// Select Field Dialog
DlgSelectName : "Nome",
DlgSelectValue : "Valor",
DlgSelectSize : "Tamanho",
DlgSelectLines : "linhas",
DlgSelectChkMulti : "Permitir selecções múltiplas",
DlgSelectOpAvail : "Opções Possíveis",
DlgSelectOpText : "Texto",
DlgSelectOpValue : "Valor",
DlgSelectBtnAdd : "Adicionar",
DlgSelectBtnModify : "Modificar",
DlgSelectBtnUp : "Para cima",
DlgSelectBtnDown : "Para baixo",
DlgSelectBtnSetValue : "Definir um valor por defeito",
DlgSelectBtnDelete : "Apagar",
// Textarea Dialog
DlgTextareaName : "Nome",
DlgTextareaCols : "Colunas",
DlgTextareaRows : "Linhas",
// Text Field Dialog
DlgTextName : "Nome",
DlgTextValue : "Valor",
DlgTextCharWidth : "Tamanho do caracter",
DlgTextMaxChars : "Nr. Máximo de Caracteres",
DlgTextType : "Tipo",
DlgTextTypeText : "Texto",
DlgTextTypePass : "Palavra-chave",
// Hidden Field Dialog
DlgHiddenName : "Nome",
DlgHiddenValue : "Valor",
// Bulleted List Dialog
BulletedListProp : "Propriedades da Marca",
NumberedListProp : "Propriedades da Numeração",
DlgLstStart : "Start", //MISSING
DlgLstType : "Tipo",
DlgLstTypeCircle : "Circulo",
DlgLstTypeDisc : "Disco",
DlgLstTypeSquare : "Quadrado",
DlgLstTypeNumbers : "Números (1, 2, 3)",
DlgLstTypeLCase : "Letras Minúsculas (a, b, c)",
DlgLstTypeUCase : "Letras Maiúsculas (A, B, C)",
DlgLstTypeSRoman : "Numeração Romana em Minúsculas (i, ii, iii)",
DlgLstTypeLRoman : "Numeração Romana em Maiúsculas (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Geral",
DlgDocBackTab : "Fundo",
DlgDocColorsTab : "Cores e Margens",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Título da Página",
DlgDocLangDir : "Orientação de idioma",
DlgDocLangDirLTR : "Esquerda à Direita (LTR)",
DlgDocLangDirRTL : "Direita à Esquerda (RTL)",
DlgDocLangCode : "Código de Idioma",
DlgDocCharSet : "Codificação de Caracteres",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Outra Codificação de Caracteres",
DlgDocDocType : "Tipo de Cabeçalho do Documento",
DlgDocDocTypeOther : "Outro Tipo de Cabeçalho do Documento",
DlgDocIncXHTML : "Incluir Declarações XHTML",
DlgDocBgColor : "Cor de Fundo",
DlgDocBgImage : "Caminho para a Imagem de Fundo",
DlgDocBgNoScroll : "Fundo Fixo",
DlgDocCText : "Texto",
DlgDocCLink : "Hiperligação",
DlgDocCVisited : "Hiperligação Visitada",
DlgDocCActive : "Hiperligação Activa",
DlgDocMargins : "Margem das Páginas",
DlgDocMaTop : "Topo",
DlgDocMaLeft : "Esquerda",
DlgDocMaRight : "Direita",
DlgDocMaBottom : "Fundo",
DlgDocMeIndex : "Palavras de Indexação do Documento (separadas por virgula)",
DlgDocMeDescr : "Descrição do Documento",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Direitos de Autor",
DlgDocPreview : "Pré-visualizar",
// Templates Dialog
Templates : "Modelos",
DlgTemplatesTitle : "Modelo de Conteúdo",
DlgTemplatesSelMsg : "Por favor, seleccione o modelo a abrir no editor<br>(o conteúdo actual será perdido):",
DlgTemplatesLoading : "A carregar a lista de modelos. Aguarde por favor...",
DlgTemplatesNoTpl : "(Sem modelos definidos)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "Acerca",
DlgAboutBrowserInfoTab : "Informação do Nevegador",
DlgAboutLicenseTab : "Licença",
DlgAboutVersion : "versão",
DlgAboutInfo : "Para mais informações por favor dirija-se a",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Bengali/Bangla language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "টূলবার গুটিয়ে দাও",
ToolbarExpand : "টূলবার ছড়িয়ে দাও",
// Toolbar Items and Context Menu
Save : "সংরক্ষন কর",
NewPage : "নতুন পেজ",
Preview : "প্রিভিউ",
Cut : "কাট",
Copy : "কপি",
Paste : "পেস্ট",
PasteText : "পেস্ট (সাদা টেক্সট)",
PasteWord : "পেস্ট (শব্দ)",
Print : "প্রিন্ট",
SelectAll : "সব সিলেক্ট কর",
RemoveFormat : "ফরমেট সরাও",
InsertLinkLbl : "লিংকের যুক্ত করার লেবেল",
InsertLink : "লিংক যুক্ত কর",
RemoveLink : "লিংক সরাও",
VisitLink : "Open Link", //MISSING
Anchor : "নোঙ্গর",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "ছবির লেবেল যুক্ত কর",
InsertImage : "ছবি যুক্ত কর",
InsertFlashLbl : "ফ্লাশ লেবেল যুক্ত কর",
InsertFlash : "ফ্লাশ যুক্ত কর",
InsertTableLbl : "টেবিলের লেবেল যুক্ত কর",
InsertTable : "টেবিল যুক্ত কর",
InsertLineLbl : "রেখা যুক্ত কর",
InsertLine : "রেখা যুক্ত কর",
InsertSpecialCharLbl: "বিশেষ অক্ষরের লেবেল যুক্ত কর",
InsertSpecialChar : "বিশেষ অক্ষর যুক্ত কর",
InsertSmileyLbl : "স্মাইলী",
InsertSmiley : "স্মাইলী যুক্ত কর",
About : "FCKeditor কে বানিয়েছে",
Bold : "বোল্ড",
Italic : "ইটালিক",
Underline : "আন্ডারলাইন",
StrikeThrough : "স্ট্রাইক থ্রু",
Subscript : "অধোলেখ",
Superscript : "অভিলেখ",
LeftJustify : "বা দিকে ঘেঁষা",
CenterJustify : "মাঝ বরাবর ঘেষা",
RightJustify : "ডান দিকে ঘেঁষা",
BlockJustify : "ব্লক জাস্টিফাই",
DecreaseIndent : "ইনডেন্ট কমাও",
IncreaseIndent : "ইনডেন্ট বাড়াও",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "আনডু",
Redo : "রি-ডু",
NumberedListLbl : "সাংখ্যিক লিস্টের লেবেল",
NumberedList : "সাংখ্যিক লিস্ট",
BulletedListLbl : "বুলেট লিস্ট লেবেল",
BulletedList : "বুলেটেড লিস্ট",
ShowTableBorders : "টেবিল বর্ডার",
ShowDetails : "সবটুকু দেখাও",
Style : "স্টাইল",
FontFormat : "ফন্ট ফরমেট",
Font : "ফন্ট",
FontSize : "সাইজ",
TextColor : "টেক্স্ট রং",
BGColor : "বেকগ্রাউন্ড রং",
Source : "সোর্স",
Find : "খোজো",
Replace : "রিপ্লেস",
SpellCheck : "বানান চেক",
UniversalKeyboard : "সার্বজনীন কিবোর্ড",
PageBreakLbl : "পেজ ব্রেক লেবেল",
PageBreak : "পেজ ব্রেক",
Form : "ফর্ম",
Checkbox : "চেক বাক্স",
RadioButton : "রেডিও বাটন",
TextField : "টেক্সট ফীল্ড",
Textarea : "টেক্সট এরিয়া",
HiddenField : "গুপ্ত ফীল্ড",
Button : "বাটন",
SelectionField : "বাছাই ফীল্ড",
ImageButton : "ছবির বাটন",
FitWindow : "উইন্ডো ফিট কর",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "লিংক সম্পাদন",
CellCM : "সেল",
RowCM : "রো",
ColumnCM : "কলাম",
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "রো মুছে দাও",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "কলাম মুছে দাও",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "সেল মুছে দাও",
MergeCells : "সেল জোড়া দাও",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "টেবিল ডিলীট কর",
CellProperties : "সেলের প্রোপার্টিজ",
TableProperties : "টেবিল প্রোপার্টি",
ImageProperties : "ছবি প্রোপার্টি",
FlashProperties : "ফ্লাশ প্রোপার্টি",
AnchorProp : "নোঙর প্রোপার্টি",
ButtonProp : "বাটন প্রোপার্টি",
CheckboxProp : "চেক বক্স প্রোপার্টি",
HiddenFieldProp : "গুপ্ত ফীল্ড প্রোপার্টি",
RadioButtonProp : "রেডিও বাটন প্রোপার্টি",
ImageButtonProp : "ছবি বাটন প্রোপার্টি",
TextFieldProp : "টেক্সট ফীল্ড প্রোপার্টি",
SelectionFieldProp : "বাছাই ফীল্ড প্রোপার্টি",
TextareaProp : "টেক্সট এরিয়া প্রোপার্টি",
FormProp : "ফর্ম প্রোপার্টি",
FontFormats : "সাধারণ;ফর্মেটেড;ঠিকানা;শীর্ষক ১;শীর্ষক ২;শীর্ষক ৩;শীর্ষক ৪;শীর্ষক ৫;শীর্ষক ৬;শীর্ষক (DIV)",
// Alerts and Messages
ProcessingXHTML : "XHTML প্রসেস করা হচ্ছে",
Done : "শেষ হয়েছে",
PasteWordConfirm : "যে টেকস্টটি আপনি পেস্ট করতে চাচ্ছেন মনে হচ্ছে সেটি ওয়ার্ড থেকে কপি করা। আপনি কি পেস্ট করার আগে একে পরিষ্কার করতে চান?",
NotCompatiblePaste : "এই কমান্ডটি শুধুমাত্র ইন্টারনেট এক্সপ্লোরার ৫.০ বা তার পরের ভার্সনে পাওয়া সম্ভব। আপনি কি পরিষ্কার না করেই পেস্ট করতে চান?",
UnknownToolbarItem : "অজানা টুলবার আইটেম \"%1\"",
UnknownCommand : "অজানা কমান্ড \"%1\"",
NotImplemented : "কমান্ড ইমপ্লিমেন্ট করা হয়নি",
UnknownToolbarSet : "টুলবার সেট \"%1\" এর অস্তিত্ব নেই",
NoActiveX : "আপনার ব্রাউজারের সুরক্ষা সেটিংস কারনে এডিটরের কিছু ফিচার পাওয়া নাও যেতে পারে। আপনাকে অবশ্যই \"Run ActiveX controls and plug-ins\" এনাবেল করে নিতে হবে। আপনি ভুলভ্রান্তি কিছু কিছু ফিচারের অনুপস্থিতি উপলব্ধি করতে পারেন।",
BrowseServerBlocked : "রিসোর্স ব্রাউজার খোলা গেল না। নিশ্চিত করুন যে সব পপআপ ব্লকার বন্ধ করা আছে।",
DialogBlocked : "ডায়ালগ ইউন্ডো খোলা গেল না। নিশ্চিত করুন যে সব পপআপ ব্লকার বন্ধ করা আছে।",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "ওকে",
DlgBtnCancel : "বাতিল",
DlgBtnClose : "বন্ধ কর",
DlgBtnBrowseServer : "ব্রাউজ সার্ভার",
DlgAdvancedTag : "এডভান্সড",
DlgOpOther : "<অন্য>",
DlgInfoTab : "তথ্য",
DlgAlertUrl : "দয়া করে URL যুক্ত করুন",
// General Dialogs Labels
DlgGenNotSet : "<সেট নেই>",
DlgGenId : "আইডি",
DlgGenLangDir : "ভাষা লেখার দিক",
DlgGenLangDirLtr : "বাম থেকে ডান (LTR)",
DlgGenLangDirRtl : "ডান থেকে বাম (RTL)",
DlgGenLangCode : "ভাষা কোড",
DlgGenAccessKey : "এক্সেস কী",
DlgGenName : "নাম",
DlgGenTabIndex : "ট্যাব ইন্ডেক্স",
DlgGenLongDescr : "URL এর লম্বা বর্ণনা",
DlgGenClass : "স্টাইল-শীট ক্লাস",
DlgGenTitle : "পরামর্শ শীর্ষক",
DlgGenContType : "পরামর্শ কন্টেন্টের প্রকার",
DlgGenLinkCharset : "লিংক রিসোর্স ক্যারেক্টর সেট",
DlgGenStyle : "স্টাইল",
// Image Dialog
DlgImgTitle : "ছবির প্রোপার্টি",
DlgImgInfoTab : "ছবির তথ্য",
DlgImgBtnUpload : "ইহাকে সার্ভারে প্রেরন কর",
DlgImgURL : "URL",
DlgImgUpload : "আপলোড",
DlgImgAlt : "বিকল্প টেক্সট",
DlgImgWidth : "প্রস্থ",
DlgImgHeight : "দৈর্ঘ্য",
DlgImgLockRatio : "অনুপাত লক কর",
DlgBtnResetSize : "সাইজ পূর্বাবস্থায় ফিরিয়ে দাও",
DlgImgBorder : "বর্ডার",
DlgImgHSpace : "হরাইজন্টাল স্পেস",
DlgImgVSpace : "ভার্টিকেল স্পেস",
DlgImgAlign : "এলাইন",
DlgImgAlignLeft : "বামে",
DlgImgAlignAbsBottom: "Abs নীচে",
DlgImgAlignAbsMiddle: "Abs উপর",
DlgImgAlignBaseline : "মূল রেখা",
DlgImgAlignBottom : "নীচে",
DlgImgAlignMiddle : "মধ্য",
DlgImgAlignRight : "ডানে",
DlgImgAlignTextTop : "টেক্সট উপর",
DlgImgAlignTop : "উপর",
DlgImgPreview : "প্রীভিউ",
DlgImgAlertUrl : "অনুগ্রহক করে ছবির URL টাইপ করুন",
DlgImgLinkTab : "লিংক",
// Flash Dialog
DlgFlashTitle : "ফ্ল্যাশ প্রোপার্টি",
DlgFlashChkPlay : "অটো প্লে",
DlgFlashChkLoop : "লূপ",
DlgFlashChkMenu : "ফ্ল্যাশ মেনু এনাবল কর",
DlgFlashScale : "স্কেল",
DlgFlashScaleAll : "সব দেখাও",
DlgFlashScaleNoBorder : "কোনো বর্ডার নেই",
DlgFlashScaleFit : "নিখুঁত ফিট",
// Link Dialog
DlgLnkWindowTitle : "লিংক",
DlgLnkInfoTab : "লিংক তথ্য",
DlgLnkTargetTab : "টার্গেট",
DlgLnkType : "লিংক প্রকার",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "এই পেজে নোঙর কর",
DlgLnkTypeEMail : "ইমেইল",
DlgLnkProto : "প্রোটোকল",
DlgLnkProtoOther : "<অন্য>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "নোঙর বাছাই",
DlgLnkAnchorByName : "নোঙরের নাম দিয়ে",
DlgLnkAnchorById : "নোঙরের আইডি দিয়ে",
DlgLnkNoAnchors : "(No anchors available in the document)", //MISSING
DlgLnkEMail : "ইমেইল ঠিকানা",
DlgLnkEMailSubject : "মেসেজের বিষয়",
DlgLnkEMailBody : "মেসেজের দেহ",
DlgLnkUpload : "আপলোড",
DlgLnkBtnUpload : "একে সার্ভারে পাঠাও",
DlgLnkTarget : "টার্গেট",
DlgLnkTargetFrame : "<ফ্রেম>",
DlgLnkTargetPopup : "<পপআপ উইন্ডো>",
DlgLnkTargetBlank : "নতুন উইন্ডো (_blank)",
DlgLnkTargetParent : "মূল উইন্ডো (_parent)",
DlgLnkTargetSelf : "এই উইন্ডো (_self)",
DlgLnkTargetTop : "শীর্ষ উইন্ডো (_top)",
DlgLnkTargetFrameName : "টার্গেট ফ্রেমের নাম",
DlgLnkPopWinName : "পপআপ উইন্ডোর নাম",
DlgLnkPopWinFeat : "পপআপ উইন্ডো ফীচার সমূহ",
DlgLnkPopResize : "রিসাইজ করা সম্ভব",
DlgLnkPopLocation : "লোকেশন বার",
DlgLnkPopMenu : "মেন্যু বার",
DlgLnkPopScroll : "স্ক্রল বার",
DlgLnkPopStatus : "স্ট্যাটাস বার",
DlgLnkPopToolbar : "টুল বার",
DlgLnkPopFullScrn : "পূর্ণ পর্দা জুড়ে (IE)",
DlgLnkPopDependent : "ডিপেন্ডেন্ট (Netscape)",
DlgLnkPopWidth : "প্রস্থ",
DlgLnkPopHeight : "দৈর্ঘ্য",
DlgLnkPopLeft : "বামের পজিশন",
DlgLnkPopTop : "ডানের পজিশন",
DlnLnkMsgNoUrl : "অনুগ্রহ করে URL লিংক টাইপ করুন",
DlnLnkMsgNoEMail : "অনুগ্রহ করে ইমেইল এড্রেস টাইপ করুন",
DlnLnkMsgNoAnchor : "অনুগ্রহ করে নোঙর বাছাই করুন",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "রং বাছাই কর",
DlgColorBtnClear : "পরিষ্কার কর",
DlgColorHighlight : "হাইলাইট",
DlgColorSelected : "সিলেক্টেড",
// Smiley Dialog
DlgSmileyTitle : "স্মাইলী যুক্ত কর",
// Special Character Dialog
DlgSpecialCharTitle : "বিশেষ ক্যারেক্টার বাছাই কর",
// Table Dialog
DlgTableTitle : "টেবিল প্রোপার্টি",
DlgTableRows : "রো",
DlgTableColumns : "কলাম",
DlgTableBorder : "বর্ডার সাইজ",
DlgTableAlign : "এলাইনমেন্ট",
DlgTableAlignNotSet : "<সেট নেই>",
DlgTableAlignLeft : "বামে",
DlgTableAlignCenter : "মাঝখানে",
DlgTableAlignRight : "ডানে",
DlgTableWidth : "প্রস্থ",
DlgTableWidthPx : "পিক্সেল",
DlgTableWidthPc : "শতকরা",
DlgTableHeight : "দৈর্ঘ্য",
DlgTableCellSpace : "সেল স্পেস",
DlgTableCellPad : "সেল প্যাডিং",
DlgTableCaption : "শীর্ষক",
DlgTableSummary : "সারাংশ",
// Table Cell Dialog
DlgCellTitle : "সেল প্রোপার্টি",
DlgCellWidth : "প্রস্থ",
DlgCellWidthPx : "পিক্সেল",
DlgCellWidthPc : "শতকরা",
DlgCellHeight : "দৈর্ঘ্য",
DlgCellWordWrap : "ওয়ার্ড রেপ",
DlgCellWordWrapNotSet : "<সেট নেই>",
DlgCellWordWrapYes : "হাঁ",
DlgCellWordWrapNo : "না",
DlgCellHorAlign : "হরাইজন্টাল এলাইনমেন্ট",
DlgCellHorAlignNotSet : "<সেট নেই>",
DlgCellHorAlignLeft : "বামে",
DlgCellHorAlignCenter : "মাঝখানে",
DlgCellHorAlignRight: "ডানে",
DlgCellVerAlign : "ভার্টিক্যাল এলাইনমেন্ট",
DlgCellVerAlignNotSet : "<সেট নেই>",
DlgCellVerAlignTop : "উপর",
DlgCellVerAlignMiddle : "মধ্য",
DlgCellVerAlignBottom : "নীচে",
DlgCellVerAlignBaseline : "মূলরেখা",
DlgCellRowSpan : "রো স্প্যান",
DlgCellCollSpan : "কলাম স্প্যান",
DlgCellBackColor : "ব্যাকগ্রাউন্ড রং",
DlgCellBorderColor : "বর্ডারের রং",
DlgCellBtnSelect : "বাছাই কর",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "খোঁজো",
DlgFindFindBtn : "খোঁজো",
DlgFindNotFoundMsg : "আপনার উল্লেখিত টেকস্ট পাওয়া যায়নি",
// Replace Dialog
DlgReplaceTitle : "বদলে দাও",
DlgReplaceFindLbl : "যা খুঁজতে হবে:",
DlgReplaceReplaceLbl : "যার সাথে বদলাতে হবে:",
DlgReplaceCaseChk : "কেস মিলাও",
DlgReplaceReplaceBtn : "বদলে দাও",
DlgReplaceReplAllBtn : "সব বদলে দাও",
DlgReplaceWordChk : "পুরা শব্দ মেলাও",
// Paste Operations / Dialog
PasteErrorCut : "আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl+X)।",
PasteErrorCopy : "আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কপি করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl+C)।",
PasteAsText : "সাদা টেক্সট হিসেবে পেস্ট কর",
PasteFromWord : "ওয়ার্ড থেকে পেস্ট কর",
DlgPasteMsg2 : "অনুগ্রহ করে নীচের বাক্সে কিবোর্ড ব্যবহার করে (<STRONG>Ctrl+V</STRONG>) পেস্ট করুন এবং <STRONG>OK</STRONG> চাপ দিন",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "ফন্ট ফেস ডেফিনেশন ইগনোর করুন",
DlgPasteRemoveStyles : "স্টাইল ডেফিনেশন সরিয়ে দিন",
// Color Picker
ColorAutomatic : "অটোমেটিক",
ColorMoreColors : "আরও রং...",
// Document Properties
DocProps : "ডক্যুমেন্ট প্রোপার্টি",
// Anchor Dialog
DlgAnchorTitle : "নোঙরের প্রোপার্টি",
DlgAnchorName : "নোঙরের নাম",
DlgAnchorErrorName : "নোঙরের নাম টাইপ করুন",
// Speller Pages Dialog
DlgSpellNotInDic : "শব্দকোষে নেই",
DlgSpellChangeTo : "এতে বদলাও",
DlgSpellBtnIgnore : "ইগনোর কর",
DlgSpellBtnIgnoreAll : "সব ইগনোর কর",
DlgSpellBtnReplace : "বদলে দাও",
DlgSpellBtnReplaceAll : "সব বদলে দাও",
DlgSpellBtnUndo : "আন্ডু",
DlgSpellNoSuggestions : "- কোন সাজেশন নেই -",
DlgSpellProgress : "বানান পরীক্ষা চলছে...",
DlgSpellNoMispell : "বানান পরীক্ষা শেষ: কোন ভুল বানান পাওয়া যায়নি",
DlgSpellNoChanges : "বানান পরীক্ষা শেষ: কোন শব্দ পরিবর্তন করা হয়নি",
DlgSpellOneChange : "বানান পরীক্ষা শেষ: একটি মাত্র শব্দ পরিবর্তন করা হয়েছে",
DlgSpellManyChanges : "বানান পরীক্ষা শেষ: %1 গুলো শব্দ বদলে গ্যাছে",
IeSpellDownload : "বানান পরীক্ষক ইনস্টল করা নেই। আপনি কি এখনই এটা ডাউনলোড করতে চান?",
// Button Dialog
DlgButtonText : "টেক্সট (ভ্যালু)",
DlgButtonType : "প্রকার",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "নাম",
DlgCheckboxValue : "ভ্যালু",
DlgCheckboxSelected : "সিলেক্টেড",
// Form Dialog
DlgFormName : "নাম",
DlgFormAction : "একশ্যন",
DlgFormMethod : "পদ্ধতি",
// Select Field Dialog
DlgSelectName : "নাম",
DlgSelectValue : "ভ্যালু",
DlgSelectSize : "সাইজ",
DlgSelectLines : "লাইন সমূহ",
DlgSelectChkMulti : "একাধিক সিলেকশন এলাউ কর",
DlgSelectOpAvail : "অন্যান্য বিকল্প",
DlgSelectOpText : "টেক্সট",
DlgSelectOpValue : "ভ্যালু",
DlgSelectBtnAdd : "যুক্ত",
DlgSelectBtnModify : "বদলে দাও",
DlgSelectBtnUp : "উপর",
DlgSelectBtnDown : "নীচে",
DlgSelectBtnSetValue : "বাছাই করা ভ্যালু হিসেবে সেট কর",
DlgSelectBtnDelete : "ডিলীট",
// Textarea Dialog
DlgTextareaName : "নাম",
DlgTextareaCols : "কলাম",
DlgTextareaRows : "রো",
// Text Field Dialog
DlgTextName : "নাম",
DlgTextValue : "ভ্যালু",
DlgTextCharWidth : "ক্যারেক্টার প্রশস্ততা",
DlgTextMaxChars : "সর্বাধিক ক্যারেক্টার",
DlgTextType : "টাইপ",
DlgTextTypeText : "টেক্সট",
DlgTextTypePass : "পাসওয়ার্ড",
// Hidden Field Dialog
DlgHiddenName : "নাম",
DlgHiddenValue : "ভ্যালু",
// Bulleted List Dialog
BulletedListProp : "বুলেটেড সূচী প্রোপার্টি",
NumberedListProp : "সাংখ্যিক সূচী প্রোপার্টি",
DlgLstStart : "Start", //MISSING
DlgLstType : "প্রকার",
DlgLstTypeCircle : "গোল",
DlgLstTypeDisc : "ডিস্ক",
DlgLstTypeSquare : "চৌকোণা",
DlgLstTypeNumbers : "সংখ্যা (1, 2, 3)",
DlgLstTypeLCase : "ছোট অক্ষর (a, b, c)",
DlgLstTypeUCase : "বড় অক্ষর (A, B, C)",
DlgLstTypeSRoman : "ছোট রোমান সংখ্যা (i, ii, iii)",
DlgLstTypeLRoman : "বড় রোমান সংখ্যা (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "সাধারন",
DlgDocBackTab : "ব্যাকগ্রাউন্ড",
DlgDocColorsTab : "রং এবং মার্জিন",
DlgDocMetaTab : "মেটাডেটা",
DlgDocPageTitle : "পেজ শীর্ষক",
DlgDocLangDir : "ভাষা লিখার দিক",
DlgDocLangDirLTR : "বাম থেকে ডানে (LTR)",
DlgDocLangDirRTL : "ডান থেকে বামে (RTL)",
DlgDocLangCode : "ভাষা কোড",
DlgDocCharSet : "ক্যারেক্টার সেট এনকোডিং",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "অন্য ক্যারেক্টার সেট এনকোডিং",
DlgDocDocType : "ডক্যুমেন্ট টাইপ হেডিং",
DlgDocDocTypeOther : "অন্য ডক্যুমেন্ট টাইপ হেডিং",
DlgDocIncXHTML : "XHTML ডেক্লারেশন যুক্ত কর",
DlgDocBgColor : "ব্যাকগ্রাউন্ড রং",
DlgDocBgImage : "ব্যাকগ্রাউন্ড ছবির URL",
DlgDocBgNoScroll : "স্ক্রলহীন ব্যাকগ্রাউন্ড",
DlgDocCText : "টেক্সট",
DlgDocCLink : "লিংক",
DlgDocCVisited : "ভিজিট করা লিংক",
DlgDocCActive : "সক্রিয় লিংক",
DlgDocMargins : "পেজ মার্জিন",
DlgDocMaTop : "উপর",
DlgDocMaLeft : "বামে",
DlgDocMaRight : "ডানে",
DlgDocMaBottom : "নীচে",
DlgDocMeIndex : "ডক্যুমেন্ট ইন্ডেক্স কিওয়ার্ড (কমা দ্বারা বিচ্ছিন্ন)",
DlgDocMeDescr : "ডক্যূমেন্ট বর্ণনা",
DlgDocMeAuthor : "লেখক",
DlgDocMeCopy : "কপীরাইট",
DlgDocPreview : "প্রীভিউ",
// Templates Dialog
Templates : "টেমপ্লেট",
DlgTemplatesTitle : "কনটেন্ট টেমপ্লেট",
DlgTemplatesSelMsg : "অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):",
DlgTemplatesLoading : "টেমপ্লেট লিস্ট হারিয়ে যাবে। অনুগ্রহ করে অপেক্ষা করুন...",
DlgTemplatesNoTpl : "(কোন টেমপ্লেট ডিফাইন করা নেই)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "কে বানিয়েছে",
DlgAboutBrowserInfoTab : "ব্রাউজারের ব্যাপারে তথ্য",
DlgAboutLicenseTab : "লাইসেন্স",
DlgAboutVersion : "ভার্সন",
DlgAboutInfo : "আরও তথ্যের জন্য যান",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Bulgarian language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Скрий панела с инструментите",
ToolbarExpand : "Покажи панела с инструментите",
// Toolbar Items and Context Menu
Save : "Запази",
NewPage : "Нова страница",
Preview : "Предварителен изглед",
Cut : "Изрежи",
Copy : "Запамети",
Paste : "Вмъкни",
PasteText : "Вмъкни само текст",
PasteWord : "Вмъкни от MS Word",
Print : "Печат",
SelectAll : "Селектирай всичко",
RemoveFormat : "Изтрий форматирането",
InsertLinkLbl : "Връзка",
InsertLink : "Добави/Редактирай връзка",
RemoveLink : "Изтрий връзка",
VisitLink : "Open Link", //MISSING
Anchor : "Добави/Редактирай котва",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Изображение",
InsertImage : "Добави/Редактирай изображение",
InsertFlashLbl : "Flash",
InsertFlash : "Добави/Редактиай Flash обект",
InsertTableLbl : "Таблица",
InsertTable : "Добави/Редактирай таблица",
InsertLineLbl : "Линия",
InsertLine : "Вмъкни хоризонтална линия",
InsertSpecialCharLbl: "Специален символ",
InsertSpecialChar : "Вмъкни специален символ",
InsertSmileyLbl : "Усмивка",
InsertSmiley : "Добави усмивка",
About : "За FCKeditor",
Bold : "Удебелен",
Italic : "Курсив",
Underline : "Подчертан",
StrikeThrough : "Зачертан",
Subscript : "Индекс за база",
Superscript : "Индекс за степен",
LeftJustify : "Подравняване в ляво",
CenterJustify : "Подравнявне в средата",
RightJustify : "Подравняване в дясно",
BlockJustify : "Двустранно подравняване",
DecreaseIndent : "Намали отстъпа",
IncreaseIndent : "Увеличи отстъпа",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Отмени",
Redo : "Повтори",
NumberedListLbl : "Нумериран списък",
NumberedList : "Добави/Изтрий нумериран списък",
BulletedListLbl : "Ненумериран списък",
BulletedList : "Добави/Изтрий ненумериран списък",
ShowTableBorders : "Покажи рамките на таблицата",
ShowDetails : "Покажи подробности",
Style : "Стил",
FontFormat : "Формат",
Font : "Шрифт",
FontSize : "Размер",
TextColor : "Цвят на текста",
BGColor : "Цвят на фона",
Source : "Код",
Find : "Търси",
Replace : "Замести",
SpellCheck : "Провери правописа",
UniversalKeyboard : "Универсална клавиатура",
PageBreakLbl : "Нов ред",
PageBreak : "Вмъкни нов ред",
Form : "Формуляр",
Checkbox : "Поле за отметка",
RadioButton : "Поле за опция",
TextField : "Текстово поле",
Textarea : "Текстова област",
HiddenField : "Скрито поле",
Button : "Бутон",
SelectionField : "Падащо меню с опции",
ImageButton : "Бутон-изображение",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Редактирай връзка",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Изтрий редовете",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Изтрий колоните",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Изтрий клетките",
MergeCells : "Обедини клетките",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Изтрий таблицата",
CellProperties : "Параметри на клетката",
TableProperties : "Параметри на таблицата",
ImageProperties : "Параметри на изображението",
FlashProperties : "Параметри на Flash обекта",
AnchorProp : "Параметри на котвата",
ButtonProp : "Параметри на бутона",
CheckboxProp : "Параметри на полето за отметка",
HiddenFieldProp : "Параметри на скритото поле",
RadioButtonProp : "Параметри на полето за опция",
ImageButtonProp : "Параметри на бутона-изображение",
TextFieldProp : "Параметри на текстовото-поле",
SelectionFieldProp : "Параметри на падащото меню с опции",
TextareaProp : "Параметри на текстовата област",
FormProp : "Параметри на формуляра",
FontFormats : "Нормален;Форматиран;Адрес;Заглавие 1;Заглавие 2;Заглавие 3;Заглавие 4;Заглавие 5;Заглавие 6;Параграф (DIV)",
// Alerts and Messages
ProcessingXHTML : "Обработка на XHTML. Моля изчакайте...",
Done : "Готово",
PasteWordConfirm : "Текстът, който искате да вмъкнете е копиран от MS Word. Желаете ли да бъде изчистен преди вмъкването?",
NotCompatiblePaste : "Тази операция изисква MS Internet Explorer версия 5.5 или по-висока. Желаете ли да вмъкнете запаметеното без изчистване?",
UnknownToolbarItem : "Непознат инструмент \"%1\"",
UnknownCommand : "Непозната команда \"%1\"",
NotImplemented : "Командата не е имплементирана",
UnknownToolbarSet : "Панелът \"%1\" не съществува",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "ОК",
DlgBtnCancel : "Отказ",
DlgBtnClose : "Затвори",
DlgBtnBrowseServer : "Разгледай сървъра",
DlgAdvancedTag : "Подробности...",
DlgOpOther : "<Друго>",
DlgInfoTab : "Информация",
DlgAlertUrl : "Моля, въведете пълния път (URL)",
// General Dialogs Labels
DlgGenNotSet : "<не е настроен>",
DlgGenId : "Идентификатор",
DlgGenLangDir : "посока на речта",
DlgGenLangDirLtr : "От ляво на дясно",
DlgGenLangDirRtl : "От дясно на ляво",
DlgGenLangCode : "Код на езика",
DlgGenAccessKey : "Бърз клавиш",
DlgGenName : "Име",
DlgGenTabIndex : "Ред на достъп",
DlgGenLongDescr : "Описание на връзката",
DlgGenClass : "Клас от стиловите таблици",
DlgGenTitle : "Препоръчително заглавие",
DlgGenContType : "Препоръчителен тип на съдържанието",
DlgGenLinkCharset : "Тип на свързания ресурс",
DlgGenStyle : "Стил",
// Image Dialog
DlgImgTitle : "Параметри на изображението",
DlgImgInfoTab : "Информация за изображението",
DlgImgBtnUpload : "Прати към сървъра",
DlgImgURL : "Пълен път (URL)",
DlgImgUpload : "Качи",
DlgImgAlt : "Алтернативен текст",
DlgImgWidth : "Ширина",
DlgImgHeight : "Височина",
DlgImgLockRatio : "Запази пропорцията",
DlgBtnResetSize : "Възстанови размера",
DlgImgBorder : "Рамка",
DlgImgHSpace : "Хоризонтален отстъп",
DlgImgVSpace : "Вертикален отстъп",
DlgImgAlign : "Подравняване",
DlgImgAlignLeft : "Ляво",
DlgImgAlignAbsBottom: "Най-долу",
DlgImgAlignAbsMiddle: "Точно по средата",
DlgImgAlignBaseline : "По базовата линия",
DlgImgAlignBottom : "Долу",
DlgImgAlignMiddle : "По средата",
DlgImgAlignRight : "Дясно",
DlgImgAlignTextTop : "Върху текста",
DlgImgAlignTop : "Отгоре",
DlgImgPreview : "Изглед",
DlgImgAlertUrl : "Моля, въведете пълния път до изображението",
DlgImgLinkTab : "Връзка",
// Flash Dialog
DlgFlashTitle : "Параметри на Flash обекта",
DlgFlashChkPlay : "Автоматично стартиране",
DlgFlashChkLoop : "Ново стартиране след завършването",
DlgFlashChkMenu : "Разрешено Flash меню",
DlgFlashScale : "Оразмеряване",
DlgFlashScaleAll : "Покажи целия обект",
DlgFlashScaleNoBorder : "Без рамка",
DlgFlashScaleFit : "Според мястото",
// Link Dialog
DlgLnkWindowTitle : "Връзка",
DlgLnkInfoTab : "Информация за връзката",
DlgLnkTargetTab : "Цел",
DlgLnkType : "Вид на връзката",
DlgLnkTypeURL : "Пълен път (URL)",
DlgLnkTypeAnchor : "Котва в текущата страница",
DlgLnkTypeEMail : "Е-поща",
DlgLnkProto : "Протокол",
DlgLnkProtoOther : "<друго>",
DlgLnkURL : "Пълен път (URL)",
DlgLnkAnchorSel : "Изберете котва",
DlgLnkAnchorByName : "По име на котвата",
DlgLnkAnchorById : "По идентификатор на елемент",
DlgLnkNoAnchors : "(Няма котви в текущия документ)",
DlgLnkEMail : "Адрес за е-поща",
DlgLnkEMailSubject : "Тема на писмото",
DlgLnkEMailBody : "Текст на писмото",
DlgLnkUpload : "Качи",
DlgLnkBtnUpload : "Прати на сървъра",
DlgLnkTarget : "Цел",
DlgLnkTargetFrame : "<рамка>",
DlgLnkTargetPopup : "<дъщерен прозорец>",
DlgLnkTargetBlank : "Нов прозорец (_blank)",
DlgLnkTargetParent : "Родителски прозорец (_parent)",
DlgLnkTargetSelf : "Активния прозорец (_self)",
DlgLnkTargetTop : "Целия прозорец (_top)",
DlgLnkTargetFrameName : "Име на целевия прозорец",
DlgLnkPopWinName : "Име на дъщерния прозорец",
DlgLnkPopWinFeat : "Параметри на дъщерния прозорец",
DlgLnkPopResize : "С променливи размери",
DlgLnkPopLocation : "Поле за адрес",
DlgLnkPopMenu : "Меню",
DlgLnkPopScroll : "Плъзгач",
DlgLnkPopStatus : "Поле за статус",
DlgLnkPopToolbar : "Панел с бутони",
DlgLnkPopFullScrn : "Голям екран (MS IE)",
DlgLnkPopDependent : "Зависим (Netscape)",
DlgLnkPopWidth : "Ширина",
DlgLnkPopHeight : "Височина",
DlgLnkPopLeft : "Координати - X",
DlgLnkPopTop : "Координати - Y",
DlnLnkMsgNoUrl : "Моля, напишете пълния път (URL)",
DlnLnkMsgNoEMail : "Моля, напишете адреса за е-поща",
DlnLnkMsgNoAnchor : "Моля, изберете котва",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Изберете цвят",
DlgColorBtnClear : "Изчисти",
DlgColorHighlight : "Текущ",
DlgColorSelected : "Избран",
// Smiley Dialog
DlgSmileyTitle : "Добави усмивка",
// Special Character Dialog
DlgSpecialCharTitle : "Изберете специален символ",
// Table Dialog
DlgTableTitle : "Параметри на таблицата",
DlgTableRows : "Редове",
DlgTableColumns : "Колони",
DlgTableBorder : "Размер на рамката",
DlgTableAlign : "Подравняване",
DlgTableAlignNotSet : "<Не е избрано>",
DlgTableAlignLeft : "Ляво",
DlgTableAlignCenter : "Център",
DlgTableAlignRight : "Дясно",
DlgTableWidth : "Ширина",
DlgTableWidthPx : "пиксели",
DlgTableWidthPc : "проценти",
DlgTableHeight : "Височина",
DlgTableCellSpace : "Разстояние между клетките",
DlgTableCellPad : "Отстъп на съдържанието в клетките",
DlgTableCaption : "Заглавие",
DlgTableSummary : "Резюме",
// Table Cell Dialog
DlgCellTitle : "Параметри на клетката",
DlgCellWidth : "Ширина",
DlgCellWidthPx : "пиксели",
DlgCellWidthPc : "проценти",
DlgCellHeight : "Височина",
DlgCellWordWrap : "пренасяне на нов ред",
DlgCellWordWrapNotSet : "<Не е настроено>",
DlgCellWordWrapYes : "Да",
DlgCellWordWrapNo : "не",
DlgCellHorAlign : "Хоризонтално подравняване",
DlgCellHorAlignNotSet : "<Не е настроено>",
DlgCellHorAlignLeft : "Ляво",
DlgCellHorAlignCenter : "Център",
DlgCellHorAlignRight: "Дясно",
DlgCellVerAlign : "Вертикално подравняване",
DlgCellVerAlignNotSet : "<Не е настроено>",
DlgCellVerAlignTop : "Горе",
DlgCellVerAlignMiddle : "По средата",
DlgCellVerAlignBottom : "Долу",
DlgCellVerAlignBaseline : "По базовата линия",
DlgCellRowSpan : "повече от един ред",
DlgCellCollSpan : "повече от една колона",
DlgCellBackColor : "фонов цвят",
DlgCellBorderColor : "цвят на рамката",
DlgCellBtnSelect : "Изберете...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Търси",
DlgFindFindBtn : "Търси",
DlgFindNotFoundMsg : "Указания текст не беше намерен.",
// Replace Dialog
DlgReplaceTitle : "Замести",
DlgReplaceFindLbl : "Търси:",
DlgReplaceReplaceLbl : "Замести с:",
DlgReplaceCaseChk : "Със същия регистър",
DlgReplaceReplaceBtn : "Замести",
DlgReplaceReplAllBtn : "Замести всички",
DlgReplaceWordChk : "Търси същата дума",
// Paste Operations / Dialog
PasteErrorCut : "Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни изрязването. За целта използвайте клавиатурата (Ctrl+X).",
PasteErrorCopy : "Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни запаметяването. За целта използвайте клавиатурата (Ctrl+C).",
PasteAsText : "Вмъкни като чист текст",
PasteFromWord : "Вмъкни от MS Word",
DlgPasteMsg2 : "Вмъкнете тук съдъжанието с клавиатуарата (<STRONG>Ctrl+V</STRONG>) и натиснете <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Игнорирай шрифтовите дефиниции",
DlgPasteRemoveStyles : "Изтрий стиловите дефиниции",
// Color Picker
ColorAutomatic : "По подразбиране",
ColorMoreColors : "Други цветове...",
// Document Properties
DocProps : "Параметри на документа",
// Anchor Dialog
DlgAnchorTitle : "Параметри на котвата",
DlgAnchorName : "Име на котвата",
DlgAnchorErrorName : "Моля, въведете име на котвата",
// Speller Pages Dialog
DlgSpellNotInDic : "Липсва в речника",
DlgSpellChangeTo : "Промени на",
DlgSpellBtnIgnore : "Игнорирай",
DlgSpellBtnIgnoreAll : "Игнорирай всички",
DlgSpellBtnReplace : "Замести",
DlgSpellBtnReplaceAll : "Замести всички",
DlgSpellBtnUndo : "Отмени",
DlgSpellNoSuggestions : "- Няма предложения -",
DlgSpellProgress : "Извършване на проверката за правопис...",
DlgSpellNoMispell : "Проверката за правопис завършена: не са открити правописни грешки",
DlgSpellNoChanges : "Проверката за правопис завършена: няма променени думи",
DlgSpellOneChange : "Проверката за правопис завършена: една дума е променена",
DlgSpellManyChanges : "Проверката за правопис завършена: %1 думи са променени",
IeSpellDownload : "Инструментът за проверка на правопис не е инсталиран. Желаете ли да го инсталирате ?",
// Button Dialog
DlgButtonText : "Текст (Стойност)",
DlgButtonType : "Тип",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Име",
DlgCheckboxValue : "Стойност",
DlgCheckboxSelected : "Отметнато",
// Form Dialog
DlgFormName : "Име",
DlgFormAction : "Действие",
DlgFormMethod : "Метод",
// Select Field Dialog
DlgSelectName : "Име",
DlgSelectValue : "Стойност",
DlgSelectSize : "Размер",
DlgSelectLines : "линии",
DlgSelectChkMulti : "Разрешено множествено селектиране",
DlgSelectOpAvail : "Възможни опции",
DlgSelectOpText : "Текст",
DlgSelectOpValue : "Стойност",
DlgSelectBtnAdd : "Добави",
DlgSelectBtnModify : "Промени",
DlgSelectBtnUp : "Нагоре",
DlgSelectBtnDown : "Надолу",
DlgSelectBtnSetValue : "Настрой като избрана стойност",
DlgSelectBtnDelete : "Изтрий",
// Textarea Dialog
DlgTextareaName : "Име",
DlgTextareaCols : "Колони",
DlgTextareaRows : "Редове",
// Text Field Dialog
DlgTextName : "Име",
DlgTextValue : "Стойност",
DlgTextCharWidth : "Ширина на символите",
DlgTextMaxChars : "Максимум символи",
DlgTextType : "Тип",
DlgTextTypeText : "Текст",
DlgTextTypePass : "Парола",
// Hidden Field Dialog
DlgHiddenName : "Име",
DlgHiddenValue : "Стойност",
// Bulleted List Dialog
BulletedListProp : "Параметри на ненумерирания списък",
NumberedListProp : "Параметри на нумерирания списък",
DlgLstStart : "Start", //MISSING
DlgLstType : "Тип",
DlgLstTypeCircle : "Окръжност",
DlgLstTypeDisc : "Кръг",
DlgLstTypeSquare : "Квадрат",
DlgLstTypeNumbers : "Числа (1, 2, 3)",
DlgLstTypeLCase : "Малки букви (a, b, c)",
DlgLstTypeUCase : "Големи букви (A, B, C)",
DlgLstTypeSRoman : "Малки римски числа (i, ii, iii)",
DlgLstTypeLRoman : "Големи римски числа (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Общи",
DlgDocBackTab : "Фон",
DlgDocColorsTab : "Цветове и отстъпи",
DlgDocMetaTab : "Мета данни",
DlgDocPageTitle : "Заглавие на страницата",
DlgDocLangDir : "Посока на речта",
DlgDocLangDirLTR : "От ляво на дясно",
DlgDocLangDirRTL : "От дясно на ляво",
DlgDocLangCode : "Код на езика",
DlgDocCharSet : "Кодиране на символите",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Друго кодиране на символите",
DlgDocDocType : "Тип на документа",
DlgDocDocTypeOther : "Друг тип на документа",
DlgDocIncXHTML : "Включи XHTML декларация",
DlgDocBgColor : "Цвят на фона",
DlgDocBgImage : "Пълен път до фоновото изображение",
DlgDocBgNoScroll : "Не-повтарящо се фоново изображение",
DlgDocCText : "Текст",
DlgDocCLink : "Връзка",
DlgDocCVisited : "Посетена връзка",
DlgDocCActive : "Активна връзка",
DlgDocMargins : "Отстъпи на страницата",
DlgDocMaTop : "Горе",
DlgDocMaLeft : "Ляво",
DlgDocMaRight : "Дясно",
DlgDocMaBottom : "Долу",
DlgDocMeIndex : "Ключови думи за документа (разделени със запетаи)",
DlgDocMeDescr : "Описание на документа",
DlgDocMeAuthor : "Автор",
DlgDocMeCopy : "Авторски права",
DlgDocPreview : "Изглед",
// Templates Dialog
Templates : "Шаблони",
DlgTemplatesTitle : "Шаблони",
DlgTemplatesSelMsg : "Изберете шаблон <br>(текущото съдържание на редактора ще бъде загубено):",
DlgTemplatesLoading : "Зареждане на списъка с шаблоните. Моля изчакайте...",
DlgTemplatesNoTpl : "(Няма дефинирани шаблони)",
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "За",
DlgAboutBrowserInfoTab : "Информация за браузъра",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "версия",
DlgAboutInfo : "За повече информация посетете",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Esperanto language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Kaŝi Ilobreton",
ToolbarExpand : "Vidigi Ilojn",
// Toolbar Items and Context Menu
Save : "Sekurigi",
NewPage : "Nova Paĝo",
Preview : "Vidigi Aspekton",
Cut : "Eltondi",
Copy : "Kopii",
Paste : "Interglui",
PasteText : "Interglui kiel Tekston",
PasteWord : "Interglui el Word",
Print : "Presi",
SelectAll : "Elekti ĉion",
RemoveFormat : "Forigi Formaton",
InsertLinkLbl : "Ligilo",
InsertLink : "Enmeti/Ŝanĝi Ligilon",
RemoveLink : "Forigi Ligilon",
VisitLink : "Open Link", //MISSING
Anchor : "Enmeti/Ŝanĝi Ankron",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Bildo",
InsertImage : "Enmeti/Ŝanĝi Bildon",
InsertFlashLbl : "Flash", //MISSING
InsertFlash : "Insert/Edit Flash", //MISSING
InsertTableLbl : "Tabelo",
InsertTable : "Enmeti/Ŝanĝi Tabelon",
InsertLineLbl : "Horizonta Linio",
InsertLine : "Enmeti Horizonta Linio",
InsertSpecialCharLbl: "Speciala Signo",
InsertSpecialChar : "Enmeti Specialan Signon",
InsertSmileyLbl : "Mienvinjeto",
InsertSmiley : "Enmeti Mienvinjeton",
About : "Pri FCKeditor",
Bold : "Grasa",
Italic : "Kursiva",
Underline : "Substreko",
StrikeThrough : "Trastreko",
Subscript : "Subskribo",
Superscript : "Superskribo",
LeftJustify : "Maldekstrigi",
CenterJustify : "Centrigi",
RightJustify : "Dekstrigi",
BlockJustify : "Ĝisrandigi Ambaŭflanke",
DecreaseIndent : "Malpligrandigi Krommarĝenon",
IncreaseIndent : "Pligrandigi Krommarĝenon",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Malfari",
Redo : "Refari",
NumberedListLbl : "Numera Listo",
NumberedList : "Enmeti/Forigi Numeran Liston",
BulletedListLbl : "Bula Listo",
BulletedList : "Enmeti/Forigi Bulan Liston",
ShowTableBorders : "Vidigi Borderojn de Tabelo",
ShowDetails : "Vidigi Detalojn",
Style : "Stilo",
FontFormat : "Formato",
Font : "Tiparo",
FontSize : "Grando",
TextColor : "Teksta Koloro",
BGColor : "Fona Koloro",
Source : "Fonto",
Find : "Serĉi",
Replace : "Anstataŭigi",
SpellCheck : "Literumada Kontrolilo",
UniversalKeyboard : "Universala Klavaro",
PageBreakLbl : "Page Break", //MISSING
PageBreak : "Insert Page Break", //MISSING
Form : "Formularo",
Checkbox : "Markobutono",
RadioButton : "Radiobutono",
TextField : "Teksta kampo",
Textarea : "Teksta Areo",
HiddenField : "Kaŝita Kampo",
Button : "Butono",
SelectionField : "Elekta Kampo",
ImageButton : "Bildbutono",
FitWindow : "Maximize the editor size", //MISSING
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Modifier Ligilon",
CellCM : "Cell", //MISSING
RowCM : "Row", //MISSING
ColumnCM : "Column", //MISSING
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Forigi Liniojn",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Forigi Kolumnojn",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Forigi Ĉelojn",
MergeCells : "Kunfandi Ĉelojn",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Delete Table", //MISSING
CellProperties : "Atributoj de Ĉelo",
TableProperties : "Atributoj de Tabelo",
ImageProperties : "Atributoj de Bildo",
FlashProperties : "Flash Properties", //MISSING
AnchorProp : "Ankraj Atributoj",
ButtonProp : "Butonaj Atributoj",
CheckboxProp : "Markobutonaj Atributoj",
HiddenFieldProp : "Atributoj de Kaŝita Kampo",
RadioButtonProp : "Radiobutonaj Atributoj",
ImageButtonProp : "Bildbutonaj Atributoj",
TextFieldProp : "Atributoj de Teksta Kampo",
SelectionFieldProp : "Atributoj de Elekta Kampo",
TextareaProp : "Atributoj de Teksta Areo",
FormProp : "Formularaj Atributoj",
FontFormats : "Normala;Formatita;Adreso;Titolo 1;Titolo 2;Titolo 3;Titolo 4;Titolo 5;Titolo 6;Paragrafo (DIV)",
// Alerts and Messages
ProcessingXHTML : "Traktado de XHTML. Bonvolu pacienci...",
Done : "Finita",
PasteWordConfirm : "La algluota teksto ŝajnas esti Word-devena. Ĉu vi volas purigi ĝin antaŭ ol interglui?",
NotCompatiblePaste : "Tiu ĉi komando bezonas almenaŭ Internet Explorer 5.5. Ĉu vi volas daŭrigi sen purigado?",
UnknownToolbarItem : "Ilobretero nekonata \"%1\"",
UnknownCommand : "Komandonomo nekonata \"%1\"",
NotImplemented : "Komando ne ankoraŭ realigita",
UnknownToolbarSet : "La ilobreto \"%1\" ne ekzistas",
NoActiveX : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING
BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.", //MISSING
DialogBlocked : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.", //MISSING
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "Akcepti",
DlgBtnCancel : "Rezigni",
DlgBtnClose : "Fermi",
DlgBtnBrowseServer : "Foliumi en la Servilo",
DlgAdvancedTag : "Speciala",
DlgOpOther : "<Alia>",
DlgInfoTab : "Info", //MISSING
DlgAlertUrl : "Please insert the URL", //MISSING
// General Dialogs Labels
DlgGenNotSet : "<Defaŭlta>",
DlgGenId : "Id",
DlgGenLangDir : "Skribdirekto",
DlgGenLangDirLtr : "De maldekstro dekstren (LTR)",
DlgGenLangDirRtl : "De dekstro maldekstren (RTL)",
DlgGenLangCode : "Lingva Kodo",
DlgGenAccessKey : "Fulmoklavo",
DlgGenName : "Nomo",
DlgGenTabIndex : "Taba Ordo",
DlgGenLongDescr : "URL de Longa Priskribo",
DlgGenClass : "Klasoj de Stilfolioj",
DlgGenTitle : "Indika Titolo",
DlgGenContType : "Indika Enhavotipo",
DlgGenLinkCharset : "Signaro de la Ligita Rimedo",
DlgGenStyle : "Stilo",
// Image Dialog
DlgImgTitle : "Atributoj de Bildo",
DlgImgInfoTab : "Informoj pri Bildo",
DlgImgBtnUpload : "Sendu al Servilo",
DlgImgURL : "URL",
DlgImgUpload : "Alŝuti",
DlgImgAlt : "Anstataŭiga Teksto",
DlgImgWidth : "Larĝo",
DlgImgHeight : "Alto",
DlgImgLockRatio : "Konservi Proporcion",
DlgBtnResetSize : "Origina Grando",
DlgImgBorder : "Bordero",
DlgImgHSpace : "HSpaco",
DlgImgVSpace : "VSpaco",
DlgImgAlign : "Ĝisrandigo",
DlgImgAlignLeft : "Maldekstre",
DlgImgAlignAbsBottom: "Abs Malsupre",
DlgImgAlignAbsMiddle: "Abs Centre",
DlgImgAlignBaseline : "Je Malsupro de Teksto",
DlgImgAlignBottom : "Malsupre",
DlgImgAlignMiddle : "Centre",
DlgImgAlignRight : "Dekstre",
DlgImgAlignTextTop : "Je Supro de Teksto",
DlgImgAlignTop : "Supre",
DlgImgPreview : "Vidigi Aspekton",
DlgImgAlertUrl : "Bonvolu tajpi la URL de la bildo",
DlgImgLinkTab : "Link", //MISSING
// Flash Dialog
DlgFlashTitle : "Flash Properties", //MISSING
DlgFlashChkPlay : "Auto Play", //MISSING
DlgFlashChkLoop : "Loop", //MISSING
DlgFlashChkMenu : "Enable Flash Menu", //MISSING
DlgFlashScale : "Scale", //MISSING
DlgFlashScaleAll : "Show all", //MISSING
DlgFlashScaleNoBorder : "No Border", //MISSING
DlgFlashScaleFit : "Exact Fit", //MISSING
// Link Dialog
DlgLnkWindowTitle : "Ligilo",
DlgLnkInfoTab : "Informoj pri la Ligilo",
DlgLnkTargetTab : "Celo",
DlgLnkType : "Tipo de Ligilo",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Ankri en tiu ĉi paĝo",
DlgLnkTypeEMail : "Retpoŝto",
DlgLnkProto : "Protokolo",
DlgLnkProtoOther : "<alia>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Elekti Ankron",
DlgLnkAnchorByName : "Per Ankronomo",
DlgLnkAnchorById : "Per Elementidentigilo",
DlgLnkNoAnchors : "<Ne disponeblas ankroj en la dokumento>",
DlgLnkEMail : "Retadreso",
DlgLnkEMailSubject : "Temlinio",
DlgLnkEMailBody : "Mesaĝa korpo",
DlgLnkUpload : "Alŝuti",
DlgLnkBtnUpload : "Sendi al Servilo",
DlgLnkTarget : "Celo",
DlgLnkTargetFrame : "<kadro>",
DlgLnkTargetPopup : "<ŝprucfenestro>",
DlgLnkTargetBlank : "Nova Fenestro (_blank)",
DlgLnkTargetParent : "Gepatra Fenestro (_parent)",
DlgLnkTargetSelf : "Sama Fenestro (_self)",
DlgLnkTargetTop : "Plej Supra Fenestro (_top)",
DlgLnkTargetFrameName : "Nomo de Kadro",
DlgLnkPopWinName : "Nomo de Ŝprucfenestro",
DlgLnkPopWinFeat : "Atributoj de la Ŝprucfenestro",
DlgLnkPopResize : "Grando Ŝanĝebla",
DlgLnkPopLocation : "Adresobreto",
DlgLnkPopMenu : "Menubreto",
DlgLnkPopScroll : "Rulumlisteloj",
DlgLnkPopStatus : "Statobreto",
DlgLnkPopToolbar : "Ilobreto",
DlgLnkPopFullScrn : "Tutekrane (IE)",
DlgLnkPopDependent : "Dependa (Netscape)",
DlgLnkPopWidth : "Larĝo",
DlgLnkPopHeight : "Alto",
DlgLnkPopLeft : "Pozicio de Maldekstro",
DlgLnkPopTop : "Pozicio de Supro",
DlnLnkMsgNoUrl : "Bonvolu entajpi la URL-on",
DlnLnkMsgNoEMail : "Bonvolu entajpi la retadreson",
DlnLnkMsgNoAnchor : "Bonvolu elekti ankron",
DlnLnkMsgInvPopName : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING
// Color Dialog
DlgColorTitle : "Elekti",
DlgColorBtnClear : "Forigi",
DlgColorHighlight : "Emfazi",
DlgColorSelected : "Elektita",
// Smiley Dialog
DlgSmileyTitle : "Enmeti Mienvinjeton",
// Special Character Dialog
DlgSpecialCharTitle : "Enmeti Specialan Signon",
// Table Dialog
DlgTableTitle : "Atributoj de Tabelo",
DlgTableRows : "Linioj",
DlgTableColumns : "Kolumnoj",
DlgTableBorder : "Bordero",
DlgTableAlign : "Ĝisrandigo",
DlgTableAlignNotSet : "<Defaŭlte>",
DlgTableAlignLeft : "Maldekstre",
DlgTableAlignCenter : "Centre",
DlgTableAlignRight : "Dekstre",
DlgTableWidth : "Larĝo",
DlgTableWidthPx : "Bitbilderoj",
DlgTableWidthPc : "elcentoj",
DlgTableHeight : "Alto",
DlgTableCellSpace : "Interspacigo de Ĉeloj",
DlgTableCellPad : "Ĉirkaŭenhava Plenigado",
DlgTableCaption : "Titolo",
DlgTableSummary : "Summary", //MISSING
// Table Cell Dialog
DlgCellTitle : "Atributoj de Celo",
DlgCellWidth : "Larĝo",
DlgCellWidthPx : "bitbilderoj",
DlgCellWidthPc : "elcentoj",
DlgCellHeight : "Alto",
DlgCellWordWrap : "Linifaldo",
DlgCellWordWrapNotSet : "<Defaŭlte>",
DlgCellWordWrapYes : "Jes",
DlgCellWordWrapNo : "Ne",
DlgCellHorAlign : "Horizonta Ĝisrandigo",
DlgCellHorAlignNotSet : "<Defaŭlte>",
DlgCellHorAlignLeft : "Maldekstre",
DlgCellHorAlignCenter : "Centre",
DlgCellHorAlignRight: "Dekstre",
DlgCellVerAlign : "Vertikala Ĝisrandigo",
DlgCellVerAlignNotSet : "<Defaŭlte>",
DlgCellVerAlignTop : "Supre",
DlgCellVerAlignMiddle : "Centre",
DlgCellVerAlignBottom : "Malsupre",
DlgCellVerAlignBaseline : "Je Malsupro de Teksto",
DlgCellRowSpan : "Linioj Kunfanditaj",
DlgCellCollSpan : "Kolumnoj Kunfanditaj",
DlgCellBackColor : "Fono",
DlgCellBorderColor : "Bordero",
DlgCellBtnSelect : "Elekti...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Serĉi",
DlgFindFindBtn : "Serĉi",
DlgFindNotFoundMsg : "La celteksto ne estas trovita.",
// Replace Dialog
DlgReplaceTitle : "Anstataŭigi",
DlgReplaceFindLbl : "Serĉi:",
DlgReplaceReplaceLbl : "Anstataŭigi per:",
DlgReplaceCaseChk : "Kongruigi Usklecon",
DlgReplaceReplaceBtn : "Anstataŭigi",
DlgReplaceReplAllBtn : "Anstataŭigi Ĉiun",
DlgReplaceWordChk : "Tuta Vorto",
// Paste Operations / Dialog
PasteErrorCut : "La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (ctrl-X).",
PasteErrorCopy : "La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (ctrl-C).",
PasteAsText : "Interglui kiel Tekston",
PasteFromWord : "Interglui el Word",
DlgPasteMsg2 : "Please paste inside the following box using the keyboard (<strong>Ctrl+V</strong>) and hit <strong>OK</strong>.", //MISSING
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignore Font Face definitions", //MISSING
DlgPasteRemoveStyles : "Remove Styles definitions", //MISSING
// Color Picker
ColorAutomatic : "Aŭtomata",
ColorMoreColors : "Pli da Koloroj...",
// Document Properties
DocProps : "Dokumentaj Atributoj",
// Anchor Dialog
DlgAnchorTitle : "Ankraj Atributoj",
DlgAnchorName : "Ankra Nomo",
DlgAnchorErrorName : "Bv tajpi la ankran nomon",
// Speller Pages Dialog
DlgSpellNotInDic : "Ne trovita en la vortaro",
DlgSpellChangeTo : "Ŝanĝi al",
DlgSpellBtnIgnore : "Malatenti",
DlgSpellBtnIgnoreAll : "Malatenti Ĉiun",
DlgSpellBtnReplace : "Anstataŭigi",
DlgSpellBtnReplaceAll : "Anstataŭigi Ĉiun",
DlgSpellBtnUndo : "Malfari",
DlgSpellNoSuggestions : "- Neniu propono -",
DlgSpellProgress : "Literumkontrolado daŭras...",
DlgSpellNoMispell : "Literumkontrolado finita: neniu fuŝo trovita",
DlgSpellNoChanges : "Literumkontrolado finita: neniu vorto ŝanĝita",
DlgSpellOneChange : "Literumkontrolado finita: unu vorto ŝanĝita",
DlgSpellManyChanges : "Literumkontrolado finita: %1 vortoj ŝanĝitaj",
IeSpellDownload : "Literumada Kontrolilo ne instalita. Ĉu vi volas elŝuti ĝin nun?",
// Button Dialog
DlgButtonText : "Teksto (Valoro)",
DlgButtonType : "Tipo",
DlgButtonTypeBtn : "Button", //MISSING
DlgButtonTypeSbm : "Submit", //MISSING
DlgButtonTypeRst : "Reset", //MISSING
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Nomo",
DlgCheckboxValue : "Valoro",
DlgCheckboxSelected : "Elektita",
// Form Dialog
DlgFormName : "Nomo",
DlgFormAction : "Ago",
DlgFormMethod : "Metodo",
// Select Field Dialog
DlgSelectName : "Nomo",
DlgSelectValue : "Valoro",
DlgSelectSize : "Grando",
DlgSelectLines : "Linioj",
DlgSelectChkMulti : "Permesi Plurajn Elektojn",
DlgSelectOpAvail : "Elektoj Disponeblaj",
DlgSelectOpText : "Teksto",
DlgSelectOpValue : "Valoro",
DlgSelectBtnAdd : "Aldoni",
DlgSelectBtnModify : "Modifi",
DlgSelectBtnUp : "Supren",
DlgSelectBtnDown : "Malsupren",
DlgSelectBtnSetValue : "Agordi kiel Elektitan Valoron",
DlgSelectBtnDelete : "Forigi",
// Textarea Dialog
DlgTextareaName : "Nomo",
DlgTextareaCols : "Kolumnoj",
DlgTextareaRows : "Vicoj",
// Text Field Dialog
DlgTextName : "Nomo",
DlgTextValue : "Valoro",
DlgTextCharWidth : "Signolarĝo",
DlgTextMaxChars : "Maksimuma Nombro da Signoj",
DlgTextType : "Tipo",
DlgTextTypeText : "Teksto",
DlgTextTypePass : "Pasvorto",
// Hidden Field Dialog
DlgHiddenName : "Nomo",
DlgHiddenValue : "Valoro",
// Bulleted List Dialog
BulletedListProp : "Atributoj de Bula Listo",
NumberedListProp : "Atributoj de Numera Listo",
DlgLstStart : "Start", //MISSING
DlgLstType : "Tipo",
DlgLstTypeCircle : "Cirklo",
DlgLstTypeDisc : "Disc", //MISSING
DlgLstTypeSquare : "Kvadrato",
DlgLstTypeNumbers : "Ciferoj (1, 2, 3)",
DlgLstTypeLCase : "Minusklaj Literoj (a, b, c)",
DlgLstTypeUCase : "Majusklaj Literoj (A, B, C)",
DlgLstTypeSRoman : "Malgrandaj Romanaj Ciferoj (i, ii, iii)",
DlgLstTypeLRoman : "Grandaj Romanaj Ciferoj (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Ĝeneralaĵoj",
DlgDocBackTab : "Fono",
DlgDocColorsTab : "Koloroj kaj Marĝenoj",
DlgDocMetaTab : "Metadatumoj",
DlgDocPageTitle : "Paĝotitolo",
DlgDocLangDir : "Skribdirekto de la Lingvo",
DlgDocLangDirLTR : "De maldekstro dekstren (LTR)",
DlgDocLangDirRTL : "De dekstro maldekstren (LTR)",
DlgDocLangCode : "Lingvokodo",
DlgDocCharSet : "Signara Kodo",
DlgDocCharSetCE : "Central European", //MISSING
DlgDocCharSetCT : "Chinese Traditional (Big5)", //MISSING
DlgDocCharSetCR : "Cyrillic", //MISSING
DlgDocCharSetGR : "Greek", //MISSING
DlgDocCharSetJP : "Japanese", //MISSING
DlgDocCharSetKR : "Korean", //MISSING
DlgDocCharSetTR : "Turkish", //MISSING
DlgDocCharSetUN : "Unicode (UTF-8)", //MISSING
DlgDocCharSetWE : "Western European", //MISSING
DlgDocCharSetOther : "Alia Signara Kodo",
DlgDocDocType : "Dokumenta Tipo",
DlgDocDocTypeOther : "Alia Dokumenta Tipo",
DlgDocIncXHTML : "Inkluzivi XHTML Deklaroj",
DlgDocBgColor : "Fona Koloro",
DlgDocBgImage : "URL de Fona Bildo",
DlgDocBgNoScroll : "Neruluma Fono",
DlgDocCText : "Teksto",
DlgDocCLink : "Ligilo",
DlgDocCVisited : "Vizitita Ligilo",
DlgDocCActive : "Aktiva Ligilo",
DlgDocMargins : "Paĝaj Marĝenoj",
DlgDocMaTop : "Supra",
DlgDocMaLeft : "Maldekstra",
DlgDocMaRight : "Dekstra",
DlgDocMaBottom : "Malsupra",
DlgDocMeIndex : "Ŝlosilvortoj de la Dokumento (apartigita de komoj)",
DlgDocMeDescr : "Dokumenta Priskribo",
DlgDocMeAuthor : "Verkinto",
DlgDocMeCopy : "Kopirajto",
DlgDocPreview : "Aspekto",
// Templates Dialog
Templates : "Templates", //MISSING
DlgTemplatesTitle : "Content Templates", //MISSING
DlgTemplatesSelMsg : "Please select the template to open in the editor<br />(the actual contents will be lost):", //MISSING
DlgTemplatesLoading : "Loading templates list. Please wait...", //MISSING
DlgTemplatesNoTpl : "(No templates defined)", //MISSING
DlgTemplatesReplace : "Replace actual contents", //MISSING
// About Dialog
DlgAboutAboutTab : "Pri",
DlgAboutBrowserInfoTab : "Informoj pri TTT-legilo",
DlgAboutLicenseTab : "License", //MISSING
DlgAboutVersion : "versio",
DlgAboutInfo : "Por pli da informoj, vizitu",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Slovak language file.
*/
var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir : "ltr",
ToolbarCollapse : "Skryť panel nástrojov",
ToolbarExpand : "Zobraziť panel nástrojov",
// Toolbar Items and Context Menu
Save : "Uložit",
NewPage : "Nová stránka",
Preview : "Náhľad",
Cut : "Vystrihnúť",
Copy : "Kopírovať",
Paste : "Vložiť",
PasteText : "Vložiť ako čistý text",
PasteWord : "Vložiť z Wordu",
Print : "Tlač",
SelectAll : "Vybrať všetko",
RemoveFormat : "Odstrániť formátovanie",
InsertLinkLbl : "Odkaz",
InsertLink : "Vložiť/zmeniť odkaz",
RemoveLink : "Odstrániť odkaz",
VisitLink : "Open Link", //MISSING
Anchor : "Vložiť/zmeniť kotvu",
AnchorDelete : "Remove Anchor", //MISSING
InsertImageLbl : "Obrázok",
InsertImage : "Vložiť/zmeniť obrázok",
InsertFlashLbl : "Flash",
InsertFlash : "Vložiť/zmeniť Flash",
InsertTableLbl : "Tabuľka",
InsertTable : "Vložiť/zmeniť tabuľku",
InsertLineLbl : "Čiara",
InsertLine : "Vložiť vodorovnú čiaru",
InsertSpecialCharLbl: "Špeciálne znaky",
InsertSpecialChar : "Vložiť špeciálne znaky",
InsertSmileyLbl : "Smajlíky",
InsertSmiley : "Vložiť smajlíka",
About : "O aplikáci FCKeditor",
Bold : "Tučné",
Italic : "Kurzíva",
Underline : "Podčiarknuté",
StrikeThrough : "Prečiarknuté",
Subscript : "Dolný index",
Superscript : "Horný index",
LeftJustify : "Zarovnať vľavo",
CenterJustify : "Zarovnať na stred",
RightJustify : "Zarovnať vpravo",
BlockJustify : "Zarovnať do bloku",
DecreaseIndent : "Zmenšiť odsadenie",
IncreaseIndent : "Zväčšiť odsadenie",
Blockquote : "Blockquote", //MISSING
CreateDiv : "Create Div Container", //MISSING
EditDiv : "Edit Div Container", //MISSING
DeleteDiv : "Remove Div Container", //MISSING
Undo : "Späť",
Redo : "Znovu",
NumberedListLbl : "Číslovanie",
NumberedList : "Vložiť/odstrániť číslovaný zoznam",
BulletedListLbl : "Odrážky",
BulletedList : "Vložiť/odstraniť odrážky",
ShowTableBorders : "Zobraziť okraje tabuliek",
ShowDetails : "Zobraziť podrobnosti",
Style : "Štýl",
FontFormat : "Formát",
Font : "Písmo",
FontSize : "Veľkosť",
TextColor : "Farba textu",
BGColor : "Farba pozadia",
Source : "Zdroj",
Find : "Hľadať",
Replace : "Nahradiť",
SpellCheck : "Kontrola pravopisu",
UniversalKeyboard : "Univerzálna klávesnica",
PageBreakLbl : "Oddeľovač stránky",
PageBreak : "Vložiť oddeľovač stránky",
Form : "Formulár",
Checkbox : "Zaškrtávacie políčko",
RadioButton : "Prepínač",
TextField : "Textové pole",
Textarea : "Textová oblasť",
HiddenField : "Skryté pole",
Button : "Tlačíidlo",
SelectionField : "Rozbaľovací zoznam",
ImageButton : "Obrázkové tlačidlo",
FitWindow : "Maximalizovať veľkosť okna editora",
ShowBlocks : "Show Blocks", //MISSING
// Context Menu
EditLink : "Zmeniť odkaz",
CellCM : "Bunka",
RowCM : "Riadok",
ColumnCM : "Stĺpec",
InsertRowAfter : "Insert Row After", //MISSING
InsertRowBefore : "Insert Row Before", //MISSING
DeleteRows : "Vymazať riadok",
InsertColumnAfter : "Insert Column After", //MISSING
InsertColumnBefore : "Insert Column Before", //MISSING
DeleteColumns : "Zmazať stĺpec",
InsertCellAfter : "Insert Cell After", //MISSING
InsertCellBefore : "Insert Cell Before", //MISSING
DeleteCells : "Vymazať bunky",
MergeCells : "Zlúčiť bunky",
MergeRight : "Merge Right", //MISSING
MergeDown : "Merge Down", //MISSING
HorizontalSplitCell : "Split Cell Horizontally", //MISSING
VerticalSplitCell : "Split Cell Vertically", //MISSING
TableDelete : "Vymazať tabuľku",
CellProperties : "Vlastnosti bunky",
TableProperties : "Vlastnosti tabuľky",
ImageProperties : "Vlastnosti obrázku",
FlashProperties : "Vlastnosti Flashu",
AnchorProp : "Vlastnosti kotvy",
ButtonProp : "Vlastnosti tlačidla",
CheckboxProp : "Vlastnosti zaškrtávacieho políčka",
HiddenFieldProp : "Vlastnosti skrytého poľa",
RadioButtonProp : "Vlastnosti prepínača",
ImageButtonProp : "Vlastnosti obrázkového tlačidla",
TextFieldProp : "Vlastnosti textového poľa",
SelectionFieldProp : "Vlastnosti rozbaľovacieho zoznamu",
TextareaProp : "Vlastnosti textovej oblasti",
FormProp : "Vlastnosti formulára",
FontFormats : "Normálny;Formátovaný;Adresa;Nadpis 1;Nadpis 2;Nadpis 3;Nadpis 4;Nadpis 5;Nadpis 6;Odsek (DIV)",
// Alerts and Messages
ProcessingXHTML : "Prebieha spracovanie XHTML. Čakajte prosím...",
Done : "Dokončené.",
PasteWordConfirm : "Vyzerá to tak, že vkladaný text je kopírovaný z Wordu. Chcete ho pred vložením vyčistiť?",
NotCompatiblePaste : "Tento príkaz je dostupný len v prehliadači Internet Explorer verzie 5.5 alebo vyššej. Chcete vložiť text bez vyčistenia?",
UnknownToolbarItem : "Neznáma položka panela nástrojov \"%1\"",
UnknownCommand : "Neznámy príkaz \"%1\"",
NotImplemented : "Príkaz nie je implementovaný",
UnknownToolbarSet : "Panel nástrojov \"%1\" neexistuje",
NoActiveX : "Bezpečnostné nastavenia vášho prehliadača môžu obmedzovať niektoré funkcie editora. Pre ich plnú funkčnosť musíte zapnúť voľbu \"Spúšťať ActiveX moduly a zásuvné moduly\", inak sa môžete stretnúť s chybami a nefunkčnosťou niektorých funkcií.",
BrowseServerBlocked : "Prehliadač zdrojových prvkov nebolo možné otvoriť. Uistite sa, že máte vypnuté všetky blokovače vyskakujúcich okien.",
DialogBlocked : "Dialógové okno nebolo možné otvoriť. Uistite sa, že máte vypnuté všetky blokovače vyskakujúcich okien.",
VisitLinkBlocked : "It was not possible to open a new window. Make sure all popup blockers are disabled.", //MISSING
// Dialogs
DlgBtnOK : "OK",
DlgBtnCancel : "Zrušiť",
DlgBtnClose : "Zavrieť",
DlgBtnBrowseServer : "Prechádzať server",
DlgAdvancedTag : "Rozšírené",
DlgOpOther : "<Ďalšie>",
DlgInfoTab : "Info",
DlgAlertUrl : "Prosím vložte URL",
// General Dialogs Labels
DlgGenNotSet : "<nenastavené>",
DlgGenId : "Id",
DlgGenLangDir : "Orientácia jazyka",
DlgGenLangDirLtr : "Zľava doprava (LTR)",
DlgGenLangDirRtl : "Sprava doľava (RTL)",
DlgGenLangCode : "Kód jazyka",
DlgGenAccessKey : "Prístupový kľúč",
DlgGenName : "Meno",
DlgGenTabIndex : "Poradie prvku",
DlgGenLongDescr : "Dlhý popis URL",
DlgGenClass : "Trieda štýlu",
DlgGenTitle : "Pomocný titulok",
DlgGenContType : "Pomocný typ obsahu",
DlgGenLinkCharset : "Priradená znaková sada",
DlgGenStyle : "Štýl",
// Image Dialog
DlgImgTitle : "Vlastnosti obrázku",
DlgImgInfoTab : "Informácie o obrázku",
DlgImgBtnUpload : "Odoslať na server",
DlgImgURL : "URL",
DlgImgUpload : "Odoslať",
DlgImgAlt : "Alternatívny text",
DlgImgWidth : "Šírka",
DlgImgHeight : "Výška",
DlgImgLockRatio : "Zámok",
DlgBtnResetSize : "Pôvodná veľkosť",
DlgImgBorder : "Okraje",
DlgImgHSpace : "H-medzera",
DlgImgVSpace : "V-medzera",
DlgImgAlign : "Zarovnanie",
DlgImgAlignLeft : "Vľavo",
DlgImgAlignAbsBottom: "Úplne dole",
DlgImgAlignAbsMiddle: "Do stredu",
DlgImgAlignBaseline : "Na základňu",
DlgImgAlignBottom : "Dole",
DlgImgAlignMiddle : "Na stred",
DlgImgAlignRight : "Vpravo",
DlgImgAlignTextTop : "Na horný okraj textu",
DlgImgAlignTop : "Nahor",
DlgImgPreview : "Náhľad",
DlgImgAlertUrl : "Zadajte prosím URL obrázku",
DlgImgLinkTab : "Odkaz",
// Flash Dialog
DlgFlashTitle : "Vlastnosti Flashu",
DlgFlashChkPlay : "Automatické prehrávanie",
DlgFlashChkLoop : "Opakovanie",
DlgFlashChkMenu : "Povoliť Flash Menu",
DlgFlashScale : "Mierka",
DlgFlashScaleAll : "Zobraziť mierku",
DlgFlashScaleNoBorder : "Bez okrajov",
DlgFlashScaleFit : "Roztiahnuť na celé",
// Link Dialog
DlgLnkWindowTitle : "Odkaz",
DlgLnkInfoTab : "Informácie o odkaze",
DlgLnkTargetTab : "Cieľ",
DlgLnkType : "Typ odkazu",
DlgLnkTypeURL : "URL",
DlgLnkTypeAnchor : "Kotva v tejto stránke",
DlgLnkTypeEMail : "E-Mail",
DlgLnkProto : "Protokol",
DlgLnkProtoOther : "<iný>",
DlgLnkURL : "URL",
DlgLnkAnchorSel : "Vybrať kotvu",
DlgLnkAnchorByName : "Podľa mena kotvy",
DlgLnkAnchorById : "Podľa Id objektu",
DlgLnkNoAnchors : "(V stránke nie je definovaná žiadna kotva)",
DlgLnkEMail : "E-Mailová adresa",
DlgLnkEMailSubject : "Predmet správy",
DlgLnkEMailBody : "Telo správy",
DlgLnkUpload : "Odoslať",
DlgLnkBtnUpload : "Odoslať na server",
DlgLnkTarget : "Cieľ",
DlgLnkTargetFrame : "<rámec>",
DlgLnkTargetPopup : "<vyskakovacie okno>",
DlgLnkTargetBlank : "Nové okno (_blank)",
DlgLnkTargetParent : "Rodičovské okno (_parent)",
DlgLnkTargetSelf : "Rovnaké okno (_self)",
DlgLnkTargetTop : "Hlavné okno (_top)",
DlgLnkTargetFrameName : "Meno rámu cieľa",
DlgLnkPopWinName : "Názov vyskakovacieho okna",
DlgLnkPopWinFeat : "Vlastnosti vyskakovacieho okna",
DlgLnkPopResize : "Meniteľná veľkosť",
DlgLnkPopLocation : "Panel umiestnenia",
DlgLnkPopMenu : "Panel ponuky",
DlgLnkPopScroll : "Posuvníky",
DlgLnkPopStatus : "Stavový riadok",
DlgLnkPopToolbar : "Panel nástrojov",
DlgLnkPopFullScrn : "Celá obrazovka (IE)",
DlgLnkPopDependent : "Závislosť (Netscape)",
DlgLnkPopWidth : "Šírka",
DlgLnkPopHeight : "Výška",
DlgLnkPopLeft : "Ľavý okraj",
DlgLnkPopTop : "Horný okraj",
DlnLnkMsgNoUrl : "Zadajte prosím URL odkazu",
DlnLnkMsgNoEMail : "Zadajte prosím e-mailovú adresu",
DlnLnkMsgNoAnchor : "Vyberte prosím kotvu",
DlnLnkMsgInvPopName : "Názov vyskakovacieho okna sa musá začínať písmenom a nemôže obsahovať medzery",
// Color Dialog
DlgColorTitle : "Výber farby",
DlgColorBtnClear : "Vymazať",
DlgColorHighlight : "Zvýraznená",
DlgColorSelected : "Vybraná",
// Smiley Dialog
DlgSmileyTitle : "Vkladanie smajlíkov",
// Special Character Dialog
DlgSpecialCharTitle : "Výber špeciálneho znaku",
// Table Dialog
DlgTableTitle : "Vlastnosti tabuľky",
DlgTableRows : "Riadky",
DlgTableColumns : "Stĺpce",
DlgTableBorder : "Ohraničenie",
DlgTableAlign : "Zarovnanie",
DlgTableAlignNotSet : "<nenastavené>",
DlgTableAlignLeft : "Vľavo",
DlgTableAlignCenter : "Na stred",
DlgTableAlignRight : "Vpravo",
DlgTableWidth : "Šírka",
DlgTableWidthPx : "pixelov",
DlgTableWidthPc : "percent",
DlgTableHeight : "Výška",
DlgTableCellSpace : "Vzdialenosť buniek",
DlgTableCellPad : "Odsadenie obsahu",
DlgTableCaption : "Popis",
DlgTableSummary : "Prehľad",
// Table Cell Dialog
DlgCellTitle : "Vlastnosti bunky",
DlgCellWidth : "Šírka",
DlgCellWidthPx : "bodov",
DlgCellWidthPc : "percent",
DlgCellHeight : "Výška",
DlgCellWordWrap : "Zalamovannie",
DlgCellWordWrapNotSet : "<nenastavené>",
DlgCellWordWrapYes : "Áno",
DlgCellWordWrapNo : "Nie",
DlgCellHorAlign : "Vodorovné zarovnanie",
DlgCellHorAlignNotSet : "<nenastavené>",
DlgCellHorAlignLeft : "Vľavo",
DlgCellHorAlignCenter : "Na stred",
DlgCellHorAlignRight: "Vpravo",
DlgCellVerAlign : "Zvislé zarovnanie",
DlgCellVerAlignNotSet : "<nenastavené>",
DlgCellVerAlignTop : "Nahor",
DlgCellVerAlignMiddle : "Doprostred",
DlgCellVerAlignBottom : "Dole",
DlgCellVerAlignBaseline : "Na základňu",
DlgCellRowSpan : "Zlúčené riadky",
DlgCellCollSpan : "Zlúčené stĺpce",
DlgCellBackColor : "Farba pozadia",
DlgCellBorderColor : "Farba ohraničenia",
DlgCellBtnSelect : "Výber...",
// Find and Replace Dialog
DlgFindAndReplaceTitle : "Find and Replace", //MISSING
// Find Dialog
DlgFindTitle : "Hľadať",
DlgFindFindBtn : "Hľadať",
DlgFindNotFoundMsg : "Hľadaný text nebol nájdený.",
// Replace Dialog
DlgReplaceTitle : "Nahradiť",
DlgReplaceFindLbl : "Čo hľadať:",
DlgReplaceReplaceLbl : "Čím nahradiť:",
DlgReplaceCaseChk : "Rozlišovať malé/veľké písmená",
DlgReplaceReplaceBtn : "Nahradiť",
DlgReplaceReplAllBtn : "Nahradiť všetko",
DlgReplaceWordChk : "Len celé slová",
// Paste Operations / Dialog
PasteErrorCut : "Bezpečnostné nastavenie Vášho prehliadača nedovoľujú editoru spustiť funkciu pre vystrihnutie zvoleného textu do schránky. Prosím vystrihnite zvolený text do schránky pomocou klávesnice (Ctrl+X).",
PasteErrorCopy : "Bezpečnostné nastavenie Vášho prehliadača nedovoľujú editoru spustiť funkciu pre kopírovanie zvoleného textu do schránky. Prosím skopírujte zvolený text do schránky pomocou klávesnice (Ctrl+C).",
PasteAsText : "Vložiť ako čistý text",
PasteFromWord : "Vložiť text z Wordu",
DlgPasteMsg2 : "Prosím vložte nasledovný rámček použitím klávesnice (<STRONG>Ctrl+V</STRONG>) a stlačte <STRONG>OK</STRONG>.",
DlgPasteSec : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.", //MISSING
DlgPasteIgnoreFont : "Ignorovať nastavenia typu písma",
DlgPasteRemoveStyles : "Odstrániť formátovanie",
// Color Picker
ColorAutomatic : "Automaticky",
ColorMoreColors : "Viac farieb...",
// Document Properties
DocProps : "Vlastnosti dokumentu",
// Anchor Dialog
DlgAnchorTitle : "Vlastnosti kotvy",
DlgAnchorName : "Meno kotvy",
DlgAnchorErrorName : "Zadajte prosím meno kotvy",
// Speller Pages Dialog
DlgSpellNotInDic : "Nie je v slovníku",
DlgSpellChangeTo : "Zmeniť na",
DlgSpellBtnIgnore : "Ignorovať",
DlgSpellBtnIgnoreAll : "Ignorovať všetko",
DlgSpellBtnReplace : "Prepísat",
DlgSpellBtnReplaceAll : "Prepísat všetko",
DlgSpellBtnUndo : "Späť",
DlgSpellNoSuggestions : "- Žiadny návrh -",
DlgSpellProgress : "Prebieha kontrola pravopisu...",
DlgSpellNoMispell : "Kontrola pravopisu dokončená: bez chýb",
DlgSpellNoChanges : "Kontrola pravopisu dokončená: žiadne slová nezmenené",
DlgSpellOneChange : "Kontrola pravopisu dokončená: zmenené jedno slovo",
DlgSpellManyChanges : "Kontrola pravopisu dokončená: zmenených %1 slov",
IeSpellDownload : "Kontrola pravopisu nie je naištalovaná. Chcete ju hneď stiahnuť?",
// Button Dialog
DlgButtonText : "Text",
DlgButtonType : "Typ",
DlgButtonTypeBtn : "Tlačidlo",
DlgButtonTypeSbm : "Odoslať",
DlgButtonTypeRst : "Vymazať",
// Checkbox and Radio Button Dialogs
DlgCheckboxName : "Názov",
DlgCheckboxValue : "Hodnota",
DlgCheckboxSelected : "Vybrané",
// Form Dialog
DlgFormName : "Názov",
DlgFormAction : "Akcie",
DlgFormMethod : "Metóda",
// Select Field Dialog
DlgSelectName : "Názov",
DlgSelectValue : "Hodnota",
DlgSelectSize : "Veľkosť",
DlgSelectLines : "riadkov",
DlgSelectChkMulti : "Povoliť viacnásobný výber",
DlgSelectOpAvail : "Dostupné možnosti",
DlgSelectOpText : "Text",
DlgSelectOpValue : "Hodnota",
DlgSelectBtnAdd : "Pridať",
DlgSelectBtnModify : "Zmeniť",
DlgSelectBtnUp : "Hore",
DlgSelectBtnDown : "Dole",
DlgSelectBtnSetValue : "Nastaviť ako vybranú hodnotu",
DlgSelectBtnDelete : "Zmazať",
// Textarea Dialog
DlgTextareaName : "Názov",
DlgTextareaCols : "Stĺpce",
DlgTextareaRows : "Riadky",
// Text Field Dialog
DlgTextName : "Názov",
DlgTextValue : "Hodnota",
DlgTextCharWidth : "Šírka pola (znakov)",
DlgTextMaxChars : "Maximálny počet znakov",
DlgTextType : "Typ",
DlgTextTypeText : "Text",
DlgTextTypePass : "Heslo",
// Hidden Field Dialog
DlgHiddenName : "Názov",
DlgHiddenValue : "Hodnota",
// Bulleted List Dialog
BulletedListProp : "Vlastnosti odrážok",
NumberedListProp : "Vlastnosti číslovania",
DlgLstStart : "Štart",
DlgLstType : "Typ",
DlgLstTypeCircle : "Krúžok",
DlgLstTypeDisc : "Disk",
DlgLstTypeSquare : "Štvorec",
DlgLstTypeNumbers : "Číslovanie (1, 2, 3)",
DlgLstTypeLCase : "Malé písmená (a, b, c)",
DlgLstTypeUCase : "Veľké písmená (A, B, C)",
DlgLstTypeSRoman : "Malé rímske číslice (i, ii, iii)",
DlgLstTypeLRoman : "Veľké rímske číslice (I, II, III)",
// Document Properties Dialog
DlgDocGeneralTab : "Všeobecné",
DlgDocBackTab : "Pozadie",
DlgDocColorsTab : "Farby a okraje",
DlgDocMetaTab : "Meta Data",
DlgDocPageTitle : "Titulok",
DlgDocLangDir : "Orientácie jazyka",
DlgDocLangDirLTR : "Zľava doprava (LTR)",
DlgDocLangDirRTL : "Sprava doľava (RTL)",
DlgDocLangCode : "Kód jazyka",
DlgDocCharSet : "Kódová stránka",
DlgDocCharSetCE : "Stredoeurópske",
DlgDocCharSetCT : "Čínština tradičná (Big5)",
DlgDocCharSetCR : "Cyrillika",
DlgDocCharSetGR : "Gréčtina",
DlgDocCharSetJP : "Japončina",
DlgDocCharSetKR : "Korejčina",
DlgDocCharSetTR : "Turečtina",
DlgDocCharSetUN : "Unicode (UTF-8)",
DlgDocCharSetWE : "Západná európa",
DlgDocCharSetOther : "Iná kódová stránka",
DlgDocDocType : "Typ záhlavia dokumentu",
DlgDocDocTypeOther : "Iný typ záhlavia dokumentu",
DlgDocIncXHTML : "Obsahuje deklarácie XHTML",
DlgDocBgColor : "Farba pozadia",
DlgDocBgImage : "URL adresa obrázku na pozadí",
DlgDocBgNoScroll : "Fixné pozadie",
DlgDocCText : "Text",
DlgDocCLink : "Odkaz",
DlgDocCVisited : "Navštívený odkaz",
DlgDocCActive : "Aktívny odkaz",
DlgDocMargins : "Okraje stránky",
DlgDocMaTop : "Horný",
DlgDocMaLeft : "Ľavý",
DlgDocMaRight : "Pravý",
DlgDocMaBottom : "Dolný",
DlgDocMeIndex : "Kľúčové slová pre indexovanie (oddelené čiarkou)",
DlgDocMeDescr : "Popis stránky",
DlgDocMeAuthor : "Autor",
DlgDocMeCopy : "Autorské práva",
DlgDocPreview : "Náhľad",
// Templates Dialog
Templates : "Šablóny",
DlgTemplatesTitle : "Šablóny obsahu",
DlgTemplatesSelMsg : "Prosím vyberte šablóny na otvorenie v editore<br>(súšasný obsah bude stratený):",
DlgTemplatesLoading : "Nahrávam zoznam šablón. Čakajte prosím...",
DlgTemplatesNoTpl : "(žiadne šablóny nenájdené)",
DlgTemplatesReplace : "Nahradiť aktuálny obsah",
// About Dialog
DlgAboutAboutTab : "O aplikáci",
DlgAboutBrowserInfoTab : "Informácie o prehliadači",
DlgAboutLicenseTab : "Licencia",
DlgAboutVersion : "verzia",
DlgAboutInfo : "Viac informácií získate na",
// Div Dialog
DlgDivGeneralTab : "General", //MISSING
DlgDivAdvancedTab : "Advanced", //MISSING
DlgDivStyle : "Style", //MISSING
DlgDivInlineStyle : "Inline Style" //MISSING
};
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Scripts related to the Flash dialog window (see fck_flash.html).
*/
var dialog = window.parent ;
var oEditor = dialog.InnerDialogLoaded() ;
var FCK = oEditor.FCK ;
var FCKLang = oEditor.FCKLang ;
var FCKConfig = oEditor.FCKConfig ;
var FCKTools = oEditor.FCKTools ;
//#### Dialog Tabs
// Set the dialog tabs.
dialog.AddTab( 'Info', oEditor.FCKLang.DlgInfoTab ) ;
if ( FCKConfig.FlashUpload )
dialog.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;
if ( !FCKConfig.FlashDlgHideAdvanced )
dialog.AddTab( 'Advanced', oEditor.FCKLang.DlgAdvancedTag ) ;
// Function called when a dialog tag is selected.
function OnDialogTabChange( tabCode )
{
ShowE('divInfo' , ( tabCode == 'Info' ) ) ;
ShowE('divUpload' , ( tabCode == 'Upload' ) ) ;
ShowE('divAdvanced' , ( tabCode == 'Advanced' ) ) ;
}
// Get the selected flash embed (if available).
var oFakeImage = dialog.Selection.GetSelectedElement() ;
var oEmbed ;
if ( oFakeImage )
{
if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckflash') )
oEmbed = FCK.GetRealElement( oFakeImage ) ;
else
oFakeImage = null ;
}
window.onload = function()
{
// Translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage(document) ;
// Load the selected element information (if any).
LoadSelection() ;
// Show/Hide the "Browse Server" button.
GetE('tdBrowse').style.display = FCKConfig.FlashBrowser ? '' : 'none' ;
// Set the actual uploader URL.
if ( FCKConfig.FlashUpload )
GetE('frmUpload').action = FCKConfig.FlashUploadURL ;
dialog.SetAutoSize( true ) ;
// Activate the "OK" button.
dialog.SetOkButton( true ) ;
SelectField( 'txtUrl' ) ;
}
function LoadSelection()
{
if ( ! oEmbed ) return ;
GetE('txtUrl').value = GetAttribute( oEmbed, 'src', '' ) ;
GetE('txtWidth').value = GetAttribute( oEmbed, 'width', '' ) ;
GetE('txtHeight').value = GetAttribute( oEmbed, 'height', '' ) ;
// Get Advances Attributes
GetE('txtAttId').value = oEmbed.id ;
GetE('chkAutoPlay').checked = GetAttribute( oEmbed, 'play', 'true' ) == 'true' ;
GetE('chkLoop').checked = GetAttribute( oEmbed, 'loop', 'true' ) == 'true' ;
GetE('chkMenu').checked = GetAttribute( oEmbed, 'menu', 'true' ) == 'true' ;
GetE('cmbScale').value = GetAttribute( oEmbed, 'scale', '' ).toLowerCase() ;
GetE('txtAttTitle').value = oEmbed.title ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
GetE('txtAttClasses').value = oEmbed.getAttribute('className') || '' ;
GetE('txtAttStyle').value = oEmbed.style.cssText ;
}
else
{
GetE('txtAttClasses').value = oEmbed.getAttribute('class',2) || '' ;
GetE('txtAttStyle').value = oEmbed.getAttribute('style',2) || '' ;
}
UpdatePreview() ;
}
//#### The OK button was hit.
function Ok()
{
if ( GetE('txtUrl').value.length == 0 )
{
dialog.SetSelectedTab( 'Info' ) ;
GetE('txtUrl').focus() ;
alert( oEditor.FCKLang.DlgAlertUrl ) ;
return false ;
}
oEditor.FCKUndo.SaveUndoStep() ;
if ( !oEmbed )
{
oEmbed = FCK.EditorDocument.createElement( 'EMBED' ) ;
oFakeImage = null ;
}
UpdateEmbed( oEmbed ) ;
if ( !oFakeImage )
{
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oEmbed ) ;
oFakeImage.setAttribute( '_fckflash', 'true', 0 ) ;
oFakeImage = FCK.InsertElement( oFakeImage ) ;
}
oEditor.FCKEmbedAndObjectProcessor.RefreshView( oFakeImage, oEmbed ) ;
return true ;
}
function UpdateEmbed( e )
{
SetAttribute( e, 'type' , 'application/x-shockwave-flash' ) ;
SetAttribute( e, 'pluginspage' , 'http://www.macromedia.com/go/getflashplayer' ) ;
SetAttribute( e, 'src', GetE('txtUrl').value ) ;
SetAttribute( e, "width" , GetE('txtWidth').value ) ;
SetAttribute( e, "height", GetE('txtHeight').value ) ;
// Advances Attributes
SetAttribute( e, 'id' , GetE('txtAttId').value ) ;
SetAttribute( e, 'scale', GetE('cmbScale').value ) ;
SetAttribute( e, 'play', GetE('chkAutoPlay').checked ? 'true' : 'false' ) ;
SetAttribute( e, 'loop', GetE('chkLoop').checked ? 'true' : 'false' ) ;
SetAttribute( e, 'menu', GetE('chkMenu').checked ? 'true' : 'false' ) ;
SetAttribute( e, 'title' , GetE('txtAttTitle').value ) ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
SetAttribute( e, 'className', GetE('txtAttClasses').value ) ;
e.style.cssText = GetE('txtAttStyle').value ;
}
else
{
SetAttribute( e, 'class', GetE('txtAttClasses').value ) ;
SetAttribute( e, 'style', GetE('txtAttStyle').value ) ;
}
}
var ePreview ;
function SetPreviewElement( previewEl )
{
ePreview = previewEl ;
if ( GetE('txtUrl').value.length > 0 )
UpdatePreview() ;
}
function UpdatePreview()
{
if ( !ePreview )
return ;
while ( ePreview.firstChild )
ePreview.removeChild( ePreview.firstChild ) ;
if ( GetE('txtUrl').value.length == 0 )
ePreview.innerHTML = ' ' ;
else
{
var oDoc = ePreview.ownerDocument || ePreview.document ;
var e = oDoc.createElement( 'EMBED' ) ;
SetAttribute( e, 'src', GetE('txtUrl').value ) ;
SetAttribute( e, 'type', 'application/x-shockwave-flash' ) ;
SetAttribute( e, 'width', '100%' ) ;
SetAttribute( e, 'height', '100%' ) ;
ePreview.appendChild( e ) ;
}
}
// <embed id="ePreview" src="fck_flash/claims.swf" width="100%" height="100%" style="visibility:hidden" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
function BrowseServer()
{
OpenFileBrowser( FCKConfig.FlashBrowserURL, FCKConfig.FlashBrowserWindowWidth, FCKConfig.FlashBrowserWindowHeight ) ;
}
function SetUrl( url, width, height )
{
GetE('txtUrl').value = url ;
if ( width )
GetE('txtWidth').value = width ;
if ( height )
GetE('txtHeight').value = height ;
UpdatePreview() ;
dialog.SetSelectedTab( 'Info' ) ;
}
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
{
// Remove animation
window.parent.Throbber.Hide() ;
GetE( 'divUpload' ).style.display = '' ;
switch ( errorNumber )
{
case 0 : // No errors
alert( 'Your file has been successfully uploaded' ) ;
break ;
case 1 : // Custom error
alert( customMsg ) ;
return ;
case 101 : // Custom warning
alert( customMsg ) ;
break ;
case 201 :
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
break ;
case 202 :
alert( 'Invalid file type' ) ;
return ;
case 203 :
alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ;
return ;
case 500 :
alert( 'The connector is disabled' ) ;
break ;
default :
alert( 'Error on file upload. Error number: ' + errorNumber ) ;
return ;
}
SetUrl( fileUrl ) ;
GetE('frmUpload').reset() ;
}
var oUploadAllowedExtRegex = new RegExp( FCKConfig.FlashUploadAllowedExtensions, 'i' ) ;
var oUploadDeniedExtRegex = new RegExp( FCKConfig.FlashUploadDeniedExtensions, 'i' ) ;
function CheckUpload()
{
var sFile = GetE('txtUploadFile').value ;
if ( sFile.length == 0 )
{
alert( 'Please select a file to upload' ) ;
return false ;
}
if ( ( FCKConfig.FlashUploadAllowedExtensions.length > 0 && !oUploadAllowedExtRegex.test( sFile ) ) ||
( FCKConfig.FlashUploadDeniedExtensions.length > 0 && oUploadDeniedExtRegex.test( sFile ) ) )
{
OnUploadCompleted( 202 ) ;
return false ;
}
// Show animation
window.parent.Throbber.Show( 100 ) ;
GetE( 'divUpload' ).style.display = 'none' ;
return true ;
}
| JavaScript |
////////////////////////////////////////////////////
// controlWindow object
////////////////////////////////////////////////////
function controlWindow( controlForm ) {
// private properties
this._form = controlForm;
// public properties
this.windowType = "controlWindow";
// this.noSuggestionSelection = "- No suggestions -"; // by FredCK
this.noSuggestionSelection = FCKLang.DlgSpellNoSuggestions ;
// set up the properties for elements of the given control form
this.suggestionList = this._form.sugg;
this.evaluatedText = this._form.misword;
this.replacementText = this._form.txtsugg;
this.undoButton = this._form.btnUndo;
// public methods
this.addSuggestion = addSuggestion;
this.clearSuggestions = clearSuggestions;
this.selectDefaultSuggestion = selectDefaultSuggestion;
this.resetForm = resetForm;
this.setSuggestedText = setSuggestedText;
this.enableUndo = enableUndo;
this.disableUndo = disableUndo;
}
function resetForm() {
if( this._form ) {
this._form.reset();
}
}
function setSuggestedText() {
var slct = this.suggestionList;
var txt = this.replacementText;
var str = "";
if( (slct.options[0].text) && slct.options[0].text != this.noSuggestionSelection ) {
str = slct.options[slct.selectedIndex].text;
}
txt.value = str;
}
function selectDefaultSuggestion() {
var slct = this.suggestionList;
var txt = this.replacementText;
if( slct.options.length == 0 ) {
this.addSuggestion( this.noSuggestionSelection );
} else {
slct.options[0].selected = true;
}
this.setSuggestedText();
}
function addSuggestion( sugg_text ) {
var slct = this.suggestionList;
if( sugg_text ) {
var i = slct.options.length;
var newOption = new Option( sugg_text, 'sugg_text'+i );
slct.options[i] = newOption;
}
}
function clearSuggestions() {
var slct = this.suggestionList;
for( var j = slct.length - 1; j > -1; j-- ) {
if( slct.options[j] ) {
slct.options[j] = null;
}
}
}
function enableUndo() {
if( this.undoButton ) {
if( this.undoButton.disabled == true ) {
this.undoButton.disabled = false;
}
}
}
function disableUndo() {
if( this.undoButton ) {
if( this.undoButton.disabled == false ) {
this.undoButton.disabled = true;
}
}
}
| JavaScript |
////////////////////////////////////////////////////
// wordWindow object
////////////////////////////////////////////////////
function wordWindow() {
// private properties
this._forms = [];
// private methods
this._getWordObject = _getWordObject;
//this._getSpellerObject = _getSpellerObject;
this._wordInputStr = _wordInputStr;
this._adjustIndexes = _adjustIndexes;
this._isWordChar = _isWordChar;
this._lastPos = _lastPos;
// public properties
this.wordChar = /[a-zA-Z]/;
this.windowType = "wordWindow";
this.originalSpellings = new Array();
this.suggestions = new Array();
this.checkWordBgColor = "pink";
this.normWordBgColor = "white";
this.text = "";
this.textInputs = new Array();
this.indexes = new Array();
//this.speller = this._getSpellerObject();
// public methods
this.resetForm = resetForm;
this.totalMisspellings = totalMisspellings;
this.totalWords = totalWords;
this.totalPreviousWords = totalPreviousWords;
//this.getTextObjectArray = getTextObjectArray;
this.getTextVal = getTextVal;
this.setFocus = setFocus;
this.removeFocus = removeFocus;
this.setText = setText;
//this.getTotalWords = getTotalWords;
this.writeBody = writeBody;
this.printForHtml = printForHtml;
}
function resetForm() {
if( this._forms ) {
for( var i = 0; i < this._forms.length; i++ ) {
this._forms[i].reset();
}
}
return true;
}
function totalMisspellings() {
var total_words = 0;
for( var i = 0; i < this.textInputs.length; i++ ) {
total_words += this.totalWords( i );
}
return total_words;
}
function totalWords( textIndex ) {
return this.originalSpellings[textIndex].length;
}
function totalPreviousWords( textIndex, wordIndex ) {
var total_words = 0;
for( var i = 0; i <= textIndex; i++ ) {
for( var j = 0; j < this.totalWords( i ); j++ ) {
if( i == textIndex && j == wordIndex ) {
break;
} else {
total_words++;
}
}
}
return total_words;
}
//function getTextObjectArray() {
// return this._form.elements;
//}
function getTextVal( textIndex, wordIndex ) {
var word = this._getWordObject( textIndex, wordIndex );
if( word ) {
return word.value;
}
}
function setFocus( textIndex, wordIndex ) {
var word = this._getWordObject( textIndex, wordIndex );
if( word ) {
if( word.type == "text" ) {
word.focus();
word.style.backgroundColor = this.checkWordBgColor;
}
}
}
function removeFocus( textIndex, wordIndex ) {
var word = this._getWordObject( textIndex, wordIndex );
if( word ) {
if( word.type == "text" ) {
word.blur();
word.style.backgroundColor = this.normWordBgColor;
}
}
}
function setText( textIndex, wordIndex, newText ) {
var word = this._getWordObject( textIndex, wordIndex );
var beginStr;
var endStr;
if( word ) {
var pos = this.indexes[textIndex][wordIndex];
var oldText = word.value;
// update the text given the index of the string
beginStr = this.textInputs[textIndex].substring( 0, pos );
endStr = this.textInputs[textIndex].substring(
pos + oldText.length,
this.textInputs[textIndex].length
);
this.textInputs[textIndex] = beginStr + newText + endStr;
// adjust the indexes on the stack given the differences in
// length between the new word and old word.
var lengthDiff = newText.length - oldText.length;
this._adjustIndexes( textIndex, wordIndex, lengthDiff );
word.size = newText.length;
word.value = newText;
this.removeFocus( textIndex, wordIndex );
}
}
function writeBody() {
var d = window.document;
var is_html = false;
d.open();
// iterate through each text input.
for( var txtid = 0; txtid < this.textInputs.length; txtid++ ) {
var end_idx = 0;
var begin_idx = 0;
d.writeln( '<form name="textInput'+txtid+'">' );
var wordtxt = this.textInputs[txtid];
this.indexes[txtid] = [];
if( wordtxt ) {
var orig = this.originalSpellings[txtid];
if( !orig ) break;
//!!! plain text, or HTML mode?
d.writeln( '<div class="plainText">' );
// iterate through each occurrence of a misspelled word.
for( var i = 0; i < orig.length; i++ ) {
// find the position of the current misspelled word,
// starting at the last misspelled word.
// and keep looking if it's a substring of another word
do {
begin_idx = wordtxt.indexOf( orig[i], end_idx );
end_idx = begin_idx + orig[i].length;
// word not found? messed up!
if( begin_idx == -1 ) break;
// look at the characters immediately before and after
// the word. If they are word characters we'll keep looking.
var before_char = wordtxt.charAt( begin_idx - 1 );
var after_char = wordtxt.charAt( end_idx );
} while (
this._isWordChar( before_char )
|| this._isWordChar( after_char )
);
// keep track of its position in the original text.
this.indexes[txtid][i] = begin_idx;
// write out the characters before the current misspelled word
for( var j = this._lastPos( txtid, i ); j < begin_idx; j++ ) {
// !!! html mode? make it html compatible
d.write( this.printForHtml( wordtxt.charAt( j )));
}
// write out the misspelled word.
d.write( this._wordInputStr( orig[i] ));
// if it's the last word, write out the rest of the text
if( i == orig.length-1 ){
d.write( printForHtml( wordtxt.substr( end_idx )));
}
}
d.writeln( '</div>' );
}
d.writeln( '</form>' );
}
//for ( var j = 0; j < d.forms.length; j++ ) {
// alert( d.forms[j].name );
// for( var k = 0; k < d.forms[j].elements.length; k++ ) {
// alert( d.forms[j].elements[k].name + ": " + d.forms[j].elements[k].value );
// }
//}
// set the _forms property
this._forms = d.forms;
d.close();
}
// return the character index in the full text after the last word we evaluated
function _lastPos( txtid, idx ) {
if( idx > 0 )
return this.indexes[txtid][idx-1] + this.originalSpellings[txtid][idx-1].length;
else
return 0;
}
function printForHtml( n ) {
return n ; // by FredCK
/*
var htmlstr = n;
if( htmlstr.length == 1 ) {
// do simple case statement if it's just one character
switch ( n ) {
case "\n":
htmlstr = '<br/>';
break;
case "<":
htmlstr = '<';
break;
case ">":
htmlstr = '>';
break;
}
return htmlstr;
} else {
htmlstr = htmlstr.replace( /</g, '<' );
htmlstr = htmlstr.replace( />/g, '>' );
htmlstr = htmlstr.replace( /\n/g, '<br/>' );
return htmlstr;
}
*/
}
function _isWordChar( letter ) {
if( letter.search( this.wordChar ) == -1 ) {
return false;
} else {
return true;
}
}
function _getWordObject( textIndex, wordIndex ) {
if( this._forms[textIndex] ) {
if( this._forms[textIndex].elements[wordIndex] ) {
return this._forms[textIndex].elements[wordIndex];
}
}
return null;
}
function _wordInputStr( word ) {
var str = '<input readonly ';
str += 'class="blend" type="text" value="' + word + '" size="' + word.length + '">';
return str;
}
function _adjustIndexes( textIndex, wordIndex, lengthDiff ) {
for( var i = wordIndex + 1; i < this.originalSpellings[textIndex].length; i++ ) {
this.indexes[textIndex][i] = this.indexes[textIndex][i] + lengthDiff;
}
}
| JavaScript |
////////////////////////////////////////////////////
// spellChecker.js
//
// spellChecker object
//
// This file is sourced on web pages that have a textarea object to evaluate
// for spelling. It includes the implementation for the spellCheckObject.
//
////////////////////////////////////////////////////
// constructor
function spellChecker( textObject ) {
// public properties - configurable
// this.popUpUrl = '/speller/spellchecker.html'; // by FredCK
this.popUpUrl = 'fck_spellerpages/spellerpages/spellchecker.html'; // by FredCK
this.popUpName = 'spellchecker';
// this.popUpProps = "menu=no,width=440,height=350,top=70,left=120,resizable=yes,status=yes"; // by FredCK
this.popUpProps = null ; // by FredCK
// this.spellCheckScript = '/speller/server-scripts/spellchecker.php'; // by FredCK
//this.spellCheckScript = '/cgi-bin/spellchecker.pl';
// values used to keep track of what happened to a word
this.replWordFlag = "R"; // single replace
this.ignrWordFlag = "I"; // single ignore
this.replAllFlag = "RA"; // replace all occurances
this.ignrAllFlag = "IA"; // ignore all occurances
this.fromReplAll = "~RA"; // an occurance of a "replace all" word
this.fromIgnrAll = "~IA"; // an occurance of a "ignore all" word
// properties set at run time
this.wordFlags = new Array();
this.currentTextIndex = 0;
this.currentWordIndex = 0;
this.spellCheckerWin = null;
this.controlWin = null;
this.wordWin = null;
this.textArea = textObject; // deprecated
this.textInputs = arguments;
// private methods
this._spellcheck = _spellcheck;
this._getSuggestions = _getSuggestions;
this._setAsIgnored = _setAsIgnored;
this._getTotalReplaced = _getTotalReplaced;
this._setWordText = _setWordText;
this._getFormInputs = _getFormInputs;
// public methods
this.openChecker = openChecker;
this.startCheck = startCheck;
this.checkTextBoxes = checkTextBoxes;
this.checkTextAreas = checkTextAreas;
this.spellCheckAll = spellCheckAll;
this.ignoreWord = ignoreWord;
this.ignoreAll = ignoreAll;
this.replaceWord = replaceWord;
this.replaceAll = replaceAll;
this.terminateSpell = terminateSpell;
this.undo = undo;
// set the current window's "speller" property to the instance of this class.
// this object can now be referenced by child windows/frames.
window.speller = this;
}
// call this method to check all text boxes (and only text boxes) in the HTML document
function checkTextBoxes() {
this.textInputs = this._getFormInputs( "^text$" );
this.openChecker();
}
// call this method to check all textareas (and only textareas ) in the HTML document
function checkTextAreas() {
this.textInputs = this._getFormInputs( "^textarea$" );
this.openChecker();
}
// call this method to check all text boxes and textareas in the HTML document
function spellCheckAll() {
this.textInputs = this._getFormInputs( "^text(area)?$" );
this.openChecker();
}
// call this method to check text boxe(s) and/or textarea(s) that were passed in to the
// object's constructor or to the textInputs property
function openChecker() {
this.spellCheckerWin = window.open( this.popUpUrl, this.popUpName, this.popUpProps );
if( !this.spellCheckerWin.opener ) {
this.spellCheckerWin.opener = window;
}
}
function startCheck( wordWindowObj, controlWindowObj ) {
// set properties from args
this.wordWin = wordWindowObj;
this.controlWin = controlWindowObj;
// reset properties
this.wordWin.resetForm();
this.controlWin.resetForm();
this.currentTextIndex = 0;
this.currentWordIndex = 0;
// initialize the flags to an array - one element for each text input
this.wordFlags = new Array( this.wordWin.textInputs.length );
// each element will be an array that keeps track of each word in the text
for( var i=0; i<this.wordFlags.length; i++ ) {
this.wordFlags[i] = [];
}
// start
this._spellcheck();
return true;
}
function ignoreWord() {
var wi = this.currentWordIndex;
var ti = this.currentTextIndex;
if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
if( !this.wordWin.getTextVal( ti, wi )) {
alert( 'Error: "Not in dictionary" text is missing.' );
return false;
}
// set as ignored
if( this._setAsIgnored( ti, wi, this.ignrWordFlag )) {
this.currentWordIndex++;
this._spellcheck();
}
return true;
}
function ignoreAll() {
var wi = this.currentWordIndex;
var ti = this.currentTextIndex;
if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
// get the word that is currently being evaluated.
var s_word_to_repl = this.wordWin.getTextVal( ti, wi );
if( !s_word_to_repl ) {
alert( 'Error: "Not in dictionary" text is missing' );
return false;
}
// set this word as an "ignore all" word.
this._setAsIgnored( ti, wi, this.ignrAllFlag );
// loop through all the words after this word
for( var i = ti; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == ti && j > wi ) || i > ti ) {
// future word: set as "from ignore all" if
// 1) do not already have a flag and
// 2) have the same value as current word
if(( this.wordWin.getTextVal( i, j ) == s_word_to_repl )
&& ( !this.wordFlags[i][j] )) {
this._setAsIgnored( i, j, this.fromIgnrAll );
}
}
}
}
// finally, move on
this.currentWordIndex++;
this._spellcheck();
return true;
}
function replaceWord() {
var wi = this.currentWordIndex;
var ti = this.currentTextIndex;
if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
if( !this.wordWin.getTextVal( ti, wi )) {
alert( 'Error: "Not in dictionary" text is missing' );
return false;
}
if( !this.controlWin.replacementText ) {
return false ;
}
var txt = this.controlWin.replacementText;
if( txt.value ) {
var newspell = new String( txt.value );
if( this._setWordText( ti, wi, newspell, this.replWordFlag )) {
this.currentWordIndex++;
this._spellcheck();
}
}
return true;
}
function replaceAll() {
var ti = this.currentTextIndex;
var wi = this.currentWordIndex;
if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
var s_word_to_repl = this.wordWin.getTextVal( ti, wi );
if( !s_word_to_repl ) {
alert( 'Error: "Not in dictionary" text is missing' );
return false;
}
var txt = this.controlWin.replacementText;
if( !txt.value ) return false;
var newspell = new String( txt.value );
// set this word as a "replace all" word.
this._setWordText( ti, wi, newspell, this.replAllFlag );
// loop through all the words after this word
for( var i = ti; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == ti && j > wi ) || i > ti ) {
// future word: set word text to s_word_to_repl if
// 1) do not already have a flag and
// 2) have the same value as s_word_to_repl
if(( this.wordWin.getTextVal( i, j ) == s_word_to_repl )
&& ( !this.wordFlags[i][j] )) {
this._setWordText( i, j, newspell, this.fromReplAll );
}
}
}
}
// finally, move on
this.currentWordIndex++;
this._spellcheck();
return true;
}
function terminateSpell() {
// called when we have reached the end of the spell checking.
var msg = ""; // by FredCK
var numrepl = this._getTotalReplaced();
if( numrepl == 0 ) {
// see if there were no misspellings to begin with
if( !this.wordWin ) {
msg = "";
} else {
if( this.wordWin.totalMisspellings() ) {
// msg += "No words changed."; // by FredCK
msg += FCKLang.DlgSpellNoChanges ; // by FredCK
} else {
// msg += "No misspellings found."; // by FredCK
msg += FCKLang.DlgSpellNoMispell ; // by FredCK
}
}
} else if( numrepl == 1 ) {
// msg += "One word changed."; // by FredCK
msg += FCKLang.DlgSpellOneChange ; // by FredCK
} else {
// msg += numrepl + " words changed."; // by FredCK
msg += FCKLang.DlgSpellManyChanges.replace( /%1/g, numrepl ) ;
}
if( msg ) {
// msg += "\n"; // by FredCK
alert( msg );
}
if( numrepl > 0 ) {
// update the text field(s) on the opener window
for( var i = 0; i < this.textInputs.length; i++ ) {
// this.textArea.value = this.wordWin.text;
if( this.wordWin ) {
if( this.wordWin.textInputs[i] ) {
this.textInputs[i].value = this.wordWin.textInputs[i];
}
}
}
}
// return back to the calling window
// this.spellCheckerWin.close(); // by FredCK
if ( typeof( this.OnFinished ) == 'function' ) // by FredCK
this.OnFinished(numrepl) ; // by FredCK
return true;
}
function undo() {
// skip if this is the first word!
var ti = this.currentTextIndex;
var wi = this.currentWordIndex;
if( this.wordWin.totalPreviousWords( ti, wi ) > 0 ) {
this.wordWin.removeFocus( ti, wi );
// go back to the last word index that was acted upon
do {
// if the current word index is zero then reset the seed
if( this.currentWordIndex == 0 && this.currentTextIndex > 0 ) {
this.currentTextIndex--;
this.currentWordIndex = this.wordWin.totalWords( this.currentTextIndex )-1;
if( this.currentWordIndex < 0 ) this.currentWordIndex = 0;
} else {
if( this.currentWordIndex > 0 ) {
this.currentWordIndex--;
}
}
} while (
this.wordWin.totalWords( this.currentTextIndex ) == 0
|| this.wordFlags[this.currentTextIndex][this.currentWordIndex] == this.fromIgnrAll
|| this.wordFlags[this.currentTextIndex][this.currentWordIndex] == this.fromReplAll
);
var text_idx = this.currentTextIndex;
var idx = this.currentWordIndex;
var preReplSpell = this.wordWin.originalSpellings[text_idx][idx];
// if we got back to the first word then set the Undo button back to disabled
if( this.wordWin.totalPreviousWords( text_idx, idx ) == 0 ) {
this.controlWin.disableUndo();
}
var i, j, origSpell ;
// examine what happened to this current word.
switch( this.wordFlags[text_idx][idx] ) {
// replace all: go through this and all the future occurances of the word
// and revert them all to the original spelling and clear their flags
case this.replAllFlag :
for( i = text_idx; i < this.wordWin.textInputs.length; i++ ) {
for( j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == text_idx && j >= idx ) || i > text_idx ) {
origSpell = this.wordWin.originalSpellings[i][j];
if( origSpell == preReplSpell ) {
this._setWordText ( i, j, origSpell, undefined );
}
}
}
}
break;
// ignore all: go through all the future occurances of the word
// and clear their flags
case this.ignrAllFlag :
for( i = text_idx; i < this.wordWin.textInputs.length; i++ ) {
for( j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == text_idx && j >= idx ) || i > text_idx ) {
origSpell = this.wordWin.originalSpellings[i][j];
if( origSpell == preReplSpell ) {
this.wordFlags[i][j] = undefined;
}
}
}
}
break;
// replace: revert the word to its original spelling
case this.replWordFlag :
this._setWordText ( text_idx, idx, preReplSpell, undefined );
break;
}
// For all four cases, clear the wordFlag of this word. re-start the process
this.wordFlags[text_idx][idx] = undefined;
this._spellcheck();
}
}
function _spellcheck() {
var ww = this.wordWin;
// check if this is the last word in the current text element
if( this.currentWordIndex == ww.totalWords( this.currentTextIndex) ) {
this.currentTextIndex++;
this.currentWordIndex = 0;
// keep going if we're not yet past the last text element
if( this.currentTextIndex < this.wordWin.textInputs.length ) {
this._spellcheck();
return;
} else {
this.terminateSpell();
return;
}
}
// if this is after the first one make sure the Undo button is enabled
if( this.currentWordIndex > 0 ) {
this.controlWin.enableUndo();
}
// skip the current word if it has already been worked on
if( this.wordFlags[this.currentTextIndex][this.currentWordIndex] ) {
// increment the global current word index and move on.
this.currentWordIndex++;
this._spellcheck();
} else {
var evalText = ww.getTextVal( this.currentTextIndex, this.currentWordIndex );
if( evalText ) {
this.controlWin.evaluatedText.value = evalText;
ww.setFocus( this.currentTextIndex, this.currentWordIndex );
this._getSuggestions( this.currentTextIndex, this.currentWordIndex );
}
}
}
function _getSuggestions( text_num, word_num ) {
this.controlWin.clearSuggestions();
// add suggestion in list for each suggested word.
// get the array of suggested words out of the
// three-dimensional array containing all suggestions.
var a_suggests = this.wordWin.suggestions[text_num][word_num];
if( a_suggests ) {
// got an array of suggestions.
for( var ii = 0; ii < a_suggests.length; ii++ ) {
this.controlWin.addSuggestion( a_suggests[ii] );
}
}
this.controlWin.selectDefaultSuggestion();
}
function _setAsIgnored( text_num, word_num, flag ) {
// set the UI
this.wordWin.removeFocus( text_num, word_num );
// do the bookkeeping
this.wordFlags[text_num][word_num] = flag;
return true;
}
function _getTotalReplaced() {
var i_replaced = 0;
for( var i = 0; i < this.wordFlags.length; i++ ) {
for( var j = 0; j < this.wordFlags[i].length; j++ ) {
if(( this.wordFlags[i][j] == this.replWordFlag )
|| ( this.wordFlags[i][j] == this.replAllFlag )
|| ( this.wordFlags[i][j] == this.fromReplAll )) {
i_replaced++;
}
}
}
return i_replaced;
}
function _setWordText( text_num, word_num, newText, flag ) {
// set the UI and form inputs
this.wordWin.setText( text_num, word_num, newText );
// keep track of what happened to this word:
this.wordFlags[text_num][word_num] = flag;
return true;
}
function _getFormInputs( inputPattern ) {
var inputs = new Array();
for( var i = 0; i < document.forms.length; i++ ) {
for( var j = 0; j < document.forms[i].elements.length; j++ ) {
if( document.forms[i].elements[j].type.match( inputPattern )) {
inputs[inputs.length] = document.forms[i].elements[j];
}
}
}
return inputs;
}
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Useful functions used by almost all dialog window pages.
* Dialogs should link to this file as the very first script on the page.
*/
// Automatically detect the correct document.domain (#123).
(function()
{
var d = document.domain ;
while ( true )
{
// Test if we can access a parent property.
try
{
var test = window.parent.document.domain ;
break ;
}
catch( e ) {}
// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
d = d.replace( /.*?(?:\.|$)/, '' ) ;
if ( d.length == 0 )
break ; // It was not able to detect the domain.
try
{
document.domain = d ;
}
catch (e)
{
break ;
}
}
})() ;
// Attention: FCKConfig must be available in the page.
function GetCommonDialogCss( prefix )
{
// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt).
return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ;
}
// Gets a element by its Id. Used for shorter coding.
function GetE( elementId )
{
return document.getElementById( elementId ) ;
}
function ShowE( element, isVisible )
{
if ( typeof( element ) == 'string' )
element = GetE( element ) ;
element.style.display = isVisible ? '' : 'none' ;
}
function SetAttribute( element, attName, attValue )
{
if ( attValue == null || attValue.length == 0 )
element.removeAttribute( attName, 0 ) ; // 0 : Case Insensitive
else
element.setAttribute( attName, attValue, 0 ) ; // 0 : Case Insensitive
}
function GetAttribute( element, attName, valueIfNull )
{
var oAtt = element.attributes[attName] ;
if ( oAtt == null || !oAtt.specified )
return valueIfNull ? valueIfNull : '' ;
var oValue = element.getAttribute( attName, 2 ) ;
if ( oValue == null )
oValue = oAtt.nodeValue ;
return ( oValue == null ? valueIfNull : oValue ) ;
}
function SelectField( elementId )
{
var element = GetE( elementId ) ;
element.focus() ;
// element.select may not be available for some fields (like <select>).
if ( element.select )
element.select() ;
}
// Functions used by text fields to accept numbers only.
var IsDigit = ( function()
{
var KeyIdentifierMap =
{
End : 35,
Home : 36,
Left : 37,
Right : 39,
'U+00007F' : 46 // Delete
} ;
return function ( e )
{
if ( !e )
e = event ;
var iCode = ( e.keyCode || e.charCode ) ;
if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) )
iCode = KeyIdentifierMap[ e.keyIdentifier ] ;
return (
( iCode >= 48 && iCode <= 57 ) // Numbers
|| (iCode >= 35 && iCode <= 40) // Arrows, Home, End
|| iCode == 8 // Backspace
|| iCode == 46 // Delete
|| iCode == 9 // Tab
) ;
}
} )() ;
String.prototype.Trim = function()
{
return this.replace( /(^\s*)|(\s*$)/g, '' ) ;
}
String.prototype.StartsWith = function( value )
{
return ( this.substr( 0, value.length ) == value ) ;
}
String.prototype.Remove = function( start, length )
{
var s = '' ;
if ( start > 0 )
s = this.substring( 0, start ) ;
if ( start + length < this.length )
s += this.substring( start + length , this.length ) ;
return s ;
}
String.prototype.ReplaceAll = function( searchArray, replaceArray )
{
var replaced = this ;
for ( var i = 0 ; i < searchArray.length ; i++ )
{
replaced = replaced.replace( searchArray[i], replaceArray[i] ) ;
}
return replaced ;
}
function OpenFileBrowser( url, width, height )
{
// oEditor must be defined.
var iLeft = ( oEditor.FCKConfig.ScreenWidth - width ) / 2 ;
var iTop = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ;
var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ;
sOptions += ",width=" + width ;
sOptions += ",height=" + height ;
sOptions += ",left=" + iLeft ;
sOptions += ",top=" + iTop ;
window.open( url, 'FCKBrowseWindow', sOptions ) ;
}
/**
Utility function to create/update an element with a name attribute in IE, so it behaves properly when moved around
It also allows to change the name or other special attributes in an existing node
oEditor : instance of FCKeditor where the element will be created
oOriginal : current element being edited or null if it has to be created
nodeName : string with the name of the element to create
oAttributes : Hash object with the attributes that must be set at creation time in IE
Those attributes will be set also after the element has been
created for any other browser to avoid redudant code
*/
function CreateNamedElement( oEditor, oOriginal, nodeName, oAttributes )
{
var oNewNode ;
// IE doesn't allow easily to change properties of an existing object,
// so remove the old and force the creation of a new one.
var oldNode = null ;
if ( oOriginal && oEditor.FCKBrowserInfo.IsIE )
{
// Force the creation only if some of the special attributes have changed:
var bChanged = false;
for( var attName in oAttributes )
bChanged |= ( oOriginal.getAttribute( attName, 2) != oAttributes[attName] ) ;
if ( bChanged )
{
oldNode = oOriginal ;
oOriginal = null ;
}
}
// If the node existed (and it's not IE), then we just have to update its attributes
if ( oOriginal )
{
oNewNode = oOriginal ;
}
else
{
// #676, IE doesn't play nice with the name or type attribute
if ( oEditor.FCKBrowserInfo.IsIE )
{
var sbHTML = [] ;
sbHTML.push( '<' + nodeName ) ;
for( var prop in oAttributes )
{
sbHTML.push( ' ' + prop + '="' + oAttributes[prop] + '"' ) ;
}
sbHTML.push( '>' ) ;
if ( !oEditor.FCKListsLib.EmptyElements[nodeName.toLowerCase()] )
sbHTML.push( '</' + nodeName + '>' ) ;
oNewNode = oEditor.FCK.EditorDocument.createElement( sbHTML.join('') ) ;
// Check if we are just changing the properties of an existing node: copy its properties
if ( oldNode )
{
CopyAttributes( oldNode, oNewNode, oAttributes ) ;
oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ;
oldNode.parentNode.removeChild( oldNode ) ;
oldNode = null ;
if ( oEditor.FCK.Selection.SelectionData )
{
// Trick to refresh the selection object and avoid error in
// fckdialog.html Selection.EnsureSelection
var oSel = oEditor.FCK.EditorDocument.selection ;
oEditor.FCK.Selection.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation
}
}
oNewNode = oEditor.FCK.InsertElement( oNewNode ) ;
// FCK.Selection.SelectionData is broken by now since we've
// deleted the previously selected element. So we need to reassign it.
if ( oEditor.FCK.Selection.SelectionData )
{
var range = oEditor.FCK.EditorDocument.body.createControlRange() ;
range.add( oNewNode ) ;
oEditor.FCK.Selection.SelectionData = range ;
}
}
else
{
oNewNode = oEditor.FCK.InsertElement( nodeName ) ;
}
}
// Set the basic attributes
for( var attName in oAttributes )
oNewNode.setAttribute( attName, oAttributes[attName], 0 ) ; // 0 : Case Insensitive
return oNewNode ;
}
// Copy all the attributes from one node to the other, kinda like a clone
// But oSkipAttributes is an object with the attributes that must NOT be copied
function CopyAttributes( oSource, oDest, oSkipAttributes )
{
var aAttributes = oSource.attributes ;
for ( var n = 0 ; n < aAttributes.length ; n++ )
{
var oAttribute = aAttributes[n] ;
if ( oAttribute.specified )
{
var sAttName = oAttribute.nodeName ;
// We can set the type only once, so do it with the proper value, not copying it.
if ( sAttName in oSkipAttributes )
continue ;
var sAttValue = oSource.getAttribute( sAttName, 2 ) ;
if ( sAttValue == null )
sAttValue = oAttribute.nodeValue ;
oDest.setAttribute( sAttName, sAttValue, 0 ) ; // 0 : Case Insensitive
}
}
// The style:
oDest.style.cssText = oSource.style.cssText ;
}
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Scripts related to the Image dialog window (see fck_image.html).
*/
var dialog = window.parent ;
var oEditor = dialog.InnerDialogLoaded() ;
var FCK = oEditor.FCK ;
var FCKLang = oEditor.FCKLang ;
var FCKConfig = oEditor.FCKConfig ;
var FCKDebug = oEditor.FCKDebug ;
var FCKTools = oEditor.FCKTools ;
var bImageButton = ( document.location.search.length > 0 && document.location.search.substr(1) == 'ImageButton' ) ;
//#### Dialog Tabs
// Set the dialog tabs.
dialog.AddTab( 'Info', FCKLang.DlgImgInfoTab ) ;
if ( !bImageButton && !FCKConfig.ImageDlgHideLink )
dialog.AddTab( 'Link', FCKLang.DlgImgLinkTab ) ;
if ( FCKConfig.ImageUpload )
dialog.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;
if ( !FCKConfig.ImageDlgHideAdvanced )
dialog.AddTab( 'Advanced', FCKLang.DlgAdvancedTag ) ;
// Function called when a dialog tag is selected.
function OnDialogTabChange( tabCode )
{
ShowE('divInfo' , ( tabCode == 'Info' ) ) ;
ShowE('divLink' , ( tabCode == 'Link' ) ) ;
ShowE('divUpload' , ( tabCode == 'Upload' ) ) ;
ShowE('divAdvanced' , ( tabCode == 'Advanced' ) ) ;
}
// Get the selected image (if available).
var oImage = dialog.Selection.GetSelectedElement() ;
if ( oImage && oImage.tagName != 'IMG' && !( oImage.tagName == 'INPUT' && oImage.type == 'image' ) )
oImage = null ;
// Get the active link.
var oLink = dialog.Selection.GetSelection().MoveToAncestorNode( 'A' ) ;
var oImageOriginal ;
function UpdateOriginal( resetSize )
{
if ( !eImgPreview )
return ;
if ( GetE('txtUrl').value.length == 0 )
{
oImageOriginal = null ;
return ;
}
oImageOriginal = document.createElement( 'IMG' ) ; // new Image() ;
if ( resetSize )
{
oImageOriginal.onload = function()
{
this.onload = null ;
ResetSizes() ;
}
}
oImageOriginal.src = eImgPreview.src ;
}
var bPreviewInitialized ;
window.onload = function()
{
// Translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage(document) ;
GetE('btnLockSizes').title = FCKLang.DlgImgLockRatio ;
GetE('btnResetSize').title = FCKLang.DlgBtnResetSize ;
// Load the selected element information (if any).
LoadSelection() ;
// Show/Hide the "Browse Server" button.
GetE('tdBrowse').style.display = FCKConfig.ImageBrowser ? '' : 'none' ;
GetE('divLnkBrowseServer').style.display = FCKConfig.LinkBrowser ? '' : 'none' ;
UpdateOriginal() ;
// Set the actual uploader URL.
if ( FCKConfig.ImageUpload )
GetE('frmUpload').action = FCKConfig.ImageUploadURL ;
dialog.SetAutoSize( true ) ;
// Activate the "OK" button.
dialog.SetOkButton( true ) ;
SelectField( 'txtUrl' ) ;
}
function LoadSelection()
{
if ( ! oImage ) return ;
var sUrl = oImage.getAttribute( '_fcksavedurl' ) ;
if ( sUrl == null )
sUrl = GetAttribute( oImage, 'src', '' ) ;
GetE('txtUrl').value = sUrl ;
GetE('txtAlt').value = GetAttribute( oImage, 'alt', '' ) ;
GetE('txtVSpace').value = GetAttribute( oImage, 'vspace', '' ) ;
GetE('txtHSpace').value = GetAttribute( oImage, 'hspace', '' ) ;
GetE('txtBorder').value = GetAttribute( oImage, 'border', '' ) ;
GetE('cmbAlign').value = GetAttribute( oImage, 'align', '' ) ;
var iWidth, iHeight ;
var regexSize = /^\s*(\d+)px\s*$/i ;
if ( oImage.style.width )
{
var aMatchW = oImage.style.width.match( regexSize ) ;
if ( aMatchW )
{
iWidth = aMatchW[1] ;
oImage.style.width = '' ;
SetAttribute( oImage, 'width' , iWidth ) ;
}
}
if ( oImage.style.height )
{
var aMatchH = oImage.style.height.match( regexSize ) ;
if ( aMatchH )
{
iHeight = aMatchH[1] ;
oImage.style.height = '' ;
SetAttribute( oImage, 'height', iHeight ) ;
}
}
GetE('txtWidth').value = iWidth ? iWidth : GetAttribute( oImage, "width", '' ) ;
GetE('txtHeight').value = iHeight ? iHeight : GetAttribute( oImage, "height", '' ) ;
// Get Advances Attributes
GetE('txtAttId').value = oImage.id ;
GetE('cmbAttLangDir').value = oImage.dir ;
GetE('txtAttLangCode').value = oImage.lang ;
GetE('txtAttTitle').value = oImage.title ;
GetE('txtLongDesc').value = oImage.longDesc ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
GetE('txtAttClasses').value = oImage.className || '' ;
GetE('txtAttStyle').value = oImage.style.cssText ;
}
else
{
GetE('txtAttClasses').value = oImage.getAttribute('class',2) || '' ;
GetE('txtAttStyle').value = oImage.getAttribute('style',2) ;
}
if ( oLink )
{
var sLinkUrl = oLink.getAttribute( '_fcksavedurl' ) ;
if ( sLinkUrl == null )
sLinkUrl = oLink.getAttribute('href',2) ;
GetE('txtLnkUrl').value = sLinkUrl ;
GetE('cmbLnkTarget').value = oLink.target ;
}
UpdatePreview() ;
}
//#### The OK button was hit.
function Ok()
{
if ( GetE('txtUrl').value.length == 0 )
{
dialog.SetSelectedTab( 'Info' ) ;
GetE('txtUrl').focus() ;
alert( FCKLang.DlgImgAlertUrl ) ;
return false ;
}
var bHasImage = ( oImage != null ) ;
if ( bHasImage && bImageButton && oImage.tagName == 'IMG' )
{
if ( confirm( 'Do you want to transform the selected image on a image button?' ) )
oImage = null ;
}
else if ( bHasImage && !bImageButton && oImage.tagName == 'INPUT' )
{
if ( confirm( 'Do you want to transform the selected image button on a simple image?' ) )
oImage = null ;
}
oEditor.FCKUndo.SaveUndoStep() ;
if ( !bHasImage )
{
if ( bImageButton )
{
oImage = FCK.EditorDocument.createElement( 'input' ) ;
oImage.type = 'image' ;
oImage = FCK.InsertElement( oImage ) ;
}
else
oImage = FCK.InsertElement( 'img' ) ;
}
UpdateImage( oImage ) ;
var sLnkUrl = GetE('txtLnkUrl').value.Trim() ;
if ( sLnkUrl.length == 0 )
{
if ( oLink )
FCK.ExecuteNamedCommand( 'Unlink' ) ;
}
else
{
if ( oLink ) // Modifying an existent link.
oLink.href = sLnkUrl ;
else // Creating a new link.
{
if ( !bHasImage )
oEditor.FCKSelection.SelectNode( oImage ) ;
oLink = oEditor.FCK.CreateLink( sLnkUrl )[0] ;
if ( !bHasImage )
{
oEditor.FCKSelection.SelectNode( oLink ) ;
oEditor.FCKSelection.Collapse( false ) ;
}
}
SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;
SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ;
}
return true ;
}
function UpdateImage( e, skipId )
{
e.src = GetE('txtUrl').value ;
SetAttribute( e, "_fcksavedurl", GetE('txtUrl').value ) ;
SetAttribute( e, "alt" , GetE('txtAlt').value ) ;
SetAttribute( e, "width" , GetE('txtWidth').value ) ;
SetAttribute( e, "height", GetE('txtHeight').value ) ;
SetAttribute( e, "vspace", GetE('txtVSpace').value ) ;
SetAttribute( e, "hspace", GetE('txtHSpace').value ) ;
SetAttribute( e, "border", GetE('txtBorder').value ) ;
SetAttribute( e, "align" , GetE('cmbAlign').value ) ;
// Advances Attributes
if ( ! skipId )
SetAttribute( e, 'id', GetE('txtAttId').value ) ;
SetAttribute( e, 'dir' , GetE('cmbAttLangDir').value ) ;
SetAttribute( e, 'lang' , GetE('txtAttLangCode').value ) ;
SetAttribute( e, 'title' , GetE('txtAttTitle').value ) ;
SetAttribute( e, 'longDesc' , GetE('txtLongDesc').value ) ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
e.className = GetE('txtAttClasses').value ;
e.style.cssText = GetE('txtAttStyle').value ;
}
else
{
SetAttribute( e, 'class' , GetE('txtAttClasses').value ) ;
SetAttribute( e, 'style', GetE('txtAttStyle').value ) ;
}
}
var eImgPreview ;
var eImgPreviewLink ;
function SetPreviewElements( imageElement, linkElement )
{
eImgPreview = imageElement ;
eImgPreviewLink = linkElement ;
UpdatePreview() ;
UpdateOriginal() ;
bPreviewInitialized = true ;
}
function UpdatePreview()
{
if ( !eImgPreview || !eImgPreviewLink )
return ;
if ( GetE('txtUrl').value.length == 0 )
eImgPreviewLink.style.display = 'none' ;
else
{
UpdateImage( eImgPreview, true ) ;
if ( GetE('txtLnkUrl').value.Trim().length > 0 )
eImgPreviewLink.href = 'javascript:void(null);' ;
else
SetAttribute( eImgPreviewLink, 'href', '' ) ;
eImgPreviewLink.style.display = '' ;
}
}
var bLockRatio = true ;
function SwitchLock( lockButton )
{
bLockRatio = !bLockRatio ;
lockButton.className = bLockRatio ? 'BtnLocked' : 'BtnUnlocked' ;
lockButton.title = bLockRatio ? 'Lock sizes' : 'Unlock sizes' ;
if ( bLockRatio )
{
if ( GetE('txtWidth').value.length > 0 )
OnSizeChanged( 'Width', GetE('txtWidth').value ) ;
else
OnSizeChanged( 'Height', GetE('txtHeight').value ) ;
}
}
// Fired when the width or height input texts change
function OnSizeChanged( dimension, value )
{
// Verifies if the aspect ration has to be maintained
if ( oImageOriginal && bLockRatio )
{
var e = dimension == 'Width' ? GetE('txtHeight') : GetE('txtWidth') ;
if ( value.length == 0 || isNaN( value ) )
{
e.value = '' ;
return ;
}
if ( dimension == 'Width' )
value = value == 0 ? 0 : Math.round( oImageOriginal.height * ( value / oImageOriginal.width ) ) ;
else
value = value == 0 ? 0 : Math.round( oImageOriginal.width * ( value / oImageOriginal.height ) ) ;
if ( !isNaN( value ) )
e.value = value ;
}
UpdatePreview() ;
}
// Fired when the Reset Size button is clicked
function ResetSizes()
{
if ( ! oImageOriginal ) return ;
if ( oEditor.FCKBrowserInfo.IsGecko && !oImageOriginal.complete )
{
setTimeout( ResetSizes, 50 ) ;
return ;
}
GetE('txtWidth').value = oImageOriginal.width ;
GetE('txtHeight').value = oImageOriginal.height ;
UpdatePreview() ;
}
function BrowseServer()
{
OpenServerBrowser(
'Image',
FCKConfig.ImageBrowserURL,
FCKConfig.ImageBrowserWindowWidth,
FCKConfig.ImageBrowserWindowHeight ) ;
}
function LnkBrowseServer()
{
OpenServerBrowser(
'Link',
FCKConfig.LinkBrowserURL,
FCKConfig.LinkBrowserWindowWidth,
FCKConfig.LinkBrowserWindowHeight ) ;
}
function OpenServerBrowser( type, url, width, height )
{
sActualBrowser = type ;
OpenFileBrowser( url, width, height ) ;
}
var sActualBrowser ;
function SetUrl( url, width, height, alt )
{
if ( sActualBrowser == 'Link' )
{
GetE('txtLnkUrl').value = url ;
UpdatePreview() ;
}
else
{
GetE('txtUrl').value = url ;
GetE('txtWidth').value = width ? width : '' ;
GetE('txtHeight').value = height ? height : '' ;
if ( alt )
GetE('txtAlt').value = alt;
UpdatePreview() ;
UpdateOriginal( true ) ;
}
dialog.SetSelectedTab( 'Info' ) ;
}
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
{
// Remove animation
window.parent.Throbber.Hide() ;
GetE( 'divUpload' ).style.display = '' ;
switch ( errorNumber )
{
case 0 : // No errors
alert( 'Your file has been successfully uploaded' ) ;
break ;
case 1 : // Custom error
alert( customMsg ) ;
return ;
case 101 : // Custom warning
alert( customMsg ) ;
break ;
case 201 :
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
break ;
case 202 :
alert( 'Invalid file type' ) ;
return ;
case 203 :
alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ;
return ;
case 500 :
alert( 'The connector is disabled' ) ;
break ;
default :
alert( 'Error on file upload. Error number: ' + errorNumber ) ;
return ;
}
sActualBrowser = '' ;
SetUrl( fileUrl ) ;
GetE('frmUpload').reset() ;
}
var oUploadAllowedExtRegex = new RegExp( FCKConfig.ImageUploadAllowedExtensions, 'i' ) ;
var oUploadDeniedExtRegex = new RegExp( FCKConfig.ImageUploadDeniedExtensions, 'i' ) ;
function CheckUpload()
{
var sFile = GetE('txtUploadFile').value ;
if ( sFile.length == 0 )
{
alert( 'Please select a file to upload' ) ;
return false ;
}
if ( ( FCKConfig.ImageUploadAllowedExtensions.length > 0 && !oUploadAllowedExtRegex.test( sFile ) ) ||
( FCKConfig.ImageUploadDeniedExtensions.length > 0 && oUploadDeniedExtRegex.test( sFile ) ) )
{
OnUploadCompleted( 202 ) ;
return false ;
}
// Show animation
window.parent.Throbber.Show( 100 ) ;
GetE( 'divUpload' ).style.display = 'none' ;
return true ;
}
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Scripts for the fck_select.html page.
*/
function Select( combo )
{
var iIndex = combo.selectedIndex ;
oListText.selectedIndex = iIndex ;
oListValue.selectedIndex = iIndex ;
var oTxtText = document.getElementById( "txtText" ) ;
var oTxtValue = document.getElementById( "txtValue" ) ;
oTxtText.value = oListText.value ;
oTxtValue.value = oListValue.value ;
}
function Add()
{
var oTxtText = document.getElementById( "txtText" ) ;
var oTxtValue = document.getElementById( "txtValue" ) ;
AddComboOption( oListText, oTxtText.value, oTxtText.value ) ;
AddComboOption( oListValue, oTxtValue.value, oTxtValue.value ) ;
oListText.selectedIndex = oListText.options.length - 1 ;
oListValue.selectedIndex = oListValue.options.length - 1 ;
oTxtText.value = '' ;
oTxtValue.value = '' ;
oTxtText.focus() ;
}
function Modify()
{
var iIndex = oListText.selectedIndex ;
if ( iIndex < 0 ) return ;
var oTxtText = document.getElementById( "txtText" ) ;
var oTxtValue = document.getElementById( "txtValue" ) ;
oListText.options[ iIndex ].innerHTML = HTMLEncode( oTxtText.value ) ;
oListText.options[ iIndex ].value = oTxtText.value ;
oListValue.options[ iIndex ].innerHTML = HTMLEncode( oTxtValue.value ) ;
oListValue.options[ iIndex ].value = oTxtValue.value ;
oTxtText.value = '' ;
oTxtValue.value = '' ;
oTxtText.focus() ;
}
function Move( steps )
{
ChangeOptionPosition( oListText, steps ) ;
ChangeOptionPosition( oListValue, steps ) ;
}
function Delete()
{
RemoveSelectedOptions( oListText ) ;
RemoveSelectedOptions( oListValue ) ;
}
function SetSelectedValue()
{
var iIndex = oListValue.selectedIndex ;
if ( iIndex < 0 ) return ;
var oTxtValue = document.getElementById( "txtSelValue" ) ;
oTxtValue.value = oListValue.options[ iIndex ].value ;
}
// Moves the selected option by a number of steps (also negative)
function ChangeOptionPosition( combo, steps )
{
var iActualIndex = combo.selectedIndex ;
if ( iActualIndex < 0 )
return ;
var iFinalIndex = iActualIndex + steps ;
if ( iFinalIndex < 0 )
iFinalIndex = 0 ;
if ( iFinalIndex > ( combo.options.length - 1 ) )
iFinalIndex = combo.options.length - 1 ;
if ( iActualIndex == iFinalIndex )
return ;
var oOption = combo.options[ iActualIndex ] ;
var sText = HTMLDecode( oOption.innerHTML ) ;
var sValue = oOption.value ;
combo.remove( iActualIndex ) ;
oOption = AddComboOption( combo, sText, sValue, null, iFinalIndex ) ;
oOption.selected = true ;
}
// Remove all selected options from a SELECT object
function RemoveSelectedOptions(combo)
{
// Save the selected index
var iSelectedIndex = combo.selectedIndex ;
var oOptions = combo.options ;
// Remove all selected options
for ( var i = oOptions.length - 1 ; i >= 0 ; i-- )
{
if (oOptions[i].selected) combo.remove(i) ;
}
// Reset the selection based on the original selected index
if ( combo.options.length > 0 )
{
if ( iSelectedIndex >= combo.options.length ) iSelectedIndex = combo.options.length - 1 ;
combo.selectedIndex = iSelectedIndex ;
}
}
// Add a new option to a SELECT object (combo or list)
function AddComboOption( combo, optionText, optionValue, documentObject, index )
{
var oOption ;
if ( documentObject )
oOption = documentObject.createElement("OPTION") ;
else
oOption = document.createElement("OPTION") ;
if ( index != null )
combo.options.add( oOption, index ) ;
else
combo.options.add( oOption ) ;
oOption.innerHTML = optionText.length > 0 ? HTMLEncode( optionText ) : ' ' ;
oOption.value = optionValue ;
return oOption ;
}
function HTMLEncode( text )
{
if ( !text )
return '' ;
text = text.replace( /&/g, '&' ) ;
text = text.replace( /</g, '<' ) ;
text = text.replace( />/g, '>' ) ;
return text ;
}
function HTMLDecode( text )
{
if ( !text )
return '' ;
text = text.replace( />/g, '>' ) ;
text = text.replace( /</g, '<' ) ;
text = text.replace( /&/g, '&' ) ;
return text ;
}
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Scripts related to the Link dialog window (see fck_link.html).
*/
var dialog = window.parent ;
var oEditor = dialog.InnerDialogLoaded() ;
var FCK = oEditor.FCK ;
var FCKLang = oEditor.FCKLang ;
var FCKConfig = oEditor.FCKConfig ;
var FCKRegexLib = oEditor.FCKRegexLib ;
var FCKTools = oEditor.FCKTools ;
//#### Dialog Tabs
// Set the dialog tabs.
dialog.AddTab( 'Info', FCKLang.DlgLnkInfoTab ) ;
if ( !FCKConfig.LinkDlgHideTarget )
dialog.AddTab( 'Target', FCKLang.DlgLnkTargetTab, true ) ;
if ( FCKConfig.LinkUpload )
dialog.AddTab( 'Upload', FCKLang.DlgLnkUpload, true ) ;
if ( !FCKConfig.LinkDlgHideAdvanced )
dialog.AddTab( 'Advanced', FCKLang.DlgAdvancedTag ) ;
// Function called when a dialog tag is selected.
function OnDialogTabChange( tabCode )
{
ShowE('divInfo' , ( tabCode == 'Info' ) ) ;
ShowE('divTarget' , ( tabCode == 'Target' ) ) ;
ShowE('divUpload' , ( tabCode == 'Upload' ) ) ;
ShowE('divAttribs' , ( tabCode == 'Advanced' ) ) ;
dialog.SetAutoSize( true ) ;
}
//#### Regular Expressions library.
var oRegex = new Object() ;
oRegex.UriProtocol = /^(((http|https|ftp|news):\/\/)|mailto:)/gi ;
oRegex.UrlOnChangeProtocol = /^(http|https|ftp|news):\/\/(?=.)/gi ;
oRegex.UrlOnChangeTestOther = /^((javascript:)|[#\/\.])/gi ;
oRegex.ReserveTarget = /^_(blank|self|top|parent)$/i ;
oRegex.PopupUri = /^javascript:void\(\s*window.open\(\s*'([^']+)'\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*\)\s*$/ ;
// Accessible popups
oRegex.OnClickPopup = /^\s*on[cC]lick="\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*"$/ ;
oRegex.PopupFeatures = /(?:^|,)([^=]+)=(\d+|yes|no)/gi ;
//#### Parser Functions
var oParser = new Object() ;
// This method simply returns the two inputs in numerical order. You can even
// provide strings, as the method would parseInt() the values.
oParser.SortNumerical = function(a, b)
{
return parseInt( a, 10 ) - parseInt( b, 10 ) ;
}
oParser.ParseEMailParams = function(sParams)
{
// Initialize the oEMailParams object.
var oEMailParams = new Object() ;
oEMailParams.Subject = '' ;
oEMailParams.Body = '' ;
var aMatch = sParams.match( /(^|^\?|&)subject=([^&]+)/i ) ;
if ( aMatch ) oEMailParams.Subject = decodeURIComponent( aMatch[2] ) ;
aMatch = sParams.match( /(^|^\?|&)body=([^&]+)/i ) ;
if ( aMatch ) oEMailParams.Body = decodeURIComponent( aMatch[2] ) ;
return oEMailParams ;
}
// This method returns either an object containing the email info, or FALSE
// if the parameter is not an email link.
oParser.ParseEMailUri = function( sUrl )
{
// Initializes the EMailInfo object.
var oEMailInfo = new Object() ;
oEMailInfo.Address = '' ;
oEMailInfo.Subject = '' ;
oEMailInfo.Body = '' ;
var aLinkInfo = sUrl.match( /^(\w+):(.*)$/ ) ;
if ( aLinkInfo && aLinkInfo[1] == 'mailto' )
{
// This seems to be an unprotected email link.
var aParts = aLinkInfo[2].match( /^([^\?]+)\??(.+)?/ ) ;
if ( aParts )
{
// Set the e-mail address.
oEMailInfo.Address = aParts[1] ;
// Look for the optional e-mail parameters.
if ( aParts[2] )
{
var oEMailParams = oParser.ParseEMailParams( aParts[2] ) ;
oEMailInfo.Subject = oEMailParams.Subject ;
oEMailInfo.Body = oEMailParams.Body ;
}
}
return oEMailInfo ;
}
else if ( aLinkInfo && aLinkInfo[1] == 'javascript' )
{
// This may be a protected email.
// Try to match the url against the EMailProtectionFunction.
var func = FCKConfig.EMailProtectionFunction ;
if ( func != null )
{
try
{
// Escape special chars.
func = func.replace( /([\/^$*+.?()\[\]])/g, '\\$1' ) ;
// Define the possible keys.
var keys = new Array('NAME', 'DOMAIN', 'SUBJECT', 'BODY') ;
// Get the order of the keys (hold them in the array <pos>) and
// the function replaced by regular expression patterns.
var sFunc = func ;
var pos = new Array() ;
for ( var i = 0 ; i < keys.length ; i ++ )
{
var rexp = new RegExp( keys[i] ) ;
var p = func.search( rexp ) ;
if ( p >= 0 )
{
sFunc = sFunc.replace( rexp, '\'([^\']*)\'' ) ;
pos[pos.length] = p + ':' + keys[i] ;
}
}
// Sort the available keys.
pos.sort( oParser.SortNumerical ) ;
// Replace the excaped single quotes in the url, such they do
// not affect the regexp afterwards.
aLinkInfo[2] = aLinkInfo[2].replace( /\\'/g, '###SINGLE_QUOTE###' ) ;
// Create the regexp and execute it.
var rFunc = new RegExp( '^' + sFunc + '$' ) ;
var aMatch = rFunc.exec( aLinkInfo[2] ) ;
if ( aMatch )
{
var aInfo = new Array();
for ( var i = 1 ; i < aMatch.length ; i ++ )
{
var k = pos[i-1].match(/^\d+:(.+)$/) ;
aInfo[k[1]] = aMatch[i].replace(/###SINGLE_QUOTE###/g, '\'') ;
}
// Fill the EMailInfo object that will be returned
oEMailInfo.Address = aInfo['NAME'] + '@' + aInfo['DOMAIN'] ;
oEMailInfo.Subject = decodeURIComponent( aInfo['SUBJECT'] ) ;
oEMailInfo.Body = decodeURIComponent( aInfo['BODY'] ) ;
return oEMailInfo ;
}
}
catch (e)
{
}
}
// Try to match the email against the encode protection.
var aMatch = aLinkInfo[2].match( /^location\.href='mailto:'\+(String\.fromCharCode\([\d,]+\))\+'(.*)'$/ ) ;
if ( aMatch )
{
// The link is encoded
oEMailInfo.Address = eval( aMatch[1] ) ;
if ( aMatch[2] )
{
var oEMailParams = oParser.ParseEMailParams( aMatch[2] ) ;
oEMailInfo.Subject = oEMailParams.Subject ;
oEMailInfo.Body = oEMailParams.Body ;
}
return oEMailInfo ;
}
}
return false;
}
oParser.CreateEMailUri = function( address, subject, body )
{
// Switch for the EMailProtection setting.
switch ( FCKConfig.EMailProtection )
{
case 'function' :
var func = FCKConfig.EMailProtectionFunction ;
if ( func == null )
{
if ( FCKConfig.Debug )
{
alert('EMailProtection alert!\nNo function defined. Please set "FCKConfig.EMailProtectionFunction"') ;
}
return '';
}
// Split the email address into name and domain parts.
var aAddressParts = address.split( '@', 2 ) ;
if ( aAddressParts[1] == undefined )
{
aAddressParts[1] = '' ;
}
// Replace the keys by their values (embedded in single quotes).
func = func.replace(/NAME/g, "'" + aAddressParts[0].replace(/'/g, '\\\'') + "'") ;
func = func.replace(/DOMAIN/g, "'" + aAddressParts[1].replace(/'/g, '\\\'') + "'") ;
func = func.replace(/SUBJECT/g, "'" + encodeURIComponent( subject ).replace(/'/g, '\\\'') + "'") ;
func = func.replace(/BODY/g, "'" + encodeURIComponent( body ).replace(/'/g, '\\\'') + "'") ;
return 'javascript:' + func ;
case 'encode' :
var aParams = [] ;
var aAddressCode = [] ;
if ( subject.length > 0 )
aParams.push( 'subject='+ encodeURIComponent( subject ) ) ;
if ( body.length > 0 )
aParams.push( 'body=' + encodeURIComponent( body ) ) ;
for ( var i = 0 ; i < address.length ; i++ )
aAddressCode.push( address.charCodeAt( i ) ) ;
return 'javascript:location.href=\'mailto:\'+String.fromCharCode(' + aAddressCode.join( ',' ) + ')+\'?' + aParams.join( '&' ) + '\'' ;
}
// EMailProtection 'none'
var sBaseUri = 'mailto:' + address ;
var sParams = '' ;
if ( subject.length > 0 )
sParams = '?subject=' + encodeURIComponent( subject ) ;
if ( body.length > 0 )
{
sParams += ( sParams.length == 0 ? '?' : '&' ) ;
sParams += 'body=' + encodeURIComponent( body ) ;
}
return sBaseUri + sParams ;
}
//#### Initialization Code
// oLink: The actual selected link in the editor.
var oLink = dialog.Selection.GetSelection().MoveToAncestorNode( 'A' ) ;
if ( oLink )
FCK.Selection.SelectNode( oLink ) ;
window.onload = function()
{
// Translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage(document) ;
// Fill the Anchor Names and Ids combos.
LoadAnchorNamesAndIds() ;
// Load the selected link information (if any).
LoadSelection() ;
// Update the dialog box.
SetLinkType( GetE('cmbLinkType').value ) ;
// Show/Hide the "Browse Server" button.
GetE('divBrowseServer').style.display = FCKConfig.LinkBrowser ? '' : 'none' ;
// Show the initial dialog content.
GetE('divInfo').style.display = '' ;
// Set the actual uploader URL.
if ( FCKConfig.LinkUpload )
GetE('frmUpload').action = FCKConfig.LinkUploadURL ;
// Set the default target (from configuration).
SetDefaultTarget() ;
// Activate the "OK" button.
dialog.SetOkButton( true ) ;
// Select the first field.
switch( GetE('cmbLinkType').value )
{
case 'url' :
SelectField( 'txtUrl' ) ;
break ;
case 'email' :
SelectField( 'txtEMailAddress' ) ;
break ;
case 'anchor' :
if ( GetE('divSelAnchor').style.display != 'none' )
SelectField( 'cmbAnchorName' ) ;
else
SelectField( 'cmbLinkType' ) ;
}
}
var bHasAnchors ;
function LoadAnchorNamesAndIds()
{
// Since version 2.0, the anchors are replaced in the DOM by IMGs so the user see the icon
// to edit them. So, we must look for that images now.
var aAnchors = new Array() ;
var i ;
var oImages = oEditor.FCK.EditorDocument.getElementsByTagName( 'IMG' ) ;
for( i = 0 ; i < oImages.length ; i++ )
{
if ( oImages[i].getAttribute('_fckanchor') )
aAnchors[ aAnchors.length ] = oEditor.FCK.GetRealElement( oImages[i] ) ;
}
// Add also real anchors
var oLinks = oEditor.FCK.EditorDocument.getElementsByTagName( 'A' ) ;
for( i = 0 ; i < oLinks.length ; i++ )
{
if ( oLinks[i].name && ( oLinks[i].name.length > 0 ) )
aAnchors[ aAnchors.length ] = oLinks[i] ;
}
var aIds = FCKTools.GetAllChildrenIds( oEditor.FCK.EditorDocument.body ) ;
bHasAnchors = ( aAnchors.length > 0 || aIds.length > 0 ) ;
for ( i = 0 ; i < aAnchors.length ; i++ )
{
var sName = aAnchors[i].name ;
if ( sName && sName.length > 0 )
FCKTools.AddSelectOption( GetE('cmbAnchorName'), sName, sName ) ;
}
for ( i = 0 ; i < aIds.length ; i++ )
{
FCKTools.AddSelectOption( GetE('cmbAnchorId'), aIds[i], aIds[i] ) ;
}
ShowE( 'divSelAnchor' , bHasAnchors ) ;
ShowE( 'divNoAnchor' , !bHasAnchors ) ;
}
function LoadSelection()
{
if ( !oLink ) return ;
var sType = 'url' ;
// Get the actual Link href.
var sHRef = oLink.getAttribute( '_fcksavedurl' ) ;
if ( sHRef == null )
sHRef = oLink.getAttribute( 'href' , 2 ) || '' ;
// Look for a popup javascript link.
var oPopupMatch = oRegex.PopupUri.exec( sHRef ) ;
if( oPopupMatch )
{
GetE('cmbTarget').value = 'popup' ;
sHRef = oPopupMatch[1] ;
FillPopupFields( oPopupMatch[2], oPopupMatch[3] ) ;
SetTarget( 'popup' ) ;
}
// Accessible popups, the popup data is in the onclick attribute
if ( !oPopupMatch )
{
var onclick = oLink.getAttribute( 'onclick_fckprotectedatt' ) ;
if ( onclick )
{
// Decode the protected string
onclick = decodeURIComponent( onclick ) ;
oPopupMatch = oRegex.OnClickPopup.exec( onclick ) ;
if( oPopupMatch )
{
GetE( 'cmbTarget' ).value = 'popup' ;
FillPopupFields( oPopupMatch[1], oPopupMatch[2] ) ;
SetTarget( 'popup' ) ;
}
}
}
// Search for the protocol.
var sProtocol = oRegex.UriProtocol.exec( sHRef ) ;
// Search for a protected email link.
var oEMailInfo = oParser.ParseEMailUri( sHRef );
if ( oEMailInfo )
{
sType = 'email' ;
GetE('txtEMailAddress').value = oEMailInfo.Address ;
GetE('txtEMailSubject').value = oEMailInfo.Subject ;
GetE('txtEMailBody').value = oEMailInfo.Body ;
}
else if ( sProtocol )
{
sProtocol = sProtocol[0].toLowerCase() ;
GetE('cmbLinkProtocol').value = sProtocol ;
// Remove the protocol and get the remaining URL.
var sUrl = sHRef.replace( oRegex.UriProtocol, '' ) ;
sType = 'url' ;
GetE('txtUrl').value = sUrl ;
}
else if ( sHRef.substr(0,1) == '#' && sHRef.length > 1 ) // It is an anchor link.
{
sType = 'anchor' ;
GetE('cmbAnchorName').value = GetE('cmbAnchorId').value = sHRef.substr(1) ;
}
else // It is another type of link.
{
sType = 'url' ;
GetE('cmbLinkProtocol').value = '' ;
GetE('txtUrl').value = sHRef ;
}
if ( !oPopupMatch )
{
// Get the target.
var sTarget = oLink.target ;
if ( sTarget && sTarget.length > 0 )
{
if ( oRegex.ReserveTarget.test( sTarget ) )
{
sTarget = sTarget.toLowerCase() ;
GetE('cmbTarget').value = sTarget ;
}
else
GetE('cmbTarget').value = 'frame' ;
GetE('txtTargetFrame').value = sTarget ;
}
}
// Get Advances Attributes
GetE('txtAttId').value = oLink.id ;
GetE('txtAttName').value = oLink.name ;
GetE('cmbAttLangDir').value = oLink.dir ;
GetE('txtAttLangCode').value = oLink.lang ;
GetE('txtAttAccessKey').value = oLink.accessKey ;
GetE('txtAttTabIndex').value = oLink.tabIndex <= 0 ? '' : oLink.tabIndex ;
GetE('txtAttTitle').value = oLink.title ;
GetE('txtAttContentType').value = oLink.type ;
GetE('txtAttCharSet').value = oLink.charset ;
var sClass ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
sClass = oLink.getAttribute('className',2) || '' ;
// Clean up temporary classes for internal use:
sClass = sClass.replace( FCKRegexLib.FCK_Class, '' ) ;
GetE('txtAttStyle').value = oLink.style.cssText ;
}
else
{
sClass = oLink.getAttribute('class',2) || '' ;
GetE('txtAttStyle').value = oLink.getAttribute('style',2) || '' ;
}
GetE('txtAttClasses').value = sClass ;
// Update the Link type combo.
GetE('cmbLinkType').value = sType ;
}
//#### Link type selection.
function SetLinkType( linkType )
{
ShowE('divLinkTypeUrl' , (linkType == 'url') ) ;
ShowE('divLinkTypeAnchor' , (linkType == 'anchor') ) ;
ShowE('divLinkTypeEMail' , (linkType == 'email') ) ;
if ( !FCKConfig.LinkDlgHideTarget )
dialog.SetTabVisibility( 'Target' , (linkType == 'url') ) ;
if ( FCKConfig.LinkUpload )
dialog.SetTabVisibility( 'Upload' , (linkType == 'url') ) ;
if ( !FCKConfig.LinkDlgHideAdvanced )
dialog.SetTabVisibility( 'Advanced' , (linkType != 'anchor' || bHasAnchors) ) ;
if ( linkType == 'email' )
dialog.SetAutoSize( true ) ;
}
//#### Target type selection.
function SetTarget( targetType )
{
GetE('tdTargetFrame').style.display = ( targetType == 'popup' ? 'none' : '' ) ;
GetE('tdPopupName').style.display =
GetE('tablePopupFeatures').style.display = ( targetType == 'popup' ? '' : 'none' ) ;
switch ( targetType )
{
case "_blank" :
case "_self" :
case "_parent" :
case "_top" :
GetE('txtTargetFrame').value = targetType ;
break ;
case "" :
GetE('txtTargetFrame').value = '' ;
break ;
}
if ( targetType == 'popup' )
dialog.SetAutoSize( true ) ;
}
//#### Called while the user types the URL.
function OnUrlChange()
{
var sUrl = GetE('txtUrl').value ;
var sProtocol = oRegex.UrlOnChangeProtocol.exec( sUrl ) ;
if ( sProtocol )
{
sUrl = sUrl.substr( sProtocol[0].length ) ;
GetE('txtUrl').value = sUrl ;
GetE('cmbLinkProtocol').value = sProtocol[0].toLowerCase() ;
}
else if ( oRegex.UrlOnChangeTestOther.test( sUrl ) )
{
GetE('cmbLinkProtocol').value = '' ;
}
}
//#### Called while the user types the target name.
function OnTargetNameChange()
{
var sFrame = GetE('txtTargetFrame').value ;
if ( sFrame.length == 0 )
GetE('cmbTarget').value = '' ;
else if ( oRegex.ReserveTarget.test( sFrame ) )
GetE('cmbTarget').value = sFrame.toLowerCase() ;
else
GetE('cmbTarget').value = 'frame' ;
}
// Accessible popups
function BuildOnClickPopup()
{
var sWindowName = "'" + GetE('txtPopupName').value.replace(/\W/gi, "") + "'" ;
var sFeatures = '' ;
var aChkFeatures = document.getElementsByName( 'chkFeature' ) ;
for ( var i = 0 ; i < aChkFeatures.length ; i++ )
{
if ( i > 0 ) sFeatures += ',' ;
sFeatures += aChkFeatures[i].value + '=' + ( aChkFeatures[i].checked ? 'yes' : 'no' ) ;
}
if ( GetE('txtPopupWidth').value.length > 0 ) sFeatures += ',width=' + GetE('txtPopupWidth').value ;
if ( GetE('txtPopupHeight').value.length > 0 ) sFeatures += ',height=' + GetE('txtPopupHeight').value ;
if ( GetE('txtPopupLeft').value.length > 0 ) sFeatures += ',left=' + GetE('txtPopupLeft').value ;
if ( GetE('txtPopupTop').value.length > 0 ) sFeatures += ',top=' + GetE('txtPopupTop').value ;
if ( sFeatures != '' )
sFeatures = sFeatures + ",status" ;
return ( "window.open(this.href," + sWindowName + ",'" + sFeatures + "'); return false" ) ;
}
//#### Fills all Popup related fields.
function FillPopupFields( windowName, features )
{
if ( windowName )
GetE('txtPopupName').value = windowName ;
var oFeatures = new Object() ;
var oFeaturesMatch ;
while( ( oFeaturesMatch = oRegex.PopupFeatures.exec( features ) ) != null )
{
var sValue = oFeaturesMatch[2] ;
if ( sValue == ( 'yes' || '1' ) )
oFeatures[ oFeaturesMatch[1] ] = true ;
else if ( ! isNaN( sValue ) && sValue != 0 )
oFeatures[ oFeaturesMatch[1] ] = sValue ;
}
// Update all features check boxes.
var aChkFeatures = document.getElementsByName('chkFeature') ;
for ( var i = 0 ; i < aChkFeatures.length ; i++ )
{
if ( oFeatures[ aChkFeatures[i].value ] )
aChkFeatures[i].checked = true ;
}
// Update position and size text boxes.
if ( oFeatures['width'] ) GetE('txtPopupWidth').value = oFeatures['width'] ;
if ( oFeatures['height'] ) GetE('txtPopupHeight').value = oFeatures['height'] ;
if ( oFeatures['left'] ) GetE('txtPopupLeft').value = oFeatures['left'] ;
if ( oFeatures['top'] ) GetE('txtPopupTop').value = oFeatures['top'] ;
}
//#### The OK button was hit.
function Ok()
{
var sUri, sInnerHtml ;
oEditor.FCKUndo.SaveUndoStep() ;
switch ( GetE('cmbLinkType').value )
{
case 'url' :
sUri = GetE('txtUrl').value ;
if ( sUri.length == 0 )
{
alert( FCKLang.DlnLnkMsgNoUrl ) ;
return false ;
}
sUri = GetE('cmbLinkProtocol').value + sUri ;
break ;
case 'email' :
sUri = GetE('txtEMailAddress').value ;
if ( sUri.length == 0 )
{
alert( FCKLang.DlnLnkMsgNoEMail ) ;
return false ;
}
sUri = oParser.CreateEMailUri(
sUri,
GetE('txtEMailSubject').value,
GetE('txtEMailBody').value ) ;
break ;
case 'anchor' :
var sAnchor = GetE('cmbAnchorName').value ;
if ( sAnchor.length == 0 ) sAnchor = GetE('cmbAnchorId').value ;
if ( sAnchor.length == 0 )
{
alert( FCKLang.DlnLnkMsgNoAnchor ) ;
return false ;
}
sUri = '#' + sAnchor ;
break ;
}
// If no link is selected, create a new one (it may result in more than one link creation - #220).
var aLinks = oLink ? [ oLink ] : oEditor.FCK.CreateLink( sUri, true ) ;
// If no selection, no links are created, so use the uri as the link text (by dom, 2006-05-26)
var aHasSelection = ( aLinks.length > 0 ) ;
if ( !aHasSelection )
{
sInnerHtml = sUri;
// Built a better text for empty links.
switch ( GetE('cmbLinkType').value )
{
// anchor: use old behavior --> return true
case 'anchor':
sInnerHtml = sInnerHtml.replace( /^#/, '' ) ;
break ;
// url: try to get path
case 'url':
var oLinkPathRegEx = new RegExp("//?([^?\"']+)([?].*)?$") ;
var asLinkPath = oLinkPathRegEx.exec( sUri ) ;
if (asLinkPath != null)
sInnerHtml = asLinkPath[1]; // use matched path
break ;
// mailto: try to get email address
case 'email':
sInnerHtml = GetE('txtEMailAddress').value ;
break ;
}
// Create a new (empty) anchor.
aLinks = [ oEditor.FCK.InsertElement( 'a' ) ] ;
}
for ( var i = 0 ; i < aLinks.length ; i++ )
{
oLink = aLinks[i] ;
if ( aHasSelection )
sInnerHtml = oLink.innerHTML ; // Save the innerHTML (IE changes it if it is like an URL).
oLink.href = sUri ;
SetAttribute( oLink, '_fcksavedurl', sUri ) ;
var onclick;
// Accessible popups
if( GetE('cmbTarget').value == 'popup' )
{
onclick = BuildOnClickPopup() ;
// Encode the attribute
onclick = encodeURIComponent( " onclick=\"" + onclick + "\"" ) ;
SetAttribute( oLink, 'onclick_fckprotectedatt', onclick ) ;
}
else
{
// Check if the previous onclick was for a popup:
// In that case remove the onclick handler.
onclick = oLink.getAttribute( 'onclick_fckprotectedatt' ) ;
if ( onclick )
{
// Decode the protected string
onclick = decodeURIComponent( onclick ) ;
if( oRegex.OnClickPopup.test( onclick ) )
SetAttribute( oLink, 'onclick_fckprotectedatt', '' ) ;
}
}
oLink.innerHTML = sInnerHtml ; // Set (or restore) the innerHTML
// Target
if( GetE('cmbTarget').value != 'popup' )
SetAttribute( oLink, 'target', GetE('txtTargetFrame').value ) ;
else
SetAttribute( oLink, 'target', null ) ;
// Let's set the "id" only for the first link to avoid duplication.
if ( i == 0 )
SetAttribute( oLink, 'id', GetE('txtAttId').value ) ;
// Advances Attributes
SetAttribute( oLink, 'name' , GetE('txtAttName').value ) ;
SetAttribute( oLink, 'dir' , GetE('cmbAttLangDir').value ) ;
SetAttribute( oLink, 'lang' , GetE('txtAttLangCode').value ) ;
SetAttribute( oLink, 'accesskey', GetE('txtAttAccessKey').value ) ;
SetAttribute( oLink, 'tabindex' , ( GetE('txtAttTabIndex').value > 0 ? GetE('txtAttTabIndex').value : null ) ) ;
SetAttribute( oLink, 'title' , GetE('txtAttTitle').value ) ;
SetAttribute( oLink, 'type' , GetE('txtAttContentType').value ) ;
SetAttribute( oLink, 'charset' , GetE('txtAttCharSet').value ) ;
if ( oEditor.FCKBrowserInfo.IsIE )
{
var sClass = GetE('txtAttClasses').value ;
// If it's also an anchor add an internal class
if ( GetE('txtAttName').value.length != 0 )
sClass += ' FCK__AnchorC' ;
SetAttribute( oLink, 'className', sClass ) ;
oLink.style.cssText = GetE('txtAttStyle').value ;
}
else
{
SetAttribute( oLink, 'class', GetE('txtAttClasses').value ) ;
SetAttribute( oLink, 'style', GetE('txtAttStyle').value ) ;
}
}
// Select the (first) link.
oEditor.FCKSelection.SelectNode( aLinks[0] );
return true ;
}
function BrowseServer()
{
OpenFileBrowser( FCKConfig.LinkBrowserURL, FCKConfig.LinkBrowserWindowWidth, FCKConfig.LinkBrowserWindowHeight ) ;
}
function SetUrl( url )
{
GetE('txtUrl').value = url ;
OnUrlChange() ;
dialog.SetSelectedTab( 'Info' ) ;
}
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
{
// Remove animation
window.parent.Throbber.Hide() ;
GetE( 'divUpload' ).style.display = '' ;
switch ( errorNumber )
{
case 0 : // No errors
alert( 'Your file has been successfully uploaded' ) ;
break ;
case 1 : // Custom error
alert( customMsg ) ;
return ;
case 101 : // Custom warning
alert( customMsg ) ;
break ;
case 201 :
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
break ;
case 202 :
alert( 'Invalid file type' ) ;
return ;
case 203 :
alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ;
return ;
case 500 :
alert( 'The connector is disabled' ) ;
break ;
default :
alert( 'Error on file upload. Error number: ' + errorNumber ) ;
return ;
}
SetUrl( fileUrl ) ;
GetE('frmUpload').reset() ;
}
var oUploadAllowedExtRegex = new RegExp( FCKConfig.LinkUploadAllowedExtensions, 'i' ) ;
var oUploadDeniedExtRegex = new RegExp( FCKConfig.LinkUploadDeniedExtensions, 'i' ) ;
function CheckUpload()
{
var sFile = GetE('txtUploadFile').value ;
if ( sFile.length == 0 )
{
alert( 'Please select a file to upload' ) ;
return false ;
}
if ( ( FCKConfig.LinkUploadAllowedExtensions.length > 0 && !oUploadAllowedExtRegex.test( sFile ) ) ||
( FCKConfig.LinkUploadDeniedExtensions.length > 0 && oUploadDeniedExtRegex.test( sFile ) ) )
{
OnUploadCompleted( 202 ) ;
return false ;
}
// Show animation
window.parent.Throbber.Show( 100 ) ;
GetE( 'divUpload' ).style.display = 'none' ;
return true ;
}
function SetDefaultTarget()
{
var target = FCKConfig.DefaultLinkTarget || '' ;
if ( oLink || target.length == 0 )
return ;
switch ( target )
{
case '_blank' :
case '_self' :
case '_parent' :
case '_top' :
GetE('cmbTarget').value = target ;
break ;
default :
GetE('cmbTarget').value = 'frame' ;
break ;
}
GetE('txtTargetFrame').value = target ;
}
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Editor configuration settings.
*
* Follow this link for more information:
* http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
*/
FCKConfig.CustomConfigurationsPath = '' ;
FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
FCKConfig.EditorAreaStyles = '' ;
FCKConfig.ToolbarComboPreviewCSS = '' ;
FCKConfig.DocType = '' ;
FCKConfig.BaseHref = '' ;
FCKConfig.FullPage = false ;
// The following option determines whether the "Show Blocks" feature is enabled or not at startup.
FCKConfig.StartupShowBlocks = false ;
FCKConfig.Debug = false ;
FCKConfig.AllowQueryStringDebug = true ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
FCKConfig.SkinEditorCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ;
FCKConfig.SkinDialogCSS = '' ; // FCKConfig.SkinPath + "|<minified css>" ;
FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
// FCKConfig.Plugins.Add( 'autogrow' ) ;
// FCKConfig.Plugins.Add( 'dragresizetable' );
FCKConfig.AutoGrowMax = 400 ;
// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%>
// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control>
FCKConfig.AutoDetectLanguage = true ;
FCKConfig.DefaultLanguage = 'en' ;
FCKConfig.ContentLangDirection = 'ltr' ;
FCKConfig.ProcessHTMLEntities = true ;
FCKConfig.IncludeLatinEntities = true ;
FCKConfig.IncludeGreekEntities = true ;
FCKConfig.ProcessNumericEntities = false ;
FCKConfig.AdditionalNumericEntities = '' ; // Single Quote: "'"
FCKConfig.FillEmptyBlocks = true ;
FCKConfig.FormatSource = true ;
FCKConfig.FormatOutput = true ;
FCKConfig.FormatIndentator = ' ' ;
FCKConfig.EMailProtection = 'encode' ; // none | encode | function
FCKConfig.EMailProtectionFunction = 'mt(NAME,DOMAIN,SUBJECT,BODY)' ;
FCKConfig.StartupFocus = false ;
FCKConfig.ForcePasteAsPlainText = false ;
FCKConfig.AutoDetectPasteFromWord = true ; // IE only.
FCKConfig.ShowDropDialog = true ;
FCKConfig.ForceSimpleAmpersand = false ;
FCKConfig.TabSpaces = 0 ;
FCKConfig.ShowBorders = true ;
FCKConfig.SourcePopup = false ;
FCKConfig.ToolbarStartExpanded = true ;
FCKConfig.ToolbarCanCollapse = true ;
FCKConfig.IgnoreEmptyParagraphValue = true ;
FCKConfig.FloatingPanelsZIndex = 10000 ;
FCKConfig.HtmlEncodeOutput = false ;
FCKConfig.TemplateReplaceAll = true ;
FCKConfig.TemplateReplaceCheckbox = true ;
FCKConfig.ToolbarLocation = 'In' ;
FCKConfig.ToolbarSets["Default"] = [
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
FCKConfig.EnterMode = 'p' ; // p | div | br
FCKConfig.ShiftEnterMode = 'br' ; // p | div | br
FCKConfig.Keystrokes = [
[ CTRL + 65 /*A*/, true ],
[ CTRL + 67 /*C*/, true ],
[ CTRL + 70 /*F*/, true ],
[ CTRL + 83 /*S*/, true ],
[ CTRL + 84 /*T*/, true ],
[ CTRL + 88 /*X*/, true ],
[ CTRL + 86 /*V*/, 'Paste' ],
[ CTRL + 45 /*INS*/, true ],
[ SHIFT + 45 /*INS*/, 'Paste' ],
[ CTRL + 88 /*X*/, 'Cut' ],
[ SHIFT + 46 /*DEL*/, 'Cut' ],
[ CTRL + 90 /*Z*/, 'Undo' ],
[ CTRL + 89 /*Y*/, 'Redo' ],
[ CTRL + SHIFT + 90 /*Z*/, 'Redo' ],
[ CTRL + 76 /*L*/, 'Link' ],
[ CTRL + 66 /*B*/, 'Bold' ],
[ CTRL + 73 /*I*/, 'Italic' ],
[ CTRL + 85 /*U*/, 'Underline' ],
[ CTRL + SHIFT + 83 /*S*/, 'Save' ],
[ CTRL + ALT + 13 /*ENTER*/, 'FitWindow' ],
[ SHIFT + 32 /*SPACE*/, 'Nbsp' ]
] ;
FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ;
FCKConfig.BrowserContextMenuOnCtrl = false ;
FCKConfig.BrowserContextMenu = false ;
FCKConfig.EnableMoreFontColors = true ;
FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
FCKConfig.FontSizes = 'smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large' ;
FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ;
FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ;
FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages'
FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/download.php' ;
FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ; // Available extension: .php .cfm .pl
FCKConfig.FirefoxSpellChecker = false ;
FCKConfig.MaxUndoLevels = 15 ;
FCKConfig.DisableObjectResizing = false ;
FCKConfig.DisableFFTableHandles = true ;
FCKConfig.LinkDlgHideTarget = false ;
FCKConfig.LinkDlgHideAdvanced = false ;
FCKConfig.ImageDlgHideLink = false ;
FCKConfig.ImageDlgHideAdvanced = false ;
FCKConfig.FlashDlgHideAdvanced = false ;
FCKConfig.ProtectedTags = '' ;
// This will be applied to the body element of the editor
FCKConfig.BodyId = '' ;
FCKConfig.BodyClass = '' ;
FCKConfig.DefaultStyleLabel = '' ;
FCKConfig.DefaultFontFormatLabel = '' ;
FCKConfig.DefaultFontLabel = '' ;
FCKConfig.DefaultFontSizeLabel = '' ;
FCKConfig.DefaultLinkTarget = '' ;
// The option switches between trying to keep the html structure or do the changes so the content looks like it was in Word
FCKConfig.CleanWordKeepsStructure = false ;
// Only inline elements are valid.
FCKConfig.RemoveFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' ;
// Attributes that will be removed
FCKConfig.RemoveAttributes = 'class,style,lang,width,height,align,hspace,valign' ;
FCKConfig.CustomStyles =
{
'Red Title' : { Element : 'h3', Styles : { 'color' : 'Red' } }
};
// Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles =
{
// Basic Inline Styles.
'Bold' : { Element : 'strong', Overrides : 'b' },
'Italic' : { Element : 'em', Overrides : 'i' },
'Underline' : { Element : 'u' },
'StrikeThrough' : { Element : 'strike' },
'Subscript' : { Element : 'sub' },
'Superscript' : { Element : 'sup' },
// Basic Block Styles (Font Format Combo).
'p' : { Element : 'p' },
'div' : { Element : 'div' },
'pre' : { Element : 'pre' },
'address' : { Element : 'address' },
'h1' : { Element : 'h1' },
'h2' : { Element : 'h2' },
'h3' : { Element : 'h3' },
'h4' : { Element : 'h4' },
'h5' : { Element : 'h5' },
'h6' : { Element : 'h6' },
// Other formatting features.
'FontFace' :
{
Element : 'span',
Styles : { 'font-family' : '#("Font")' },
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ]
},
'Size' :
{
Element : 'span',
Styles : { 'font-size' : '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},
'Color' :
{
Element : 'span',
Styles : { 'color' : '#("Color","color")' },
Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ]
},
'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } },
'SelectionHighlight' : { Element : 'span', Styles : { 'background-color' : 'navy', 'color' : 'white' } }
};
// The distance of an indentation step.
FCKConfig.IndentLength = 40 ;
FCKConfig.IndentUnit = 'px' ;
// Alternatively, FCKeditor allows the use of CSS classes for block indentation.
// This overrides the IndentLength/IndentUnit settings.
FCKConfig.IndentClasses = [] ;
// [ Left, Center, Right, Justified ]
FCKConfig.JustifyClasses = [] ;
// The following value defines which File Browser connector and Quick Upload
// "uploader" to use. It is valid for the default implementaion and it is here
// just to make this configuration file cleaner.
// It is not possible to change this value using an external file or even
// inline when creating the editor instance. In that cases you must set the
// values of LinkBrowserURL, ImageBrowserURL and so on.
// Custom implementations should just ignore it.
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
// Don't care about the following two lines. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ;
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;
FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
FCKConfig.FlashUpload = true ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ;
FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;
FCKConfig.SmileyColumns = 8 ;
FCKConfig.SmileyWindowWidth = 320 ;
FCKConfig.SmileyWindowHeight = 210 ;
FCKConfig.BackgroundBlockerColor = '#ffffff' ;
FCKConfig.BackgroundBlockerOpacity = 0.50 ;
FCKConfig.MsWebBrowserControlCompat = false ;
FCKConfig.PreventSubmitHandler = false ;
| JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the integration file for JavaScript.
*
* It defines the FCKeditor class that can be used to create editor
* instances in a HTML page in the client side. For server side
* operations, use the specific integration system.
*/
// FCKeditor Class
var FCKeditor = function( instanceName, width, height, toolbarSet, value )
{
// Properties
this.InstanceName = instanceName ;
this.Width = width || '100%' ;
this.Height = height || '200' ;
this.ToolbarSet = toolbarSet || 'Default' ;
this.Value = value || '' ;
this.BasePath = FCKeditor.BasePath ;
this.CheckBrowser = true ;
this.DisplayErrors = true ;
this.Config = new Object() ;
// Events
this.OnError = null ; // function( source, errorNumber, errorDescription )
}
/**
* This is the default BasePath used by all editor instances.
*/
FCKeditor.BasePath = '/fckeditor/' ;
/**
* The minimum height used when replacing textareas.
*/
FCKeditor.MinHeight = 200 ;
/**
* The minimum width used when replacing textareas.
*/
FCKeditor.MinWidth = 750 ;
FCKeditor.prototype.Version = '2.6.3' ;
FCKeditor.prototype.VersionBuild = '19836' ;
FCKeditor.prototype.Create = function()
{
document.write( this.CreateHtml() ) ;
}
FCKeditor.prototype.CreateHtml = function()
{
// Check for errors
if ( !this.InstanceName || this.InstanceName.length == 0 )
{
this._ThrowError( 701, 'You must specify an instance name.' ) ;
return '' ;
}
var sHtml = '' ;
if ( !this.CheckBrowser || this._IsCompatibleBrowser() )
{
sHtml += '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" style="display:none" />' ;
sHtml += this._GetConfigHtml() ;
sHtml += this._GetIFrameHtml() ;
}
else
{
var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ;
var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ;
sHtml += '<textarea name="' + this.InstanceName +
'" rows="4" cols="40" style="width:' + sWidth +
';height:' + sHeight ;
if ( this.TabIndex )
sHtml += '" tabindex="' + this.TabIndex ;
sHtml += '">' +
this._HTMLEncode( this.Value ) +
'<\/textarea>' ;
}
return sHtml ;
}
FCKeditor.prototype.ReplaceTextarea = function()
{
if ( !this.CheckBrowser || this._IsCompatibleBrowser() )
{
// We must check the elements firstly using the Id and then the name.
var oTextarea = document.getElementById( this.InstanceName ) ;
var colElementsByName = document.getElementsByName( this.InstanceName ) ;
var i = 0;
while ( oTextarea || i == 0 )
{
if ( oTextarea && oTextarea.tagName.toLowerCase() == 'textarea' )
break ;
oTextarea = colElementsByName[i++] ;
}
if ( !oTextarea )
{
alert( 'Error: The TEXTAREA with id or name set to "' + this.InstanceName + '" was not found' ) ;
return ;
}
oTextarea.style.display = 'none' ;
if ( oTextarea.tabIndex )
this.TabIndex = oTextarea.tabIndex ;
this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ;
this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ;
}
}
FCKeditor.prototype._InsertHtmlBefore = function( html, element )
{
if ( element.insertAdjacentHTML ) // IE
element.insertAdjacentHTML( 'beforeBegin', html ) ;
else // Gecko
{
var oRange = document.createRange() ;
oRange.setStartBefore( element ) ;
var oFragment = oRange.createContextualFragment( html );
element.parentNode.insertBefore( oFragment, element ) ;
}
}
FCKeditor.prototype._GetConfigHtml = function()
{
var sConfig = '' ;
for ( var o in this.Config )
{
if ( sConfig.length > 0 ) sConfig += '&' ;
sConfig += encodeURIComponent( o ) + '=' + encodeURIComponent( this.Config[o] ) ;
}
return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '" style="display:none" />' ;
}
FCKeditor.prototype._GetIFrameHtml = function()
{
var sFile = 'fckeditor.html' ;
try
{
if ( (/fcksource=true/i).test( window.top.location.search ) )
sFile = 'fckeditor.original.html' ;
}
catch (e) { /* Ignore it. Much probably we are inside a FRAME where the "top" is in another domain (security error). */ }
var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + encodeURIComponent( this.InstanceName ) ;
if (this.ToolbarSet)
sLink += '&Toolbar=' + this.ToolbarSet ;
html = '<iframe id="' + this.InstanceName +
'___Frame" src="' + sLink +
'" width="' + this.Width +
'" height="' + this.Height ;
if ( this.TabIndex )
html += '" tabindex="' + this.TabIndex ;
html += '" frameborder="0" scrolling="no"></iframe>' ;
return html ;
}
FCKeditor.prototype._IsCompatibleBrowser = function()
{
return FCKeditor_IsCompatibleBrowser() ;
}
FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription )
{
this.ErrorNumber = errorNumber ;
this.ErrorDescription = errorDescription ;
if ( this.DisplayErrors )
{
document.write( '<div style="COLOR: #ff0000">' ) ;
document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ;
document.write( '</div>' ) ;
}
if ( typeof( this.OnError ) == 'function' )
this.OnError( this, errorNumber, errorDescription ) ;
}
FCKeditor.prototype._HTMLEncode = function( text )
{
if ( typeof( text ) != "string" )
text = text.toString() ;
text = text.replace(
/&/g, "&").replace(
/"/g, """).replace(
/</g, "<").replace(
/>/g, ">") ;
return text ;
}
;(function()
{
var textareaToEditor = function( textarea )
{
var editor = new FCKeditor( textarea.name ) ;
editor.Width = Math.max( textarea.offsetWidth, FCKeditor.MinWidth ) ;
editor.Height = Math.max( textarea.offsetHeight, FCKeditor.MinHeight ) ;
return editor ;
}
/**
* Replace all <textarea> elements available in the document with FCKeditor
* instances.
*
* // Replace all <textarea> elements in the page.
* FCKeditor.ReplaceAllTextareas() ;
*
* // Replace all <textarea class="myClassName"> elements in the page.
* FCKeditor.ReplaceAllTextareas( 'myClassName' ) ;
*
* // Selectively replace <textarea> elements, based on custom assertions.
* FCKeditor.ReplaceAllTextareas( function( textarea, editor )
* {
* // Custom code to evaluate the replace, returning false if it
* // must not be done.
* // It also passes the "editor" parameter, so the developer can
* // customize the instance.
* } ) ;
*/
FCKeditor.ReplaceAllTextareas = function()
{
var textareas = document.getElementsByTagName( 'textarea' ) ;
for ( var i = 0 ; i < textareas.length ; i++ )
{
var editor = null ;
var textarea = textareas[i] ;
var name = textarea.name ;
// The "name" attribute must exist.
if ( !name || name.length == 0 )
continue ;
if ( typeof arguments[0] == 'string' )
{
// The textarea class name could be passed as the function
// parameter.
var classRegex = new RegExp( '(?:^| )' + arguments[0] + '(?:$| )' ) ;
if ( !classRegex.test( textarea.className ) )
continue ;
}
else if ( typeof arguments[0] == 'function' )
{
// An assertion function could be passed as the function parameter.
// It must explicitly return "false" to ignore a specific <textarea>.
editor = textareaToEditor( textarea ) ;
if ( arguments[0]( textarea, editor ) === false )
continue ;
}
if ( !editor )
editor = textareaToEditor( textarea ) ;
editor.ReplaceTextarea() ;
}
}
})() ;
function FCKeditor_IsCompatibleBrowser()
{
var sAgent = navigator.userAgent.toLowerCase() ;
// Internet Explorer 5.5+
if ( /*@cc_on!@*/false && sAgent.indexOf("mac") == -1 )
{
var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;
return ( sBrowserVersion >= 5.5 ) ;
}
// Gecko (Opera 9 tries to behave like Gecko at this point).
if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 && !( typeof(opera) == 'object' && opera.postError ) )
return true ;
// Opera 9.50+
if ( window.opera && window.opera.version && parseFloat( window.opera.version() ) >= 9.5 )
return true ;
// Adobe AIR
// Checked before Safari because AIR have the WebKit rich text editor
// features from Safari 3.0.4, but the version reported is 420.
if ( sAgent.indexOf( ' adobeair/' ) != -1 )
return ( sAgent.match( / adobeair\/(\d+)/ )[1] >= 1 ) ; // Build must be at least v1
// Safari 3+
if ( sAgent.indexOf( ' applewebkit/' ) != -1 )
return ( sAgent.match( / applewebkit\/(\d+)/ )[1] >= 522 ) ; // Build must be at least 522 (v3)
return false ;
}
| JavaScript |
/*
http://www.JSON.org/json2.js
2008-11-19
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
value any JavaScript value, usually an object or array.
replacer an optional parameter that determines how object
values are stringified for objects. It can be a
function or an array of strings.
space an optional parameter that specifies the indentation
of nested structures. If it is omitted, the text will
be packed without extra whitespace. If it is a number,
it will specify the number of spaces to indent at each
level. If it is a string (such as '\t' or ' '),
it contains the characters used to indent at each level.
This method produces a JSON text from a JavaScript value.
When an object value is found, if the object contains a toJSON
method, its toJSON method will be called and the result will be
stringified. A toJSON method does not serialize: it returns the
value represented by the name/value pair that should be serialized,
or undefined if nothing should be serialized. The toJSON method
will be passed the key associated with the value, and this will be
bound to the object holding the key.
For example, this would serialize Dates as ISO strings.
Date.prototype.toJSON = function (key) {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z';
};
You can provide an optional replacer method. It will be passed the
key and value of each member, with this bound to the containing
object. The value that is returned from your method will be
serialized. If your method returns undefined, then the member will
be excluded from the serialization.
If the replacer parameter is an array of strings, then it will be
used to select the members to be serialized. It filters the results
such that only members with keys listed in the replacer array are
stringified.
Values that do not have JSON representations, such as undefined or
functions, will not be serialized. Such values in objects will be
dropped; in arrays they will be replaced with null. You can use
a replacer function to replace those with JSON values.
JSON.stringify(undefined) returns undefined.
The optional space parameter produces a stringification of the
value that is filled with line breaks and indentation to make it
easier to read.
If the space parameter is a non-empty string, then that string will
be used for indentation. If the space parameter is a number, then
the indentation will be that many spaces.
Example:
text = JSON.stringify(['e', {pluribus: 'unum'}]);
// text is '["e",{"pluribus":"unum"}]'
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
text = JSON.stringify([new Date()], function (key, value) {
return this[key] instanceof Date ?
'Date(' + this[key] + ')' : value;
});
// text is '["Date(---current time---)"]'
JSON.parse(text, reviver)
This method parses a JSON text to produce an object or array.
It can throw a SyntaxError exception.
The optional reviver parameter is a function that can filter and
transform the results. It receives each of the keys and values,
and its return value is used instead of the original value.
If it returns what it received, then the structure is not modified.
If it returns undefined then the member is deleted.
Example:
// Parse the text. Values that look like ISO date strings will
// be converted to Date objects.
myData = JSON.parse(text, function (key, value) {
var a;
if (typeof value === 'string') {
a =
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
if (a) {
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
+a[5], +a[6]));
}
}
return value;
});
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
var d;
if (typeof value === 'string' &&
value.slice(0, 5) === 'Date(' &&
value.slice(-1) === ')') {
d = new Date(value.slice(5, -1));
if (d) {
return d;
}
}
return value;
});
This is a reference implementation. You are free to copy, modify, or
redistribute.
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
NOT CONTROL.
*/
/*jslint evil: true */
/*global JSON */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
lastIndex, length, parse, prototype, push, replace, slice, stringify,
test, toJSON, toString, valueOf
*/
// Create a JSON object only if one does not already exist. We create the
// methods in a closure to avoid creating global variables.
if (!this.JSON) {
JSON = {};
}
(function () {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
var months = ['Sun', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
if (typeof Date.prototype.toJSON !== 'function') {
Date.prototype.toJSON = function (key) {
return days[this.getUTCDay()] + ' ' +
months[this.getUTCMonth()] + ' ' +
f(this.getUTCDate()) + ' ' +
this.getUTCFullYear() + ' ' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getSeconds()) + ' GMT+0000';
/*return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + ' ' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + ' GMT+0000';*/
};
String.prototype.toJSON =
Number.prototype.toJSON =
Boolean.prototype.toJSON = function (key) {
return this.valueOf();
};
}
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap,
indent,
meta = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
},
rep;
function quote(string) {
// If the string contains no control characters, no quote characters, and no
// backslash characters, then we can safely slap some quotes around it.
// Otherwise we must also replace the offending characters with safe escape
// sequences.
escapable.lastIndex = 0;
return escapable.test(string) ?
'"' + string.replace(escapable, function (a) {
var c = meta[a];
return typeof c === 'string' ? c :
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
}) + '"' :
'"' + string + '"';
}
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
k, // The member key.
v, // The member value.
length,
mind = gap,
partial,
value = holder[key];
// If the value has a toJSON method, call it to obtain a replacement value.
if (value && typeof value === 'object' &&
typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
// If we were called with a replacer function, then call the replacer to
// obtain a replacement value.
if (typeof rep === 'function') {
value = rep.call(holder, key, value);
}
// What happens next depends on the value's type.
switch (typeof value) {
case 'string':
return quote(value);
case 'number':
// JSON numbers must be finite. Encode non-finite numbers as null.
return isFinite(value) ? String(value) : 'null';
case 'boolean':
case 'null':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);
// If the type is 'object', we might be dealing with an object or an array or
// null.
case 'object':
// Due to a specification blunder in ECMAScript, typeof null is 'object',
// so watch out for that case.
if (!value) {
return 'null';
}
// Make an array to hold the partial results of stringifying this object value.
gap += indent;
partial = [];
// Is the value an array?
if (Object.prototype.toString.apply(value) === '[object Array]') {
// The value is an array. Stringify every element. Use null as a placeholder
// for non-JSON values.
length = value.length;
for (i = 0; i < length; i += 1) {
partial[i] = str(i, value) || 'null';
}
// Join all of the elements together, separated with commas, and wrap them in
// brackets.
v = partial.length === 0 ? '[]' :
gap ? '[\n' + gap +
partial.join(',\n' + gap) + '\n' +
mind + ']' :
'[' + partial.join(',') + ']';
gap = mind;
return v;
}
// If the replacer is an array, use it to select the members to be stringified.
if (rep && typeof rep === 'object') {
length = rep.length;
for (i = 0; i < length; i += 1) {
k = rep[i];
if (typeof k === 'string') {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
} else {
// Otherwise, iterate through all of the keys in the object.
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
}
// Join all of the member texts together, separated with commas,
// and wrap them in braces.
v = partial.length === 0 ? '{}' :
gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
mind + '}' : '{' + partial.join(',') + '}';
gap = mind;
return v;
}
}
// If the JSON object does not yet have a stringify method, give it one.
if (typeof JSON.stringify !== 'function') {
JSON.stringify = function (value, replacer, space) {
// The stringify method takes a value and an optional replacer, and an optional
// space parameter, and returns a JSON text. The replacer can be a function
// that can replace values, or an array of strings that will select the keys.
// A default replacer method can be provided. Use of the space parameter can
// produce text that is more easily readable.
var i;
gap = '';
indent = '';
// If the space parameter is a number, make an indent string containing that
// many spaces.
if (typeof space === 'number') {
for (i = 0; i < space; i += 1) {
indent += ' ';
}
// If the space parameter is a string, it will be used as the indent string.
} else if (typeof space === 'string') {
indent = space;
}
// If there is a replacer, it must be a function or an array.
// Otherwise, throw an error.
rep = replacer;
if (replacer && typeof replacer !== 'function' &&
(typeof replacer !== 'object' ||
typeof replacer.length !== 'number')) {
throw new Error('JSON.stringify');
}
// Make a fake root object containing our value under the key of ''.
// Return the result of stringifying the value.
return str('', {'': value});
};
}
// If the JSON object does not yet have a parse method, give it one.
if (typeof JSON.parse !== 'function') {
JSON.parse = function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.
var j;
function walk(holder, key) {
// The walk method is used to recursively walk the resulting structure so
// that modifications can be made.
var k, v, value = holder[key];
if (value && typeof value === 'object') {
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = walk(value, k);
if (v !== undefined) {
value[k] = v;
} else {
delete value[k];
}
}
}
}
return reviver.call(holder, key, value);
}
// Parsing happens in four stages. In the first stage, we replace certain
// Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings.
cx.lastIndex = 0;
if (cx.test(text)) {
text = text.replace(cx, function (a) {
return '\\u' +
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
});
}
// In the second stage, we run the text against regular expressions that look
// for non-JSON patterns. We are especially concerned with '()' and 'new'
// because they can cause invocation, and '=' because it can cause mutation.
// But just to be safe, we want to reject all unexpected forms.
// We split the second stage into 4 regexp operations in order to work around
// crippling inefficiencies in IE's and Safari's regexp engines. First we
// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
// replace all simple value tokens with ']' characters. Third, we delete all
// open brackets that follow a colon or comma or that begin the text. Finally,
// we look to see that the remaining characters are only whitespace or ']' or
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
if (/^[\],:{}\s]*$/.
test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
// In the third stage we use the eval function to compile the text into a
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
j = eval('(' + text + ')');
// In the optional fourth stage, we recursively walk the new structure, passing
// each name/value pair to a reviver function for possible transformation.
return typeof reviver === 'function' ?
walk({'': j}, '') : j;
}
// If the text is not JSON parseable, then a SyntaxError is thrown.
throw new SyntaxError('JSON.parse');
};
}
})();
| JavaScript |
/******************************************************
*
* MMobileServer Dialog javascript source
*
******************************************************/
// 设置对话框全局默认配置
(function() {
var d = art.dialog.defaults;
// 如果只使用默认皮肤,可以不填写skin
d.skin = [ 'default', 'chrome', 'facebook', 'aero' ];
// 支持拖动
d.drag = true;
// 超过此面积大小的对话框使用替身拖动
d.showTemp = 100000;
})();
//提示框
function prompt(text,state){
art.dialog({
time: 3,
lock:state,
content:text
});
}
//对话聊窗口
var chatForm;
//广播消息窗口
var broadcastForm;
//消息记录窗口
var dataListForm;
//发送消息窗口
var sendToForm;
//会话记录窗口
var sessionListForm;
//用户列表窗口
var userListForm;
//打开用户列表框
function openUserListForm(){
userListForm=art.dialog.load("html/userListForm.html",
{ title: "用户列表",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"userListForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("用户列表已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开会话列表框
function openSessionListForm(){
sessionListForm=art.dialog.load("html/sessionListForm.html",
{ title: "会话列表",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"sessionListForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("会话列表已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开消息记录列表框
function openDataListForm(){
dataListForm=art.dialog.load("html/dataListForm.html",
{ title: "消息列表",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"dataListForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("消息列表已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开广播消息记录框
function openBroadcastForm(){
broadcastForm=art.dialog.load("html/broadcastForm.html",
{ title: "广播消息",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"broadcastForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("广播消息已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开发送消息框
function openSendToForm(){
sendToForm=art.dialog.load("html/sendToForm.html",
{ title: "发送消息",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"sendToForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("发送消息已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开对话框
function openChatForm(){
chatForm=art.dialog.load("html/chatForm.html",
{ title: "发送消息",
drag: true,
effect:true,
fixed: false,
skin: 'default',
id:"chatForm",
width: "300px",
height:'auto',
closeFn: function() {
art.dialog.tips("当前会话已关闭,您可以在任务栏中重新打开", 3);
},
initFn:function(){
}
},
false
);
}
//打开用户列表框
//function openUserListForm(){
//userListForm=art.dialog({
//width: '150px',
//height: '400px',
//fixed: false,
//id: 'userListForm',
//title: '用户列表',
//content:$("#userlist_content").val()
//});
//}
//绑定功能项事件
$(document).ready(function(){
}); | JavaScript |
/* BrowserCheck Object
provides most commonly needed browser checking variables
19990326
*/
// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/
function BrowserCheck() {
var b = navigator.appName
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else if (b=="Opera") this.b = "op"
else this.b = b
this.v = parseInt(navigator.appVersion)
this.ns = (this.b=="ns" && this.v>=4)
this.ns4 = (this.b=="ns" && this.v==4)
this.ns5 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.op = (this.b=="op" && this.v>=7)
this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0)
if (this.ie55) {
this.v = 5.5;
this.ie5 = false;
}
this.mac = (navigator.userAgent.indexOf('Mac')>0);
if (this.ie5) this.v = 5
this.min = (this.ns||this.ie)
}
// automatically create the "is" object
is = new BrowserCheck()
| JavaScript |
function getArgs(){
passedArgs=new Array();
search = self.location.href;
search = search.split('?');
if(search.length>1){
argList = search[1];
argList = argList.split('&');
for(var i=0; i<argList.length; i++){
newArg = argList[i];
newArg = argList[i].split('=');
passedArgs[unescape(newArg[0])] = unescape(newArg[1]);
}
}
}
function cutResource(aJID) { // removes resource from a given jid
if (typeof(aJID) == 'undefined' || !aJID)
return;
var retval = aJID;
if (retval.indexOf("/") != -1)
retval = retval.substring(0,retval.indexOf("/"));
return retval;
}
function msgEscape(msg) {
if (typeof(msg) == 'undefined' || !msg || msg == '')
return;
msg = msg.replace(/%/g,"%25"); // must be done first
msg = msg.replace(/\n/g,"%0A");
msg = msg.replace(/\r/g,"%0D");
msg = msg.replace(/ /g,"%20");
msg = msg.replace(/\"/g,"%22");
msg = msg.replace(/#/g,"%23");
msg = msg.replace(/\$/g,"%24");
msg = msg.replace(/&/g,"%26");
msg = msg.replace(/\(/g,"%28");
msg = msg.replace(/\)/g,"%29");
msg = msg.replace(/\+/g,"%2B");
msg = msg.replace(/,/g,"%2C");
msg = msg.replace(/\//g,"%2F");
msg = msg.replace(/\:/g,"%3A");
msg = msg.replace(/\;/g,"%3B");
msg = msg.replace(/</g,"%3C");
msg = msg.replace(/=/g,"%3D");
msg = msg.replace(/>/g,"%3E");
msg = msg.replace(/@/g,"%40");
return msg;
}
// fucking IE is too stupid for window names
function makeWindowName(wName) {
wName = wName.replace(/@/,"at");
wName = wName.replace(/\./g,"dot");
wName = wName.replace(/\//g,"slash");
wName = wName.replace(/&/g,"amp");
wName = wName.replace(/\'/g,"tick");
wName = wName.replace(/=/g,"equals");
wName = wName.replace(/#/g,"pound");
wName = wName.replace(/:/g,"colon");
wName = wName.replace(/%/g,"percent");
wName = wName.replace(/-/g,"dash");
wName = wName.replace(/ /g,"blank");
wName = wName.replace(/\*/g,"asterix");
return wName;
}
function htmlEnc(str) {
if (!str)
return '';
str = str.replace(/&/g,"&");
str = str.replace(/</g,"<");
str = str.replace(/>/g,">");
str = str.replace(/\"/g,""");
return str;
}
function msgFormat(msg) { // replaces emoticons and urls in a message
if (!msg)
return null;
msg = htmlEnc(msg);
if (typeof(emoticons) != 'undefined') {
for (var i in emoticons) {
if (!emoticons.hasOwnProperty(i))
continue;
var iq = i.replace(/\\/g, '');
var emo = new Image();
emo.src = emoticonpath+emoticons[i];
if (emo.width > 0 && emo.height > 0)
msg = msg.replace(eval("/\(\\s\|\^\)"+i+"\(\\s|\$\)/g"),"$1<img src=\""+emo.src+"\" width='"+emo.width+"' height='"+emo.height+"' alt=\""+iq+"\" title=\""+iq+"\">$2");
else
msg = msg.replace(eval("/\(\\s\|\^\)"+i+"\(\\s|\$\)/g"),"$1<img src=\""+emo.src+"\" alt=\""+iq+"\" title=\""+iq+"\">$2");
}
}
// replace http://<url>
msg = msg.replace(/(\s|^)(https?:\/\/\S+)/gi,"$1<a href=\"$2\" target=\"_blank\">$2</a>");
// replace ftp://<url>
msg = msg.replace(/(\s|^)(ftp:\/\/\S+)/gi,"$1<a href=\"$2\" target=\"_blank\">$2</a>");
// replace mail-links
msg = msg.replace(/(\s|^)(\w+\@\S+\.\S+)/g,"$1<a href=\"mailto:$2\">$2</a>");
// replace *<pattern>*
msg = msg.replace(/(\s|^)\*([^\*\r\n]+)\*/g,"$1<b>\$2\</b>");
// replace _bla_
msg = msg.replace(/(\s|^)\_([^\*\r\n]+)\_/g,"$1<u>$2</u>");
msg = msg.replace(/\n/g,"<br>");
return msg;
}
/* isValidJID
* checks whether jid is valid
*/
var prohibited = ['"',' ','&','\'','/',':','<','>','@']; // invalid chars
function isValidJID(jid) {
var nodeprep = jid.substring(0,jid.lastIndexOf('@')); // node name (string before the @)
for (var i=0; i<prohibited.length; i++) {
if (nodeprep.indexOf(prohibited[i]) != -1) {
alert("非法 JID\n'"+prohibited[i]+"' 不允许出现在 JID 中。\n请修改!");
return false;
}
}
return true;
}
/* jab2date
* converts from jabber timestamps to javascript date objects
*/
function jab2date(ts) {
var date = new Date(Date.UTC(ts.substr(0,4),ts.substr(5,2)-1,ts.substr(8,2),ts.substr(11,2),ts.substr(14,2),ts.substr(17,2)));
if (ts.substr(ts.length-6,1) != 'Z') { // there's an offset
var offset = new Date();
offset.setTime(0);
offset.setUTCHours(ts.substr(ts.length-5,2));
offset.setUTCMinutes(ts.substr(ts.length-2,2));
if (ts.substr(ts.length-6,1) == '+')
date.setTime(date.getTime() - offset.getTime());
else if (ts.substr(ts.length-6,1) == '-')
date.setTime(date.getTime() + offset.getTime());
}
return date;
}
/* hrTime - human readable Time
* takes a timestamp in the form of 2004-08-13T12:07:04±02:00 as argument
* and converts it to some sort of humane readable format
*/
function hrTime(ts) {
return jab2date(ts).toLocaleString();
}
/* jabberDate
* somewhat opposit to hrTime (see above)
* expects a javascript Date object as parameter and returns a jabber
* date string conforming to JEP-0082
*/
function jabberDate(date) {
if (!date.getUTCFullYear)
return;
var jDate = date.getUTCFullYear() + "-";
jDate += (((date.getUTCMonth()+1) < 10)? "0" : "") + (date.getUTCMonth()+1) + "-";
jDate += ((date.getUTCDate() < 10)? "0" : "") + date.getUTCDate() + "T";
jDate += ((date.getUTCHours()<10)? "0" : "") + date.getUTCHours() + ":";
jDate += ((date.getUTCMinutes()<10)? "0" : "") + date.getUTCMinutes() + ":";
jDate += ((date.getUTCSeconds()<10)? "0" : "") + date.getUTCSeconds() + "Z";
return jDate;
}
| JavaScript |
style = "jwchat.css"; // fallback
// look for stylesheet
if (parent.top.stylesheet)
style = parent.top.stylesheet;
else if (top.opener.top.stylesheet)
style = top.opener.top.stylesheet;
else if (top.opener.opener.top.stylesheet)
style = top.opener.opener.top.stylesheet;
document.write('<link rel="styleSheet" type="text/css" href="'+style+'">');
| JavaScript |
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
if (navigator.userAgent.indexOf('MSIE') == -1)
return;
if (navigator.userAgent.indexOf('MSIE 5')>0 && navigator.userAgent.indexOf('MSIE 5.5')==-1)
return; // don't break IE 5.0
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
var imgAttribs = img.attributes;
var imgEvents = '';
for (var j=0; j<imgAttribs.length; j++)
{
var imgAttrib = imgAttribs[j];
if (imgAttrib.nodeName == "align")
{
if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
}
else if (imgAttrib.nodeName == "onclick")
imgEvents += " onClick='" + imgAttrib.nodeValue + "'";
else if (imgAttrib.nodeName == "onmouseover")
imgEvents += " onMouseOver='" + imgAttrib.nodeValue+ "'";
else if (imgAttrib.nodeName == "onmouseout")
imgEvents += " onMouseOut='" + imgAttrib.nodeValue+ "'";
}
var strNewHTML = "<span " + imgID + imgClass + imgTitle + imgEvents
strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
onload = correctPNG;
| JavaScript |
function RosterGroup(name) {
this.name = htmlEnc(name);
this.users = new Array();
this.onlUserCount = 0;
this.messagesPending = 0;
}
function RosterUserAdd2Group(group) {
this.groups = this.groups.concat(group);
}
function RosterUser(jid,subscription,groups,name) {
this.fulljid = jid;
this.jid = cutResource(jid) || 'unknown';
this.jid = this.jid.toLowerCase(); // jids are case insensitive
this.subscription = subscription || 'none';
this.groups = groups || [''];
if (name)
this.name = name;
else if (this.jid == JABBERSERVER)
this.name = "系统";
else if ((this.jid.indexOf('@') != -1) &&
this.jid.substring(this.jid.indexOf('@')+1) == JABBERSERVER) // we found a local user
this.name = this.jid.substring(0,jid.indexOf('@'));
else
this.name = this.jid;
this.name = htmlEnc(this.name);
// initialise defaults
this.status = (this.subscription == 'from' || this.subscription == 'none') ? 'stalker' : 'unavailable';
this.statusMsg = null;
this.lastsrc = null;
this.messages = new Array();
this.chatmsgs = new Array();
this.chatW = null; // chat window
// methods
this.add2Group = RosterUserAdd2Group;
}
function getElFromArrByProp(arr,prop,str) {
for (var i=0; i<arr.length; i++) {
if (arr[i][prop] == str)
return arr[i];
}
return null;
}
function getRosterGroupByName(groupName) {
return getElFromArrByProp(this.groups,"name",groupName);
}
function getRosterUserByJID(jid) {
return getElFromArrByProp(this.users,"jid",jid.toLowerCase());
}
function RosterUpdateStyleIE() {
if(!is.ie)
return;
this.rosterW.getElementById("roster").style.width = this.rosterW.body.clientWidth;
}
function RosterGetUserIcons(from) {
var images = new Array();
for (var i=0; i<this.groups.length; i++) {
var img = this.rosterW.images[from+"/"+this.groups[i].name];
if (img) {
images = images.concat(img);
continue; // skip this group
}
}
return images;
}
function RosterToggleHide() {
this.usersHidden = !this.usersHidden;
this.print();
return;
}
function RosterToggleGrp(name) {
var el = this.rosterW.getElementById(name);
if (el.className == 'hidden') {
el.className = 'rosterGroup';
this.hiddenGroups[name] = false;
this.rosterW.images[name+"Img"].src = grp_open_img.src;
} else {
el.className = 'hidden';
this.hiddenGroups[name] = true;
this.rosterW.images[name+"Img"].src = grp_close_img.src;
}
this.updateStyleIE();
}
function RosterOpenMessage(jid) {
var user = this.getUserByJID(jid);
var wName = makeWindowName(user.jid);
if (user.messages.length > 0 && (!user.mW || user.mW.closed)) // display messages
user.mW = open('message.html?jid='+escape(jid),
"mw"+wName,
'width=360,height=270,dependent=yes,resizable=yes');
else if (!user.sW || user.sW.closed) // open send dialog
user.sW = open("send.html?jid="+escape(jid),
"sw"+wName,
'width=320,height=200,dependent=yes,resizable=yes');
return false;
}
function RosterOpenChat(jid) {
var user = this.getUserByJID(jid);
if (!user)
return;
if (user.messages.length > 0 && (!user.mW || user.mW.closed)) // display messages
this.openMessage(jid);
if (!user.chatW || user.chatW.closed)
user.chatW = open("chat.html?jid="+escape(jid),
"chatW"+makeWindowName(user.jid),
"width=320,height=390,resizable=yes");
else if (user.chatW.popMsgs)
user.chatW.popMsgs();
}
function RosterCleanUp() {
for (var i=0; i<this.users.length; i++) {
if (this.users[i].roster)
this.users[i].roster.cleanUp();
if (this.users[i].sW)
this.users[i].sW.close();
if (this.users[i].mW)
this.users[i].mW.close();
if (this.users[i].chatW)
this.users[i].chatW.close();
if (this.users[i].histW)
this.users[i].histW.close();
}
}
function RosterUpdateGroupForUser(user) {
for (var j=0; j<user.groups.length; j++) {
if (user.groups.length > 1 && user.groups[j] == '')
continue;
var groupName = (user.groups[j] == '') ? "未归类" : user.groups[j];
var group = this.getGroupByName(groupName);
if(group == null) {
group = new RosterGroup(groupName);
this.groups = this.groups.concat(group);
}
group.users = group.users.concat(user);
}
}
function RosterUpdateGroups() {
var oldGroups = this.groups;
this.groups = new Array();
for (var i=0; i<this.users.length; i++)
this.updateGroupsForUser(this.users[i]);
// remove elements for groups that don't exist anymore
for (var i=0; i<oldGroups.length; i++) {
var remove = true;
for (var j=0; j<this.groups.length; j++) {
if (oldGroups[i].name == this.groups[j].name) {
remove = false;
break;
}
}
if (remove) {
var rosterEl = this.rosterW.getElementById('roster');
var groupHeaderEl = this.rosterW.getElementById(oldGroups[i].name+'Head');
var groupEl = this.rosterW.getElementById(oldGroups[i].name);
rosterEl.removeChild(groupHeaderEl);
rosterEl.removeChild(groupEl);
}
}
}
function RosterUserAdd(user) {
this.users = this.users.concat(user);
// add to groups
this.updateGroupsForUser(user);
return user;
}
function RosterRemoveUser(user) {
var uLen = this.users.length;
for (var i=0; i<uLen; i++) {
if (user == this.users[i]) {
this.users = this.users.slice(0,i).concat(this.users.slice(i+1,uLen));
// remove user element
for (var j=0; j < user.groups.length; j++) {
var groupName = user.groups[j].name || 'Unfiled';
var groupEl = this.rosterW.getElementById(groupName);
var userEl = this.rosterW.getElementById(getUserElementId(user, user.groups[j]));
if (groupEl && userEl) { groupEl.removeChild(userEl); }
}
break;
}
}
this.updateGroups();
}
function RosterGetGroupchats() {
var groupchats = new Array();
for (var i=0; i<this.users.length; i++)
if (this.users[i].roster)
groupchats[groupchats.length] = this.users[i].jid+'/'+this.users[i].roster.nick;
return groupchats;
}
function Roster(items,targetW) {
this.users = new Array();
this.groups = new Array();
this.hiddenGroups = new Array();
this.name = 'Roster';
this.rosterW = targetW;
this.lastUserSelected = null; // moved into Roster from iRoster.html and groupchat_iroster.html - sam
/* object's methods */
this.print = printRoster;
this.update = updateRoster;
this.getGroupByName = getRosterGroupByName;
this.getUserByJID = getRosterUserByJID;
this.addUser = RosterUserAdd;
this.removeUser = RosterRemoveUser;
this.updateGroupsForUser = RosterUpdateGroupForUser;
this.updateGroups = RosterUpdateGroups;
this.toggleGrp = RosterToggleGrp;
this.updateStyleIE = RosterUpdateStyleIE;
this.toggleHide = RosterToggleHide;
this.getUserIcons = RosterGetUserIcons;
this.openMessage = RosterOpenMessage;
this.openChat = RosterOpenChat;
this.cleanUp = RosterCleanUp;
this.getGroupchats = RosterGetGroupchats;
this.selectUser = RosterSelectUser; // moved into Roster from iRoster.html and groupchat_iroster.html - sam
this.userClicked = RosterUserClicked;
/* setup groups */
if (!items)
return;
for (var i=0;i<items.length;i++) {
/* if (items[i].jid.indexOf("@") == -1) */ // no user - must be a transport
if (typeof(items.item(i).getAttribute('jid')) == 'undefined')
continue;
var name = items.item(i).getAttribute('name') || cutResource(items.item(i).getAttribute('jid'));
var groups = new Array('');
for (var j=0;j<items.item(i).childNodes.length;j++)
if (items.item(i).childNodes.item(j).nodeName == 'group')
if (items.item(i).childNodes.item(j).firstChild) //if stanza != <group/>
groups = groups.concat(items.item(i).childNodes.item(j).firstChild.nodeValue);
this.addUser(new RosterUser(items.item(i).getAttribute('jid'),items.item(i).getAttribute('subscription'),groups,name));
}
}
function rosterSort(a,b) {
// if (typeof(a.name) != 'string' || typeof(b.name) != 'string')
// return 0;
return (a.name.toLowerCase()<b.name.toLowerCase())?-1:1;
}
function printRoster() {
/* update user count for groups */
for (var i=0; i<this.groups.length; i++) {
this.groups[i].onlUserCount = 0;
this.groups[i].messagesPending = 0;
for (var j=0; j<this.groups[i].users.length; j++) {
if (this.groups[i].users[j].status != 'unavailable' && this.groups[i].users[j].status != 'stalker')
this.groups[i].onlUserCount++;
if (this.groups[i].users[j].lastsrc)
this.groups[i].messagesPending++;
}
}
this.groups = this.groups.sort(rosterSort);
if (this.rosterW.getElementById('roster').innerHTML.search(/\S/) > -1) {
this.update(); // update dom, rather than redrawing roster
return;
}
var A = new Array();
/* ***
* loop rostergroups
*/
for (var i=0; i<this.groups.length; i++) {
var rosterGroupHeadClass = (this.usersHidden &&
this.groups[i].onlUserCount == 0 &&
this.groups[i].messagesPending == 0 &&
this.groups[i].name != "网关")
? 'rosterGroupHeaderHidden':'rosterGroupHeader';
A[A.length] = "<div id='";
A[A.length] = this.groups[i].name;
A[A.length] = "Head' class='";
A[A.length] = rosterGroupHeadClass;
A[A.length] = "' onClick='toggleGrp(\"";
A[A.length] = this.groups[i].name;
A[A.length] = "\");'><nobr>";
var toggleImg = (this.hiddenGroups[this.groups[i].name])?'images/group_close.gif':'images/group_open.gif';
A[A.length] = "<img src='";
A[A.length] = toggleImg;
A[A.length] ="' name='";
A[A.length] = this.groups[i].name;
A[A.length] = "Img'> ";
A[A.length] = this.groups[i].name;
A[A.length] = " (<span id='";
A[A.length] = this.groups[i].name;
A[A.length] = "On'>";
A[A.length] = this.groups[i].onlUserCount;
A[A.length] = "</span>/<span id='";// put total number in span - sam
A[A.length] = this.groups[i].name;
A[A.length] = "All'>";
A[A.length] = this.groups[i].users.length;
A[A.length] = "</span>)";
A[A.length] = "</nobr></div>";
var rosterGroupClass = (
(this.usersHidden && this.groups[i].onlUserCount == 0 &&
this.groups[i].messagesPending == 0 &&
this.groups[i].name != "网关")
|| this.hiddenGroups[this.groups[i].name])
? 'hidden':'rosterGroup';
A[A.length] = "<div id='";
A[A.length] = this.groups[i].name;
A[A.length] = "' class='";
A[A.length] = rosterGroupClass;
A[A.length] = "'>";
this.groups[i].users = this.groups[i].users.sort(rosterSort);
/* ***
* loop users in rostergroup
*/
for (var j=0; j<this.groups[i].users.length; j++) {
var user = this.groups[i].users[j];
var rosterUserClass = (this.usersHidden &&
(user.status == 'unavailable' ||
user.status == 'stalker') &&
!user.lastsrc &&
this.groups[i].name != "网关")
? "hidden":"rosterUser";
A[A.length] = "<div id=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = this.groups[i].name;
A[A.length] = "Entry\" class=\"";
A[A.length] = rosterUserClass;
A[A.length] = "\" onClick=\"return userClicked(this,'";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "');\" title=\"";
A[A.length] = user.name;
if (user.realjid) {
A[A.length] = " JID: ";
A[A.length] = htmlEnc(user.realjid);
} else {
A[A.length] = " JID: ";
A[A.length] = htmlEnc(user.jid);
}
A[A.length] = " ";
A[A.length] = "状态";
A[A.length] = ": ";
A[A.length] = user.status;
if (user.statusMsg) {
A[A.length] = " ";
A[A.length] = "消息";
A[A.length] = ": ";
A[A.length] = htmlEnc(user.statusMsg);
}
if ((user.messages.length + user.chatmsgs.length) > 0) {
A[A.length] = " ";
A[A.length] = ""+(user.messages.length + user.chatmsgs.length)+" 条消息";
}
A[A.length] = "\">";
var userImg = (user.lastsrc) ? messageImg : eval(user.status + "Led");
A[A.length] = "<nobr><img src=\"";
A[A.length] = userImg.src;
A[A.length] = "\" name=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = this.groups[i].name;
A[A.length] = "\" width='16' height='16' border='0' align='left'>";
A[A.length] = "<div><span class=\"nickName\">";
A[A.length] = user.name;
A[A.length] = "</span>";
if (user.statusMsg) {
A[A.length] = "<br clear=all><nobr><span class=\"statusMsg\">";
A[A.length] = htmlEnc(user.statusMsg);
A[A.length] = "</span></nobr>";
}
A[A.length] = "</div></nobr></div>";
} /* END inner loop */
A[A.length] = "</div>";
}
this.rosterW.getElementById("roster").innerHTML = A.join('');
this.updateStyleIE();
}
function getUserElementId(user, group) {
var groupName = group.name || 'Unfiled';
return htmlEnc(user.jid)+"/"+groupName+"Entry";
}
function getRosterUserClass(usersHidden, user, group) {
return (usersHidden && (user.status == 'unavailable' || user.status == 'stalker') && !user.lastsrc && group.name != "网关" ?
"hidden" : "rosterUser");
}
function getRosterGroupHeaderClass(usersHidden, group) {
return (usersHidden && group.onlUserCount == 0 && group.messagesPending == 0 && group.name != "网关" ?
'rosterGroupHeaderHidden':'rosterGroupHeader');
}
function getUserElementTitle(user) {
var elTitle = user.name
if (user.realjid) {
elTitle += " JID: ";
elTitle += htmlEnc(user.realjid);
} else {
elTitle += " JID: ";
elTitle += htmlEnc(user.jid);
}
elTitle += " ";
elTitle += "状态";
elTitle += ": ";
elTitle += user.status;
if (user.statusMsg) {
elTitle += " ";
elTitle += "消息";
elTitle += ": ";
elTitle += htmlEnc(user.statusMsg);
}
if ((user.messages.length + user.chatmsgs.length) > 0) {
elTitle += " ";
elTitle += ""+(user.messages.length + user.chatmsgs.length)+" 条消息";
}
return elTitle;
}
function getUserInnerHTML(user, group) {
var userImg = (user.lastsrc) ? messageImg : eval(user.status + "Led");
var A = new Array();
A[A.length] = "<nobr><img src=\"";
A[A.length] = userImg.src;
A[A.length] = "\" name=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = group.name;
A[A.length] = "\" width='16' height='16' border='0' align='left'>";
A[A.length] = "<div><span class=\"nickName\">";
A[A.length] = user.name;
A[A.length] = "</span>";
if (user.statusMsg) {
A[A.length] = "<br clear=all><nobr><span class=\"statusMsg\">";
A[A.length] = htmlEnc(user.statusMsg);
A[A.length] = "</span></nobr>";
}
A[A.length] = "</div></nobr>";
return A.join('');
}
function updateRoster() {
for (var i=0; i<this.groups.length; i++) {
var group = this.groups[i];
group.users = group.users.sort(rosterSort);
var groupEl = this.rosterW.getElementById(group.name);
if (groupEl) { // update group
for (var j=0; j<group.users.length; j++) {
var user = group.users[j];
var userElId = getUserElementId(user,group);
var userEl = this.rosterW.getElementById(userElId);
if (!userEl) { // add user
userEl = this.rosterW.createElement('div');
userEl.id = userElId;
userEl.className = getRosterUserClass(this.usersHidden, user, group);
var onclickHandler = function(el, user, roster) {
var e = el;
var jid = htmlEnc(user.jid);
var r = roster;
var toggler = function() { r.userClicked(e, jid); };
return toggler;
}
userEl.onclick = onclickHandler(userEl, user, this);//"return userClicked(this,'"+htmlEnc(user.jid)+"');";
userEl.title = getUserElementTitle(user);
userEl.innerHTML = getUserInnerHTML(user, group);
var siblingEl;
var k = j+1;
while (!siblingEl && k<group.users.length) {
siblingEl = this.rosterW.getElementById(getUserElementId(group.users[k],group));
k++;
}
if (!siblingEl) {
groupEl.appendChild(userEl)
} else {
groupEl.insertBefore(userEl,siblingEl);
}
} else { // update user
userEl.className = getRosterUserClass(this.usersHidden, user, group);
userEl.title = getUserElementTitle(user);
var userImg = (user.lastsrc) ? messageImg : eval(user.status + "Led");
userEl.getElementsByTagName('img')[0].src = userImg.src;
var spanEls = userEl.getElementsByTagName('span');
spanEls[0].innerHTML = user.name
if (user.statusMsg) {
if (spanEls[1]) {
spanEls[1].innerHTML = htmlEnc(user.statusMsg);
} else {
try {
var A = new Array();
A[A.length] = "<br clear='all'><nobr><span class='statusMsg'>";
A[A.length] = htmlEnc(user.statusMsg);
A[A.length] = "</span></nobr>";
var html = A.join('');
var divEls = userEl.getElementsByTagName('div');
if (divEls && divEls[0])
divEls[0].innerHTML += html;
} catch(e) {
// qnd: somehow IE7 doesn't like the 'nobr' here - why?
}
}
}
}
} // done with users
var groupHeaderEl = this.rosterW.getElementById(group.name+'Head');
if (groupHeaderEl) {
groupHeaderEl.className = getRosterGroupHeaderClass(this.usersHidden, group);
if (this.rosterW.getElementById(group.name+'On'))
this.rosterW.getElementById(group.name+'On').innerHTML = group.onlUserCount;
if (this.rosterW.getElementById(group.name+'All'))
this.rosterW.getElementById(group.name+'All').innerHTML = group.users.length;
}
} else { // add group
var groupHeaderEl = this.rosterW.createElement('div');
groupHeaderEl.id = group.name+"Head";
groupHeaderEl.className = getRosterGroupHeaderClass(this.usersHidden, group);
var onclickHandler = function(group) {
var groupName = group.name;
var toggler = function() { parent.top.roster.toggleGrp(groupName); };
return toggler;
}
groupHeaderEl.onclick = onclickHandler(group);
groupEl = this.rosterW.createElement('div');
groupEl.id = group.name;
var rosterGroupClass = (
(this.usersHidden && group.onlUserCount == 0 &&
group.messagesPending == 0 &&
group.name != "网关")
|| this.hiddenGroups[group.name])
? 'hidden':'rosterGroup';
groupEl.className = rosterGroupClass;
var rosterEl = this.rosterW.getElementById("roster");
var siblingEl;
var j = i + 1;
while (!siblingEl && j < this.groups.length) {
siblingEl = this.rosterW.getElementById(this.groups[j].name+'Head');
j++;
}
if (!siblingEl) {
rosterEl.appendChild(groupHeaderEl)
rosterEl.appendChild(groupEl);
} else {
rosterEl.insertBefore(groupHeaderEl, siblingEl);
rosterEl.insertBefore(groupEl, siblingEl);
}
var A = new Array();
A[A.length] = "<nobr>";
var toggleImg = (this.hiddenGroups[group.name])?'images/group_close.gif':'images/group_open.gif';
A[A.length] = "<img src='";
A[A.length] = toggleImg;
A[A.length] ="' name='";
A[A.length] = group.name;
A[A.length] = "Img'> ";
A[A.length] = group.name;
A[A.length] = " (<span id='";
A[A.length] = group.name;
A[A.length] = "On'>";
A[A.length] = group.onlUserCount;
A[A.length] = "</span>/<span id='";// put total number in span, also - sam
A[A.length] = group.name;
A[A.length] = "All'>";
A[A.length] = group.users.length;
A[A.length] = "</span>)";
A[A.length] = "</nobr>";
groupHeaderEl.innerHTML = A.join('');
A = new Array();
for (var j=0; j<group.users.length; j++) {
var user = group.users[j];
A[A.length] = "<div id=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = group.name;
A[A.length] = "Entry\" class=\"";
A[A.length] = getRosterUserClass(this.usersHidden, user, group);
A[A.length] = "\" onClick=\"return userClicked(this,'";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "');\" title=\"";
A[A.length] = getUserElementTitle(user);
A[A.length] = "\">";
A[A.length] = getUserInnerHTML(user, group);
A[A.length] = "</div>";
} /* END inner loop */
groupEl.innerHTML = A.join('');
}
}
}
// moved into Roster from iRoster.html and groupchat_iroster.html - sam
function RosterSelectUser(el) {
if(this.lastUserSelected)
this.lastUserSelected.className = "rosterUser";
el.className = "rosterUserSelected";
this.lastUserSelected = el;
}
function RosterUserClicked(el,jid) {
this.selectUser(el);
if (this.name == 'GroupchatRoster') {
return parent.top.user.roster.openChat(jid);
}
var user = parent.top.roster.getUserByJID(parent.top.cutResource(jid));
if(user && typeof(user.type) != 'undefined' && user.type == 'groupchat')
return parent.top.openGroupchat(jid);
if (!parent.top.isGateway(jid))
return parent.top.roster.openChat(jid);
}
/***********************************************************************
* GROUPCHAT ROSTER
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
function GCRosterSort(a,b) {
return (a.name.toLowerCase()<b.name.toLowerCase())?-1:1;
}
function GroupchatRosterPrint() {
var A = new Array();
this.groups = this.groups.sort(GCRosterSort);
/* ***
* loop rostergroups
*/
for (var i=0; i<this.groups.length; i++) {
var rosterGroupHeadClass = (this.groups[i].users.length == 0) ? 'rosterGroupHeaderHidden':'rosterGroupHeader';
A[A.length] = "<div id='";
A[A.length] = this.groups[i].name;
A[A.length] = "Head' class='";
A[A.length] = rosterGroupHeadClass;
A[A.length] = "'><nobr> ";
A[A.length] = this.groups[i].users.length;
A[A.length] = " ";
A[A.length] = this.groups[i].name;
A[A.length] = "</nobr></div>";
A[A.length] = "<div id='";
A[A.length] = this.groups[i].name;
A[A.length] = "' class='rosterGroup'>";
this.groups[i].users = this.groups[i].users.sort(rosterSort);
/* ***
* loop users in rostergroup
*/
for (var j=0; j<this.groups[i].users.length; j++) {
var user = this.groups[i].users[j];
var rosterUserClass = (this.usersHidden &&
(user.status == 'unavailable' ||
user.status == 'stalker') &&
!user.lastsrc)
? "hidden":"rosterUser";
A[A.length] = "<div id=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = this.groups[i].name;
A[A.length] = "Entry\" class=\"";
A[A.length] = rosterUserClass;
A[A.length] = "\" onClick=\"return userClicked(this,'";
A[A.length] = htmlEnc(user.jid).replace(/\'/g,"\\\'")+"');\" title=\"";
A[A.length] = user.name;
if (user.realjid) {
A[A.length] = " JID: ";
A[A.length] = htmlEnc(user.realjid);
} else {
A[A.length] = " JID: ";
A[A.length] = htmlEnc(user.jid);
}
A[A.length] = " ";
A[A.length] = "状态";
A[A.length] = ": ";
A[A.length] = user.status;
if (user.statusMsg) {
A[A.length] = " ";
A[A.length] = "消息";
A[A.length] = ": ";
A[A.length] = htmlEnc(user.statusMsg);
}
if ((user.messages.length + user.chatmsgs.length) > 0) {
A[A.length] = " ";
A[A.length] = ""+(user.messages.length + user.chatmsgs.length)+" 条消息";
}
A[A.length] = "\"><nobr>";
var userImg = (user.lastsrc) ? messageImg : eval(user.status + "Led");
A[A.length] = "<img src=\"";
A[A.length] = userImg.src;
A[A.length] = "\" name=\"";
A[A.length] = htmlEnc(user.jid);
A[A.length] = "/";
A[A.length] = this.groups[i].name;
A[A.length] = "\" width=16 height=16 border=0 align=\"left\">";
A[A.length] = "<div><span class=\"nickName\">";
A[A.length] = user.name;
A[A.length] = "</span>";
if (user.statusMsg) {
A[A.length] = "<br clear=all><nobr><span class=\"statusMsg\">";
A[A.length] = htmlEnc(user.statusMsg);
A[A.length] = "</span></nobr>";
}
A[A.length] = "</div></nobr></div>";
} /* END inner loop */
A[A.length] = "</div>";
}
this.rosterW.getElementById("roster").innerHTML = A.join('');
this.updateStyleIE();
}
function GroupchatRosterUserAdd2Group(group) {
this.groups = [group];
}
function GroupchatRosterUser(jid,name) {
this.base = RosterUser;
this.base(jid,'',[''],name);
this.jid = this.fulljid; // always use fulljid
this.affiliation = 'none';
this.role = 'none';
this.add2Group = GroupchatRosterUserAdd2Group;
}
GroupchatRosterUser.prototype = new RosterUser;
function getRosterGetRealJIDByNick(nick) {
for (var i=0; i<this.users.length; i++)
if (this.users[i].name == nick)
return this.users[i].realjid;
return null;
}
function getRosterGetFullJIDByNick(nick) {
for (var i=0; i<this.users.length; i++)
if (this.users[i].name == nick)
return this.users[i].fulljid;
return null;
}
function getGroupchatRosterUserByJID(jid) {
// need to search fulljid here
return getElFromArrByProp(this.users,"fulljid",jid);
}
function GroupchatRoster(targetW) {
this.base = Roster;
this.base(null);
this.usersHidden = true;
this.targetW = targetW.frames.groupchatRoster;
this.rosterW = this.targetW.groupchatIRoster.document;
this.name = 'GroupchatRoster';
this.print = GroupchatRosterPrint;
this.getUserByJID = getGroupchatRosterUserByJID;
this.getRealJIDByNick = getRosterGetRealJIDByNick;
this.getFullJIDByNick = getRosterGetFullJIDByNick;
}
GroupchatRoster.prototype = new Roster();
// some images - no idea why they are defined here
var messageImg = new Image();
messageImg.src = "images/message.gif";
var grp_open_img = new Image();
grp_open_img.src = 'images/group_open.gif';
var grp_close_img = new Image();
grp_close_img.src = 'images/group_close.gif';
var arrow_right_blinking = new Image();
arrow_right_blinking.src = 'images/arrow_right_blinking.gif';
| JavaScript |
/*
* JWChat, a web based jabber client
* Copyright (C) 2003-2004 Stefan Strigler <steve@zeank.in-berlin.de>
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Please visit http://jwchat.sourceforge.net for more information!
*/
/*
* This is the main configuration file for the chat client itself.
* You have to edit this before you can use jwchat on your website!
*
* Have a look at the README for hints and troubleshooting!
*/
var SITENAME = "leo-pc";
/* BACKENDS
* Array of objects each describing a backend.
*
* Required object fields:
* name - human readable short identifier for this backend
* httpbase - base address of http service [see README for details]
* type - type of backend, must be 'polling' or 'binding'
*
* Optional object fields:
* description - a human readable description for this backend
* servers_allowed - array of jabber server addresses users can connect to
* using this backend
*
* If BACKENDS contains more than one entry users may choose from a
* select box which one to use when logging in.
*
* If 'servers_allowed' is empty or omitted user is presented an input
* field to enter the jabber server to connect to by hand.
* If 'servers_allowed' contains more than one element user is
* presented a select box to choose a jabber server to connect to.
* If 'servers_allowed' contains one single element no option is
* presented to user.
*/
var BACKENDS =
[
{
name:"Open Relay",
description:"HTTP Binding backend that allows connecting to any jabber server",
httpbase:"/MMobileServer/jwchat/JHB/",
type:"binding",
default_server: SITENAME
}
];
var DEFAULTRESOURCE = "jwchat";
var DEFAULTPRIORITY = "10";
/* DEFAULTCONFERENCEGROUP + DEFAULTCONFERENCESERVER
* default values for joingroupchat form
*/
var DEFAULTCONFERENCEROOM = "talks";
var DEFAULTCONFERENCESERVER = "conference."+SITENAME;
/* debugging options */
var DEBUG = false; // turn debugging on
var DEBUG_LVL = 2; // debug-level 0..4 (4 = very noisy)
var USE_DEBUGJID = false; // if true only DEBUGJID gets the debugger
var DEBUGJID = "admin@localhost"; // which user get's debug messages
// most probably you don't want to change anything below
var timerval = 2000; // poll frequency in msec
var stylesheet = "jwchat.css";
var THEMESDIR = "themes";
| JavaScript |
<embed src="chat_queue.swf" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">
| JavaScript |
// name: RhymBox
// description: Default set of icons in RhymBox. Created by Greg Fleming as part of his Megapack1 icon collection.
// author: Greg Fleming
// author: Sebastiaan Deckers
// creation: 2002-04-07
var emoticons = new Object();
var emoticonpath = "./images/emoticons/rythmbox/";
emoticons[':cat:'] = 'cat.gif';
emoticons[':dog:'] = 'dog.gif';
emoticons['@-\\)'] = 'alien.gif';
emoticons['8-\\]'] = 'ogre.gif';
emoticons['o-\\)'] = 'cyclops.gif';
emoticons['O-\\)'] = 'cyclops.gif';
emoticons['o-\\]'] = 'robot.gif';
emoticons['O-\\]'] = 'robot.gif';
emoticons['\\|:-\\)'] = 'rambo.gif';
emoticons[':#\\('] = 'hurt.gif';
emoticons['#-\\('] = 'dead.gif';
emoticons['O:-\\)'] = 'angel.gif';
emoticons['o:-\\)'] = 'angel.gif';
emoticons['o:\\)'] = 'angel.gif';
emoticons['O:\\)'] = 'angel.gif';
emoticons['\\(6\\)'] = 'devil.gif';
emoticons[':devil:'] = 'devil.gif';
emoticons['\\(y\\)'] = 'thumbup.gif';
emoticons['\\(Y\\)'] = 'thumbup.gif';
emoticons[':yes:'] = 'thumbup.gif';
emoticons['\\(n\\)'] = 'thumbdown.gif';
emoticons['\\(N\\)'] = 'thumbdown.gif';
emoticons[':no:'] = 'thumbdown.gif';
emoticons[':heart:'] = 'heart.gif';
emoticons['\\(l\\)'] = 'heart.gif';
emoticons['\\(L\\)'] = 'heart.gif';
emoticons['\\(u\\)'] = 'heart.gif';
emoticons['\\(U\\)'] = 'heart.gif';
emoticons[':bheart:'] = 'heart.gif';
emoticons['\\(z\\)'] = 'person.gif';
emoticons['\\(Z\\)'] = 'person.gif';
emoticons[':man:'] = 'person.gif';
emoticons['\\(e\\)'] = 'letter.gif';
emoticons['\\(E\\)'] = 'letter.gif';
emoticons[':letter:'] = 'letter.gif';
emoticons[':coffee:'] = 'coffee.gif';
emoticons['\\(c\\)'] = 'coffee.gif';
emoticons['\\(C\\)'] = 'coffee.gif';
emoticons['\\(i\\)'] = 'bulb.gif';
emoticons['\\(I\\)'] = 'bulb.gif';
emoticons[':lamp:'] = 'bulb.gif';
emoticons[':jabber:'] = 'bulb.gif';
emoticons['\\}\\{'] = 'bat.gif';
emoticons[':bat:'] = 'bat.gif';
emoticons[':dragon:'] = 'dragon.gif';
emoticons[':home:'] = 'house.gif';
emoticons[':apple:'] = 'apple.gif';
emoticons[':glasses:'] = 'glasses.gif';
emoticons['\\(t\\)'] = 'phone.gif';
emoticons['\\(T\\)'] = 'phone.gif';
emoticons[':phone:'] = 'phone.gif';
emoticons[':mushroom:'] = 'mushroom.gif';
emoticons['\\(p\\)'] = 'camera.gif';
emoticons['\\(P\\)'] = 'camera.gif';
emoticons[':photo:'] = 'camera.gif';
emoticons[':world:'] = 'globe.gif';
emoticons[':syringe:'] = 'needle.gif';
emoticons['\\(b\\)'] = 'beer.gif';
emoticons['\\(B\\)'] = 'beer.gif';
emoticons[':beer:'] = 'beer.gif';
emoticons[':carrot:'] = 'carrot.gif';
emoticons[':cherry:'] = 'cherry.gif';
emoticons[':cobra:'] = 'cobra.gif';
emoticons[':wine:'] = 'cocktail.gif';
emoticons[':cocktail:'] = 'cocktail.gif';
emoticons['\\(d\\)'] = 'cocktail.gif';
emoticons['\\(D\\)'] = 'cocktail.gif';
emoticons[':dinosaur:'] = 'dinosaur.gif';
emoticons[':drink:'] = 'drink.gif';
emoticons[':fish:'] = 'fish.gif';
emoticons[':graduate:'] = 'graduate.gif';
emoticons[':death:'] = 'grimreaper.gif';
emoticons[':hammer:'] = 'hammer.gif';
emoticons[':helicopter:'] = 'helicopter.gif';
emoticons['\\(8\\)'] = 'music.gif';
emoticons[':note:'] = 'music.gif';
emoticons[':music:'] = 'music.gif';
emoticons[':tux:'] = 'penguin.gif';
emoticons[':linux:'] = 'penguin.gif';
emoticons[':skull:'] = 'skull.gif';
emoticons[':speaker:'] = 'speaker.gif';
emoticons[':tv:'] = 'tv.gif';
emoticons[':television:'] = 'tv.gif';
emoticons[':p'] = 'ditsy.gif';
emoticons[':pill:'] = 'pill.png';
emoticons['\\(E\\)'] = 'pill.png';
emoticons['\\(e\\)'] = 'pill.png';
emoticons[':god:'] = 'trinity_glowing.gif';
emoticons[':water:'] = 'water_molecule.gif';
emoticons[':\\)'] = 'smile.gif';
emoticons[':-\\)'] = 'smile.gif';
emoticons['\\(:'] = 'spin.gif';
emoticons['\\(-:'] = 'spin.gif';
emoticons[';\\)'] = 'wink.gif';
emoticons[';-\\)'] = 'wink.gif';
emoticons['\\(;'] = 'wink.gif';
emoticons['\\(-;'] = 'wink.gif';
emoticons[':\\|'] = 'normal.gif';
emoticons[':-\\|'] = 'normal.gif';
emoticons[':-\\\\'] = 'ermm.gif';
emoticons[':\\\\'] = 'ermm.gif';
emoticons[':-\\/'] = 'ermm.gif';
emoticons[':\\/'] = 'ermm.gif';
emoticons[':S'] = 'puzzled.gif';
emoticons[':s'] = 'puzzled.gif';
emoticons[':-S'] = 'puzzled.gif';
emoticons[':-s'] = 'puzzled.gif';
emoticons[':\\('] = 'depressed.gif';
emoticons[':-\\('] = 'depressed.gif';
emoticons['\\):'] = 'depressed.gif';
emoticons['\\)-:'] = 'depressed.gif';
emoticons[':\'\\('] = 'cry.gif';
emoticons[':\'-\\('] = 'cry.gif';
emoticons[':X'] = 'speechless.gif';
emoticons[':x'] = 'speechless.gif';
emoticons[':o'] = 'surprised.gif';
emoticons[':-o'] = 'surprised.gif';
emoticons[':O'] = 'surprised.gif';
emoticons[':-O'] = 'surprised.gif';
emoticons['%\\)'] = 'evolved.gif';
emoticons['%-\\)'] = 'evolved.gif';
emoticons['\\>:D'] = 'laugh.gif';
emoticons[':D'] = 'silly.gif';
emoticons[':-d'] = 'silly.gif';
emoticons[':d'] = 'silly.gif';
emoticons[':-D'] = 'silly.gif';
emoticons[':o\\)'] = 'cheerful.gif';
emoticons[':\\)'] = 'smiley.gif';
emoticons['8-D'] = 'cheeky.gif';
emoticons[':\\*\\)'] = 'embarrassed.gif';
emoticons[':-0'] = 'shocked.gif';
emoticons[':-O'] = 'shocked.gif';
emoticons[':0'] = 'scared.gif';
emoticons[':O'] = 'scared.gif';
emoticons[':-P'] = 'lick.gif';
emoticons[':-p'] = 'lick.gif';
emoticons['B-\\)'] = 'cool.gif';
emoticons['B-\\|'] = 'calm.gif';
emoticons[':-!'] = 'smoker.gif';
emoticons['\\|-\\)'] = 'bandit.gif';
emoticons['P-\\)'] = 'pirate.gif';
emoticons[':-\\)\\}'] = 'beard.gif';
emoticons[':-\\)\\{'] = 'beard.gif';
emoticons[':-\\)\\>'] = 'old-man.gif';
emoticons['\\[:\\|\\]'] = 'ninja.gif';
emoticons[':-\\[\\]'] = 'gasmask.gif';
emoticons[':-\\['] = 'vampire.gif';
emoticons[':\\['] = 'vampire.gif';
emoticons['3-\\|\\{'] = 'sleeping.gif';
emoticons['8-\\/'] = 'paranoid.gif';
emoticons['\\?-\\|'] = 'ponder.gif';
emoticons[':-S'] = 'nervous.gif';
emoticons['8-s'] = 'confused.gif';
emoticons['8-\\|'] = 'tired.gif';
emoticons['8-\\['] = 'bored.gif';
emoticons['8-\\('] = 'disappointed.gif';
emoticons[':-\\<'] = 'sad.gif';
emoticons['\\>:-D'] = 'evil.gif';
emoticons['\\>:-\\|'] = 'angry.gif';
emoticons['\\>:-\\)'] = 'devious.gif';
emoticons['\\>:-o'] = 'mad.gif';
emoticons[':D'] = 'grin.gif';
emoticons['8\\)'] = 'classic.gif';
emoticons[':-\\]'] = 'square-eyed.gif';
emoticons['\\|\\|-\\)'] = 'cross-eyed.gif';
emoticons['8-\\)'] = 'foureyes.gif';
emoticons['x-\\)'] = 'knocked-out.gif';
emoticons['X-\\)'] = 'knocked-out.gif';
| JavaScript |
var VERSION="1.0";
| JavaScript |
var SOUNDS = new Object();
SOUNDS['message_recv'] = "./sounds/message_recv.swf"
SOUNDS['message_queue'] = "./sounds/message_queue.swf"
SOUNDS['chat_recv'] = "./sounds/chat_recv.swf"
SOUNDS['chat_queue'] = "./sounds/chat_queue.swf"
SOUNDS['online'] = "./sounds/online.swf"
SOUNDS['offline'] = "./sounds/offline.swf"
SOUNDS['startup'] = "./sounds/startup.swf"
SOUNDS['connected'] = "./sounds/connected.swf"
| JavaScript |
var availableLed = new Image();
availableLed.src = "images/available.gif";
var chatLed = new Image();
chatLed.src = "images/chat.gif";
var awayLed = new Image();
awayLed.src = "images/away.gif";
var xaLed = new Image();
xaLed.src = "images/xa.gif";
var dndLed = new Image();
dndLed.src = "images/dnd.gif";
var invisibleLed = new Image();
invisibleLed.src = "images/invisible.gif";
var unavailableLed = new Image();
unavailableLed.src = "images/unavailable.gif";
var stalkerLed = new Image();
stalkerLed.src = "images/stalker.gif";
| JavaScript |
function genJabberXDataTable(x) {
var html = '<input type=hidden name="jwchat_form_type" value="jabber:x:data">';
if (x.getElementsByTagName('title').item(0))
html += "<h1>"+x.getElementsByTagName('title').item(0).firstChild.nodeValue.replace(/\n/g,"<br>")+"</h1>";
if (x.getElementsByTagName('instructions').item(0))
html += x.getElementsByTagName('instructions').item(0).firstChild.nodeValue.replace(/\n/g,"<br>");
if (!x.getElementsByTagName('field').length)
return html;
html += '<table width="100%">';
for (var i=0; i<x.getElementsByTagName('field').length; i++) {
var aField = x.getElementsByTagName('field').item(i);
html += "<tr>";
switch (aField.getAttribute('type')) {
case 'hidden':
if (aField.firstChild && aField.firstChild.firstChild)
html += "<td colspan=2><input type=hidden name='"+aField.getAttribute('var')+"' value='"+aField.firstChild.firstChild.nodeValue+"'></td>";
break;
case 'fixed':
html += "<td colspan=2><b>"+aField.firstChild.firstChild.nodeValue+"</b></td>";
break;
case 'jid-single':
case 'text-single':
html += "<th>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<input type=text size='24' name='" + aField.getAttribute('var') + "'";
if (aField.firstChild && aField.firstChild.firstChild)
html += " value='" + aField.firstChild.firstChild.nodeValue + "'";
html += ">";
html += "</td>";
break;
case 'text-private':
html += "<th>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<input type=password size='24' name='" + aField.getAttribute('var') + "'";
if (aField.firstChild && aField.firstChild.firstChild)
html += " value='" + aField.firstChild.firstChild.nodeValue + "'";
html += ">";
html += "</td>";
break;
case 'jid-multi':
case 'text-multi':
html += "<th valign=top>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<textarea cols=24 rows=4 name='" + aField.getAttribute('var') + "'>";
if (aField.firstChild && aField.firstChild.firstChild)
html += aField.firstChild.firstChild.nodeValue;
html += "</textarea>";
html += "</td>";
break;
case 'list-single':
html += "<th>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<select name='" + aField.getAttribute('var') + "'>";
if (aField.childNodes.length) {
var val;
for (var j=0; j<aField.childNodes.length; j++)
if (aField.childNodes.item(j).nodeName == 'value')
val = aField.childNodes.item(j).firstChild.nodeValue;
for (var j=0; j<aField.childNodes.length; j++) {
if (aField.childNodes.item(j).nodeName == 'option') {
html += "<option value='" + aField.childNodes.item(j).firstChild.firstChild.nodeValue + "'";
if (val && val == aField.childNodes.item(j).firstChild.firstChild.nodeValue)
html += " selected";
html += ">"+aField.childNodes.item(j).getAttribute('label')+"</option>";
}
}
}
html += "</select>";
html += "</td>";
break;
case 'list-multi':
html += "<th>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<select name='" + aField.getAttribute('var') + "' "
+ "multiple='true'>";
if (aField.childNodes.length) {
for (var j=0; j<aField.childNodes.length; j++) {
if (aField.childNodes.item(j).nodeName == 'option') {
html += "<option value='" + aField.childNodes.item(j).firstChild.firstChild.nodeValue + "'";
// if (x.o[i].value == x.o[i].o[j].value)
// html += " selected";
html += ">"+aField.childNodes.item(j).getAttribute('label')+"</option>";
}
}
}
html += "</select>";
html += "</td>";
break;
case 'boolean':
html += "<th>" + aField.getAttribute('label') + "</th>";
html += "<td>";
html += "<input type=checkbox name='" +aField.getAttribute('var') + "'";
if (aField.firstChild && aField.firstChild.firstChild && aField.firstChild.firstChild.nodeValue == '1')
html += " checked";
html += ">";
html += "</td>";
break;
default:
srcW.Debug.log("unknown type: " + aField.getAttribute('type'),1);
break;
}
html += "</tr>";
}
html += "</table>";
return html;
}
function genJabberXDataReply(form) {
var xml = "<x xmlns='jabber:x:data' type='submit'>";
var els = form.elements;
for (var i=0; i<els.length; i++) {
if (els[i].name == '' || els[i].value == '' || els[i].name == 'jwchat_form_type')
continue;
xml += "<field var='" +els[i].name + "'><value>";
if (els[i].type == 'checkbox')
xml += (els[i].checked) ? '1':'0';
else
xml += els[i].value;
xml += "</value></field>";
}
xml += "</x>";
return xml;
}
| JavaScript |
/**
* @author Remy Sharp
* @url http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*/
(function ($) {
$.fn.hint = function (blurClass) {
if (!blurClass) {
blurClass = 'blur';
}
return this.each(function () {
// get jQuery version of 'this'
var $input = $(this),
// capture the rest of the variable to allow for reuse
title = $input.attr('title'),
$form = $(this.form),
$win = $(window);
function remove() {
if ($input.val() === title && $input.hasClass(blurClass)) {
$input.val('').removeClass(blurClass);
}
}
// only apply logic if the element has the attribute
if (title) {
// on blur, set value to title attr if text is blank
$input.blur(function () {
if (this.value === '') {
$input.val(title).addClass(blurClass);
}
}).focus(remove).blur(); // now change all inputs to title
// clear the pre-defined text when form is submitted
$form.submit(remove);
$win.unload(remove); // handles Firefox's autocomplete
}
});
};
})(jQuery); | JavaScript |
function checkEmail (strng) {
var error="";
if (strng == "") {
error = "You didn't enter an email address.>";
}
var emailFilter=/^.+@.+\..{2,4}$/;
if (!(emailFilter.test(strng))) {
error = "Please enter a valid email address.";
}
else {
//test email for illegal characters
var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
if (strng.match(illegalChars)) {
error = "The email address contains illegal characters.";
}
}
return error;
}
// password - greater than 6 chars
function checkPassword (strng) {
var error = "";
if (strng == "") {
error = "You didn't enter a password.\n";
}
var illegalChars = /[\W_]/; // allow only letters and numbers
if (strng.length < 6) {
error = "The password needs to be at least 6 characters long.<br/>";
}
else if (illegalChars.test(strng)) {
error = "The password contains illegal characters.<br/>";
}
return error;
} | JavaScript |
/**
* AJAX Upload ( http://valums.com/ajax-upload/ )
* Copyright (c) Andris Valums
* Licensed under the MIT license ( http://valums.com/mit-license/ )
* Thanks to Gary Haran, David Mark, Corey Burns and others for contributions
*/
(function () {
/* global window */
/* jslint browser: true, devel: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true */
/**
* Wrapper for FireBug's console.log
*/
function log(){
if (typeof(console) != 'undefined' && typeof(console.log) == 'function'){
Array.prototype.unshift.call(arguments, '[Ajax Upload]');
console.log( Array.prototype.join.call(arguments, ' '));
}
}
/**
* Attaches event to a dom element.
* @param {Element} el
* @param type event name
* @param fn callback This refers to the passed element
*/
function addEvent(el, type, fn){
if (el.addEventListener) {
el.addEventListener(type, fn, false);
} else if (el.attachEvent) {
el.attachEvent('on' + type, function(){
fn.call(el);
});
} else {
throw new Error('not supported or DOM not loaded');
}
}
/**
* Attaches resize event to a window, limiting
* number of event fired. Fires only when encounteres
* delay of 100 after series of events.
*
* Some browsers fire event multiple times when resizing
* http://www.quirksmode.org/dom/events/resize.html
*
* @param fn callback This refers to the passed element
*/
function addResizeEvent(fn){
var timeout;
addEvent(window, 'resize', function(){
if (timeout){
clearTimeout(timeout);
}
timeout = setTimeout(fn, 100);
});
}
// Needs more testing, will be rewriten for next version
// getOffset function copied from jQuery lib (http://jquery.com/)
if (document.documentElement.getBoundingClientRect){
// Get Offset using getBoundingClientRect
// http://ejohn.org/blog/getboundingclientrect-is-awesome/
var getOffset = function(el){
var box = el.getBoundingClientRect();
var doc = el.ownerDocument;
var body = doc.body;
var docElem = doc.documentElement; // for ie
var clientTop = docElem.clientTop || body.clientTop || 0;
var clientLeft = docElem.clientLeft || body.clientLeft || 0;
// In Internet Explorer 7 getBoundingClientRect property is treated as physical,
// while others are logical. Make all logical, like in IE8.
var zoom = 1;
if (body.getBoundingClientRect) {
var bound = body.getBoundingClientRect();
zoom = (bound.right - bound.left) / body.clientWidth;
}
if (zoom > 1) {
clientTop = 0;
clientLeft = 0;
}
var top = box.top / zoom + (window.pageYOffset || docElem && docElem.scrollTop / zoom || body.scrollTop / zoom) - clientTop, left = box.left / zoom + (window.pageXOffset || docElem && docElem.scrollLeft / zoom || body.scrollLeft / zoom) - clientLeft;
return {
top: top,
left: left
};
};
} else {
// Get offset adding all offsets
var getOffset = function(el){
var top = 0, left = 0;
do {
top += el.offsetTop || 0;
left += el.offsetLeft || 0;
el = el.offsetParent;
} while (el);
return {
left: left,
top: top
};
};
}
/**
* Returns left, top, right and bottom properties describing the border-box,
* in pixels, with the top-left relative to the body
* @param {Element} el
* @return {Object} Contains left, top, right,bottom
*/
function getBox(el){
var left, right, top, bottom;
var offset = getOffset(el);
left = offset.left;
top = offset.top;
right = left + el.offsetWidth;
bottom = top + el.offsetHeight;
return {
left: left,
right: right,
top: top,
bottom: bottom
};
}
/**
* Helper that takes object literal
* and add all properties to element.style
* @param {Element} el
* @param {Object} styles
*/
function addStyles(el, styles){
for (var name in styles) {
if (styles.hasOwnProperty(name)) {
el.style[name] = styles[name];
}
}
}
/**
* Function places an absolutely positioned
* element on top of the specified element
* copying position and dimentions.
* @param {Element} from
* @param {Element} to
*/
function copyLayout(from, to){
var box = getBox(from);
addStyles(to, {
position: 'absolute',
left : box.left + 'px',
top : box.top + 'px',
width : from.offsetWidth + 'px',
height : from.offsetHeight + 'px'
});
}
/**
* Creates and returns element from html chunk
* Uses innerHTML to create an element
*/
var toElement = (function(){
var div = document.createElement('div');
return function(html){
div.innerHTML = html;
var el = div.firstChild;
return div.removeChild(el);
};
})();
/**
* Function generates unique id
* @return unique id
*/
var getUID = (function(){
var id = 0;
return function(){
return 'ValumsAjaxUpload' + id++;
};
})();
/**
* Get file name from path
* @param {String} file path to file
* @return filename
*/
function fileFromPath(file){
return file.replace(/.*(\/|\\)/, "");
}
/**
* Get file extension lowercase
* @param {String} file name
* @return file extenstion
*/
function getExt(file){
return (-1 !== file.indexOf('.')) ? file.replace(/.*[.]/, '') : '';
}
function hasClass(el, name){
var re = new RegExp('\\b' + name + '\\b');
return re.test(el.className);
}
function addClass(el, name){
if ( ! hasClass(el, name)){
el.className += ' ' + name;
}
}
function removeClass(el, name){
var re = new RegExp('\\b' + name + '\\b');
el.className = el.className.replace(re, '');
}
function removeNode(el){
el.parentNode.removeChild(el);
}
/**
* Easy styling and uploading
* @constructor
* @param button An element you want convert to
* upload button. Tested dimentions up to 500x500px
* @param {Object} options See defaults below.
*/
window.AjaxUpload = function(button, options){
this._settings = {
// Location of the server-side upload script
action: 'upload.php',
// File upload name
name: 'userfile',
// Additional data to send
data: {},
// Submit file as soon as it's selected
autoSubmit: true,
// The type of data that you're expecting back from the server.
// html and xml are detected automatically.
// Only useful when you are using json data as a response.
// Set to "json" in that case.
responseType: false,
// Class applied to button when mouse is hovered
hoverClass: 'hover',
// Class applied to button when AU is disabled
disabledClass: 'disabled',
// When user selects a file, useful with autoSubmit disabled
// You can return false to cancel upload
onChange: function(file, extension){
},
// Callback to fire before file is uploaded
// You can return false to cancel upload
onSubmit: function(file, extension){
},
// Fired when file upload is completed
// WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE!
onComplete: function(file, response){
}
};
// Merge the users options with our defaults
for (var i in options) {
if (options.hasOwnProperty(i)){
this._settings[i] = options[i];
}
}
// button isn't necessary a dom element
if (button.jquery){
// jQuery object was passed
button = button[0];
} else if (typeof button == "string") {
if (/^#.*/.test(button)){
// If jQuery user passes #elementId don't break it
button = button.slice(1);
}
button = document.getElementById(button);
}
if ( ! button || button.nodeType !== 1){
throw new Error("Please make sure that you're passing a valid element");
}
if ( button.nodeName.toUpperCase() == 'A'){
// disable link
addEvent(button, 'click', function(e){
if (e && e.preventDefault){
e.preventDefault();
} else if (window.event){
window.event.returnValue = false;
}
});
}
// DOM element
this._button = button;
// DOM element
this._input = null;
// If disabled clicking on button won't do anything
this._disabled = false;
// if the button was disabled before refresh if will remain
// disabled in FireFox, let's fix it
this.enable();
this._rerouteClicks();
};
// assigning methods to our class
AjaxUpload.prototype = {
setData: function(data){
this._settings.data = data;
},
disable: function(){
addClass(this._button, this._settings.disabledClass);
this._disabled = true;
var nodeName = this._button.nodeName.toUpperCase();
if (nodeName == 'INPUT' || nodeName == 'BUTTON'){
this._button.setAttribute('disabled', 'disabled');
}
// hide input
if (this._input){
// We use visibility instead of display to fix problem with Safari 4
// The problem is that the value of input doesn't change if it
// has display none when user selects a file
this._input.parentNode.style.visibility = 'hidden';
}
},
enable: function(){
removeClass(this._button, this._settings.disabledClass);
this._button.removeAttribute('disabled');
this._disabled = false;
},
/**
* Creates invisible file input
* that will hover above the button
* <div><input type='file' /></div>
*/
_createInput: function(){
var self = this;
var input = document.createElement("input");
input.setAttribute('type', 'file');
input.setAttribute('name', this._settings.name);
addStyles(input, {
'position' : 'absolute',
// in Opera only 'browse' button
// is clickable and it is located at
// the right side of the input
'right' : 0,
'margin' : 0,
'padding' : 0,
'fontSize' : '480px',
'cursor' : 'pointer'
});
var div = document.createElement("div");
addStyles(div, {
'display' : 'block',
'position' : 'absolute',
'overflow' : 'hidden',
'margin' : 0,
'padding' : 0,
'opacity' : 0,
// Make sure browse button is in the right side
// in Internet Explorer
'direction' : 'ltr',
//Max zIndex supported by Opera 9.0-9.2
'zIndex': 2147483583
});
// Make sure that element opacity exists.
// Otherwise use IE filter
if ( div.style.opacity !== "0") {
if (typeof(div.filters) == 'undefined'){
throw new Error('Opacity not supported by the browser');
}
div.style.filter = "alpha(opacity=0)";
}
addEvent(input, 'change', function(){
if ( ! input || input.value === ''){
return;
}
// Get filename from input, required
// as some browsers have path instead of it
var file = fileFromPath(input.value);
if (false === self._settings.onChange.call(self, file, getExt(file))){
self._clearInput();
return;
}
// Submit form when value is changed
if (self._settings.autoSubmit) {
self.submit();
}
});
addEvent(input, 'mouseover', function(){
addClass(self._button, self._settings.hoverClass);
});
addEvent(input, 'mouseout', function(){
removeClass(self._button, self._settings.hoverClass);
// We use visibility instead of display to fix problem with Safari 4
// The problem is that the value of input doesn't change if it
// has display none when user selects a file
input.parentNode.style.visibility = 'hidden';
});
div.appendChild(input);
document.body.appendChild(div);
this._input = input;
},
_clearInput : function(){
if (!this._input){
return;
}
// this._input.value = ''; Doesn't work in IE6
removeNode(this._input.parentNode);
this._input = null;
this._createInput();
removeClass(this._button, this._settings.hoverClass);
},
/**
* Function makes sure that when user clicks upload button,
* the this._input is clicked instead
*/
_rerouteClicks: function(){
var self = this;
// IE will later display 'access denied' error
// if you use using self._input.click()
// other browsers just ignore click()
addEvent(self._button, 'mouseover', function(){
if (self._disabled){
return;
}
if ( ! self._input){
self._createInput();
}
var div = self._input.parentNode;
copyLayout(self._button, div);
div.style.visibility = 'visible';
});
// commented because we now hide input on mouseleave
/**
* When the window is resized the elements
* can be misaligned if button position depends
* on window size
*/
//addResizeEvent(function(){
// if (self._input){
// copyLayout(self._button, self._input.parentNode);
// }
//});
},
/**
* Creates iframe with unique name
* @return {Element} iframe
*/
_createIframe: function(){
// We can't use getTime, because it sometimes return
// same value in safari :(
var id = getUID();
// We can't use following code as the name attribute
// won't be properly registered in IE6, and new window
// on form submit will open
// var iframe = document.createElement('iframe');
// iframe.setAttribute('name', id);
var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />');
// src="javascript:false; was added
// because it possibly removes ie6 prompt
// "This page contains both secure and nonsecure items"
// Anyway, it doesn't do any harm.
iframe.setAttribute('id', id);
iframe.style.display = 'none';
document.body.appendChild(iframe);
return iframe;
},
/**
* Creates form, that will be submitted to iframe
* @param {Element} iframe Where to submit
* @return {Element} form
*/
_createForm: function(iframe){
var settings = this._settings;
// We can't use the following code in IE6
// var form = document.createElement('form');
// form.setAttribute('method', 'post');
// form.setAttribute('enctype', 'multipart/form-data');
// Because in this case file won't be attached to request
var form = toElement('<form method="post" enctype="multipart/form-data"></form>');
form.setAttribute('action', settings.action);
form.setAttribute('target', iframe.name);
form.style.display = 'none';
document.body.appendChild(form);
// Create hidden input element for each data key
for (var prop in settings.data) {
if (settings.data.hasOwnProperty(prop)){
var el = document.createElement("input");
el.setAttribute('type', 'hidden');
el.setAttribute('name', prop);
el.setAttribute('value', settings.data[prop]);
form.appendChild(el);
}
}
return form;
},
/**
* Gets response from iframe and fires onComplete event when ready
* @param iframe
* @param file Filename to use in onComplete callback
*/
_getResponse : function(iframe, file){
// getting response
var toDeleteFlag = false, self = this, settings = this._settings;
addEvent(iframe, 'load', function(){
if (// For Safari
iframe.src == "javascript:'%3Chtml%3E%3C/html%3E';" ||
// For FF, IE
iframe.src == "javascript:'<html></html>';"){
// First time around, do not delete.
// We reload to blank page, so that reloading main page
// does not re-submit the post.
if (toDeleteFlag) {
// Fix busy state in FF3
setTimeout(function(){
removeNode(iframe);
}, 0);
}
return;
}
var doc = iframe.contentDocument ? iframe.contentDocument : window.frames[iframe.id].document;
// fixing Opera 9.26,10.00
if (doc.readyState && doc.readyState != 'complete') {
// Opera fires load event multiple times
// Even when the DOM is not ready yet
// this fix should not affect other browsers
return;
}
// fixing Opera 9.64
if (doc.body && doc.body.innerHTML == "false") {
// In Opera 9.64 event was fired second time
// when body.innerHTML changed from false
// to server response approx. after 1 sec
return;
}
var response;
if (doc.XMLDocument) {
// response is a xml document Internet Explorer property
response = doc.XMLDocument;
} else if (doc.body){
// response is html document or plain text
response = doc.body.innerHTML;
if (settings.responseType && settings.responseType.toLowerCase() == 'json') {
// If the document was sent as 'application/javascript' or
// 'text/javascript', then the browser wraps the text in a <pre>
// tag and performs html encoding on the contents. In this case,
// we need to pull the original text content from the text node's
// nodeValue property to retrieve the unmangled content.
// Note that IE6 only understands text/html
if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE') {
response = doc.body.firstChild.firstChild.nodeValue;
}
if (response) {
response = eval("(" + response + ")");
} else {
response = {};
}
}
} else {
// response is a xml document
response = doc;
}
settings.onComplete.call(self, file, response);
// Reload blank page, so that reloading main page
// does not re-submit the post. Also, remember to
// delete the frame
toDeleteFlag = true;
// Fix IE mixed content issue
iframe.src = "javascript:'<html></html>';";
});
},
/**
* Upload file contained in this._input
*/
submit: function(){
var self = this, settings = this._settings;
if ( ! this._input || this._input.value === ''){
return;
}
var file = fileFromPath(this._input.value);
// user returned false to cancel upload
if (false === settings.onSubmit.call(this, file, getExt(file))){
this._clearInput();
return;
}
// sending request
var iframe = this._createIframe();
var form = this._createForm(iframe);
// assuming following structure
// div -> input type='file'
removeNode(this._input.parentNode);
removeClass(self._button, self._settings.hoverClass);
form.appendChild(this._input);
form.submit();
// request set, clean up
removeNode(form); form = null;
removeNode(this._input); this._input = null;
// Get response from iframe and fire onComplete event when ready
this._getResponse(iframe, file);
// get ready for next request
this._createInput();
}
};
})();
| JavaScript |
var errorObj = function() {
var hasError = false;
var decRegExp = /^\d\d?\d?$/;
var me = {
hasError: function() {
return hasError;
},
reset: function() {
hasError=false;
$('.error').remove();
},
attacheError: function (elem, msg) {
$(elem).parent().append($("<span class='error'>"+msg+"</span>"));
hasError|=true;
},
testPercent: function(val, elem) {
if (val=="") {
me.attacheError(elem, "<br/>This field is required.");
} else if (val.indexOf(".")>=0) {
me.attacheError(elem, "<br/>Only integers are allowed.");
} else if (val.indexOf("-")>=0) {
me.attacheError(elem, "<br/>Negative numbers are not allowed.");
} else if (!decRegExp.test(val)) {
errorObj.attacheError(elem, "<br/>This is not a valid number.");
} else if (val>100) {
errorObj.attacheError(elem, "<br/>Can't be greater than 100%.");
}
}
};
return me;
}();
// function attacheError(elem, msg) {
// $(elem).parent().append($("<span class='error'>"+msg+"</span>"))
// }
| JavaScript |
var traffic = function() {
var sum = 0;
var me = {
changed: false,
getSum: function() {
var new_sum = 0;
$(".traffic").each(function() {
var tmp = parseInt($(this).attr("value"));
if (tmp>=0) new_sum+= tmp;
});
return new_sum;
},
activateSave: function () {
me.changed=true;
$("#save").removeClass("disabled").parent().removeClass("disabled");
$("#cancel").removeClass("disabled");
$("#cancel").unbind("click");
},
setSumOnly: function() {
$("#sum").text(me.getSum()+"%");
},
setSum: function() {
var new_sum=me.getSum();
if (new_sum!=sum) {
sum = new_sum;
me.activateSave();
}
$("#sum").text(sum+"%");
}
};
return me;
}();
| JavaScript |
javascript:(function () {
adsweep();
var version = '2.0.3';
function adsweep(){
if(location.href){
window.adsweepVersion=version;
window.ua=navigator.userAgent;
window.URL = location.href;
var countTries=0;
function checkDOM(){
if(countTries<120){
if(document.getElementsByTagName("HEAD")[0] && document.getElementsByTagName("BODY")[0]){
adsweep_core();
window.addEventListener("load", adsweep_removeAdNodes, false);
} else {
countTries++;
window.setTimeout(checkDOM,250);
}
}
}
checkDOM();
}
}
function adsweep_core(){
// Whitelist. AdSweep does nothing for URLs listed here.
var whitelist=[];
// List of sites for which you don't want to hide common ad patterns
var adPatternExceptions=['boulanger.fr','chess.com','docs.google.com','gamestar.de','google.com.hk/finance','google.com/calendar','hulu.com','mail.google.com','moskva.fm','picasaweb.google.com','spreadsheets.google.com','wikipedia.org','winfuture.de']; // I'm adding Hulu because it's causing a false-positive and I can't test, as I am not in the US.
// List custom CSS selectors that you want to hide on specific sites
var sites=new Array();
sites['360.yahoo.com']='#ymgl-north-wrapper,#ymgl-feedback,#ygma';
sites['3dnews.ru']='.mbanner,.ctn_center,td[style*="860px"],iframe[src*="ppc\.fcgi"],img[src*="banner"],div[style^="width: 200px;"]';
sites['4chan.org']='div[class^="ad-text"],div[class^="ad-title"],img[src*="http://content.4chan.org/tmp"]';
sites['accuweather.com']='#zagWindow,.zagContainer';
sites['afisha.yandex.ru']='[class^="banner"]';
sites['ag.ru']='#upadbg2,#rotating_banners,#rolbar';
sites['ahtim.com']='.cfac_container_1,#rightsidebar>h2:first-of-type,#rightsidebar>p:first-of-type';
sites['anandtech.com']='#topmarq,.newTopTop,#boxfooter';
sites['anonymouse.org']='#mouselayer';
sites['answers.yahoo.com']='#yan-sponsored';
sites['answers.com']='#top_radlinks,#atff,#g5';
sites['aol.com']='.addl_promo,[class^="containerInnerDiv_"],.tunomeArea,#web_container,div.navItem[dojoattachpoint="todayItem"],.ws_main_pane>#sysFolders>div:first-child,h1[id="leftNav"][class="SROnly"],.hatLinks,div[style*="google_search-combined.png"],.searchGoogleText';
sites['arstechnica.com']='#Banner';
sites['auto.ru']='img[src*="rl.auto.ru"],#begunRoot,#news';
sites['auto.yandex.ru']='.teaser';
sites['autonews.ru']='div[id^="autonews_spec_src"],div[class^="banner"],table[bgcolor="#000000"],table>tbody>tr>td>object,div[id^="magna"]';
sites['bbc.co.uk']='#bbccom_leaderboard,#bbccom_mpu,#bbccom_module_c';
sites['br.msn.com']='#shop,[height="39"][width="972"],[id^="ebay"],[id^="match"],#morelinks';
sites['broadcastnewsroom.com']='#rightside,#shopperartbox,.bfua,.sideadsbox,#content>center';
sites['bt.dk']='#promoted-articles,[id^="AT_ANCHOR_DIV"],[id^="FlashID"],[class^="AD"],img[src*="annoncen"],object[width="930"],object[width="950"]';
sites['besame.fm']='.header>div:first-of-type,.header>div:first-of-type+div,#Div1';
sites['betanews.com']='[class$="_boxad"]';
sites['bild.de']='[id*="Banner"]';
sites['bit-tech.net']='div#body div#shopping_box,div#container>div[style]';
sites['business.dk']='.mid-banner,.ticker-wrapper,[class~="ad-col"],iframe[height="76"],.top-banner';
sites['captain.co.il']='[id^="dclk_"],[src*="/banners/"],[name^="neto_frame"]';
sites['championat.ru']='[class*="banner"]';
sites['chess.com']='.adzone';
sites['cleacuisine.fr']='div#partenaire h1:nth-of-type(5),div#partenaire h1:nth-of-type(5)~a';
sites['cnews.ru']='.NewsBodyLeftInclude,#magna_block,#Top_Banner,img[id*="banner"],div[id^="cnews_"],div[style="float:left; margin-top:-20px; position:relative;"]';
sites['cnn.com']='.cnnWireAdLtgBox';
sites['crunchgear.com']='#bugs,#site_supporters';
sites['computerworld.dk']='#newslettercampaign,div[style*="width: 196px"][style*="100px"],.leaderboard';
sites['dailymail.co.uk']='.commercial-horizontal-footer,#DATING_MODULE,.banner-adverts';
sites['demonoid.com']='hr[width="100%"],iframe[src*="/cached/ab_"],iframe[width="742"][height="90"],td[width="119"][height="600"],hr+span[style="color: #777777; background: #cdd0b2; padding-left: 10px; padding-right: 10px; font: bold 102%; border: 1px solid #777777;"]';
sites['designerstalk.com']='td[width="210"][align="right"][valign="top"]';
sites['designyoutrust.com']='#picad_overlay_div,.adblock,#left>.adblock+script+center,#left>h4,#left>table[width="580"],img[src^="http://stats.technoratimedia.com"],img[src^="http://stats.technoratimedia.com"]+table';
sites['di.fm']='body>table>tbody>tr>td>table>tbody>tr:nth-child(3)>td:nth-child(2)>table>tbody>tr:first-child>td:first-child,a[href*="facebook"],a[href*="twitter"],a[href*="shoutcast"]';
sites['dict.leo.org']='.sidebar,.standard_banner';
sites['diendan.hocmai.vn']='div.smallfont>a>img,div.header,div.page>div>table>tbody>tr>td>table>tbody>tr>td>embed,form>div.navbg,table.leftads';
sites['digg.com']='.searchad,#block_ad_msft,.item_ad_image,.msad,#comments_ad_msft,.comments_ad_image';
sites['digitalspy.co.uk']='li.ez:nth-last-of-type(8),td[id^="td_post_"] div[style^="float:right"]:nth-of-type(2),div[id^="edit"]:first-child div:nth-of-type(2) table:nth-of-type(1) tr:nth-of-type(2) td table td:nth-of-type(3),div[id^="edit"]:first-child div:nth-of-type(2) tr:nth-of-type(2) div';
sites['download.com']='.bidwar';
sites['drive.ru']='#ad480-wrapper td:first-of-type, .noprint';
sites['ebay.fr']='#NarrowSectionContainer1>div:not(:last-of-type)';
sites['ekstrabladet.dk']='#FlashID1x,.xmain-head,[class^="eb_ad"],[class*="annonce"],[id*="annonce"],[class^="ad"][class*="x"],div[id="front-2"][class="drfront"]+.eb_column-left';
sites['ekstrabladet.tv']='#FlashID1x,.xmain-head,[class^="eb_ad"],[class*="annonce"],[id*="annonce"],[class^="ad"][class*="x"],div[id="front-2"][class="drfront"]+.eb_column-left';
sites['elitistjerks.com']='[class^="dca"],[class^="dcb"],[class^="dcc"][style*="728px"],[class^="dcc"][style*="728px"]+[class^="dcb"]';
sites['epn.dk']='#dspPageTop,.annCapBox';
sites['f1news.ru']='#rightBanner240,#yad';
sites['ferra.ru']='[class*="pricead"],[id*="vertelka"],.top-banner';
sites['fibromyalgie.xooit.com']='div[style*="90px"]';
sites['fishki.net']='[id*="adland"],iframe';
sites['flyertalk.com']='center,table[style*="width:160px"]';
sites['focus.de']='#adsd_topbanner';
sites['forum.satmag.fr']='div[style^="padding: 6px"],center';
sites['forums.worldofwarcraft.com']='td[align="left"][valign="top"]+td[align="center"][valign="top"],#ftrText';
sites['games.yandex.ru']='.lnk';
sites['gametech.ru']='body>table>tbody>tr[class="header"]';
sites['gazeta.pl']='.HP_ecomm,.ludziePisza,.HP_smallBox';
sites['gazeta.ru']='#no_print,[class*="no_print"]';
sites['girlgeniusonline.com']='form[action*="paypal"],#SponsorTable,[href*="merchant"],[href*="donate"],[href*="/vote/"],[href*="childsplaycharity"],#MainTable>tbody>tr:nth-child(4),#MainTable>tbody>tr:nth-child(5),#MainTable>tbody>tr:nth-child(6),#MainTable>tbody>tr:nth-child(7),#MainTable>tbody>tr:nth-child(8),#MainTable>tbody>tr:nth-child(9)';
sites['gismeteo.ru']='.bnr,.RBC';
sites['gizmodo.']='#sideBarGoogleAnnounces';
sites['global-sms.de']='div[style*="width: 810px; height: 449px"]';
sites['godaddy.com']='.hp_celeb,img[src*="banner_bradwins"],.celeb,div[style*="bobblog"],div[style*="siteseal"],#hp_videovote_links_before,.hp_player,#hp_connectiondiv';
sites['google.']='#gsr div#tads,#gsr table#mbEnd';
sites['guloggratis.dk']='#left_col,#right_col,#page_bottom,[id^="top_banner"]';
sites['haaretz.co.il']='[id^="dclk_"],[src*="/banners/"],[name^="neto_frame"],#flashad,#dcPlazma,#top_banners';
sites['habrahabr.ru']='#main-page>a[target="_top"],#main-page>object';
sites['heise.de']='#bannerzone,.bcadv,.naviad,.leaderboard,.contentbanner,.top';
sites['hh.ru']='[class*="banners"],[id*="banner"]';
sites['hothardware.com']='#LeftSidebar';
sites['idnes.cz']='.col-d,[id^="r26"],.widesquare,.counters,.ahead,.r-head,.r-body';
sites['ifolder.ru']='#FlashDiv,[class="side_ban"]>*,body>table>tbody>tr>td[colspan="3"]';
sites['imdb.com']='#navstrip_wrapper,#top_rhs_wrapper,#top_center_wrapper';
sites['itrate.ru']='.top_block>div[style="margin-bottom: 2px;"],.banner_block_big';
sites['iwiw.hu']='#sponsors,#right-cell,.banner_top,#frameplace_3466';
sites['ixbt.com']='.wrapcenter,.offer,#nl_header,#col3>.front,table[width="468"]';
sites['lenta.ru']='#b240,#ts-svoboda';
sites['lingvo.yandex.ru']='.l-scrap>div[style="margin:1em 0"]';
sites['livejournal.com']='.adv-block';
sites['index.hu']='#container_adoceanindexhulhghephfdh,#also_bannerek';
sites['kijiji.']='#partners,#googsense';
sites['km.ru']='iframe';
sites['latimes.com']='#richad,a[href^="http://www.amazon.com/gp/"],a[href^="http://latimes.newsstand.com"],a[href^="http://store.latimes.com"]';
sites['lifehacker.com']='img[alt$="Shop"],a[href*="amazon"],a[href*="auto-show"],#sidebartopstories ul';
sites['linux-mag.com']='#curtain';
sites['linuxreaders.com']='[href*="packtpub"],#southsidebar~*';
sites['live.com']='.sb_adsW,.adB';
sites['liveinternet.ru']='[id*="banmain"]';
sites['loveplanet.ru']='iframe,[id^="popup_"],#ml_c1763';
sites['mail.live.com']='.cAdBannerContainer,#RadAd_TodayPage_Banner,#adHeader,#RadAd_Banner,#CustComm_120x60,.c120x60CustomerCommContainer,.CustComm_120x60,td.dSideAds,#TodayTabSection,.cAdHeaderContainer,.AdHeaderContainer';
sites['mail.yahoo.com/dc']='#gx_vnews,#nwPane,#swPane,#largePane,#emptyFolderContainer';
sites['mail.yahoo.com/mc']='#monad,iframe#MON,#gx_vnews,#ch_col_h1,#MNW,#MNW+.separator,#gx_idf_c,#northbanner';
sites['majorgeeks.com']='table[width="336"][height="100%"][cellpadding="0"][cellspacing="0"][border="0"][valign="bottom"][align="right"][style="padding-left:5px;"][class="author"],table:nth-of-type(2)>tbody>tr>td.news2>div>table:first-of-type,table[cellpadding="1"][cellspacing="0"][border="0"][width="100%"][align="center"][style*="margin-top:4px;"],div>table:first-of-type>tbody>tr:nth-of-type(2)>td,div>table:nth-of-type(2)>tbody>tr>td:first-of-type>p>table.navlink>tbody>tr:first-of-type>td>center,div>table:nth-of-type(2)>tbody>tr>td:first-of-type>p>table.navlink>tbody>tr:first-of-type>td>center:first-of-type,div>table:nth-of-type(2)>tbody>tr>td:nth-of-type(3)>center:nth-of-type(6),a[href^="https://secure."]';
sites['marktplaats.nl']='.vipAmblock,[id*="placeholder_bannerData"]';
sites['maisfutebol.iol.pt']='body>table:first-of-type,#bg_top div.autoportal,#banner_mrec';
sites['maps.mail.ru']='.left_banner';
sites['mashable.com']='#tbs,div#right-column>div.what-is-mashable:nth-of-type(3),div#right-column>div.what-is-mashable:nth-of-type(12),div#right-column>div.what-is-mashable:nth-of-type(16),div#right-column>div.what-is-mashable:nth-of-type(6),div#right-column>div.squeeze.subscribe:nth-of-type(4),div[id^="div-"],.startup-review,.banner_300x250,li.pga,div#footer>ul.links,ul.banners,.partners,.left-col';
sites['maximumpc.com']='#kick-ass-offers,[id*="block-buysub"],#top-banner';
sites['meebo.com']='#welcomeWin';
sites['mobbit.info']='div[class*="begun"],div[id^="lx"],div[class^="y5"],td[width="478"][height="60"]';
sites['mobile-review.com']='center>object';
sites['moneycontrol.com']='#col180>.PB5,#col180>.PB10,link[href*="justin"]+div,link[href*="justin"]+div+div,#mat_x10,#geo_interview,[value*="moneycontrol.com/images/promo"],[src*="moneycontrol.com/images/promo"],#FinContentx161+object+p,#FinContentx161+object+p+p,#FinContentx161+object+p+p+div,#FinContentx161+object+p+p+div+p,#FinContentx161+object+p+p+div+p+p';
sites['mouse.co.il']='[name^="neto_frame"],#flashad';
sites['msn.']='#lgad,#shopping';
sites['mydrivers.com']='[id^="ad_770_60"]+table[height="90"][width="770"],td[width="133"],td[bgcolor="#ffffff"][width="634"][valign="top"]>table[height="70"][bgcolor="#eaeaea"][width="100%"],#sidebar5,#sidebar6[style*="top: 10px"]';
sites['mykawartha.com']='[href$="/seen"] img,[href*="torstardigital.com"] img,[href*="metroland.com"] img,[class^="notifyad"],#realestatebox';
sites['myspace.com']='div[id*="sponsoredlinks"],div[id^="tv_vid_medrec"],#leaderboard';
sites['myvideo.de']='#fullbanner2_container,table[id="pageFW"]>tbody>tr:first-of-type';
sites['nana.co.il']='#topBannerBlock';
sites['nana10.co.il']='#topBannerBlock';
sites['nationet.com']='td.consolebackground+td[class="consoleBackground"][align="right"][valign="top"]';
sites['nationwide.co.uk']='#promo-campaigns,#promo-latest-news,#promo-mini-promo,.mortlegalbox,#creditcard-wrapper>#container1,#creditcard-wrapper>#container2,#current-account-wrapper>#container1,#current-account-wrapper>#container2,#insurance-wrapper,#investments-wrapper>#container1,#investments-wrapper>#container2,#loans-wrapper>#container1,#loans-wrapper>#container2,#mortgage-main-content>#campaign-top,#savings-wrapper>#container2,#savings-wrapper>#container3,#travel-wrapper,img[src$="395x152.gif"],img[src$="395x111.gif"],img[src$="395x140.gif"],img[src$="insurance_banner.gif"],img[src$="surgeries_banner.gif"],img[src$="contact_us_welcome.jpg"],img[src$="emailwelcome2.jpg"],img[src$="complaint2.jpg"],img[src$="banner_internetbanking.gif"]';
sites['neowin.net']='[id*="header-banner"],[id*="content-main-square"],[id*="content-leaderboard"],div[style*="background: #fff;float:right;padding-left:10px;text-align:center;width:300px"],div[style*="background: #fff;float: right;padding-left: 10px;text-align: center;width: 120px;"],#sidebar-recommendations,#rev-fullbanner,#content-leaderboard';
sites['news.cnet.com']='#topMPU';
sites['newsru.com']='table[width="430"][bgcolor="#D6D6D6"],table[width="770"][bgcolor="#052A9D"],table[width="770"][onclick*="superstyle.ru"],iframe[width="100"][height="100"],table[width="240"][style*="#CED0E3"],table[width="240"][style*="#eeeeee"],div[style*="#E6E6E6"],div[style*="#0016A6"],noindex';
sites['newz.dk']='#sweeplist,.partnersites,div[class^="ad_"]';
sites['nytimes.com']='[id^="TP_container"],[id^="adx"],.adCreative,.extraBox>#toggleDiv,object[height="30"][width="70"],#bColumn .columnGroup object[height="150"][width="336"]';
sites['nnm.ru']='.banner';
sites['newstimes.com']='body.bodyStyle>span#default>span#home>div.contentStyle>table.regionParent>tbody>tr>td>table.regionParent:first-of-type,.adElement,[id^="adPosition"],body.bodyStyle>span#default>span#home>div.contentStyle>table.regionParent>tbody>tr>td>table:nth-of-type(6)>tbody>tr>td:nth-child(3)>table>tbody>tr:nth-child(2)';
//sites['ojogo.pt']='body>table:first-of-type>tbody>tr>td>table:first-of-type,body>table:nth-of-type(3)>tbody>tr:first-child>td:nth-of-type(2)>table>tbody>tr:first-child>td>table:nth-of-type(2),table[width="817"]>tbody>tr>td:last-child>table>tbody>tr:nth-child(4),body>table:nth-of-type(3)>tbody>tr:nth-of-type(2)>td>table>tbody>tr>td:nth-of-type(3)>table>tbody>tr:first-child>td>table:first-of-type,[href*="jogo_revista_todas"],[href*="sportmultimedia.pt"],[href*="controlinveste.pt"],[href*="twitter.com/ojogo"]';
sites['novoteka.ru']='body>table[bgcolor="#960400"],.lpad';
sites['nrg.co.il']='[id^="banner_"],[src*="/banners/"],[name^="neto_frame"],#topBanner,#bRColumnText,#bLColumnText,#left_google_ban,#channel_plasma';
sites['ojogo.pt']='body>table:first-of-type>tbody>tr>td>table:first-of-type,body>table:nth-of-type(3)>tbody>tr:nth-of-type(2)>td>table>tbody>tr>td:nth-of-type(3)>table>tbody>tr:first-child>td>table:first-of-type,[href*="sportmultimedia.pt"],[href*="controlinveste.pt"]';
sites['oper.ru']='#topbanner,.banner,td[class="banners"]>a>img[height="90"],a[href*="vott.ru"],.vott_wrapper';
sites['orange.co.uk']='#home_pushdown,#home_mpu,#home_orangeshop';
sites['osnews.com']='div#header>div.ad,div#content>div#side>div#sidebar>script,div#content>div#side>div#sidebar>iframe,div#content>div#side>div#sidebar>p a[href^="http://www.puremobile"]';
sites['overclockers.ru']='[id^="y5_"],td[width="73"],td[colspan="2"][style="background:#ccffff"],body>img[height="3"],table[height="67"],body>center,body>table[height="72"]';
sites['photobucket.com']='#cellAd,#columnLeft_po';
sites['physorg.com']='span.box-ads p:nth-of-type(1),span.box-ads p:nth-of-type(2),span.box-ads p:nth-of-type(3),p.hr';
sites['play.yandex.ru']='.lnk';
sites['pcmag.com']='#w_header .leaderboard,#lenovo_resource_center,.spotlight_hdr,#informLogo,#w_graveyard,#product_spotlight,#homepageSubForm,[id^="special_offers"],img[width="440"][height="56"],[class^="mrktcell"],[class^="AdModule_"],[class^="sponsors"],.bestselling';
sites['pcwelt.de']='#sponsoredlink+.teaser_list_body';
sites['pornolab.net']='img[src*="/seksikiss.ru/"],img[src*="/call/"],div[id="bn-pme-1"]';
sites['programme-tv.net']='#pcp_overlay';
sites['prohardver.hu']='#jobbhcontent';
sites['ptitchef.com']='[id^="popup_"]';
sites['rabota.ru']='iframe,noindex';
sites['raiffeisen.ru']='.promo_block';
sites['rambler.ru']='[class^="b_banner_"]';
sites['rbc.ru']='[class*="banner"],[class*="Banner"],div[style*="width:100%;"],.whitebg,img[width="234"],div>object,td>object,a[href*="go?"],div[id^="magna"],div[class$="header"]';
sites['rbcdaily.ru']='td>object,.bannerHead,.bannerRight,.bannerRight234x400,.bannerBottom,.bannerLeft,.notes';
sites['readwriteweb.com']='#right_column_box';
sites['record.pt']='#eyeDiv,.pub_noticias,#ultimas_noticias+table+table,#ultimas_noticias+table+table+table,a[href="http://twitter.com/jornal_record"],body>table:nth-of-type(4)>tbody>tr>td:nth-of-type(4)>table:last-of-type>tbody>tr>td:last-of-type>table:nth-of-type(4),#ultimas_noticias~iframe+table>tbody>tr:last-child>td>table:last-child,table[align="right"][width="348"],span[id*="ContentPlaceHolder1"]~table:nth-of-type(7),span[id*="ContentPlaceHolder1"]~table:nth-of-type(8),[width="325"][height="45"],body>table:nth-of-type(3)>tbody>tr:last-child>td>table:first-of-type>tbody>tr:last-child>td:nth-of-type(2),body>table:nth-of-type(3)>tbody>tr:last-child>td>table:first-of-type>tbody>tr:last-child>td:nth-of-type(3),body>table:nth-of-type(7)>tbody>tr>td:nth-of-type(4)>table>tbody>tr>td:nth-of-type(5)>table>tbody>tr>td>table>tbody>tr:nth-child(2)';
sites['rian.ru']='.c_banners,.mbanner,#imports,#banners,.contextBanner';
sites['runescape.com']='#tb';
sites['rusactors.ru']='[id^="lx_"]';
sites['salon.com']='#frame2_container>span,ul.article_tools_icons,.share_inset,#x10,#x14,#x15,#x70,x05,#Top,#Frame2,#Middle2,#x08,#Right3,#x04,#Right1,#Right2,#x50,#Bottom,#Bottom1,#Bottom2,#Bottom3';
sites['satkurier.pl']='#bann';
sites['sexnarod.ru']='#cat_bubble,#cat,iframe';
sites['sherdog.net']='td[width="160"][valign="top"][align="left"]';
sites['sitepoint.com']='.industrybrains,table.tborder.product,.ad99';
sites['skyrock.com']='.pub300,.pub180';
sites['slashdot.org']='#fad1,#fad2,#fad3,#fad4,#fad5,#fad6';
sites['slovari.yandex.ru']='.block-lingvo>div[style="margin:1em 0"]';
sites['smart60.ru']='td[valign="top"]>center>table,noindex,.newsbody';
sites['softexia.com']='.side-border-left>p:first-of-type,.side-border-left>table[width="170"],.side-border-right>table[width="170"]';
sites['spectator.org']='[class^="ui-dialog"],.col3-sub3';
sites['sport1.de']='.werbung,.superbanner';
sites['sport-express.ru']='iframe[src*="rb.sport-express.ru"],td[class="c3_shablon"],td[class="cr_shablon"]';
sites['sports.ru']='.top-banner,.banner,.sports-begun';
sites['sportsillustrated.cnn.com']='.prWrap';
sites['sueddeutsche.de']='div.bannerSky,.bannermiddle,.bannermiddle2';
sites['tapochek.net']='#PopWin';
sites['t-online.de']='#tsrwh,#tlexbox,#vmsb,#vmsky';
sites['techcrunch.com']='div[id^="google_flash"],div#bugs,div#vertical_ads,div#seesmic_widget,div#header_medrec,ul.sponsor_units,ul#site_supporters,#col2,#post_unit_medrec';
sites['techradar.com']='#top_banner,#houseAd,#mpu,#skyscraperAd,#network_links,img[alt^="Future Publishing"]';
sites['techrepublic.com']='iframe.bidwar,#regPop,#regFix';
sites['telegraph.co.uk']='#tmglBody>.oneThird>.summaryMedium>.headerThree,#tmglBody>.oneThird>.summaryMedium>.comPuff';
sites['tfile.ru']='#top_ban';
sites['tgdaily.com']='iframe[src^="http://shops."],.moduletable+div+.moduletable+.moduletable~*,#commentTools';
sites['themarker.com']='[id^="dclk_"],[src*="/banners/"],[name^="neto_frame"],#flashad,#dcPlazma,#top_banners,#themarker';
sites['thenextweb.com']='.lsidebar+.rsidebar+.usidebar *';
sites['thepiratebay.org']='#topright,a[href*="facebook"],a[href*="ourtoolbar"],div[align="center"][style="color: rgb(123, 82, 57); font-family: Verdana,Arial,Helvetica; font-style: normal; font-variant: normal; font-weight: bold; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;"]';
sites['tomshardware.com']='.advertRight,#advertRight,.shoppingBox,#header-advert,#outside-advert';
sites['torrentfreak.com']='#sidebar_wrapper img[width="270"][height="90"],a[title^="Support"],#sidebar_wrapper>h3:last-of-type,#sidebar_wrapper>div:last-of-type,#siderightcol+div+div+br,#siderightcol+div+div+br+div+br,#siderightcol+div+div+br+div+br+div+br,#siderightcol+div+div+br+div+br+div+br+div+br';
sites['torrents.ru']='div[style="padding: 8px 0 0;"],[class="tCenter"][class="bCenter"],#it-top,iframe';
sites['totalcar.hu']='#services';
sites['tracker.freeexchange.ru']='iframe[src^="http://smi2.ru/data/js/"],#lx_504';
sites['tutu.ru']='iframe,td[style="height:90px;"],.plink';
sites['tv.yandex.ru']='table[class="topLnk"]>tbody>tr[valign="bottom"]>td[colspan="3"]';
sites['tv2.dk']='[id^="com-dropspot"],#tv2contentsquare,div[id="content-tvtid"][class="con-4"]>div[class~="com-rektangel-forsid"][class~="col-4"]';
sites['uol.com.br']='div[id^="banner"],div[id^="mod-shopping"],div[id^="shop"],div[id^="to"],a[href*="event.ng"]';
sites['utro.ru']='table[width="100%"]>tbody>tr>td[colspan="3"]>div[align="center"],div[id*="y5_direct"],div[id^="magna"],div[class^="banner"]';
sites['vbeta.pl']='#blomedia_news';
sites['veggieboards.com']='div.page:nth-of-type(1) div:first-child center:first-child';
sites['vedomosti.ru']='[src*="adv.vedomosti.ru],iframe';
sites['vsa-nova.com']='table>tbody>tr>td>a>img,div.smallfont>a>img';
sites['walla.co.il']='iframe[src*="adf.cgi"],[id^="top_ad"]';
sites['washingtonpost.com']='#banner_wrapper_top,#adTiff,#wrapperMainRight';
sites['webhostingtalk.com']='div#identity>div.container>div.controls>div.powered,div#content>div.container.single>div#leaderboard.advertisement,div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td.vbsociable,div#resources>div.container>div.advertisement>p[style],div.container>div#sponsored,div.container>div#footerad,div#content>div.container.single>div#promotion,div.container>div#sponsored-clear,div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td.alt1>script,div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td.alt1>a[target="_blank"],div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td script,div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td embed,div#content>div.container.single>div#primary>div>div.page>div>table>tbody>tr>td>table.tborder>tbody>tr>td img,div[id^="DIV_"][style*="position: absolute"][style*="z-index: 999999"][style*="top: 0px"]';
sites['wetter.com']='#PX3_BOX_PARENT,#spox_box,#box-n24,[id^="RT"],#box-b_ad0-bleft,[id^="box-openad"],[src*="billabong"]';
sites['windowssecrets.com']='table[summary="Ads"]';
sites['wired.com']='#blogs_rightRail_A,#leaderboard,#blog_subscription_unit';
sites['yahoo.com']='#sponsored-links,a[href*="thebestlife.com"],.ad_sidebar,.ad-links,.ad_slug_table,div[id^="dynamic-ad"],#marketplace,#smallbiz,div[id="nwPane"],div[id="swPane"]';
sites['yandex.ru']='.banner-left,.somebanner,.some-banner,.b-banner';
sites['ynet.co.il']='div[id*="ads"],#MarketSchedDiv';
sites['youtube.com']='#side-announcement-box,#chrome-promo,#watch-channel-brand-div';
sites['zaycev.net']='iframe,#ibp,[id^="tx2_"],tr>td[colspan="3"]>center>a';
sites['zoneofgames.ru']='#FlashDiv,.buy';
//sites['example.com']='';
// Remove specific selectors from common ad patterns for specific sites. If you have a site that generates a false positive, add it here. Separate by commas.
var css_exceptions=new Array();
css_exceptions['afterdawn.com']='[class^="ad_"]';
css_exceptions['apple.com/getamac/ads']='#ads,[id^="ad-"],[id^="ads-"]';
css_exceptions['bbc.co.uk']='[class*="Advert"]';
css_exceptions['betanews.com']='[class^="ad_"]';
css_exceptions['chromestory.com']='[class*="-ad-"]';
css_exceptions['cleacuisine.fr']='embed[width="250"][height="250"]';
css_exceptions['collegehumor.com']='[class^="ad_"]';
css_exceptions['commentcamarche.net']='[width="120"][height="60"]';
css_exceptions['computerbase.de']='[class*="skyscraper"]';
css_exceptions['comunio.de']='[style*="300px"][style*="250px"]';
css_exceptions['dailymail.co.uk']='[class*="advert"]';
css_exceptions['dailykos.com']='.ads';
css_exceptions['daniweb.com']='[class^="ad_"]';
css_exceptions['demonoid.com']='[class*="adbrite"]';
css_exceptions['ebay.']='[id^="adv_"],[class^="adv_"]';
css_exceptions['filmweb.pl']='[class*="Advert"],[id*="Advert"]';
css_exceptions['flyertalk.com']='[id$="_Ads"]';
css_exceptions['fusednetwork.com']='[id*="_adv_"],[id$="_adv"]';
css_exceptions['gamefaqs.com']='[id^="mpu"]';
css_exceptions['gamespot.com']='[id^="mpu"]';
css_exceptions['gaiaonline.com']='[class$="_ad"]';
css_exceptions['gazeta.pl']='[href*="campaign"][target="_blank"]';
css_exceptions['google.com/finance']='[class$="-ads"]';
css_exceptions['google.com/reader']='[href*="campaign"][target="_blank"],[href*="promotion"][target="_blank"],[href*="partner"][target="_blank"]';
css_exceptions['google.com/uds/modules/elements/newsshow']='[width="728"][height="90"],[style*="728px"][style*="90px"]';
css_exceptions['guloggratis.dk']='[class*="_ad_"],[class^="ad_"],[class^="ad-"],[class$="_ads"],[class*="_ads_"],[style*="728px"][style*="90px"]';
css_exceptions['gumtree.co.za']='[id^="ad-"],[class^="ad-"]';
css_exceptions['habrahabr.ru']='[id$="-adv"]';
css_exceptions['hyves.nl']='[id*="skyscraper"]';
css_exceptions['idnes.cz']='[class*="adword"],[class*="Advert"],[class*="advert"]';
css_exceptions['japan.cnet.com']='[id^="ad_"]';
css_exceptions['jpgmag.com']='[class$="Ad"]';
css_exceptions['kafan.cn']='[href*="promotion"][target="_blank"]';
css_exceptions['kijiji.']='.ad,[id^="ad-"],[class^="ad-"],[width="120"][height="60"]';
css_exceptions['knowmark.ca']='[width="728"][height="90"]';
css_exceptions['latimes.com']='[class*="skyscraper"]';
css_exceptions['leboncoin.fr']='[class^="ad_"],[class*="adsense"]';
css_exceptions['live.xbox.com']='[id^="ad_"]';
css_exceptions['lyricwiki.org']='[class$="-ads"]';
css_exceptions['marktplaats.nl']='[id*="advert"],[class^="ad_"],a[href*="/ads/"]';
css_exceptions['mykawartha.com']='a[href*="/ads/"],a[href*="/ad/"],img[src*="/ad/"]';
css_exceptions['nasdaq.com']='[id$="_ads"]';
css_exceptions['newzleech.com']='#adv';
css_exceptions['ntvplus.ru']='[class$="ad"]';
css_exceptions['pcwelt.de']='a[href*="doubleclick.net"],a[href^="http://ad."],[class^="ad_"]';
css_exceptions['photobucket.com']='[id$="Ad"],[class$="Ad"]';
css_exceptions['physorg.com']='[class$="-ads"],.box-ads';
css_exceptions['praca.gazetapraca.pl']='[id$="_adv"]';
css_exceptions['pravda.sk']='[class*="adword"]';
css_exceptions['priceminister.com']='[id*="advert"]';
css_exceptions['realestate.com.au']='[class$="Ad"],a[href*="adclick"]';
css_exceptions['salon.com']='.ads,[class^="ad_"]';
css_exceptions['search.php']='[id$="_adv"]';
css_exceptions['songza.com']='[width="300"][height="250"],[style*="300px"][style*="250px"]';
css_exceptions['tab4u.com']='[id$="_ad"]';
css_exceptions['tetrisfriends.com']='[id*="_ad_"]';
css_exceptions['tieba.baidu.com']='[id*="_ad_"]';
css_exceptions['trademe.co.nz']='[id$="Ad"]';
css_exceptions['tv.com']='[id^="mpu"]';
css_exceptions['ubuntu.com']='[width="180"][height="150"]';
css_exceptions['viamichelin']='[style*="300px"][style*="100px"]';
css_exceptions['vkontakte.ru']='[class$="Ad"]';
css_exceptions['webhosting.pl']='[id^="ad_"]';
css_exceptions['wp-admin']='iframe[src*="-ad"]';
css_exceptions['wp-includes']='[id^="adv_"]';
css_exceptions['wretch.cc']='[id^="ad_"]';
css_exceptions['yota.ru']='[id*="advert"]';
css_exceptions['zooppa.com']='[id^="ads-"],[id$="-ads"],[id^="ad-"],[id$="-ad"],[class^="ad-"],#ad,a[href*="/ads/"],[href*="/ads-"]';
//css_exceptions['example.com']='';
// Add custom CSS code to specific sites. Separate statements by ", " if more than one.
var sites_custom_css=new Array();
sites_custom_css['answers.com']='#pageWrapper{border:1px solid White !important}, #Top{border-bottom:10px solid White !important;}';
sites_custom_css['betanews.com']='.most_commented{width:auto!important;margin:0!important;}';
sites_custom_css['dailymail.co.uk']='.page-banner{padding-top:0!important;}, .beta .search{margin-bottom:.5em!important;}';
sites_custom_css['drive.ru']='#ad480-wrapper td:nth-of-type(2){width:100% !important; height:90px !important;}, #ad480-wrapper table td {background:#666 !important;text-align:center;font-size:.8em !important;}';
sites_custom_css['flyertalk.com']='div[style*="margin-right:166px"]{margin-right:0 !important}';
sites_custom_css['facebook.com']='#right_column{float:left !important; margin-left:15px !important}, .profile_two_columns .right_column {width:720px!important}';
sites_custom_css['groups.google.com']='button[type="button"]{cursor:pointer}';
sites_custom_css['guloggratis.dk']='#center_col,#center_col>*{width:100% !important;}, form[name="BBBannersearch728"]{background:#fff}, form[name="BBBannersearch728"]>table{margin:auto !important}';
sites_custom_css['iwiw.hu']='#content{width:auto !important; margin-right:10px;}';
sites_custom_css['nationwide.co.uk']='#promo-container{height:100px}';
sites_custom_css['pcwelt.de']='#head_position_absolute{position:relative;top:0;left:6px}';
sites_custom_css['record.pt']='body>table:nth-of-type(3)>tbody>tr:last-child>td>table:first-of-type>tbody>tr:last-child>td:first-child{width:100%!important}';
sites_custom_css['rian.ru']='#content{width:auto !important;}';
sites_custom_css['techcrunch.com']='#col1{width:auto; margin-right:5px;}, #post_unit_posts_box{width:100%;border:0;}, #header_features a.feature{ margin: 1px 0 0 1px !important;width:33% !important; text-align:center; }';
sites_custom_css['translate.opera.com']='body{font:12px Verdana,Liberty Sans,sans-serif!important}';
sites_custom_css['washingtonpost.com']='#wrapperMainCenter{width:auto!important;padding-right:20px!important;}';
sites_custom_css['wired.com']='#header{background:#000}';
//sites_custom_css['example.com']='';
// Common ad patterns
var common_ad_patterns = '.bannerad,#bannerad,.ad,.Ad,.ads,.Ads,.ad1,.ad2,.ad3,.ad4,.ad5,.ad6,.ad7,.ad8,.ad9,.ad10,.Ad1,.Ad2,.Ad3,.Ad4,.Ad5,.Ad6,.Ad7,.Ad8,.Ad9,.Ad10,[class^="ad-"],[class^="Ad-"],[class^="ads-"],[class^="Ads-"],[class*="skyscraper"],[class*="advert"],[class*="adsense"],[class*="Adsense"],[class*="AdSense"],[class*="adword"],[class*="Adword"],[class*="AdWord"],[class*="Advert"],[class^="ad_"],[class^="Ad_"],[class^="ads_"],[class^="Ads_"],[class$="-ad"],[class$="-Ad"],[class$="-ads"],[class$="-Ads"],[class$="_ad"],[class$="_Ad"],[class$="_ads"],[class$="_Ads"],[class~="ad"],[class~="Ad"],#ad,#Ad,#ads,#Ads,#ad1,#ad2,#ad3,#ad4,#ad5,#ad6,#ad7,#ad8,#ad9,#ad10,#Ad1,#Ad2,#Ad3,#Ad4,#Ad5,#Ad6,#Ad7,#Ad8,#Ad9,#Ad10,[id^="fm_delivery_frame"],[id^="ad-"],[id^="Ad-"],[id^="ads-"],[id^="Ads-"],[id*="advert"],[id*="Advert"],[id^="ad_"],[id^="Ad_"],[id^="ads_"],[id^="Ads_"],[id$="-ad"],[id*="adsense"],[id*="skyscraper"],[id*="Adsense"],[id*="AdSense"],[id$="-Ad"],[id$="-ads"],[id$="-Ads"],[id$="_ad"],[id$="_Ad"],[id$="_ads"],[id$="_Ads"],a[href^="http://ads."],a[href^="http://ad."],a[href*="pheedo.com/click"],a[href*="feedads.googleadservices.com"],a[href*=".snap.com"],a[href*="doubleclick.net"],a[href*="click.adbrite.com"],a[href*="adbrite.com/mb/commerce"],a[href*="projectwonderful.com"],a[href*="googlesyndication.com/pagead"],a[href*="phpAds"],a[href*="phpads"],a[href^="http://services.google.com/feedback/abg"],a[href*="/ads/"],a[href*="/Ads/"],a[href*="/ad/"],a[href*="/Ad/"],[href*="fmpub.net"],[src*="googlesyndication.com/pagead"],[src*="fmpub.net"],[src^="http://ads."],[src^="http://ad."],[src*="doubleclick"],iframe[src*="ads"],iframe[src*="ad-"],iframe[src*="-ad"],iframe[name*="ads"],iframe[name*="ad-"],iframe[name*="-ad"],iframe[src*="advert"],iframe[src*="pagead"],iframe[name*="google"]:not([name="googleSearchFrame"]),iframe[src^="http://bwp."],iframe[href*="/ads/"],iframe[href*="/Ads/"],iframe[href*="/ad/"],iframe[href*="/Ad/"],img[href*="/ads/"],img[href*="/Ads/"],img[src*="/ad/"],img[src*="/Ad/"],[width="88"][height="31"],[style*="88px"][style*="31px"],[width="120"][height="240"],[style*="120px"][style*="240px"],[width="120"][height="580"],[style*="120px"][style*="580px"],[width="120"][height="600"],[style*="120px"][style*="600px"],[width="125"][height="600"],[style*="125px"][style*="600px"],[width="125"][height="125"],[width="160"][height="580"],[style*="160px"][style*="580px"],[width="160"][height="600"],[style*="160px"][style*="600px"],[width="180"][height="150"],[style*="180px"][style*="150px"],[width="234"][height="60"],[style*="234px"][style*="60px"],[width="240"][height="400"],[style*="240px"][style*="400px"],[width="250"][height="240"],[style*="250px"][style*="240px"],a[target="_blank"][width="250"][height="250"],a[target="_blank"][style*="250px"],embed[width="250"][height="250"],object[width="250"][height="250"],embed[style*="250px"],object[style*="250px"],[width="300"][height="238"],[style*="300px"][style*="238px"],[width="300"][height="250"],[style*="300px"][style*="250px"],[width="300"][height="600"],[width="336"][height="270"],[style*="336px"][style*="270px"],[style*="336px"][style*="280px"],[width="336"][height="280"],[style*="336px"][style*="280px"],[style*="336px"][style*="280px"],[width="468"][height="50"],[style*="468px"][style*="50px"],[width="468"][height="60"],[style*="468px"][style*="60px"],[width="720"][height="300"],[style*="720px"][style*="300px"],[width="728"][height="79"],[style*="728px"][style*="79px"],[width="728"][height="90"],[style*="728px"][style*="90px"],html>body>div#aus,div.ib_unit,div.ib_title,div[id$="divMonitorScript"],div[class~="RM_Container"],.box-ads,[src*="adocean"],[value*="adocean"],[id*="adocean"],[class*="adocean"],[class*="hirdetes"],[id*="hirdetes"],.adv,[class^="adv-"],[class^="adv_"],[class$="-adv"],[class$="_adv"],[class*="_adv_"],[class*="-adv-"],#adv,[id^="adv-"],[id^="adv_"],[id$="-adv"],[id$="_adv"],[id*="_adv_"],[id*="-adv-"],.topad,#topad,.bottomad,#bottomad,.leftad,#leftad,.rightad,#rightad,.googlead,#googlead,.googleads,#googleads,a[href*="adbureau"],[src*="adbureau"],a[href*="adclick"],[src*="adclick"],[class^="etarget"],[id^="etarget"],iframe[src*="etarget"],[id$="Ad"],[class$="Ad"],a[href*="/adx/"],[id*="google_ads"],[id*="google-ads"],[id*="googleads"],[id*="Google_Ads"],[id*="GoogleAds"],[id*="Google-Ads"],[class*="google_ads"],[class*="google-ads"],[class*="googleads"],[class*="Google_Ads"],[class*="GoogleAds"],[class*="Google-Ads"],[id^="adserv"],[class^="adserv"],[href^="http://adserv"],[src^="http://adserv"],[id^="adspace"],[class^="adspace"],[href^="http://adspace"],[src^="http://adspace"],[id^="snap_com"],[id^="*googletextads"],[class*="googletextads"],[class^="adheader"],[id^="adheader"],[class^="adfooter"],[id^="adfooter"],span#iTt,[class*="-ad-"],[id*="-ad-"],[class*="-ads-"],[id*="-ads-"],[class*="_ad_"],[id*="_ad_"],[class*="_ads_"],[id*="_ads_"],[class*="_Ads_"],[id*="_Ads_"],[height="850"][width="336"],[style*="850px"][style*="336px"],[href="adimpact.com"],a[href^="http://www.giganews.com/?a="],[href*="/click/"][target="_blank"],[href*="clk.tradedoubler.com"],[src*="clk.tradedoubler.com"],[href*="serve.ambercoastcasino.com"],[src*="bet365affiliates.com"],[src*="pub.betclick.com"],[href*="pub.betclick.com"],.listlight.promobg,[class*="nsoredlinks"],[class*="nsored-links"],[class*="nsored_links"],[id*="nsoredlinks"],[id*="nsored-links"],[id*="nsored_links"],[class*="partnerlinks"],[class*="partner-links"],[class*="partner_links"],[id*="partnerlinks"],[id*="partner-links"],[id*="partner_links"],[id$="_ads2"],[id$="-ads2"],[class$="_ads2"],[class$="-ads2"],.oio,#oio,[class^="oio"],[id^="oio"],[href*="/oiopub-"],[href*="smartadserver.com/call"],[id*="SmartLink"],[class*="SmartLink"],[id*="smartlink"],[class*="smartlink"],[href*="smartad"],[src*="smartad"],[class*="smartad"],[class*="SmartAd"],[id*="smartad"],[id*="SmartAd"],[src*="/ads/"],[src*="/Ads/"],[id*="adspot"],[class*="adspot"],[href^="http://cache.blogads.com"],[src^="http://cache.blogads.com"],[class*="eminimalls"],[id*="eminimalls"],[class*="chitika"],[id*="chitika"],[src^="http://mm.chitika.net/minimall"],iframe[width="468"][height="90"],[class*="promotional"],[id*="promotional"],[href*="campaign"][target="_blank"],[href*="Campaign"][target="_blank"],[href*="promotion"][target="_blank"],[href*="campaign"][target="_blank"],[href*="Promotion"][target="_blank"],[href*="partner"][target="_blank"],[href*="Partner"][target="_blank"],[id*="AdBrite"],[id*="adbrite"],[class*="AdBrite"],[class*="adbrite"],.adbottom,.AdBottom,#adbottom,#AdBottom,.adtop,.AdTop,#adtop,#AdTop,[href*="quantcast"],[src*="quantcast"],[href*="quantserve"],[src*="quantserve"],[class*="_Ad_"],[id*="_Ad_"],[class^="mpu"],[id^="mpu"],[class$="_mpu"],[id$="_mpu"],[class$="-mpu"],[id$="-mpu"],.adHolder,#adHolder,.adholder,#adholder,[href*="bdv_ref.dbm"],[href*="widgetbucks.com/home.page?referrer"],#Ad160x600,#Ad728x90,#adrotator,.adrotator,#Adrotator,.Adrotator,#AdRotator,.AdRotator,#ABMbanner,.ABMbanner,iframe[name*="google_ads"],[src*="abmw.aspx"],.adarea,.adsarea,#adarea,#adsarea,iframe[src*="adunitid"],[href*=".addthis.com/bookmark."],[href*="channel.pangora.com"],[class*="reklam"],[class*="Reklam"],[id*="reklam"],[id*="Reklam"],[id*="sponzorovane"],[class*="sponzorovane"],[id*="sponsored_links"],[class*="sponsored_links"],[id*="sponsored-links"],[class*="sponsored-links"],[id*="sponsoredlinks"],[class*="sponsoredlinks"],[class^="adcolumn"],[id^="adcolumn"],.adcolumn,#adcolumn,[href*="servedby.advertising.com"],[src*="servedby.advertising.com"],[id^="y5_"],[id^="MarketGid"],[id^="begun"],.headerad,.HeaderAd,.headerAd,#headerad,#HeaderAd,#headerAd,[href*="/adlink/"],[href^="http://adserver.adtechus.com"],[src*="engine.rorer.ru"],[src*="begun.ru"],[src*="sape.ru/r"],[src*="advmaker.ru"],[href*="da.feedsportal.com"],[href^="http://medialand.relax.ru/reference"],[href*="atwola.com"],[src*="atwola.com"],[src*="247realmedia.com"],[href*="247realmedia.com"],[value*="247realmedia.com"],[src*="/adserver/"],[href*="/adserver/"],[src*="adform.net"],[href*="adform.net"],[value*="adform.net"],[href*="adtech.de"],[src*="adtech.de"],[value*="adtech.de"],[class^="OAS_"],[id^="OAS_"],[class$="_OAS"],[id$="_OAS"],[class^="OAS-"],[id^="OAS-"],[class$="-OAS"],[id$="-OAS"],[src*="/ad_"],[src*="/ads_"],[src*="/ad-"],[src*="/ads-"],[href*="/ad_"],[href*="/ads_"],[href*="/ad-"],[href*="/ads-"],[class*="ad728"],[id*="ad728"],[class*="alimama"],[src*="alimama"],[id*="alimama"],[name*="alimama"],[id*="googleAd"],[class*="googleAd"],[class^="adcontainer"],[id^="adcontainer"],[class^="adContainer"],[id^="adContainer"],[class^="AdContainer"],[id^="Adcontainer"],[class$="Ads"],[id$="Ads"],.smallad,.bigad,.largead,#smallad,#bigad,#largead,.ad300x250,#ad300x250,.ad728x90,#ad728x90,.ad468x60,#ad468x60,.ad234x60,#ad234x60,.ad125x125,#ad125x125,.ad120x600,#ad120x600,.ad160x600,#ad160x600,.ad180x150,#ad180x150,.ad120x240,#ad120x240,.ad200x200,#ad200x200,.ad250x250,#ad250x250,.ad336x280,#ad336x280,.ad120x90,#ad120x90,.ad160x90,#ad160x90,.ad180x90,#ad180x90,.ad200x90,#ad200x90,.ad468x15,#ad468x15,.ad728x15,#ad728x15,iframe[src*="farlex.com"],#webo_pub,[class~="Ad"],[class~="Ads"],[class~="Ads"],[class$="AdBox"],[id$="AdBox"]';
// Patterns found in advertisement javascripts. We use these patterns to detect advertisement scripts and to abort them in Opera (src attribute and text content)
var scriptSrcMatch = "atwola\.com|\.ad_utils\.|\/(a|A)ds\.js|\/adclick\/|contextweb|dinclinx|ADSAdClient|adsyndication|pagead2|doubleclick\.net|\.fmpub\.net\/zone|\/ad\/|\/Ad\/|\/ads\/|\/Ads\/|\/adserver|bidvertiser|adbrite|http:\/\/ad\.|http:\/\/ads\.|http:\/\/adserver\.|http:\/\/adfarm\.|http:\/\/aj\.|realmatch\.com|\.snap\.com|industrybrains|hirdetes|adserving|infolinks|adbrite|chitika|kontera|pagead|smartad|adjuggler|atdmt|intellitxt|quantcast|quantserve|adocean|-ad\/|-ads\/|_ad\/|_ads\/|-Ad\/|-Ads\/|_Ad\/|_Ads\/|\/ad-|\/ads-|\/ad_|\/ads_|\/Ad-|\/Ads-|\/Ad_|\/Ads_|247realmedia\.com|adform\.net|adtech\.de";
var scriptTxtMatch = "contextweb|google_ad(s|_)|Advertise|alimama_pid|addthis_pub|_adprod|AdLinkColor|microsoft_adunitid|phpAds|condenetads|bdv_ref_pid|ib_title|AdBrite|adbrite|Adbrite|ch_type|ch_client|realmatch|industrybrains|hirdetes|adserving|infolinks|adbrite|chitika|kontera|smartad|adjuggler|atdmt|intellitxt|quantcast|quantserve|adocean|OAS_AD|OASd|openads_|ADTECH_AD";
// List of exceptions for Javascript src-matching patterns in Opera. Add RegExps here if false positive, separate by ', '
var scriptSrcMatchExceptions=new Array();
scriptSrcMatchExceptions['gamingunion.net']='|http:\/\/aj\.';
scriptSrcMatchExceptions['stern.de']='|doubleclick\.net, |http:\/\/ad\.';
scriptSrcMatchExceptions['tetrisfriends.com']='|\/(a|A)ds\.js';
scriptSrcMatchExceptions['twitter.com']='|http:\/\/aj\.';
scriptSrcMatchExceptions['ldlc.']='A)ds\.js';
// Same as above for Javascript text-match patterns
var scriptTxtMatchExceptions=new Array();
scriptTxtMatchExceptions['digg.com']='|atdmt';
scriptTxtMatchExceptions['facebook.com']='|ch_type';
scriptTxtMatchExceptions['joost.com']='|Advertise';
scriptTxtMatchExceptions['last.fm']='|atdmt';
scriptTxtMatchExceptions['lifehacker.com']='|google_ad(s|_)';
scriptTxtMatchExceptions['tetrisfriends.com']='|OAS_AD, |OASd';
scriptTxtMatchExceptions['theonion.com']='|google_ad(s|_)';
scriptTxtMatchExceptions['torrentleech.org']='|ch_type';
// AdSweep functions
function removeCSSSelector(myStr, mySubstr){
myStr = "," + myStr + ",";
myStr = myStr.split("," + mySubstr + ",").join(",");
myStr = myStr.substring(1, myStr.length-1);
return myStr;
}
function removeCSSSelector_bkp(myStr, mySubstr){
myStr=myStr.split(",");
for(a in myStr){
if(myStr[a].match(mySubstr)){
myStr.splice(a,1);
}
}
myStr=myStr.join(",");
return myStr;
}
// Continue execution or stop if URL is whitelisted
window.whitelistFlag = false;
for(var i in whitelist){
// If the URL is in the whitelist
if(URL.match(whitelist[i])){
whitelistFlag = true;
break;
} else {
whitelistFlag=false;
}
}
if(whitelistFlag==false){
// Store all CSS rules into an array
var css_rules = new Array();
// Variable to hide common ad patterns or not
window.hide_common_ads = true;
// Hide common ad patterns or not?
for(var e in adPatternExceptions){
// If the URL is in the list of exception web sites
if(URL.indexOf(adPatternExceptions[e])!=-1){
hide_common_ads = false;
break;
}
}
if(hide_common_ads==true){
// Remove CSS selectors listed in the exception list for a specific web site
for(var b in css_exceptions){
if(URL.indexOf(b)!=-1){
var css_exception_tags = css_exceptions[b].split(',');
for(var c in css_exception_tags){
common_ad_patterns = removeCSSSelector(common_ad_patterns, css_exception_tags[c]);
}
}
}
// Add common ad patterns to the CSS rules
css_rules['hide_common_ads'] = common_ad_patterns + '{display:none !important;height:0px !important;width:0px !important;}';
// Remove styling from notorious inline ads until they are removed
css_rules['remove_ad_styling'] = 'span.IL_LINK_STYLE{border:0!important;color:inherit!important;text-decoration:inherit!important;font-weight:inherit!important;font-family:inherit!important;}';
// Abort advertisement javascripts in Opera
if(ua.match("Opera")){
// Remove exceptions if any
for(var a in scriptSrcMatchExceptions){
if(URL.match(a)){
var scriptSrcMatchExceptionsTags = scriptSrcMatchExceptions[a].split(', ');
for(var b in scriptSrcMatchExceptionsTags){
scriptSrcMatch = scriptSrcMatch.replace(scriptSrcMatchExceptionsTags[b], '');
}
}
}
for(var a in scriptTxtMatchExceptions){
if(URL.match(a)){
var scriptTxtMatchExceptionsTags = scriptTxtMatchExceptions[a].split(', ');
for(var b in scriptTxtMatchExceptionsTags){
scriptTxtMatch = scriptTxtMatch.replace(scriptTxtMatchExceptionsTags[b], '');
}
}
}
window.opera.addEventListener(
'BeforeExternalScript',
function(e) {
if(e.element.src){
if(e.element.getAttribute('src').match(scriptSrcMatch)){
e.preventDefault();
}
}
},
false
);
window.opera.addEventListener(
'BeforeScript',
function(e) {
if(e.element.text){
if(e.element.text.match(scriptTxtMatch)){
e.preventDefault();
}
}
},
false
);
}
}
// Add custom objects to hide to CSS rules, based on the URL
for(var i in sites){
if(URL.indexOf(i)!=-1){
css_rules['sites'] = sites[i]+'{display:none !important;height:0px !important;width:0px !important;}';
break;
}
}
// Add custom CSS code to CSS rules, based on the URL
for(var j in sites_custom_css){
if(URL.indexOf(j)!=-1){
var site_custom_css_rules = sites_custom_css[j].split(", ");
for (var k=0; k<site_custom_css_rules.length; k++) {
css_rules[k] = site_custom_css_rules[k];
}
break;
}
}
// Inject all CSS rules into the page
var style = document.createElement("style");
document.getElementsByTagName("head")[0].appendChild(style);
var sheet = style.sheet;
for(var k in css_rules){
sheet.insertRule(css_rules[k],sheet.cssRules.length);
}
}
}
function adsweep_removeAdNodes()
{
adsweep_YouTube();
window.setTimeout(function()
{
// AdBrite
if(document.getElementsByTagName("A")){var anchorTags=document.getElementsByTagName("A");for(var a=0;a<anchorTags.length;a++){for(var x=0;x<anchorTags[a].attributes.length;x++){if(anchorTags[a].attributes[x].nodeName.toLowerCase()=='id'){if(anchorTags[a].attributes[x].nodeValue.indexOf("AdBriteInlineAd")!=-1){var textString=anchorTags[a].innerHTML;var newNode=document.createElement('SPAN');newNode.innerHTML=textString;anchorTags[a].parentNode.insertBefore(newNode,anchorTags[a]);}}}}}
// Infolinks
if(document.getElementsByTagName("SPAN")){var spanTags=document.getElementsByTagName("SPAN");for(var a=0;a<spanTags.length;a++){for(var x=0;x<spanTags[a].attributes.length;x++){if(spanTags[a].attributes[x].nodeName.toLowerCase()=='class'){if(spanTags[a].attributes[x].nodeValue=='IL_LINK_STYLE'){var textString=spanTags[a].innerHTML;var newNode=document.createElement('LABEL');newNode.innerHTML=textString;spanTags[a].parentNode.insertBefore(newNode,spanTags[a]);spanTags[a].parentNode.removeChild(spanTags[a]);}}}}}
// Kontera
if(document.getElementsByTagName("A")){var anchorTags=document.getElementsByTagName("A");for(var a=0;a<anchorTags.length;a++){for(var x=0;x<anchorTags[a].attributes.length;x++){if(anchorTags[a].attributes[x].nodeName.toLowerCase()=='class') {if(anchorTags[a].attributes[x].nodeValue=='kLink'){var textString=anchorTags[a].childNodes[0].childNodes[0].innerHTML;var newNode=document.createElement('SPAN');newNode.innerHTML=textString;anchorTags[a].parentNode.insertBefore(newNode,anchorTags[a]);anchorTags[a].parentNode.removeChild(anchorTags[a]);}}}}}
// VibrantMedia
if(document.getElementsByTagName("A")){var anchorTags=document.getElementsByTagName("A");for(var a=0;a<anchorTags.length;a++){for(var x=0;x<anchorTags[a].attributes.length;x++){if(anchorTags[a].attributes[x].nodeName.toLowerCase()=='class') {if(anchorTags[a].attributes[x].nodeValue=='iAs'){var textString=anchorTags[a].innerHTML;var newNode=document.createElement('SPAN');newNode.innerHTML=textString;anchorTags[a].parentNode.insertBefore(newNode,anchorTags[a]);anchorTags[a].parentNode.removeChild(anchorTags[a]);}}}}}
},50);
// Hide content using Javascript on specific sites once the page is loaded
if(URL.match("distrowatch.com")){ if(document.getElementsByTagName("TABLE")){ if(document.getElementsByTagName("TABLE")[0].nextSibling){ if(document.getElementsByTagName("TABLE")[0].nextSibling.nextSibling){ var tbTag=document.getElementsByTagName("TABLE")[0].nextSibling.nextSibling; if(tbTag.innerHTML){ if(tbTag.innerHTML.match("pagead2")){ if(tbTag.tagName){ tbTag.style.display='none'; } } } } } } if(document.getElementsByTagName("TD")){ var tdTag=document.getElementsByTagName("TD"); for(a=0;a<tdTag.length;a++){ if(tdTag[a].innerHTML){ if(tdTag[a].innerHTML.match(/^Sponsored Message$|^???????????? ??????$|^????????? ?????$|^?????????? ???????????$|^Wiadomosc sponsorowana$|^Pesan Sponsor$|^?????? ????? ????$|^????$|^Remeju Žinute$|^?????? ?????$|^Sponzorji - sporocila$|^Gesponsord Bericht$|^Message de pub$|^Mensaje patrocinado$|^Sponsorennachricht$|^Sponsoroitu viesti$|^???????????? ?????????$|^????$|^Sponsorun Mesaji$|^Missatge patrocinat$|^???????? ??????$|^????µa ???????$|^???????????? ????????$|^Szponzorált üzenet$|^???? ?? ?????$|^Mensagem de Publicidade$|^Sponsoreeritud teade$|^Sponsoreret Besked$|^???? ????????$|^???????????? ????????????$|^Messaggio sponsorizzato$|^Sponzorske poruke$/)){ if(tdTag[a].parentNode){ if(tdTag[a].parentNode.parentNode){ if(tdTag[a].parentNode.parentNode.parentNode){ if(tdTag[a].parentNode.parentNode.parentNode.parentNode){ if(tdTag[a].parentNode.parentNode.parentNode.parentNode.parentNode){ var hideTag=tdTag[a].parentNode.parentNode.parentNode.parentNode.parentNode; if(hideTag.tagName){ hideTag.style.display='none'; } } } } } } } } } } if(document.getElementsByTagName("TH")){ var thTags=document.getElementsByTagName("TH"); for(a=0;a<thTags.length;a++){ if(thTags[a].innerHTML.match(/^Linux Netbooks$|^???????????$|^????????$|^Advertisement$|^??????????$|^Reklamy$|^Iklan$|^??????$|^??$|^Reklam$|^?????$|^Reklama$|^Advertentie$|^Oglaševanje$|^Advertisement$|^Anuncions$|^Annonce$|^Werbung$|^Mainos$|^Anunci$|^??af?µ?s?$|^Hirdetés$|^???????$|^??$|^Publicidade$|^????????$|^Reklaam$|^??????$|^?????????$|^Reklame$|^???????$|^???????$|^Pubblicità$|^Oglas$/)){ if(thTags[a].parentNode){ if(thTags[a].parentNode.parentNode){ var hideTag=thTags[a].parentNode.parentNode; if(hideTag.tagName){ hideTag.style.display='none'; } } } } } } if(document.getElementsByTagName("A")){ var aTags=document.getElementsByTagName("A"); for(var a=0;a<aTags.length;a++){ if(aTags[a].innerHTML.match(/vpslink|osdisc|3cx|Acunetix/)){ if(aTags[a].parentNode){ if(aTags[a].parentNode.parentNode){ if(aTags[a].parentNode.parentNode.parentNode){ if(aTags[a].parentNode.parentNode.parentNode.parentNode){ var hideTag=aTags[a].parentNode.parentNode.parentNode.parentNode; if(hideTag.tagName){ hideTag.style.display='none'; } if(hideTag.nextSibling){ if(hideTag.nextSibling.nextSibling){ var hideTag2=hideTag.nextSibling.nextSibling; if(hideTag2.tagName){ hideTag2.style.display='none'; } } } } } } } } if(aTags[a].innerHTML){ if(aTags[a].innerHTML.match(/linuxidentity|linuxcd/)){ if(aTags[a].parentNode){ if(aTags[a].parentNode.parentNode){ if(aTags[a].parentNode.parentNode.parentNode){ if(aTags[a].parentNode.parentNode.parentNode.parentNode){ var hideTag=aTags[a].parentNode.parentNode.parentNode.parentNode; hideTag.style.display='none'; if(hideTag.nextSibling){ if(hideTag.nextSibling.tagName){ var hideTag2=hideTag.nextSibling; hideTag2.style.display='none'; } } } } } } } } } } if(document.getElementsByTagName("FORM")){ var formTags=document.getElementsByTagName("FORM"); for(a=0;a<formTags.length;a++){ for(var x=0;x<formTags[a].attributes.length;x++){ if(formTags[a].attributes[x].nodeName.toLowerCase()=='name') { if(formTags[a].attributes[x].nodeValue=='Dataspan'){ if(formTags[a].parentNode){ if(formTags[a].parentNode.parentNode){ if(formTags[a].parentNode.parentNode.parentNode){ if(formTags[a].parentNode.parentNode.parentNode.parentNode){ if(formTags[a].parentNode.parentNode.parentNode.parentNode.previousSibling){ if(formTags[a].parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling){ hideTag=formTags[a].parentNode.parentNode.parentNode.parentNode.previousSibling.previousSibling; if(hideTag.tagName){ hideTag.style.display='none'; } } } } } } } } } } } } document.getElementsByTagName("BODY")[0].style.display='block'; }
if(URL.match("forums.futura-sciences.com")){var nodes=document.getElementsByClassName("page");for(var i=0;i<nodes.length;i++){if(nodes[i].innerHTML){if(nodes[i].innerHTML.match('Liens sponsoris')){nodes[i].parentNode.removeChild(nodes[i]);}}} var nodes=document.getElementsByTagName("TD");for(var i=0;i<nodes.length;i++){if(nodes[i].innerHTML){if(nodes[i].innerHTML.match('Futura Sciences n\'est pas responsable du contenu de ces publicit')){var node=nodes[i].parentNode.parentNode.parentNode.parentNode.parentNode.getElementsByTagName("DIV")[0];node.parentNode.removeChild(node);}}}}
if(URL.match("mashable.com")){if(document.getElementsByTagName("H3")){ var h3Tags=document.getElementsByTagName("H3"); for(var a=0;a<h3Tags.length;a++){ if(h3Tags[a].innerHTML=="Mashable Partners"){ var hideElement=h3Tags[a].parentNode.parentNode; hideElement.parentNode.removeChild(hideElement); } } } if(document.getElementsByTagName("H3")){ var h3Tags=document.getElementsByTagName("H3"); for(var a=0;a<h3Tags.length;a++){ if(h3Tags[a].innerHTML=="Sun Startup Essentials"){ var hideElement=h3Tags[a].parentNode.parentNode; hideElement.parentNode.removeChild(hideElement); } } } if(document.getElementsByTagName("P")){ var pTags=document.getElementsByTagName("P"); for(var a=0;a<pTags.length;a++){ if(pTags[a].innerHTML=="Sponsored By:"){ pTags[a].parentNode.removeChild(pTags[a]); } } } if(document.getElementsByTagName("A")){ var aTags=document.getElementsByTagName("A"); for(var a=0;a<aTags.length;a++){ if(aTags[a].innerHTML=="Advertise Here"){ var hideElement=aTags[a].parentNode.parentNode.parentNode; hideElement.parentNode.removeChild(hideElement); } } } if(document.getElementsByTagName("STRONG")){ var strongTags=document.getElementsByTagName("STRONG"); for(var a=0;a<strongTags.length;a++){ if(strongTags[a].innerHTML=="Twitter Brand Sponsors"){ var hideElement=strongTags[a].parentNode.parentNode.parentNode.parentNode.parentNode; hideElement.parentNode.removeChild(hideElement);}}}}
if(URL.match("my.opera.com/community/forums")){if(document.getElementsByClassName('fpost')){var posts = document.getElementsByClassName('fpost');for(var a=0;a<posts.length;a++){if(posts[a].innerHTML.match("882703")){$('content').removeChild(posts[a]);}}}}
if(URL.match("pcwelt.de")){if(document.getElementsByTagName("A")){ var anchorTags=document.getElementsByTagName("A"); for(var a=0;a<anchorTags.length;a++){ if(anchorTags[a].innerHTML.match("mentasys")){ var hideTag=anchorTags[a].parentNode.parentNode.parentNode.parentNode.parentNode; hideTag.parentNode.removeChild(hideTag); } } } if(document.getElementsByTagName("SPAN")){ var sTags=document.getElementsByTagName("SPAN"); for(var a=0;a<sTags.length;a++){ if(sTags[a].innerHTML.match("Office Anwendung-Software")){ var hideTag=sTags[a].parentNode; hideTag.parentNode.removeChild(hideTag); } } } if(document.getElementsByTagName("SPAN")){ var sTags=document.getElementsByTagName("SPAN"); for(var a=0;a<sTags.length;a++){ if(sTags[a].innerHTML.match("Ligatus")){ var hideTag=sTags[a].parentNode; hideTag.parentNode.removeChild(hideTag); } } } if(document.getElementsByTagName("H1")){ var h1Tags=document.getElementsByTagName("H1"); for(var a=0;a<h1Tags.length;a++){ if(h1Tags[a].innerHTML.match(/^Ligatus/)){ var hideTag=h1Tags[a].parentNode.parentNode.parentNode.parentNode; hideTag.parentNode.removeChild(hideTag); } } } }
if(URL.match("squidoo.com")){window.setTimeout(function(){if(document.getElementsByTagName("H2")){var hTags=document.getElementsByTagName("H2");for(var a=0;a<hTags.length;a++){if(hTags[a].innerHTML.match("Great Stuff on Amazon")){hTags[a].parentNode.parentNode.removeChild(hTags[a].parentNode);}}}},50);}
if(URL.match(/lifehacker\.com\/$/m)){if(document.getElementsByTagName("link")){var tag=document.getElementsByTagName("link")[1];var tagC = tag.cloneNode(true);tagC.href="http://tags.lifehacker.com/assets/minify.php?files=/assets/g4.lifehacker.com/css/style.css";tag.parentNode.replaceChild(tagC, tag);}}
if(URL.match("facepunch.com")){var body=document.getElementsByTagName("body")[1];var tag=body.getElementsByTagName("script")[0];if(tag.src="http://facepunchcom.skimlinks.com/api/skimlinks.js"){tag.parentNode.removeChild(tag);}}
}
function adsweep_YouTube(){
// Hide YouTube ads, taken from http://userscripts.org/scripts/show/49366
String.prototype.setVar = function(q, v) {
var regex = new RegExp("([\&\?])?"+q+"=[^\&\#]*", "g");
return regex.test(this) ? this.replace(regex, "$1"+q+"="+v) : this+"&"+q+"="+v;
}
var mp = document.getElementById("movie_player");
if (mp)
{
var mpC = mp.cloneNode(true),
regex = {
ads:/[\&\?]?(ad_|infringe|invideo|watermark)([^=]*)?=[^\&]*/gi,
begin_end:/(^[\&\?]*)|([\&\?]*$)/g
},
fv = mpC.getAttribute("flashvars").setVar("autoplay", "1").setVar("enablejsapi", "1");
if(fv.search(regex["ads"]) != -1)
{
fv = fv.replace(regex["ads"],"")+"&invideo=false";
mpC.setAttribute("flashvars", fv.replace(regex["begin_end"],""));
mp.parentNode.replaceChild(mpC, mp);
}
}
}
})(); | JavaScript |
$(document).ready(function() {
$("#feature input:checkbox").each(function(){
$(this).click(function(){
var rel = $(this).attr('rel');
var tmp = rel.split("_");
var flag;
if(tmp[1] == 'on')
{
$("#on_"+tmp[0]).attr({"checked": "checked"});
$("#off_"+tmp[0]).removeAttr("checked");
flag = 1;
}
else{
$("#off_"+tmp[0]).attr({"checked": "checked"});
$("#on_"+tmp[0]).removeAttr("checked");
flag = 0;
}
$.ajax({
url:"ajax.php",
type:"post",
data: ({
imei: $("#command_imei").text(),
flag: flag,
kind: tmp[0],
}),
success: function(msg){
location.reload();
}
});
});
});
});
| JavaScript |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Version 1.2.0
if (typeof PhoneGap === "undefined") {
/**
* The order of events during page load and PhoneGap startup is as follows:
*
* onDOMContentLoaded Internal event that is received when the web page is loaded and parsed.
* window.onload Body onload event.
* onNativeReady Internal event that indicates the PhoneGap native side is ready.
* onPhoneGapInit Internal event that kicks off creation of all PhoneGap JavaScript objects (runs constructors).
* onPhoneGapReady Internal event fired when all PhoneGap JavaScript objects have been created
* onPhoneGapInfoReady Internal event fired when device properties are available
* onDeviceReady User event fired to indicate that PhoneGap is ready
* onResume User event fired to indicate a start/resume lifecycle event
* onPause User event fired to indicate a pause lifecycle event
* onDestroy Internal event fired when app is being destroyed (User should use window.onunload event, not this one).
*
* The only PhoneGap events that user code should register for are:
* deviceready PhoneGap native code is initialized and PhoneGap APIs can be called from JavaScript
* pause App has moved to background
* resume App has returned to foreground
*
* Listeners can be registered as:
* document.addEventListener("deviceready", myDeviceReadyListener, false);
* document.addEventListener("resume", myResumeListener, false);
* document.addEventListener("pause", myPauseListener, false);
*
* The DOM lifecycle events should be used for saving and restoring state
* window.onload
* window.onunload
*/
if (typeof(DeviceInfo) !== 'object') {
var DeviceInfo = {};
}
/**
* This represents the PhoneGap API itself, and provides a global namespace for accessing
* information about the state of PhoneGap.
* @class
*/
var PhoneGap = {
queue: {
ready: true,
commands: [],
timer: null
},
documentEventHandler: {}, // Collection of custom document event handlers
windowEventHandler: {} // Collection of custom window event handlers
};
/**
* List of resource files loaded by PhoneGap.
* This is used to ensure JS and other files are loaded only once.
*/
PhoneGap.resources = {base: true};
/**
* Determine if resource has been loaded by PhoneGap
*
* @param name
* @return
*/
PhoneGap.hasResource = function(name) {
return PhoneGap.resources[name];
};
/**
* Add a resource to list of loaded resources by PhoneGap
*
* @param name
*/
PhoneGap.addResource = function(name) {
PhoneGap.resources[name] = true;
};
/**
* Custom pub-sub channel that can have functions subscribed to it
* @constructor
*/
PhoneGap.Channel = function (type)
{
this.type = type;
this.handlers = {};
this.guid = 0;
this.fired = false;
this.enabled = true;
};
/**
* Subscribes the given function to the channel. Any time that
* Channel.fire is called so too will the function.
* Optionally specify an execution context for the function
* and a guid that can be used to stop subscribing to the channel.
* Returns the guid.
*/
PhoneGap.Channel.prototype.subscribe = function(f, c, g) {
// need a function to call
if (f === null) { return; }
var func = f;
if (typeof c === "object" && typeof f === "function") { func = PhoneGap.close(c, f); }
g = g || func.observer_guid || f.observer_guid || this.guid++;
func.observer_guid = g;
f.observer_guid = g;
this.handlers[g] = func;
return g;
};
/**
* Like subscribe but the function is only called once and then it
* auto-unsubscribes itself.
*/
PhoneGap.Channel.prototype.subscribeOnce = function(f, c) {
var g = null;
var _this = this;
var m = function() {
f.apply(c || null, arguments);
_this.unsubscribe(g);
};
if (this.fired) {
if (typeof c === "object" && typeof f === "function") { f = PhoneGap.close(c, f); }
f.apply(this, this.fireArgs);
} else {
g = this.subscribe(m);
}
return g;
};
/**
* Unsubscribes the function with the given guid from the channel.
*/
PhoneGap.Channel.prototype.unsubscribe = function(g) {
if (typeof g === "function") { g = g.observer_guid; }
this.handlers[g] = null;
delete this.handlers[g];
};
/**
* Calls all functions subscribed to this channel.
*/
PhoneGap.Channel.prototype.fire = function(e) {
if (this.enabled) {
var fail = false;
var item, handler, rv;
for (item in this.handlers) {
if (this.handlers.hasOwnProperty(item)) {
handler = this.handlers[item];
if (typeof handler === "function") {
rv = (handler.apply(this, arguments) === false);
fail = fail || rv;
}
}
}
this.fired = true;
this.fireArgs = arguments;
return !fail;
}
return true;
};
/**
* Calls the provided function only after all of the channels specified
* have been fired.
*/
PhoneGap.Channel.join = function(h, c) {
var i = c.length;
var f = function() {
if (!(--i)) {
h();
}
};
var len = i;
var j;
for (j=0; j<len; j++) {
if (!c[j].fired) {
c[j].subscribeOnce(f);
}
else {
i--;
}
}
if (!i) {
h();
}
};
/**
* Boolean flag indicating if the PhoneGap API is available and initialized.
*/ // TODO: Remove this, it is unused here ... -jm
PhoneGap.available = DeviceInfo.uuid !== undefined;
/**
* Add an initialization function to a queue that ensures it will run and initialize
* application constructors only once PhoneGap has been initialized.
* @param {Function} func The function callback you want run once PhoneGap is initialized
*/
PhoneGap.addConstructor = function(func) {
PhoneGap.onPhoneGapInit.subscribeOnce(function() {
try {
func();
} catch(e) {
console.log("Failed to run constructor: " + e);
}
});
};
/**
* Plugins object
*/
if (!window.plugins) {
window.plugins = {};
}
/**
* Adds a plugin object to window.plugins.
* The plugin is accessed using window.plugins.<name>
*
* @param name The plugin name
* @param obj The plugin object
*/
PhoneGap.addPlugin = function(name, obj) {
if (!window.plugins[name]) {
window.plugins[name] = obj;
}
else {
console.log("Error: Plugin "+name+" already exists.");
}
};
/**
* onDOMContentLoaded channel is fired when the DOM content
* of the page has been parsed.
*/
PhoneGap.onDOMContentLoaded = new PhoneGap.Channel('onDOMContentLoaded');
/**
* onNativeReady channel is fired when the PhoneGap native code
* has been initialized.
*/
PhoneGap.onNativeReady = new PhoneGap.Channel('onNativeReady');
/**
* onPhoneGapInit channel is fired when the web page is fully loaded and
* PhoneGap native code has been initialized.
*/
PhoneGap.onPhoneGapInit = new PhoneGap.Channel('onPhoneGapInit');
/**
* onPhoneGapReady channel is fired when the JS PhoneGap objects have been created.
*/
PhoneGap.onPhoneGapReady = new PhoneGap.Channel('onPhoneGapReady');
/**
* onPhoneGapInfoReady channel is fired when the PhoneGap device properties
* has been set.
*/
PhoneGap.onPhoneGapInfoReady = new PhoneGap.Channel('onPhoneGapInfoReady');
/**
* onPhoneGapConnectionReady channel is fired when the PhoneGap connection properties
* has been set.
*/
PhoneGap.onPhoneGapConnectionReady = new PhoneGap.Channel('onPhoneGapConnectionReady');
/**
* onDestroy channel is fired when the PhoneGap native code
* is destroyed. It is used internally.
* Window.onunload should be used by the user.
*/
PhoneGap.onDestroy = new PhoneGap.Channel('onDestroy');
PhoneGap.onDestroy.subscribeOnce(function() {
PhoneGap.shuttingDown = true;
});
PhoneGap.shuttingDown = false;
// _nativeReady is global variable that the native side can set
// to signify that the native code is ready. It is a global since
// it may be called before any PhoneGap JS is ready.
if (typeof _nativeReady !== 'undefined') { PhoneGap.onNativeReady.fire(); }
/**
* onDeviceReady is fired only after all PhoneGap objects are created and
* the device properties are set.
*/
PhoneGap.onDeviceReady = new PhoneGap.Channel('onDeviceReady');
// Array of channels that must fire before "deviceready" is fired
PhoneGap.deviceReadyChannelsArray = [ PhoneGap.onPhoneGapReady, PhoneGap.onPhoneGapInfoReady, PhoneGap.onPhoneGapConnectionReady];
// Hashtable of user defined channels that must also fire before "deviceready" is fired
PhoneGap.deviceReadyChannelsMap = {};
/**
* Indicate that a feature needs to be initialized before it is ready to be used.
* This holds up PhoneGap's "deviceready" event until the feature has been initialized
* and PhoneGap.initComplete(feature) is called.
*
* @param feature {String} The unique feature name
*/
PhoneGap.waitForInitialization = function(feature) {
if (feature) {
var channel = new PhoneGap.Channel(feature);
PhoneGap.deviceReadyChannelsMap[feature] = channel;
PhoneGap.deviceReadyChannelsArray.push(channel);
}
};
/**
* Indicate that initialization code has completed and the feature is ready to be used.
*
* @param feature {String} The unique feature name
*/
PhoneGap.initializationComplete = function(feature) {
var channel = PhoneGap.deviceReadyChannelsMap[feature];
if (channel) {
channel.fire();
}
};
/**
* Create all PhoneGap objects once page has fully loaded and native side is ready.
*/
PhoneGap.Channel.join(function() {
// Start listening for XHR callbacks
setTimeout(function() {
if (PhoneGap.UsePolling) {
PhoneGap.JSCallbackPolling();
}
else {
var polling = prompt("usePolling", "gap_callbackServer:");
PhoneGap.UsePolling = polling;
if (polling == "true") {
PhoneGap.UsePolling = true;
PhoneGap.JSCallbackPolling();
}
else {
PhoneGap.UsePolling = false;
PhoneGap.JSCallback();
}
}
}, 1);
// Run PhoneGap constructors
PhoneGap.onPhoneGapInit.fire();
// Fire event to notify that all objects are created
PhoneGap.onPhoneGapReady.fire();
// Fire onDeviceReady event once all constructors have run and PhoneGap info has been
// received from native side, and any user defined initialization channels.
PhoneGap.Channel.join(function() {
// Let native code know we are inited on JS side
prompt("", "gap_init:");
PhoneGap.onDeviceReady.fire();
}, PhoneGap.deviceReadyChannelsArray);
}, [ PhoneGap.onDOMContentLoaded, PhoneGap.onNativeReady ]);
// Listen for DOMContentLoaded and notify our channel subscribers
document.addEventListener('DOMContentLoaded', function() {
PhoneGap.onDOMContentLoaded.fire();
}, false);
// Intercept calls to document.addEventListener and watch for deviceready
PhoneGap.m_document_addEventListener = document.addEventListener;
// Intercept calls to window.addEventListener
PhoneGap.m_window_addEventListener = window.addEventListener;
/**
* Add a custom window event handler.
*
* @param {String} event The event name that callback handles
* @param {Function} callback The event handler
*/
PhoneGap.addWindowEventHandler = function(event, callback) {
PhoneGap.windowEventHandler[event] = callback;
}
/**
* Add a custom document event handler.
*
* @param {String} event The event name that callback handles
* @param {Function} callback The event handler
*/
PhoneGap.addDocumentEventHandler = function(event, callback) {
PhoneGap.documentEventHandler[event] = callback;
}
/**
* Intercept adding document event listeners and handle our own
*
* @param {Object} evt
* @param {Function} handler
* @param capture
*/
document.addEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
if (e === 'deviceready') {
PhoneGap.onDeviceReady.subscribeOnce(handler);
}
else {
// If subscribing to Android backbutton
if (e === 'backbutton') {
PhoneGap.exec(null, null, "App", "overrideBackbutton", [true]);
}
// If subscribing to an event that is handled by a plugin
else if (typeof PhoneGap.documentEventHandler[e] !== "undefined") {
if (PhoneGap.documentEventHandler[e](e, handler, true)) {
return; // Stop default behavior
}
}
PhoneGap.m_document_addEventListener.call(document, evt, handler, capture);
}
};
/**
* Intercept adding window event listeners and handle our own
*
* @param {Object} evt
* @param {Function} handler
* @param capture
*/
window.addEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
// If subscribing to an event that is handled by a plugin
if (typeof PhoneGap.windowEventHandler[e] !== "undefined") {
if (PhoneGap.windowEventHandler[e](e, handler, true)) {
return; // Stop default behavior
}
}
PhoneGap.m_window_addEventListener.call(window, evt, handler, capture);
};
// Intercept calls to document.removeEventListener and watch for events that
// are generated by PhoneGap native code
PhoneGap.m_document_removeEventListener = document.removeEventListener;
// Intercept calls to window.removeEventListener
PhoneGap.m_window_removeEventListener = window.removeEventListener;
/**
* Intercept removing document event listeners and handle our own
*
* @param {Object} evt
* @param {Function} handler
* @param capture
*/
document.removeEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
// If unsubscribing to Android backbutton
if (e === 'backbutton') {
PhoneGap.exec(null, null, "App", "overrideBackbutton", [false]);
}
// If unsubcribing from an event that is handled by a plugin
if (typeof PhoneGap.documentEventHandler[e] !== "undefined") {
if (PhoneGap.documentEventHandler[e](e, handler, false)) {
return; // Stop default behavior
}
}
PhoneGap.m_document_removeEventListener.call(document, evt, handler, capture);
};
/**
* Intercept removing window event listeners and handle our own
*
* @param {Object} evt
* @param {Function} handler
* @param capture
*/
window.removeEventListener = function(evt, handler, capture) {
var e = evt.toLowerCase();
// If unsubcribing from an event that is handled by a plugin
if (typeof PhoneGap.windowEventHandler[e] !== "undefined") {
if (PhoneGap.windowEventHandler[e](e, handler, false)) {
return; // Stop default behavior
}
}
PhoneGap.m_window_removeEventListener.call(window, evt, handler, capture);
};
/**
* Method to fire document event
*
* @param {String} type The event type to fire
* @param {Object} data Data to send with event
*/
PhoneGap.fireDocumentEvent = function(type, data) {
var e = document.createEvent('Events');
e.initEvent(type);
if (data) {
for (var i in data) {
e[i] = data[i];
}
}
document.dispatchEvent(e);
};
/**
* Method to fire window event
*
* @param {String} type The event type to fire
* @param {Object} data Data to send with event
*/
PhoneGap.fireWindowEvent = function(type, data) {
var e = document.createEvent('Events');
e.initEvent(type);
if (data) {
for (var i in data) {
e[i] = data[i];
}
}
window.dispatchEvent(e);
};
/**
* Does a deep clone of the object.
*
* @param obj
* @return {Object}
*/
PhoneGap.clone = function(obj) {
var i, retVal;
if(!obj) {
return obj;
}
if(obj instanceof Array){
retVal = [];
for(i = 0; i < obj.length; ++i){
retVal.push(PhoneGap.clone(obj[i]));
}
return retVal;
}
if (typeof obj === "function") {
return obj;
}
if(!(obj instanceof Object)){
return obj;
}
if (obj instanceof Date) {
return obj;
}
retVal = {};
for(i in obj){
if(!(i in retVal) || retVal[i] !== obj[i]) {
retVal[i] = PhoneGap.clone(obj[i]);
}
}
return retVal;
};
PhoneGap.callbackId = 0;
PhoneGap.callbacks = {};
PhoneGap.callbackStatus = {
NO_RESULT: 0,
OK: 1,
CLASS_NOT_FOUND_EXCEPTION: 2,
ILLEGAL_ACCESS_EXCEPTION: 3,
INSTANTIATION_EXCEPTION: 4,
MALFORMED_URL_EXCEPTION: 5,
IO_EXCEPTION: 6,
INVALID_ACTION: 7,
JSON_EXCEPTION: 8,
ERROR: 9
};
/**
* Execute a PhoneGap command. It is up to the native side whether this action is synch or async.
* The native side can return:
* Synchronous: PluginResult object as a JSON string
* Asynchrounous: Empty string ""
* If async, the native side will PhoneGap.callbackSuccess or PhoneGap.callbackError,
* depending upon the result of the action.
*
* @param {Function} success The success callback
* @param {Function} fail The fail callback
* @param {String} service The name of the service to use
* @param {String} action Action to be run in PhoneGap
* @param {Array.<String>} [args] Zero or more arguments to pass to the method
*/
PhoneGap.exec = function(success, fail, service, action, args) {
try {
var callbackId = service + PhoneGap.callbackId++;
if (success || fail) {
PhoneGap.callbacks[callbackId] = {success:success, fail:fail};
}
var r = prompt(JSON.stringify(args), "gap:"+JSON.stringify([service, action, callbackId, true]));
// If a result was returned
if (r.length > 0) {
eval("var v="+r+";");
// If status is OK, then return value back to caller
if (v.status === PhoneGap.callbackStatus.OK) {
// If there is a success callback, then call it now with
// returned value
if (success) {
try {
success(v.message);
} catch (e) {
console.log("Error in success callback: " + callbackId + " = " + e);
}
// Clear callback if not expecting any more results
if (!v.keepCallback) {
delete PhoneGap.callbacks[callbackId];
}
}
return v.message;
}
// If no result
else if (v.status === PhoneGap.callbackStatus.NO_RESULT) {
// Clear callback if not expecting any more results
if (!v.keepCallback) {
delete PhoneGap.callbacks[callbackId];
}
}
// If error, then display error
else {
console.log("Error: Status="+v.status+" Message="+v.message);
// If there is a fail callback, then call it now with returned value
if (fail) {
try {
fail(v.message);
}
catch (e1) {
console.log("Error in error callback: "+callbackId+" = "+e1);
}
// Clear callback if not expecting any more results
if (!v.keepCallback) {
delete PhoneGap.callbacks[callbackId];
}
}
return null;
}
}
} catch (e2) {
console.log("Error: "+e2);
}
};
/**
* Called by native code when returning successful result from an action.
*
* @param callbackId
* @param args
*/
PhoneGap.callbackSuccess = function(callbackId, args) {
if (PhoneGap.callbacks[callbackId]) {
// If result is to be sent to callback
if (args.status === PhoneGap.callbackStatus.OK) {
try {
if (PhoneGap.callbacks[callbackId].success) {
PhoneGap.callbacks[callbackId].success(args.message);
}
}
catch (e) {
console.log("Error in success callback: "+callbackId+" = "+e);
}
}
// Clear callback if not expecting any more results
if (!args.keepCallback) {
delete PhoneGap.callbacks[callbackId];
}
}
};
/**
* Called by native code when returning error result from an action.
*
* @param callbackId
* @param args
*/
PhoneGap.callbackError = function(callbackId, args) {
if (PhoneGap.callbacks[callbackId]) {
try {
if (PhoneGap.callbacks[callbackId].fail) {
PhoneGap.callbacks[callbackId].fail(args.message);
}
}
catch (e) {
console.log("Error in error callback: "+callbackId+" = "+e);
}
// Clear callback if not expecting any more results
if (!args.keepCallback) {
delete PhoneGap.callbacks[callbackId];
}
}
};
/**
* Internal function used to dispatch the request to PhoneGap. It processes the
* command queue and executes the next command on the list. If one of the
* arguments is a JavaScript object, it will be passed on the QueryString of the
* url, which will be turned into a dictionary on the other end.
* @private
*/
// TODO: Is this used?
PhoneGap.run_command = function() {
if (!PhoneGap.available || !PhoneGap.queue.ready) {
return;
}
PhoneGap.queue.ready = false;
var args = PhoneGap.queue.commands.shift();
if (PhoneGap.queue.commands.length === 0) {
clearInterval(PhoneGap.queue.timer);
PhoneGap.queue.timer = null;
}
var uri = [];
var dict = null;
var i;
for (i = 1; i < args.length; i++) {
var arg = args[i];
if (arg === undefined || arg === null) {
arg = '';
}
if (typeof(arg) === 'object') {
dict = arg;
} else {
uri.push(encodeURIComponent(arg));
}
}
var url = "gap://" + args[0] + "/" + uri.join("/");
if (dict !== null) {
var name;
var query_args = [];
for (name in dict) {
if (dict.hasOwnProperty(name) && (typeof (name) === 'string')) {
query_args.push(encodeURIComponent(name) + "=" + encodeURIComponent(dict[name]));
}
}
if (query_args.length > 0) {
url += "?" + query_args.join("&");
}
}
document.location = url;
};
PhoneGap.JSCallbackPort = null;
PhoneGap.JSCallbackToken = null;
/**
* This is only for Android.
*
* Internal function that uses XHR to call into PhoneGap Java code and retrieve
* any JavaScript code that needs to be run. This is used for callbacks from
* Java to JavaScript.
*/
PhoneGap.JSCallback = function() {
// Exit if shutting down app
if (PhoneGap.shuttingDown) {
return;
}
// If polling flag was changed, start using polling from now on
if (PhoneGap.UsePolling) {
PhoneGap.JSCallbackPolling();
return;
}
var xmlhttp = new XMLHttpRequest();
// Callback function when XMLHttpRequest is ready
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState === 4){
// Exit if shutting down app
if (PhoneGap.shuttingDown) {
return;
}
// If callback has JavaScript statement to execute
if (xmlhttp.status === 200) {
// Need to url decode the response
var msg = decodeURIComponent(xmlhttp.responseText);
setTimeout(function() {
try {
var t = eval(msg);
}
catch (e) {
// If we're getting an error here, seeing the message will help in debugging
console.log("JSCallback: Message from Server: " + msg);
console.log("JSCallback Error: "+e);
}
}, 1);
setTimeout(PhoneGap.JSCallback, 1);
}
// If callback ping (used to keep XHR request from timing out)
else if (xmlhttp.status === 404) {
setTimeout(PhoneGap.JSCallback, 10);
}
// If security error
else if (xmlhttp.status === 403) {
console.log("JSCallback Error: Invalid token. Stopping callbacks.");
}
// If server is stopping
else if (xmlhttp.status === 503) {
console.log("JSCallback Server Closed: Stopping callbacks.");
}
// If request wasn't GET
else if (xmlhttp.status === 400) {
console.log("JSCallback Error: Bad request. Stopping callbacks.");
}
// If error, revert to polling
else {
console.log("JSCallback Error: Request failed.");
PhoneGap.UsePolling = true;
PhoneGap.JSCallbackPolling();
}
}
};
if (PhoneGap.JSCallbackPort === null) {
PhoneGap.JSCallbackPort = prompt("getPort", "gap_callbackServer:");
}
if (PhoneGap.JSCallbackToken === null) {
PhoneGap.JSCallbackToken = prompt("getToken", "gap_callbackServer:");
}
xmlhttp.open("GET", "http://127.0.0.1:"+PhoneGap.JSCallbackPort+"/"+PhoneGap.JSCallbackToken , true);
xmlhttp.send();
};
/**
* The polling period to use with JSCallbackPolling.
* This can be changed by the application. The default is 50ms.
*/
PhoneGap.JSCallbackPollingPeriod = 50;
/**
* Flag that can be set by the user to force polling to be used or force XHR to be used.
*/
PhoneGap.UsePolling = false; // T=use polling, F=use XHR
/**
* This is only for Android.
*
* Internal function that uses polling to call into PhoneGap Java code and retrieve
* any JavaScript code that needs to be run. This is used for callbacks from
* Java to JavaScript.
*/
PhoneGap.JSCallbackPolling = function() {
// Exit if shutting down app
if (PhoneGap.shuttingDown) {
return;
}
// If polling flag was changed, stop using polling from now on
if (!PhoneGap.UsePolling) {
PhoneGap.JSCallback();
return;
}
var msg = prompt("", "gap_poll:");
if (msg) {
setTimeout(function() {
try {
var t = eval(""+msg);
}
catch (e) {
console.log("JSCallbackPolling: Message from Server: " + msg);
console.log("JSCallbackPolling Error: "+e);
}
}, 1);
setTimeout(PhoneGap.JSCallbackPolling, 1);
}
else {
setTimeout(PhoneGap.JSCallbackPolling, PhoneGap.JSCallbackPollingPeriod);
}
};
/**
* Create a UUID
*
* @return {String}
*/
PhoneGap.createUUID = function() {
return PhoneGap.UUIDcreatePart(4) + '-' +
PhoneGap.UUIDcreatePart(2) + '-' +
PhoneGap.UUIDcreatePart(2) + '-' +
PhoneGap.UUIDcreatePart(2) + '-' +
PhoneGap.UUIDcreatePart(6);
};
PhoneGap.UUIDcreatePart = function(length) {
var uuidpart = "";
var i, uuidchar;
for (i=0; i<length; i++) {
uuidchar = parseInt((Math.random() * 256),0).toString(16);
if (uuidchar.length === 1) {
uuidchar = "0" + uuidchar;
}
uuidpart += uuidchar;
}
return uuidpart;
};
PhoneGap.close = function(context, func, params) {
if (typeof params === 'undefined') {
return function() {
return func.apply(context, arguments);
};
} else {
return function() {
return func.apply(context, params);
};
}
};
/**
* Load a JavaScript file after page has loaded.
*
* @param {String} jsfile The url of the JavaScript file to load.
* @param {Function} successCallback The callback to call when the file has been loaded.
*/
PhoneGap.includeJavascript = function(jsfile, successCallback) {
var id = document.getElementsByTagName("head")[0];
var el = document.createElement('script');
el.type = 'text/javascript';
if (typeof successCallback === 'function') {
el.onload = successCallback;
}
el.src = jsfile;
id.appendChild(el);
};
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("accelerometer")) {
PhoneGap.addResource("accelerometer");
/** @constructor */
var Acceleration = function(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
this.timestamp = new Date().getTime();
};
/**
* This class provides access to device accelerometer data.
* @constructor
*/
var Accelerometer = function() {
/**
* The last known acceleration. type=Acceleration()
*/
this.lastAcceleration = null;
/**
* List of accelerometer watch timers
*/
this.timers = {};
};
Accelerometer.ERROR_MSG = ["Not running", "Starting", "", "Failed to start"];
/**
* Asynchronously aquires the current acceleration.
*
* @param {Function} successCallback The function to call when the acceleration data is available
* @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
* @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL)
*/
Accelerometer.prototype.getCurrentAcceleration = function(successCallback, errorCallback, options) {
// successCallback required
if (typeof successCallback !== "function") {
console.log("Accelerometer Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Accelerometer Error: errorCallback is not a function");
return;
}
// Get acceleration
PhoneGap.exec(successCallback, errorCallback, "Accelerometer", "getAcceleration", []);
};
/**
* Asynchronously aquires the acceleration repeatedly at a given interval.
*
* @param {Function} successCallback The function to call each time the acceleration data is available
* @param {Function} errorCallback The function to call when there is an error getting the acceleration data. (OPTIONAL)
* @param {AccelerationOptions} options The options for getting the accelerometer data such as timeout. (OPTIONAL)
* @return String The watch id that must be passed to #clearWatch to stop watching.
*/
Accelerometer.prototype.watchAcceleration = function(successCallback, errorCallback, options) {
// Default interval (10 sec)
var frequency = (options !== undefined)? options.frequency : 10000;
// successCallback required
if (typeof successCallback !== "function") {
console.log("Accelerometer Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Accelerometer Error: errorCallback is not a function");
return;
}
// Make sure accelerometer timeout > frequency + 10 sec
PhoneGap.exec(
function(timeout) {
if (timeout < (frequency + 10000)) {
PhoneGap.exec(null, null, "Accelerometer", "setTimeout", [frequency + 10000]);
}
},
function(e) { }, "Accelerometer", "getTimeout", []);
// Start watch timer
var id = PhoneGap.createUUID();
navigator.accelerometer.timers[id] = setInterval(function() {
PhoneGap.exec(successCallback, errorCallback, "Accelerometer", "getAcceleration", []);
}, (frequency ? frequency : 1));
return id;
};
/**
* Clears the specified accelerometer watch.
*
* @param {String} id The id of the watch returned from #watchAcceleration.
*/
Accelerometer.prototype.clearWatch = function(id) {
// Stop javascript timer & remove from timer list
if (id && navigator.accelerometer.timers[id] !== undefined) {
clearInterval(navigator.accelerometer.timers[id]);
delete navigator.accelerometer.timers[id];
}
};
PhoneGap.addConstructor(function() {
if (typeof navigator.accelerometer === "undefined") {
navigator.accelerometer = new Accelerometer();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("app")) {
PhoneGap.addResource("app");
(function() {
/**
* Constructor
* @constructor
*/
var App = function() {};
/**
* Clear the resource cache.
*/
App.prototype.clearCache = function() {
PhoneGap.exec(null, null, "App", "clearCache", []);
};
/**
* Load the url into the webview or into new browser instance.
*
* @param url The URL to load
* @param props Properties that can be passed in to the activity:
* wait: int => wait msec before loading URL
* loadingDialog: "Title,Message" => display a native loading dialog
* loadUrlTimeoutValue: int => time in msec to wait before triggering a timeout error
* clearHistory: boolean => clear webview history (default=false)
* openExternal: boolean => open in a new browser (default=false)
*
* Example:
* navigator.app.loadUrl("http://server/myapp/index.html", {wait:2000, loadingDialog:"Wait,Loading App", loadUrlTimeoutValue: 60000});
*/
App.prototype.loadUrl = function(url, props) {
PhoneGap.exec(null, null, "App", "loadUrl", [url, props]);
};
/**
* Cancel loadUrl that is waiting to be loaded.
*/
App.prototype.cancelLoadUrl = function() {
PhoneGap.exec(null, null, "App", "cancelLoadUrl", []);
};
/**
* Clear web history in this web view.
* Instead of BACK button loading the previous web page, it will exit the app.
*/
App.prototype.clearHistory = function() {
PhoneGap.exec(null, null, "App", "clearHistory", []);
};
/**
* Go to previous page displayed.
* This is the same as pressing the backbutton on Android device.
*/
App.prototype.backHistory = function() {
PhoneGap.exec(null, null, "App", "backHistory", []);
};
/**
* Override the default behavior of the Android back button.
* If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired.
*
* Note: The user should not have to call this method. Instead, when the user
* registers for the "backbutton" event, this is automatically done.
*
* @param override T=override, F=cancel override
*/
App.prototype.overrideBackbutton = function(override) {
PhoneGap.exec(null, null, "App", "overrideBackbutton", [override]);
};
/**
* Exit and terminate the application.
*/
App.prototype.exitApp = function() {
return PhoneGap.exec(null, null, "App", "exitApp", []);
};
/**
* Add entry to approved list of URLs (whitelist) that will be loaded into PhoneGap container instead of default browser.
*
* @param origin URL regular expression to allow
* @param subdomains T=include all subdomains under origin
*/
App.prototype.addWhiteListEntry = function(origin, subdomains) {
return PhoneGap.exec(null, null, "App", "addWhiteListEntry", [origin, subdomains]);
};
PhoneGap.addConstructor(function() {
navigator.app = new App();
});
}());
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("battery")) {
PhoneGap.addResource("battery");
/**
* This class contains information about the current battery status.
* @constructor
*/
var Battery = function() {
this._level = null;
this._isPlugged = null;
this._batteryListener = [];
this._lowListener = [];
this._criticalListener = [];
};
/**
* Registers as an event producer for battery events.
*
* @param {Object} eventType
* @param {Object} handler
* @param {Object} add
*/
Battery.prototype.eventHandler = function(eventType, handler, add) {
var me = navigator.battery;
if (add) {
// If there are no current registered event listeners start the battery listener on native side.
if (me._batteryListener.length === 0 && me._lowListener.length === 0 && me._criticalListener.length === 0) {
PhoneGap.exec(me._status, me._error, "Battery", "start", []);
}
// Register the event listener in the proper array
if (eventType === "batterystatus") {
var pos = me._batteryListener.indexOf(handler);
if (pos === -1) {
me._batteryListener.push(handler);
}
} else if (eventType === "batterylow") {
var pos = me._lowListener.indexOf(handler);
if (pos === -1) {
me._lowListener.push(handler);
}
} else if (eventType === "batterycritical") {
var pos = me._criticalListener.indexOf(handler);
if (pos === -1) {
me._criticalListener.push(handler);
}
}
} else {
// Remove the event listener from the proper array
if (eventType === "batterystatus") {
var pos = me._batteryListener.indexOf(handler);
if (pos > -1) {
me._batteryListener.splice(pos, 1);
}
} else if (eventType === "batterylow") {
var pos = me._lowListener.indexOf(handler);
if (pos > -1) {
me._lowListener.splice(pos, 1);
}
} else if (eventType === "batterycritical") {
var pos = me._criticalListener.indexOf(handler);
if (pos > -1) {
me._criticalListener.splice(pos, 1);
}
}
// If there are no more registered event listeners stop the battery listener on native side.
if (me._batteryListener.length === 0 && me._lowListener.length === 0 && me._criticalListener.length === 0) {
PhoneGap.exec(null, null, "Battery", "stop", []);
}
}
};
/**
* Callback for battery status
*
* @param {Object} info keys: level, isPlugged
*/
Battery.prototype._status = function(info) {
if (info) {
var me = this;
if (me._level != info.level || me._isPlugged != info.isPlugged) {
// Fire batterystatus event
PhoneGap.fireWindowEvent("batterystatus", info);
// Fire low battery event
if (info.level == 20 || info.level == 5) {
if (info.level == 20) {
PhoneGap.fireWindowEvent("batterylow", info);
}
else {
PhoneGap.fireWindowEvent("batterycritical", info);
}
}
}
me._level = info.level;
me._isPlugged = info.isPlugged;
}
};
/**
* Error callback for battery start
*/
Battery.prototype._error = function(e) {
console.log("Error initializing Battery: " + e);
};
PhoneGap.addConstructor(function() {
if (typeof navigator.battery === "undefined") {
navigator.battery = new Battery();
PhoneGap.addWindowEventHandler("batterystatus", navigator.battery.eventHandler);
PhoneGap.addWindowEventHandler("batterylow", navigator.battery.eventHandler);
PhoneGap.addWindowEventHandler("batterycritical", navigator.battery.eventHandler);
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("camera")) {
PhoneGap.addResource("camera");
/**
* This class provides access to the device camera.
*
* @constructor
*/
var Camera = function() {
this.successCallback = null;
this.errorCallback = null;
this.options = null;
};
/**
* Format of image that returned from getPicture.
*
* Example: navigator.camera.getPicture(success, fail,
* { quality: 80,
* destinationType: Camera.DestinationType.DATA_URL,
* sourceType: Camera.PictureSourceType.PHOTOLIBRARY})
*/
Camera.DestinationType = {
DATA_URL: 0, // Return base64 encoded string
FILE_URI: 1 // Return file uri (content://media/external/images/media/2 for Android)
};
Camera.prototype.DestinationType = Camera.DestinationType;
/**
* Encoding of image returned from getPicture.
*
* Example: navigator.camera.getPicture(success, fail,
* { quality: 80,
* destinationType: Camera.DestinationType.DATA_URL,
* sourceType: Camera.PictureSourceType.CAMERA,
* encodingType: Camera.EncodingType.PNG})
*/
Camera.EncodingType = {
JPEG: 0, // Return JPEG encoded image
PNG: 1 // Return PNG encoded image
};
Camera.prototype.EncodingType = Camera.EncodingType;
/**
* Type of pictures to select from. Only applicable when
* PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM
*
* Example: navigator.camera.getPicture(success, fail,
* { quality: 80,
* destinationType: Camera.DestinationType.DATA_URL,
* sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
* mediaType: Camera.MediaType.PICTURE})
*/
Camera.MediaType = {
PICTURE: 0, // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType
VIDEO: 1, // allow selection of video only, ONLY RETURNS URL
ALLMEDIA : 2 // allow selection from all media types
};
Camera.prototype.MediaType = Camera.MediaType;
/**
* Source to getPicture from.
*
* Example: navigator.camera.getPicture(success, fail,
* { quality: 80,
* destinationType: Camera.DestinationType.DATA_URL,
* sourceType: Camera.PictureSourceType.PHOTOLIBRARY})
*/
Camera.PictureSourceType = {
PHOTOLIBRARY : 0, // Choose image from picture library (same as SAVEDPHOTOALBUM for Android)
CAMERA : 1, // Take picture from camera
SAVEDPHOTOALBUM : 2 // Choose image from picture library (same as PHOTOLIBRARY for Android)
};
Camera.prototype.PictureSourceType = Camera.PictureSourceType;
/**
* Gets a picture from source defined by "options.sourceType", and returns the
* image as defined by the "options.destinationType" option.
* The defaults are sourceType=CAMERA and destinationType=DATA_URL.
*
* @param {Function} successCallback
* @param {Function} errorCallback
* @param {Object} options
*/
Camera.prototype.getPicture = function(successCallback, errorCallback, options) {
// successCallback required
if (typeof successCallback !== "function") {
console.log("Camera Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Camera Error: errorCallback is not a function");
return;
}
if (options === null || typeof options === "undefined") {
options = {};
}
if (options.quality === null || typeof options.quality === "undefined") {
options.quality = 80;
}
if (options.maxResolution === null || typeof options.maxResolution === "undefined") {
options.maxResolution = 0;
}
if (options.destinationType === null || typeof options.destinationType === "undefined") {
options.destinationType = Camera.DestinationType.DATA_URL;
}
if (options.sourceType === null || typeof options.sourceType === "undefined") {
options.sourceType = Camera.PictureSourceType.CAMERA;
}
if (options.encodingType === null || typeof options.encodingType === "undefined") {
options.encodingType = Camera.EncodingType.JPEG;
}
if (options.mediaType === null || typeof options.mediaType === "undefined") {
options.mediaType = Camera.MediaType.PICTURE;
}
if (options.targetWidth === null || typeof options.targetWidth === "undefined") {
options.targetWidth = -1;
}
else if (typeof options.targetWidth == "string") {
var width = new Number(options.targetWidth);
if (isNaN(width) === false) {
options.targetWidth = width.valueOf();
}
}
if (options.targetHeight === null || typeof options.targetHeight === "undefined") {
options.targetHeight = -1;
}
else if (typeof options.targetHeight == "string") {
var height = new Number(options.targetHeight);
if (isNaN(height) === false) {
options.targetHeight = height.valueOf();
}
}
PhoneGap.exec(successCallback, errorCallback, "Camera", "takePicture", [options]);
};
PhoneGap.addConstructor(function() {
if (typeof navigator.camera === "undefined") {
navigator.camera = new Camera();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("capture")) {
PhoneGap.addResource("capture");
/**
* Represents a single file.
*
* name {DOMString} name of the file, without path information
* fullPath {DOMString} the full path of the file, including the name
* type {DOMString} mime type
* lastModifiedDate {Date} last modified date
* size {Number} size of the file in bytes
*/
var MediaFile = function(name, fullPath, type, lastModifiedDate, size){
this.name = name || null;
this.fullPath = fullPath || null;
this.type = type || null;
this.lastModifiedDate = lastModifiedDate || null;
this.size = size || 0;
};
/**
* Launch device camera application for recording video(s).
*
* @param {Function} successCB
* @param {Function} errorCB
*/
MediaFile.prototype.getFormatData = function(successCallback, errorCallback){
PhoneGap.exec(successCallback, errorCallback, "Capture", "getFormatData", [this.fullPath, this.type]);
};
/**
* MediaFileData encapsulates format information of a media file.
*
* @param {DOMString} codecs
* @param {long} bitrate
* @param {long} height
* @param {long} width
* @param {float} duration
*/
var MediaFileData = function(codecs, bitrate, height, width, duration){
this.codecs = codecs || null;
this.bitrate = bitrate || 0;
this.height = height || 0;
this.width = width || 0;
this.duration = duration || 0;
};
/**
* The CaptureError interface encapsulates all errors in the Capture API.
*/
var CaptureError = function(){
this.code = null;
};
// Capture error codes
CaptureError.CAPTURE_INTERNAL_ERR = 0;
CaptureError.CAPTURE_APPLICATION_BUSY = 1;
CaptureError.CAPTURE_INVALID_ARGUMENT = 2;
CaptureError.CAPTURE_NO_MEDIA_FILES = 3;
CaptureError.CAPTURE_NOT_SUPPORTED = 20;
/**
* The Capture interface exposes an interface to the camera and microphone of the hosting device.
*/
var Capture = function(){
this.supportedAudioModes = [];
this.supportedImageModes = [];
this.supportedVideoModes = [];
};
/**
* Launch audio recorder application for recording audio clip(s).
*
* @param {Function} successCB
* @param {Function} errorCB
* @param {CaptureAudioOptions} options
*/
Capture.prototype.captureAudio = function(successCallback, errorCallback, options){
PhoneGap.exec(successCallback, errorCallback, "Capture", "captureAudio", [options]);
};
/**
* Launch camera application for taking image(s).
*
* @param {Function} successCB
* @param {Function} errorCB
* @param {CaptureImageOptions} options
*/
Capture.prototype.captureImage = function(successCallback, errorCallback, options){
PhoneGap.exec(successCallback, errorCallback, "Capture", "captureImage", [options]);
};
/**
* Launch camera application for taking image(s).
*
* @param {Function} successCB
* @param {Function} errorCB
* @param {CaptureImageOptions} options
*/
Capture.prototype._castMediaFile = function(pluginResult){
var mediaFiles = [];
var i;
for (i = 0; i < pluginResult.message.length; i++) {
var mediaFile = new MediaFile();
mediaFile.name = pluginResult.message[i].name;
mediaFile.fullPath = pluginResult.message[i].fullPath;
mediaFile.type = pluginResult.message[i].type;
mediaFile.lastModifiedDate = pluginResult.message[i].lastModifiedDate;
mediaFile.size = pluginResult.message[i].size;
mediaFiles.push(mediaFile);
}
pluginResult.message = mediaFiles;
return pluginResult;
};
/**
* Launch device camera application for recording video(s).
*
* @param {Function} successCB
* @param {Function} errorCB
* @param {CaptureVideoOptions} options
*/
Capture.prototype.captureVideo = function(successCallback, errorCallback, options){
PhoneGap.exec(successCallback, errorCallback, "Capture", "captureVideo", [options]);
};
/**
* Encapsulates a set of parameters that the capture device supports.
*/
var ConfigurationData = function(){
// The ASCII-encoded string in lower case representing the media type.
this.type = null;
// The height attribute represents height of the image or video in pixels.
// In the case of a sound clip this attribute has value 0.
this.height = 0;
// The width attribute represents width of the image or video in pixels.
// In the case of a sound clip this attribute has value 0
this.width = 0;
};
/**
* Encapsulates all image capture operation configuration options.
*/
var CaptureImageOptions = function(){
// Upper limit of images user can take. Value must be equal or greater than 1.
this.limit = 1;
// The selected image mode. Must match with one of the elements in supportedImageModes array.
this.mode = null;
};
/**
* Encapsulates all video capture operation configuration options.
*/
var CaptureVideoOptions = function(){
// Upper limit of videos user can record. Value must be equal or greater than 1.
this.limit = 1;
// Maximum duration of a single video clip in seconds.
this.duration = 0;
// The selected video mode. Must match with one of the elements in supportedVideoModes array.
this.mode = null;
};
/**
* Encapsulates all audio capture operation configuration options.
*/
var CaptureAudioOptions = function(){
// Upper limit of sound clips user can record. Value must be equal or greater than 1.
this.limit = 1;
// Maximum duration of a single sound clip in seconds.
this.duration = 0;
// The selected audio mode. Must match with one of the elements in supportedAudioModes array.
this.mode = null;
};
PhoneGap.addConstructor(function(){
if (typeof navigator.device === "undefined") {
navigator.device = window.device = new Device();
}
if (typeof navigator.device.capture === "undefined") {
navigator.device.capture = window.device.capture = new Capture();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("compass")) {
PhoneGap.addResource("compass");
CompassError = function(){
this.code = null;
};
// Capture error codes
CompassError.COMPASS_INTERNAL_ERR = 0;
CompassError.COMPASS_NOT_SUPPORTED = 20;
CompassHeading = function() {
this.magneticHeading = null;
this.trueHeading = null;
this.headingAccuracy = null;
this.timestamp = null;
};
/**
* This class provides access to device Compass data.
* @constructor
*/
var Compass = function() {
/**
* The last known Compass position.
*/
this.lastHeading = null;
/**
* List of compass watch timers
*/
this.timers = {};
};
Compass.ERROR_MSG = ["Not running", "Starting", "", "Failed to start"];
/**
* Asynchronously aquires the current heading.
*
* @param {Function} successCallback The function to call when the heading data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading data. (OPTIONAL)
* @param {PositionOptions} options The options for getting the heading data such as timeout. (OPTIONAL)
*/
Compass.prototype.getCurrentHeading = function(successCallback, errorCallback, options) {
// successCallback required
if (typeof successCallback !== "function") {
console.log("Compass Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Compass Error: errorCallback is not a function");
return;
}
// Get heading
PhoneGap.exec(successCallback, errorCallback, "Compass", "getHeading", []);
};
/**
* Asynchronously aquires the heading repeatedly at a given interval.
*
* @param {Function} successCallback The function to call each time the heading data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading data. (OPTIONAL)
* @param {HeadingOptions} options The options for getting the heading data such as timeout and the frequency of the watch. (OPTIONAL)
* @return String The watch id that must be passed to #clearWatch to stop watching.
*/
Compass.prototype.watchHeading= function(successCallback, errorCallback, options) {
// Default interval (100 msec)
var frequency = (options !== undefined) ? options.frequency : 100;
// successCallback required
if (typeof successCallback !== "function") {
console.log("Compass Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Compass Error: errorCallback is not a function");
return;
}
// Make sure compass timeout > frequency + 10 sec
PhoneGap.exec(
function(timeout) {
if (timeout < (frequency + 10000)) {
PhoneGap.exec(null, null, "Compass", "setTimeout", [frequency + 10000]);
}
},
function(e) { }, "Compass", "getTimeout", []);
// Start watch timer to get headings
var id = PhoneGap.createUUID();
navigator.compass.timers[id] = setInterval(
function() {
PhoneGap.exec(successCallback, errorCallback, "Compass", "getHeading", []);
}, (frequency ? frequency : 1));
return id;
};
/**
* Clears the specified heading watch.
*
* @param {String} id The ID of the watch returned from #watchHeading.
*/
Compass.prototype.clearWatch = function(id) {
// Stop javascript timer & remove from timer list
if (id && navigator.compass.timers[id]) {
clearInterval(navigator.compass.timers[id]);
delete navigator.compass.timers[id];
}
};
Compass.prototype._castDate = function(pluginResult) {
if (pluginResult.message.timestamp) {
var timestamp = new Date(pluginResult.message.timestamp);
pluginResult.message.timestamp = timestamp;
}
return pluginResult;
};
PhoneGap.addConstructor(function() {
if (typeof navigator.compass === "undefined") {
navigator.compass = new Compass();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("contact")) {
PhoneGap.addResource("contact");
/**
* Contains information about a single contact.
* @constructor
* @param {DOMString} id unique identifier
* @param {DOMString} displayName
* @param {ContactName} name
* @param {DOMString} nickname
* @param {Array.<ContactField>} phoneNumbers array of phone numbers
* @param {Array.<ContactField>} emails array of email addresses
* @param {Array.<ContactAddress>} addresses array of addresses
* @param {Array.<ContactField>} ims instant messaging user ids
* @param {Array.<ContactOrganization>} organizations
* @param {DOMString} birthday contact's birthday
* @param {DOMString} note user notes about contact
* @param {Array.<ContactField>} photos
* @param {Array.<ContactField>} categories
* @param {Array.<ContactField>} urls contact's web sites
*/
var Contact = function (id, displayName, name, nickname, phoneNumbers, emails, addresses,
ims, organizations, birthday, note, photos, categories, urls) {
this.id = id || null;
this.rawId = null;
this.displayName = displayName || null;
this.name = name || null; // ContactName
this.nickname = nickname || null;
this.phoneNumbers = phoneNumbers || null; // ContactField[]
this.emails = emails || null; // ContactField[]
this.addresses = addresses || null; // ContactAddress[]
this.ims = ims || null; // ContactField[]
this.organizations = organizations || null; // ContactOrganization[]
this.birthday = birthday || null;
this.note = note || null;
this.photos = photos || null; // ContactField[]
this.categories = categories || null; // ContactField[]
this.urls = urls || null; // ContactField[]
};
/**
* ContactError.
* An error code assigned by an implementation when an error has occurreds
* @constructor
*/
var ContactError = function() {
this.code=null;
};
/**
* Error codes
*/
ContactError.UNKNOWN_ERROR = 0;
ContactError.INVALID_ARGUMENT_ERROR = 1;
ContactError.TIMEOUT_ERROR = 2;
ContactError.PENDING_OPERATION_ERROR = 3;
ContactError.IO_ERROR = 4;
ContactError.NOT_SUPPORTED_ERROR = 5;
ContactError.PERMISSION_DENIED_ERROR = 20;
/**
* Removes contact from device storage.
* @param successCB success callback
* @param errorCB error callback
*/
Contact.prototype.remove = function(successCB, errorCB) {
if (this.id === null) {
var errorObj = new ContactError();
errorObj.code = ContactError.UNKNOWN_ERROR;
errorCB(errorObj);
}
else {
PhoneGap.exec(successCB, errorCB, "Contacts", "remove", [this.id]);
}
};
/**
* Creates a deep copy of this Contact.
* With the contact ID set to null.
* @return copy of this Contact
*/
Contact.prototype.clone = function() {
var clonedContact = PhoneGap.clone(this);
var i;
clonedContact.id = null;
clonedContact.rawId = null;
// Loop through and clear out any id's in phones, emails, etc.
if (clonedContact.phoneNumbers) {
for (i = 0; i < clonedContact.phoneNumbers.length; i++) {
clonedContact.phoneNumbers[i].id = null;
}
}
if (clonedContact.emails) {
for (i = 0; i < clonedContact.emails.length; i++) {
clonedContact.emails[i].id = null;
}
}
if (clonedContact.addresses) {
for (i = 0; i < clonedContact.addresses.length; i++) {
clonedContact.addresses[i].id = null;
}
}
if (clonedContact.ims) {
for (i = 0; i < clonedContact.ims.length; i++) {
clonedContact.ims[i].id = null;
}
}
if (clonedContact.organizations) {
for (i = 0; i < clonedContact.organizations.length; i++) {
clonedContact.organizations[i].id = null;
}
}
if (clonedContact.tags) {
for (i = 0; i < clonedContact.tags.length; i++) {
clonedContact.tags[i].id = null;
}
}
if (clonedContact.photos) {
for (i = 0; i < clonedContact.photos.length; i++) {
clonedContact.photos[i].id = null;
}
}
if (clonedContact.urls) {
for (i = 0; i < clonedContact.urls.length; i++) {
clonedContact.urls[i].id = null;
}
}
return clonedContact;
};
/**
* Persists contact to device storage.
* @param successCB success callback
* @param errorCB error callback
*/
Contact.prototype.save = function(successCB, errorCB) {
PhoneGap.exec(successCB, errorCB, "Contacts", "save", [this]);
};
/**
* Contact name.
* @constructor
* @param formatted
* @param familyName
* @param givenName
* @param middle
* @param prefix
* @param suffix
*/
var ContactName = function(formatted, familyName, givenName, middle, prefix, suffix) {
this.formatted = formatted || null;
this.familyName = familyName || null;
this.givenName = givenName || null;
this.middleName = middle || null;
this.honorificPrefix = prefix || null;
this.honorificSuffix = suffix || null;
};
/**
* Generic contact field.
* @constructor
* @param {DOMString} id unique identifier, should only be set by native code
* @param type
* @param value
* @param pref
*/
var ContactField = function(type, value, pref) {
this.id = null;
this.type = type || null;
this.value = value || null;
this.pref = pref || null;
};
/**
* Contact address.
* @constructor
* @param {DOMString} id unique identifier, should only be set by native code
* @param formatted
* @param streetAddress
* @param locality
* @param region
* @param postalCode
* @param country
*/
var ContactAddress = function(pref, type, formatted, streetAddress, locality, region, postalCode, country) {
this.id = null;
this.pref = pref || null;
this.type = type || null;
this.formatted = formatted || null;
this.streetAddress = streetAddress || null;
this.locality = locality || null;
this.region = region || null;
this.postalCode = postalCode || null;
this.country = country || null;
};
/**
* Contact organization.
* @constructor
* @param {DOMString} id unique identifier, should only be set by native code
* @param name
* @param dept
* @param title
* @param startDate
* @param endDate
* @param location
* @param desc
*/
var ContactOrganization = function(pref, type, name, dept, title) {
this.id = null;
this.pref = pref || null;
this.type = type || null;
this.name = name || null;
this.department = dept || null;
this.title = title || null;
};
/**
* Represents a group of Contacts.
* @constructor
*/
var Contacts = function() {
this.inProgress = false;
this.records = [];
};
/**
* Returns an array of Contacts matching the search criteria.
* @param fields that should be searched
* @param successCB success callback
* @param errorCB error callback
* @param {ContactFindOptions} options that can be applied to contact searching
* @return array of Contacts matching search criteria
*/
Contacts.prototype.find = function(fields, successCB, errorCB, options) {
if (successCB === null) {
throw new TypeError("You must specify a success callback for the find command.");
}
if (fields === null || fields === "undefined" || fields.length === "undefined" || fields.length <= 0) {
if (typeof errorCB === "function") {
errorCB({"code": ContactError.INVALID_ARGUMENT_ERROR});
}
} else {
PhoneGap.exec(successCB, errorCB, "Contacts", "search", [fields, options]);
}
};
/**
* This function creates a new contact, but it does not persist the contact
* to device storage. To persist the contact to device storage, invoke
* contact.save().
* @param properties an object who's properties will be examined to create a new Contact
* @returns new Contact object
*/
Contacts.prototype.create = function(properties) {
var i;
var contact = new Contact();
for (i in properties) {
if (contact[i] !== 'undefined') {
contact[i] = properties[i];
}
}
return contact;
};
/**
* This function returns and array of contacts. It is required as we need to convert raw
* JSON objects into concrete Contact objects. Currently this method is called after
* navigator.contacts.find but before the find methods success call back.
*
* @param jsonArray an array of JSON Objects that need to be converted to Contact objects.
* @returns an array of Contact objects
*/
Contacts.prototype.cast = function(pluginResult) {
var contacts = [];
var i;
for (i=0; i<pluginResult.message.length; i++) {
contacts.push(navigator.contacts.create(pluginResult.message[i]));
}
pluginResult.message = contacts;
return pluginResult;
};
/**
* ContactFindOptions.
* @constructor
* @param filter used to match contacts against
* @param multiple boolean used to determine if more than one contact should be returned
*/
var ContactFindOptions = function(filter, multiple) {
this.filter = filter || '';
this.multiple = multiple || false;
};
/**
* Add the contact interface into the browser.
*/
PhoneGap.addConstructor(function() {
if(typeof navigator.contacts === "undefined") {
navigator.contacts = new Contacts();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// TODO: Needs to be commented
if (!PhoneGap.hasResource("crypto")) {
PhoneGap.addResource("crypto");
/**
* @constructor
*/
var Crypto = function() {
};
Crypto.prototype.encrypt = function(seed, string, callback) {
this.encryptWin = callback;
PhoneGap.exec(null, null, "Crypto", "encrypt", [seed, string]);
};
Crypto.prototype.decrypt = function(seed, string, callback) {
this.decryptWin = callback;
PhoneGap.exec(null, null, "Crypto", "decrypt", [seed, string]);
};
Crypto.prototype.gotCryptedString = function(string) {
this.encryptWin(string);
};
Crypto.prototype.getPlainString = function(string) {
this.decryptWin(string);
};
PhoneGap.addConstructor(function() {
if (typeof navigator.Crypto === "undefined") {
navigator.Crypto = new Crypto();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("device")) {
PhoneGap.addResource("device");
/**
* This represents the mobile device, and provides properties for inspecting the model, version, UUID of the
* phone, etc.
* @constructor
*/
var Device = function() {
this.available = PhoneGap.available;
this.platform = null;
this.version = null;
this.name = null;
this.uuid = null;
this.phonegap = null;
var me = this;
this.getInfo(
function(info) {
me.available = true;
me.platform = info.platform;
me.version = info.version;
me.name = info.name;
me.uuid = info.uuid;
me.phonegap = info.phonegap;
PhoneGap.onPhoneGapInfoReady.fire();
},
function(e) {
me.available = false;
console.log("Error initializing PhoneGap: " + e);
alert("Error initializing PhoneGap: "+e);
});
};
/**
* Get device info
*
* @param {Function} successCallback The function to call when the heading data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading data. (OPTIONAL)
*/
Device.prototype.getInfo = function(successCallback, errorCallback) {
// successCallback required
if (typeof successCallback !== "function") {
console.log("Device Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Device Error: errorCallback is not a function");
return;
}
// Get info
PhoneGap.exec(successCallback, errorCallback, "Device", "getDeviceInfo", []);
};
/*
* DEPRECATED
* This is only for Android.
*
* You must explicitly override the back button.
*/
Device.prototype.overrideBackButton = function() {
console.log("Device.overrideBackButton() is deprecated. Use App.overrideBackbutton(true).");
navigator.app.overrideBackbutton(true);
};
/*
* DEPRECATED
* This is only for Android.
*
* This resets the back button to the default behaviour
*/
Device.prototype.resetBackButton = function() {
console.log("Device.resetBackButton() is deprecated. Use App.overrideBackbutton(false).");
navigator.app.overrideBackbutton(false);
};
/*
* DEPRECATED
* This is only for Android.
*
* This terminates the activity!
*/
Device.prototype.exitApp = function() {
console.log("Device.exitApp() is deprecated. Use App.exitApp().");
navigator.app.exitApp();
};
PhoneGap.addConstructor(function() {
if (typeof navigator.device === "undefined") {
navigator.device = window.device = new Device();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("file")) {
PhoneGap.addResource("file");
/**
* This class provides some useful information about a file.
* @constructor
*/
var FileProperties = function(filePath) {
this.filePath = filePath;
this.size = 0;
this.lastModifiedDate = null;
};
/**
* Represents a single file.
*
* @constructor
* @param name {DOMString} name of the file, without path information
* @param fullPath {DOMString} the full path of the file, including the name
* @param type {DOMString} mime type
* @param lastModifiedDate {Date} last modified date
* @param size {Number} size of the file in bytes
*/
var File = function(name, fullPath, type, lastModifiedDate, size) {
this.name = name || null;
this.fullPath = fullPath || null;
this.type = type || null;
this.lastModifiedDate = lastModifiedDate || null;
this.size = size || 0;
};
/** @constructor */
var FileError = function() {
this.code = null;
};
// File error codes
// Found in DOMException
FileError.NOT_FOUND_ERR = 1;
FileError.SECURITY_ERR = 2;
FileError.ABORT_ERR = 3;
// Added by this specification
FileError.NOT_READABLE_ERR = 4;
FileError.ENCODING_ERR = 5;
FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
FileError.INVALID_STATE_ERR = 7;
FileError.SYNTAX_ERR = 8;
FileError.INVALID_MODIFICATION_ERR = 9;
FileError.QUOTA_EXCEEDED_ERR = 10;
FileError.TYPE_MISMATCH_ERR = 11;
FileError.PATH_EXISTS_ERR = 12;
//-----------------------------------------------------------------------------
// File Reader
//-----------------------------------------------------------------------------
/**
* This class reads the mobile device file system.
*
* For Android:
* The root directory is the root of the file system.
* To read from the SD card, the file name is "sdcard/my_file.txt"
* @constructor
*/
var FileReader = function() {
this.fileName = "";
this.readyState = 0;
// File data
this.result = null;
// Error
this.error = null;
// Event handlers
this.onloadstart = null; // When the read starts.
this.onprogress = null; // While reading (and decoding) file or fileBlob data, and reporting partial file data (progess.loaded/progress.total)
this.onload = null; // When the read has successfully completed.
this.onerror = null; // When the read has failed (see errors).
this.onloadend = null; // When the request has completed (either in success or failure).
this.onabort = null; // When the read has been aborted. For instance, by invoking the abort() method.
};
// States
FileReader.EMPTY = 0;
FileReader.LOADING = 1;
FileReader.DONE = 2;
/**
* Abort reading file.
*/
FileReader.prototype.abort = function() {
var evt;
this.readyState = FileReader.DONE;
this.result = null;
// set error
var error = new FileError();
error.code = error.ABORT_ERR;
this.error = error;
// If error callback
if (typeof this.onerror === "function") {
this.onerror({"type":"error", "target":this});
}
// If abort callback
if (typeof this.onabort === "function") {
this.onabort({"type":"abort", "target":this});
}
// If load end callback
if (typeof this.onloadend === "function") {
this.onloadend({"type":"loadend", "target":this});
}
};
/**
* Read text file.
*
* @param file {File} File object containing file properties
* @param encoding [Optional] (see http://www.iana.org/assignments/character-sets)
*/
FileReader.prototype.readAsText = function(file, encoding) {
this.fileName = "";
if (typeof file.fullPath === "undefined") {
this.fileName = file;
} else {
this.fileName = file.fullPath;
}
// LOADING state
this.readyState = FileReader.LOADING;
// If loadstart callback
if (typeof this.onloadstart === "function") {
this.onloadstart({"type":"loadstart", "target":this});
}
// Default encoding is UTF-8
var enc = encoding ? encoding : "UTF-8";
var me = this;
// Read file
PhoneGap.exec(
// Success callback
function(r) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileReader.DONE) {
return;
}
// Save result
me.result = r;
// If onload callback
if (typeof me.onload === "function") {
me.onload({"type":"load", "target":me});
}
// DONE state
me.readyState = FileReader.DONE;
// If onloadend callback
if (typeof me.onloadend === "function") {
me.onloadend({"type":"loadend", "target":me});
}
},
// Error callback
function(e) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileReader.DONE) {
return;
}
// Save error
me.error = e;
// If onerror callback
if (typeof me.onerror === "function") {
me.onerror({"type":"error", "target":me});
}
// DONE state
me.readyState = FileReader.DONE;
// If onloadend callback
if (typeof me.onloadend === "function") {
me.onloadend({"type":"loadend", "target":me});
}
}, "File", "readAsText", [this.fileName, enc]);
};
/**
* Read file and return data as a base64 encoded data url.
* A data url is of the form:
* data:[<mediatype>][;base64],<data>
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsDataURL = function(file) {
this.fileName = "";
if (typeof file.fullPath === "undefined") {
this.fileName = file;
} else {
this.fileName = file.fullPath;
}
// LOADING state
this.readyState = FileReader.LOADING;
// If loadstart callback
if (typeof this.onloadstart === "function") {
this.onloadstart({"type":"loadstart", "target":this});
}
var me = this;
// Read file
PhoneGap.exec(
// Success callback
function(r) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileReader.DONE) {
return;
}
// Save result
me.result = r;
// If onload callback
if (typeof me.onload === "function") {
me.onload({"type":"load", "target":me});
}
// DONE state
me.readyState = FileReader.DONE;
// If onloadend callback
if (typeof me.onloadend === "function") {
me.onloadend({"type":"loadend", "target":me});
}
},
// Error callback
function(e) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileReader.DONE) {
return;
}
// Save error
me.error = e;
// If onerror callback
if (typeof me.onerror === "function") {
me.onerror({"type":"error", "target":me});
}
// DONE state
me.readyState = FileReader.DONE;
// If onloadend callback
if (typeof me.onloadend === "function") {
me.onloadend({"type":"loadend", "target":me});
}
}, "File", "readAsDataURL", [this.fileName]);
};
/**
* Read file and return data as a binary data.
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsBinaryString = function(file) {
// TODO - Can't return binary data to browser.
this.fileName = file;
};
/**
* Read file and return data as a binary data.
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsArrayBuffer = function(file) {
// TODO - Can't return binary data to browser.
this.fileName = file;
};
//-----------------------------------------------------------------------------
// File Writer
//-----------------------------------------------------------------------------
/**
* This class writes to the mobile device file system.
*
* For Android:
* The root directory is the root of the file system.
* To write to the SD card, the file name is "sdcard/my_file.txt"
*
* @constructor
* @param file {File} File object containing file properties
* @param append if true write to the end of the file, otherwise overwrite the file
*/
var FileWriter = function(file) {
this.fileName = "";
this.length = 0;
if (file) {
this.fileName = file.fullPath || file;
this.length = file.size || 0;
}
// default is to write at the beginning of the file
this.position = 0;
this.readyState = 0; // EMPTY
this.result = null;
// Error
this.error = null;
// Event handlers
this.onwritestart = null; // When writing starts
this.onprogress = null; // While writing the file, and reporting partial file data
this.onwrite = null; // When the write has successfully completed.
this.onwriteend = null; // When the request has completed (either in success or failure).
this.onabort = null; // When the write has been aborted. For instance, by invoking the abort() method.
this.onerror = null; // When the write has failed (see errors).
};
// States
FileWriter.INIT = 0;
FileWriter.WRITING = 1;
FileWriter.DONE = 2;
/**
* Abort writing file.
*/
FileWriter.prototype.abort = function() {
// check for invalid state
if (this.readyState === FileWriter.DONE || this.readyState === FileWriter.INIT) {
throw FileError.INVALID_STATE_ERR;
}
// set error
var error = new FileError(), evt;
error.code = error.ABORT_ERR;
this.error = error;
// If error callback
if (typeof this.onerror === "function") {
this.onerror({"type":"error", "target":this});
}
// If abort callback
if (typeof this.onabort === "function") {
this.onabort({"type":"abort", "target":this});
}
this.readyState = FileWriter.DONE;
// If write end callback
if (typeof this.onwriteend == "function") {
this.onwriteend({"type":"writeend", "target":this});
}
};
/**
* Writes data to the file
*
* @param text to be written
*/
FileWriter.prototype.write = function(text) {
// Throw an exception if we are already writing a file
if (this.readyState === FileWriter.WRITING) {
throw FileError.INVALID_STATE_ERR;
}
// WRITING state
this.readyState = FileWriter.WRITING;
var me = this;
// If onwritestart callback
if (typeof me.onwritestart === "function") {
me.onwritestart({"type":"writestart", "target":me});
}
// Write file
PhoneGap.exec(
// Success callback
function(r) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileWriter.DONE) {
return;
}
// position always increases by bytes written because file would be extended
me.position += r;
// The length of the file is now where we are done writing.
me.length = me.position;
// If onwrite callback
if (typeof me.onwrite === "function") {
me.onwrite({"type":"write", "target":me});
}
// DONE state
me.readyState = FileWriter.DONE;
// If onwriteend callback
if (typeof me.onwriteend === "function") {
me.onwriteend({"type":"writeend", "target":me});
}
},
// Error callback
function(e) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileWriter.DONE) {
return;
}
// Save error
me.error = e;
// If onerror callback
if (typeof me.onerror === "function") {
me.onerror({"type":"error", "target":me});
}
// DONE state
me.readyState = FileWriter.DONE;
// If onwriteend callback
if (typeof me.onwriteend === "function") {
me.onwriteend({"type":"writeend", "target":me});
}
}, "File", "write", [this.fileName, text, this.position]);
};
/**
* Moves the file pointer to the location specified.
*
* If the offset is a negative number the position of the file
* pointer is rewound. If the offset is greater than the file
* size the position is set to the end of the file.
*
* @param offset is the location to move the file pointer to.
*/
FileWriter.prototype.seek = function(offset) {
// Throw an exception if we are already writing a file
if (this.readyState === FileWriter.WRITING) {
throw FileError.INVALID_STATE_ERR;
}
if (!offset) {
return;
}
// See back from end of file.
if (offset < 0) {
this.position = Math.max(offset + this.length, 0);
}
// Offset is bigger then file size so set position
// to the end of the file.
else if (offset > this.length) {
this.position = this.length;
}
// Offset is between 0 and file size so set the position
// to start writing.
else {
this.position = offset;
}
};
/**
* Truncates the file to the size specified.
*
* @param size to chop the file at.
*/
FileWriter.prototype.truncate = function(size) {
// Throw an exception if we are already writing a file
if (this.readyState === FileWriter.WRITING) {
throw FileError.INVALID_STATE_ERR;
}
// WRITING state
this.readyState = FileWriter.WRITING;
var me = this;
// If onwritestart callback
if (typeof me.onwritestart === "function") {
me.onwritestart({"type":"writestart", "target":this});
}
// Write file
PhoneGap.exec(
// Success callback
function(r) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileWriter.DONE) {
return;
}
// Update the length of the file
me.length = r;
me.position = Math.min(me.position, r);
// If onwrite callback
if (typeof me.onwrite === "function") {
me.onwrite({"type":"write", "target":me});
}
// DONE state
me.readyState = FileWriter.DONE;
// If onwriteend callback
if (typeof me.onwriteend === "function") {
me.onwriteend({"type":"writeend", "target":me});
}
},
// Error callback
function(e) {
var evt;
// If DONE (cancelled), then don't do anything
if (me.readyState === FileWriter.DONE) {
return;
}
// Save error
me.error = e;
// If onerror callback
if (typeof me.onerror === "function") {
me.onerror({"type":"error", "target":me});
}
// DONE state
me.readyState = FileWriter.DONE;
// If onwriteend callback
if (typeof me.onwriteend === "function") {
me.onwriteend({"type":"writeend", "target":me});
}
}, "File", "truncate", [this.fileName, size]);
};
/**
* Information about the state of the file or directory
*
* @constructor
* {Date} modificationTime (readonly)
*/
var Metadata = function() {
this.modificationTime=null;
};
/**
* Supplies arguments to methods that lookup or create files and directories
*
* @constructor
* @param {boolean} create file or directory if it doesn't exist
* @param {boolean} exclusive if true the command will fail if the file or directory exists
*/
var Flags = function(create, exclusive) {
this.create = create || false;
this.exclusive = exclusive || false;
};
/**
* An interface representing a file system
*
* @constructor
* {DOMString} name the unique name of the file system (readonly)
* {DirectoryEntry} root directory of the file system (readonly)
*/
var FileSystem = function() {
this.name = null;
this.root = null;
};
/**
* An interface that lists the files and directories in a directory.
* @constructor
*/
var DirectoryReader = function(fullPath){
this.fullPath = fullPath || null;
};
/**
* Returns a list of entries from a directory.
*
* @param {Function} successCallback is called with a list of entries
* @param {Function} errorCallback is called with a FileError
*/
DirectoryReader.prototype.readEntries = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "readEntries", [this.fullPath]);
};
/**
* An interface representing a directory on the file system.
*
* @constructor
* {boolean} isFile always false (readonly)
* {boolean} isDirectory always true (readonly)
* {DOMString} name of the directory, excluding the path leading to it (readonly)
* {DOMString} fullPath the absolute full path to the directory (readonly)
* {FileSystem} filesystem on which the directory resides (readonly)
*/
var DirectoryEntry = function() {
this.isFile = false;
this.isDirectory = true;
this.name = null;
this.fullPath = null;
this.filesystem = null;
};
/**
* Copies a directory to a new location
*
* @param {DirectoryEntry} parent the directory to which to copy the entry
* @param {DOMString} newName the new name of the entry, defaults to the current name
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.copyTo = function(parent, newName, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "copyTo", [this.fullPath, parent, newName]);
};
/**
* Looks up the metadata of the entry
*
* @param {Function} successCallback is called with a Metadata object
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getMetadata = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getMetadata", [this.fullPath]);
};
/**
* Gets the parent of the entry
*
* @param {Function} successCallback is called with a parent entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getParent = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getParent", [this.fullPath]);
};
/**
* Moves a directory to a new location
*
* @param {DirectoryEntry} parent the directory to which to move the entry
* @param {DOMString} newName the new name of the entry, defaults to the current name
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.moveTo = function(parent, newName, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "moveTo", [this.fullPath, parent, newName]);
};
/**
* Removes the entry
*
* @param {Function} successCallback is called with no parameters
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.remove = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "remove", [this.fullPath]);
};
/**
* Returns a URI that can be used to identify this entry.
*
* @param {DOMString} mimeType for a FileEntry, the mime type to be used to interpret the file, when loaded through this URI.
* @return uri
*/
DirectoryEntry.prototype.toURI = function(mimeType) {
return "file://" + this.fullPath;
};
/**
* Creates a new DirectoryReader to read entries from this directory
*/
DirectoryEntry.prototype.createReader = function(successCallback, errorCallback) {
return new DirectoryReader(this.fullPath);
};
/**
* Creates or looks up a directory
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a directory
* @param {Flags} options to create or excluively create the directory
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getDirectory = function(path, options, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getDirectory", [this.fullPath, path, options]);
};
/**
* Creates or looks up a file
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a file
* @param {Flags} options to create or excluively create the file
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getFile = function(path, options, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getFile", [this.fullPath, path, options]);
};
/**
* Deletes a directory and all of it's contents
*
* @param {Function} successCallback is called with no parameters
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.removeRecursively = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "removeRecursively", [this.fullPath]);
};
/**
* An interface representing a directory on the file system.
*
* @constructor
* {boolean} isFile always true (readonly)
* {boolean} isDirectory always false (readonly)
* {DOMString} name of the file, excluding the path leading to it (readonly)
* {DOMString} fullPath the absolute full path to the file (readonly)
* {FileSystem} filesystem on which the directory resides (readonly)
*/
var FileEntry = function() {
this.isFile = true;
this.isDirectory = false;
this.name = null;
this.fullPath = null;
this.filesystem = null;
};
/**
* Copies a file to a new location
*
* @param {DirectoryEntry} parent the directory to which to copy the entry
* @param {DOMString} newName the new name of the entry, defaults to the current name
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.copyTo = function(parent, newName, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "copyTo", [this.fullPath, parent, newName]);
};
/**
* Looks up the metadata of the entry
*
* @param {Function} successCallback is called with a Metadata object
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.getMetadata = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getMetadata", [this.fullPath]);
};
/**
* Gets the parent of the entry
*
* @param {Function} successCallback is called with a parent entry
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.getParent = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getParent", [this.fullPath]);
};
/**
* Moves a directory to a new location
*
* @param {DirectoryEntry} parent the directory to which to move the entry
* @param {DOMString} newName the new name of the entry, defaults to the current name
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.moveTo = function(parent, newName, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "moveTo", [this.fullPath, parent, newName]);
};
/**
* Removes the entry
*
* @param {Function} successCallback is called with no parameters
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.remove = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "remove", [this.fullPath]);
};
/**
* Returns a URI that can be used to identify this entry.
*
* @param {DOMString} mimeType for a FileEntry, the mime type to be used to interpret the file, when loaded through this URI.
* @return uri
*/
FileEntry.prototype.toURI = function(mimeType) {
return "file://" + this.fullPath;
};
/**
* Creates a new FileWriter associated with the file that this FileEntry represents.
*
* @param {Function} successCallback is called with the new FileWriter
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.createWriter = function(successCallback, errorCallback) {
this.file(function(filePointer) {
var writer = new FileWriter(filePointer);
if (writer.fileName === null || writer.fileName === "") {
if (typeof errorCallback == "function") {
errorCallback({
"code": FileError.INVALID_STATE_ERR
});
}
}
if (typeof successCallback == "function") {
successCallback(writer);
}
}, errorCallback);
};
/**
* Returns a File that represents the current state of the file that this FileEntry represents.
*
* @param {Function} successCallback is called with the new File object
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.file = function(successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "getFileMetadata", [this.fullPath]);
};
/** @constructor */
var LocalFileSystem = function() {
};
// File error codes
LocalFileSystem.TEMPORARY = 0;
LocalFileSystem.PERSISTENT = 1;
LocalFileSystem.RESOURCE = 2;
LocalFileSystem.APPLICATION = 3;
/**
* Requests a filesystem in which to store application data.
*
* @param {int} type of file system being requested
* @param {Function} successCallback is called with the new FileSystem
* @param {Function} errorCallback is called with a FileError
*/
LocalFileSystem.prototype.requestFileSystem = function(type, size, successCallback, errorCallback) {
if (type < 0 || type > 3) {
if (typeof errorCallback == "function") {
errorCallback({
"code": FileError.SYNTAX_ERR
});
}
}
else {
PhoneGap.exec(successCallback, errorCallback, "File", "requestFileSystem", [type, size]);
}
};
/**
*
* @param {DOMString} uri referring to a local file in a filesystem
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
LocalFileSystem.prototype.resolveLocalFileSystemURI = function(uri, successCallback, errorCallback) {
PhoneGap.exec(successCallback, errorCallback, "File", "resolveLocalFileSystemURI", [uri]);
};
/**
* This function returns and array of contacts. It is required as we need to convert raw
* JSON objects into concrete Contact objects. Currently this method is called after
* navigator.service.contacts.find but before the find methods success call back.
*
* @param a JSON Objects that need to be converted to DirectoryEntry or FileEntry objects.
* @returns an entry
*/
LocalFileSystem.prototype._castFS = function(pluginResult) {
var entry = null;
entry = new DirectoryEntry();
entry.isDirectory = pluginResult.message.root.isDirectory;
entry.isFile = pluginResult.message.root.isFile;
entry.name = pluginResult.message.root.name;
entry.fullPath = pluginResult.message.root.fullPath;
pluginResult.message.root = entry;
return pluginResult;
};
LocalFileSystem.prototype._castEntry = function(pluginResult) {
var entry = null;
if (pluginResult.message.isDirectory) {
console.log("This is a dir");
entry = new DirectoryEntry();
}
else if (pluginResult.message.isFile) {
console.log("This is a file");
entry = new FileEntry();
}
entry.isDirectory = pluginResult.message.isDirectory;
entry.isFile = pluginResult.message.isFile;
entry.name = pluginResult.message.name;
entry.fullPath = pluginResult.message.fullPath;
pluginResult.message = entry;
return pluginResult;
};
LocalFileSystem.prototype._castEntries = function(pluginResult) {
var entries = pluginResult.message;
var retVal = [];
for (var i=0; i<entries.length; i++) {
retVal.push(window.localFileSystem._createEntry(entries[i]));
}
pluginResult.message = retVal;
return pluginResult;
};
LocalFileSystem.prototype._createEntry = function(castMe) {
var entry = null;
if (castMe.isDirectory) {
console.log("This is a dir");
entry = new DirectoryEntry();
}
else if (castMe.isFile) {
console.log("This is a file");
entry = new FileEntry();
}
entry.isDirectory = castMe.isDirectory;
entry.isFile = castMe.isFile;
entry.name = castMe.name;
entry.fullPath = castMe.fullPath;
return entry;
};
LocalFileSystem.prototype._castDate = function(pluginResult) {
if (pluginResult.message.modificationTime) {
var modTime = new Date(pluginResult.message.modificationTime);
pluginResult.message.modificationTime = modTime;
}
else if (pluginResult.message.lastModifiedDate) {
var file = new File();
file.size = pluginResult.message.size;
file.type = pluginResult.message.type;
file.name = pluginResult.message.name;
file.fullPath = pluginResult.message.fullPath;
file.lastModifiedDate = new Date(pluginResult.message.lastModifiedDate);
pluginResult.message = file;
}
return pluginResult;
};
/**
* Add the FileSystem interface into the browser.
*/
PhoneGap.addConstructor(function() {
var pgLocalFileSystem = new LocalFileSystem();
// Needed for cast methods
if(typeof window.localFileSystem == "undefined") window.localFileSystem = pgLocalFileSystem;
if(typeof window.requestFileSystem == "undefined") window.requestFileSystem = pgLocalFileSystem.requestFileSystem;
if(typeof window.resolveLocalFileSystemURI == "undefined") window.resolveLocalFileSystemURI = pgLocalFileSystem.resolveLocalFileSystemURI;
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("filetransfer")) {
PhoneGap.addResource("filetransfer");
/**
* FileTransfer uploads a file to a remote server.
* @constructor
*/
var FileTransfer = function() {};
/**
* FileUploadResult
* @constructor
*/
var FileUploadResult = function() {
this.bytesSent = 0;
this.responseCode = null;
this.response = null;
};
/**
* FileTransferError
* @constructor
*/
var FileTransferError = function() {
this.code = null;
};
FileTransferError.FILE_NOT_FOUND_ERR = 1;
FileTransferError.INVALID_URL_ERR = 2;
FileTransferError.CONNECTION_ERR = 3;
/**
* Given an absolute file path, uploads a file on the device to a remote server
* using a multipart HTTP request.
* @param filePath {String} Full path of the file on the device
* @param server {String} URL of the server to receive the file
* @param successCallback (Function} Callback to be invoked when upload has completed
* @param errorCallback {Function} Callback to be invoked upon error
* @param options {FileUploadOptions} Optional parameters such as file name and mimetype
*/
FileTransfer.prototype.upload = function(filePath, server, successCallback, errorCallback, options, debug) {
// check for options
var fileKey = null;
var fileName = null;
var mimeType = null;
var params = null;
var chunkedMode = true;
if (options) {
fileKey = options.fileKey;
fileName = options.fileName;
mimeType = options.mimeType;
if (options.chunkedMode != null || typeof options.chunkedMode != "undefined") {
chunkedMode = options.chunkedMode;
}
if (options.params) {
params = options.params;
}
else {
params = {};
}
}
PhoneGap.exec(successCallback, errorCallback, 'FileTransfer', 'upload', [filePath, server, fileKey, fileName, mimeType, params, debug, chunkedMode]);
};
/**
* Options to customize the HTTP request used to upload files.
* @constructor
* @param fileKey {String} Name of file request parameter.
* @param fileName {String} Filename to be used by the server. Defaults to image.jpg.
* @param mimeType {String} Mimetype of the uploaded file. Defaults to image/jpeg.
* @param params {Object} Object with key: value params to send to the server.
*/
var FileUploadOptions = function(fileKey, fileName, mimeType, params) {
this.fileKey = fileKey || null;
this.fileName = fileName || null;
this.mimeType = mimeType || null;
this.params = params || null;
};
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("geolocation")) {
PhoneGap.addResource("geolocation");
/**
* This class provides access to device GPS data.
* @constructor
*/
var Geolocation = function() {
// The last known GPS position.
this.lastPosition = null;
// Geolocation listeners
this.listeners = {};
};
/**
* Position error object
*
* @constructor
* @param code
* @param message
*/
var PositionError = function(code, message) {
this.code = code;
this.message = message;
};
PositionError.PERMISSION_DENIED = 1;
PositionError.POSITION_UNAVAILABLE = 2;
PositionError.TIMEOUT = 3;
/**
* Asynchronously aquires the current position.
*
* @param {Function} successCallback The function to call when the position data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading position. (OPTIONAL)
* @param {PositionOptions} options The options for getting the position data. (OPTIONAL)
*/
Geolocation.prototype.getCurrentPosition = function(successCallback, errorCallback, options) {
if (navigator._geo.listeners.global) {
console.log("Geolocation Error: Still waiting for previous getCurrentPosition() request.");
try {
errorCallback(new PositionError(PositionError.TIMEOUT, "Geolocation Error: Still waiting for previous getCurrentPosition() request."));
} catch (e) {
}
return;
}
var maximumAge = 10000;
var enableHighAccuracy = false;
var timeout = 10000;
if (typeof options !== "undefined") {
if (typeof options.maximumAge !== "undefined") {
maximumAge = options.maximumAge;
}
if (typeof options.enableHighAccuracy !== "undefined") {
enableHighAccuracy = options.enableHighAccuracy;
}
if (typeof options.timeout !== "undefined") {
timeout = options.timeout;
}
}
navigator._geo.listeners.global = {"success" : successCallback, "fail" : errorCallback };
PhoneGap.exec(null, null, "Geolocation", "getCurrentLocation", [enableHighAccuracy, timeout, maximumAge]);
};
/**
* Asynchronously watches the geolocation for changes to geolocation. When a change occurs,
* the successCallback is called with the new location.
*
* @param {Function} successCallback The function to call each time the location data is available
* @param {Function} errorCallback The function to call when there is an error getting the location data. (OPTIONAL)
* @param {PositionOptions} options The options for getting the location data such as frequency. (OPTIONAL)
* @return String The watch id that must be passed to #clearWatch to stop watching.
*/
Geolocation.prototype.watchPosition = function(successCallback, errorCallback, options) {
var maximumAge = 10000;
var enableHighAccuracy = false;
var timeout = 10000;
if (typeof options !== "undefined") {
if (typeof options.frequency !== "undefined") {
maximumAge = options.frequency;
}
if (typeof options.maximumAge !== "undefined") {
maximumAge = options.maximumAge;
}
if (typeof options.enableHighAccuracy !== "undefined") {
enableHighAccuracy = options.enableHighAccuracy;
}
if (typeof options.timeout !== "undefined") {
timeout = options.timeout;
}
}
var id = PhoneGap.createUUID();
navigator._geo.listeners[id] = {"success" : successCallback, "fail" : errorCallback };
PhoneGap.exec(null, null, "Geolocation", "start", [id, enableHighAccuracy, timeout, maximumAge]);
return id;
};
/*
* Native callback when watch position has a new position.
* PRIVATE METHOD
*
* @param {String} id
* @param {Number} lat
* @param {Number} lng
* @param {Number} alt
* @param {Number} altacc
* @param {Number} head
* @param {Number} vel
* @param {Number} stamp
*/
Geolocation.prototype.success = function(id, lat, lng, alt, altacc, head, vel, stamp) {
var coords = new Coordinates(lat, lng, alt, altacc, head, vel);
var loc = new Position(coords, stamp);
try {
if (lat === "undefined" || lng === "undefined") {
navigator._geo.listeners[id].fail(new PositionError(PositionError.POSITION_UNAVAILABLE, "Lat/Lng are undefined."));
}
else {
navigator._geo.lastPosition = loc;
navigator._geo.listeners[id].success(loc);
}
}
catch (e) {
console.log("Geolocation Error: Error calling success callback function.");
}
if (id === "global") {
delete navigator._geo.listeners.global;
}
};
/**
* Native callback when watch position has an error.
* PRIVATE METHOD
*
* @param {String} id The ID of the watch
* @param {Number} code The error code
* @param {String} msg The error message
*/
Geolocation.prototype.fail = function(id, code, msg) {
try {
navigator._geo.listeners[id].fail(new PositionError(code, msg));
}
catch (e) {
console.log("Geolocation Error: Error calling error callback function.");
}
};
/**
* Clears the specified heading watch.
*
* @param {String} id The ID of the watch returned from #watchPosition
*/
Geolocation.prototype.clearWatch = function(id) {
PhoneGap.exec(null, null, "Geolocation", "stop", [id]);
delete navigator._geo.listeners[id];
};
/**
* Force the PhoneGap geolocation to be used instead of built-in.
*/
Geolocation.usingPhoneGap = false;
Geolocation.usePhoneGap = function() {
if (Geolocation.usingPhoneGap) {
return;
}
Geolocation.usingPhoneGap = true;
// Set built-in geolocation methods to our own implementations
// (Cannot replace entire geolocation, but can replace individual methods)
navigator.geolocation.setLocation = navigator._geo.setLocation;
navigator.geolocation.getCurrentPosition = navigator._geo.getCurrentPosition;
navigator.geolocation.watchPosition = navigator._geo.watchPosition;
navigator.geolocation.clearWatch = navigator._geo.clearWatch;
navigator.geolocation.start = navigator._geo.start;
navigator.geolocation.stop = navigator._geo.stop;
};
PhoneGap.addConstructor(function() {
navigator._geo = new Geolocation();
// No native geolocation object for Android 1.x, so use PhoneGap geolocation
if (typeof navigator.geolocation === 'undefined') {
navigator.geolocation = navigator._geo;
Geolocation.usingPhoneGap = true;
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("media")) {
PhoneGap.addResource("media");
/**
* This class provides access to the device media, interfaces to both sound and video
*
* @constructor
* @param src The file name or url to play
* @param successCallback The callback to be called when the file is done playing or recording.
* successCallback() - OPTIONAL
* @param errorCallback The callback to be called if there is an error.
* errorCallback(int errorCode) - OPTIONAL
* @param statusCallback The callback to be called when media status has changed.
* statusCallback(int statusCode) - OPTIONAL
* @param positionCallback The callback to be called when media position has changed.
* positionCallback(long position) - OPTIONAL
*/
var Media = function(src, successCallback, errorCallback, statusCallback, positionCallback) {
// successCallback optional
if (successCallback && (typeof successCallback !== "function")) {
console.log("Media Error: successCallback is not a function");
return;
}
// errorCallback optional
if (errorCallback && (typeof errorCallback !== "function")) {
console.log("Media Error: errorCallback is not a function");
return;
}
// statusCallback optional
if (statusCallback && (typeof statusCallback !== "function")) {
console.log("Media Error: statusCallback is not a function");
return;
}
// statusCallback optional
if (positionCallback && (typeof positionCallback !== "function")) {
console.log("Media Error: positionCallback is not a function");
return;
}
this.id = PhoneGap.createUUID();
PhoneGap.mediaObjects[this.id] = this;
this.src = src;
this.successCallback = successCallback;
this.errorCallback = errorCallback;
this.statusCallback = statusCallback;
this.positionCallback = positionCallback;
this._duration = -1;
this._position = -1;
};
// Media messages
Media.MEDIA_STATE = 1;
Media.MEDIA_DURATION = 2;
Media.MEDIA_POSITION = 3;
Media.MEDIA_ERROR = 9;
// Media states
Media.MEDIA_NONE = 0;
Media.MEDIA_STARTING = 1;
Media.MEDIA_RUNNING = 2;
Media.MEDIA_PAUSED = 3;
Media.MEDIA_STOPPED = 4;
Media.MEDIA_MSG = ["None", "Starting", "Running", "Paused", "Stopped"];
// TODO: Will MediaError be used?
/**
* This class contains information about any Media errors.
* @constructor
*/
var MediaError = function() {
this.code = null;
this.message = "";
};
MediaError.MEDIA_ERR_NONE_ACTIVE = 0;
MediaError.MEDIA_ERR_ABORTED = 1;
MediaError.MEDIA_ERR_NETWORK = 2;
MediaError.MEDIA_ERR_DECODE = 3;
MediaError.MEDIA_ERR_NONE_SUPPORTED = 4;
/**
* Start or resume playing audio file.
*/
Media.prototype.play = function() {
PhoneGap.exec(null, null, "Media", "startPlayingAudio", [this.id, this.src]);
};
/**
* Stop playing audio file.
*/
Media.prototype.stop = function() {
return PhoneGap.exec(null, null, "Media", "stopPlayingAudio", [this.id]);
};
/**
* Seek or jump to a new time in the track..
*/
Media.prototype.seekTo = function(milliseconds) {
PhoneGap.exec(null, null, "Media", "seekToAudio", [this.id, milliseconds]);
};
/**
* Pause playing audio file.
*/
Media.prototype.pause = function() {
PhoneGap.exec(null, null, "Media", "pausePlayingAudio", [this.id]);
};
/**
* Get duration of an audio file.
* The duration is only set for audio that is playing, paused or stopped.
*
* @return duration or -1 if not known.
*/
Media.prototype.getDuration = function() {
return this._duration;
};
/**
* Get position of audio.
*/
Media.prototype.getCurrentPosition = function(success, fail) {
PhoneGap.exec(success, fail, "Media", "getCurrentPositionAudio", [this.id]);
};
/**
* Start recording audio file.
*/
Media.prototype.startRecord = function() {
PhoneGap.exec(null, null, "Media", "startRecordingAudio", [this.id, this.src]);
};
/**
* Stop recording audio file.
*/
Media.prototype.stopRecord = function() {
PhoneGap.exec(null, null, "Media", "stopRecordingAudio", [this.id]);
};
/**
* Release the resources.
*/
Media.prototype.release = function() {
PhoneGap.exec(null, null, "Media", "release", [this.id]);
};
/**
* Adjust the volume.
*/
Media.prototype.setVolume = function(volume) {
PhoneGap.exec(null, null, "Media", "setVolume", [this.id, volume]);
};
/**
* List of media objects.
* PRIVATE
*/
PhoneGap.mediaObjects = {};
/**
* Object that receives native callbacks.
* PRIVATE
* @constructor
*/
PhoneGap.Media = function() {};
/**
* Get the media object.
* PRIVATE
*
* @param id The media object id (string)
*/
PhoneGap.Media.getMediaObject = function(id) {
return PhoneGap.mediaObjects[id];
};
/**
* Audio has status update.
* PRIVATE
*
* @param id The media object id (string)
* @param status The status code (int)
* @param msg The status message (string)
*/
PhoneGap.Media.onStatus = function(id, msg, value) {
var media = PhoneGap.mediaObjects[id];
// If state update
if (msg === Media.MEDIA_STATE) {
if (value === Media.MEDIA_STOPPED) {
if (media.successCallback) {
media.successCallback();
}
}
if (media.statusCallback) {
media.statusCallback(value);
}
}
else if (msg === Media.MEDIA_DURATION) {
media._duration = value;
}
else if (msg === Media.MEDIA_ERROR) {
if (media.errorCallback) {
media.errorCallback({"code":value});
}
}
else if (msg == Media.MEDIA_POSITION) {
media._position = value;
}
};
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("network")) {
PhoneGap.addResource("network");
/**
* This class contains information about the current network Connection.
* @constructor
*/
var Connection = function() {
this.type = null;
this._firstRun = true;
this._timer = null;
this.timeout = 500;
var me = this;
this.getInfo(
function(type) {
// Need to send events if we are on or offline
if (type == "none") {
// set a timer if still offline at the end of timer send the offline event
me._timer = setTimeout(function(){
me.type = type;
PhoneGap.fireDocumentEvent('offline');
me._timer = null;
}, me.timeout);
} else {
// If there is a current offline event pending clear it
if (me._timer != null) {
clearTimeout(me._timer);
me._timer = null;
}
me.type = type;
PhoneGap.fireDocumentEvent('online');
}
// should only fire this once
if (me._firstRun) {
me._firstRun = false;
PhoneGap.onPhoneGapConnectionReady.fire();
}
},
function(e) {
// If we can't get the network info we should still tell PhoneGap
// to fire the deviceready event.
if (me._firstRun) {
me._firstRun = false;
PhoneGap.onPhoneGapConnectionReady.fire();
}
console.log("Error initializing Network Connection: " + e);
});
};
Connection.UNKNOWN = "unknown";
Connection.ETHERNET = "ethernet";
Connection.WIFI = "wifi";
Connection.CELL_2G = "2g";
Connection.CELL_3G = "3g";
Connection.CELL_4G = "4g";
Connection.NONE = "none";
/**
* Get connection info
*
* @param {Function} successCallback The function to call when the Connection data is available
* @param {Function} errorCallback The function to call when there is an error getting the Connection data. (OPTIONAL)
*/
Connection.prototype.getInfo = function(successCallback, errorCallback) {
// Get info
PhoneGap.exec(successCallback, errorCallback, "Network Status", "getConnectionInfo", []);
};
PhoneGap.addConstructor(function() {
if (typeof navigator.network === "undefined") {
navigator.network = new Object();
}
if (typeof navigator.network.connection === "undefined") {
navigator.network.connection = new Connection();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("notification")) {
PhoneGap.addResource("notification");
/**
* This class provides access to notifications on the device.
* @constructor
*/
var Notification = function() {
};
/**
* Open a native alert dialog, with a customizable title and button text.
*
* @param {String} message Message to print in the body of the alert
* @param {Function} completeCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the alert dialog (default: Alert)
* @param {String} buttonLabel Label of the close button (default: OK)
*/
Notification.prototype.alert = function(message, completeCallback, title, buttonLabel) {
var _title = (title || "Alert");
var _buttonLabel = (buttonLabel || "OK");
PhoneGap.exec(completeCallback, null, "Notification", "alert", [message,_title,_buttonLabel]);
};
/**
* Open a native confirm dialog, with a customizable title and button text.
* The result that the user selects is returned to the result callback.
*
* @param {String} message Message to print in the body of the alert
* @param {Function} resultCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the alert dialog (default: Confirm)
* @param {String} buttonLabels Comma separated list of the labels of the buttons (default: 'OK,Cancel')
*/
Notification.prototype.confirm = function(message, resultCallback, title, buttonLabels) {
var _title = (title || "Confirm");
var _buttonLabels = (buttonLabels || "OK,Cancel");
PhoneGap.exec(resultCallback, null, "Notification", "confirm", [message,_title,_buttonLabels]);
};
/**
* Start spinning the activity indicator on the statusbar
*/
Notification.prototype.activityStart = function() {
PhoneGap.exec(null, null, "Notification", "activityStart", ["Busy","Please wait..."]);
};
/**
* Stop spinning the activity indicator on the statusbar, if it's currently spinning
*/
Notification.prototype.activityStop = function() {
PhoneGap.exec(null, null, "Notification", "activityStop", []);
};
/**
* Display a progress dialog with progress bar that goes from 0 to 100.
*
* @param {String} title Title of the progress dialog.
* @param {String} message Message to display in the dialog.
*/
Notification.prototype.progressStart = function(title, message) {
PhoneGap.exec(null, null, "Notification", "progressStart", [title, message]);
};
/**
* Set the progress dialog value.
*
* @param {Number} value 0-100
*/
Notification.prototype.progressValue = function(value) {
PhoneGap.exec(null, null, "Notification", "progressValue", [value]);
};
/**
* Close the progress dialog.
*/
Notification.prototype.progressStop = function() {
PhoneGap.exec(null, null, "Notification", "progressStop", []);
};
/**
* Causes the device to blink a status LED.
*
* @param {Integer} count The number of blinks.
* @param {String} colour The colour of the light.
*/
Notification.prototype.blink = function(count, colour) {
// NOT IMPLEMENTED
};
/**
* Causes the device to vibrate.
*
* @param {Integer} mills The number of milliseconds to vibrate for.
*/
Notification.prototype.vibrate = function(mills) {
PhoneGap.exec(null, null, "Notification", "vibrate", [mills]);
};
/**
* Causes the device to beep.
* On Android, the default notification ringtone is played "count" times.
*
* @param {Integer} count The number of beeps.
*/
Notification.prototype.beep = function(count) {
PhoneGap.exec(null, null, "Notification", "beep", [count]);
};
PhoneGap.addConstructor(function() {
if (typeof navigator.notification === "undefined") {
navigator.notification = new Notification();
}
});
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
if (!PhoneGap.hasResource("position")) {
PhoneGap.addResource("position");
/**
* This class contains position information.
* @param {Object} lat
* @param {Object} lng
* @param {Object} acc
* @param {Object} alt
* @param {Object} altacc
* @param {Object} head
* @param {Object} vel
* @constructor
*/
var Position = function(coords, timestamp) {
this.coords = coords;
this.timestamp = (timestamp !== 'undefined') ? timestamp : new Date().getTime();
};
/** @constructor */
var Coordinates = function(lat, lng, alt, acc, head, vel, altacc) {
/**
* The latitude of the position.
*/
this.latitude = lat;
/**
* The longitude of the position,
*/
this.longitude = lng;
/**
* The accuracy of the position.
*/
this.accuracy = acc;
/**
* The altitude of the position.
*/
this.altitude = alt;
/**
* The direction the device is moving at the position.
*/
this.heading = head;
/**
* The velocity with which the device is moving at the position.
*/
this.speed = vel;
/**
* The altitude accuracy of the position.
*/
this.altitudeAccuracy = (altacc !== 'undefined') ? altacc : null;
};
/**
* This class specifies the options for requesting position data.
* @constructor
*/
var PositionOptions = function() {
/**
* Specifies the desired position accuracy.
*/
this.enableHighAccuracy = true;
/**
* The timeout after which if position data cannot be obtained the errorCallback
* is called.
*/
this.timeout = 10000;
};
/**
* This class contains information about any GSP errors.
* @constructor
*/
var PositionError = function() {
this.code = null;
this.message = "";
};
PositionError.UNKNOWN_ERROR = 0;
PositionError.PERMISSION_DENIED = 1;
PositionError.POSITION_UNAVAILABLE = 2;
PositionError.TIMEOUT = 3;
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* This is purely for the Android 1.5/1.6 HTML 5 Storage
* I was hoping that Android 2.0 would deprecate this, but given the fact that
* most manufacturers ship with Android 1.5 and do not do OTA Updates, this is required
*/
if (!PhoneGap.hasResource("storage")) {
PhoneGap.addResource("storage");
/**
* SQL result set object
* PRIVATE METHOD
* @constructor
*/
var DroidDB_Rows = function() {
this.resultSet = []; // results array
this.length = 0; // number of rows
};
/**
* Get item from SQL result set
*
* @param row The row number to return
* @return The row object
*/
DroidDB_Rows.prototype.item = function(row) {
return this.resultSet[row];
};
/**
* SQL result set that is returned to user.
* PRIVATE METHOD
* @constructor
*/
var DroidDB_Result = function() {
this.rows = new DroidDB_Rows();
};
/**
* Storage object that is called by native code when performing queries.
* PRIVATE METHOD
* @constructor
*/
var DroidDB = function() {
this.queryQueue = {};
};
/**
* Callback from native code when query is complete.
* PRIVATE METHOD
*
* @param id Query id
*/
DroidDB.prototype.completeQuery = function(id, data) {
var query = this.queryQueue[id];
if (query) {
try {
delete this.queryQueue[id];
// Get transaction
var tx = query.tx;
// If transaction hasn't failed
// Note: We ignore all query results if previous query
// in the same transaction failed.
if (tx && tx.queryList[id]) {
// Save query results
var r = new DroidDB_Result();
r.rows.resultSet = data;
r.rows.length = data.length;
try {
if (typeof query.successCallback === 'function') {
query.successCallback(query.tx, r);
}
} catch (ex) {
console.log("executeSql error calling user success callback: "+ex);
}
tx.queryComplete(id);
}
} catch (e) {
console.log("executeSql error: "+e);
}
}
};
/**
* Callback from native code when query fails
* PRIVATE METHOD
*
* @param reason Error message
* @param id Query id
*/
DroidDB.prototype.fail = function(reason, id) {
var query = this.queryQueue[id];
if (query) {
try {
delete this.queryQueue[id];
// Get transaction
var tx = query.tx;
// If transaction hasn't failed
// Note: We ignore all query results if previous query
// in the same transaction failed.
if (tx && tx.queryList[id]) {
tx.queryList = {};
try {
if (typeof query.errorCallback === 'function') {
query.errorCallback(query.tx, reason);
}
} catch (ex) {
console.log("executeSql error calling user error callback: "+ex);
}
tx.queryFailed(id, reason);
}
} catch (e) {
console.log("executeSql error: "+e);
}
}
};
/**
* SQL query object
* PRIVATE METHOD
*
* @constructor
* @param tx The transaction object that this query belongs to
*/
var DroidDB_Query = function(tx) {
// Set the id of the query
this.id = PhoneGap.createUUID();
// Add this query to the queue
droiddb.queryQueue[this.id] = this;
// Init result
this.resultSet = [];
// Set transaction that this query belongs to
this.tx = tx;
// Add this query to transaction list
this.tx.queryList[this.id] = this;
// Callbacks
this.successCallback = null;
this.errorCallback = null;
};
/**
* Transaction object
* PRIVATE METHOD
* @constructor
*/
var DroidDB_Tx = function() {
// Set the id of the transaction
this.id = PhoneGap.createUUID();
// Callbacks
this.successCallback = null;
this.errorCallback = null;
// Query list
this.queryList = {};
};
/**
* Mark query in transaction as complete.
* If all queries are complete, call the user's transaction success callback.
*
* @param id Query id
*/
DroidDB_Tx.prototype.queryComplete = function(id) {
delete this.queryList[id];
// If no more outstanding queries, then fire transaction success
if (this.successCallback) {
var count = 0;
var i;
for (i in this.queryList) {
if (this.queryList.hasOwnProperty(i)) {
count++;
}
}
if (count === 0) {
try {
this.successCallback();
} catch(e) {
console.log("Transaction error calling user success callback: " + e);
}
}
}
};
/**
* Mark query in transaction as failed.
*
* @param id Query id
* @param reason Error message
*/
DroidDB_Tx.prototype.queryFailed = function(id, reason) {
// The sql queries in this transaction have already been run, since
// we really don't have a real transaction implemented in native code.
// However, the user callbacks for the remaining sql queries in transaction
// will not be called.
this.queryList = {};
if (this.errorCallback) {
try {
this.errorCallback(reason);
} catch(e) {
console.log("Transaction error calling user error callback: " + e);
}
}
};
/**
* Execute SQL statement
*
* @param sql SQL statement to execute
* @param params Statement parameters
* @param successCallback Success callback
* @param errorCallback Error callback
*/
DroidDB_Tx.prototype.executeSql = function(sql, params, successCallback, errorCallback) {
// Init params array
if (typeof params === 'undefined') {
params = [];
}
// Create query and add to queue
var query = new DroidDB_Query(this);
droiddb.queryQueue[query.id] = query;
// Save callbacks
query.successCallback = successCallback;
query.errorCallback = errorCallback;
// Call native code
PhoneGap.exec(null, null, "Storage", "executeSql", [sql, params, query.id]);
};
var DatabaseShell = function() {
};
/**
* Start a transaction.
* Does not support rollback in event of failure.
*
* @param process {Function} The transaction function
* @param successCallback {Function}
* @param errorCallback {Function}
*/
DatabaseShell.prototype.transaction = function(process, errorCallback, successCallback) {
var tx = new DroidDB_Tx();
tx.successCallback = successCallback;
tx.errorCallback = errorCallback;
try {
process(tx);
} catch (e) {
console.log("Transaction error: "+e);
if (tx.errorCallback) {
try {
tx.errorCallback(e);
} catch (ex) {
console.log("Transaction error calling user error callback: "+e);
}
}
}
};
/**
* Open database
*
* @param name Database name
* @param version Database version
* @param display_name Database display name
* @param size Database size in bytes
* @return Database object
*/
var DroidDB_openDatabase = function(name, version, display_name, size) {
PhoneGap.exec(null, null, "Storage", "openDatabase", [name, version, display_name, size]);
var db = new DatabaseShell();
return db;
};
/**
* For browsers with no localStorage we emulate it with SQLite. Follows the w3c api.
* TODO: Do similar for sessionStorage.
*/
/**
* @constructor
*/
var CupcakeLocalStorage = function() {
try {
this.db = openDatabase('localStorage', '1.0', 'localStorage', 2621440);
var storage = {};
this.length = 0;
function setLength (length) {
this.length = length;
localStorage.length = length;
}
this.db.transaction(
function (transaction) {
var i;
transaction.executeSql('CREATE TABLE IF NOT EXISTS storage (id NVARCHAR(40) PRIMARY KEY, body NVARCHAR(255))');
transaction.executeSql('SELECT * FROM storage', [], function(tx, result) {
for(var i = 0; i < result.rows.length; i++) {
storage[result.rows.item(i)['id']] = result.rows.item(i)['body'];
}
setLength(result.rows.length);
PhoneGap.initializationComplete("cupcakeStorage");
});
},
function (err) {
alert(err.message);
}
);
this.setItem = function(key, val) {
if (typeof(storage[key])=='undefined') {
this.length++;
}
storage[key] = val;
this.db.transaction(
function (transaction) {
transaction.executeSql('CREATE TABLE IF NOT EXISTS storage (id NVARCHAR(40) PRIMARY KEY, body NVARCHAR(255))');
transaction.executeSql('REPLACE INTO storage (id, body) values(?,?)', [key,val]);
}
);
};
this.getItem = function(key) {
return storage[key];
};
this.removeItem = function(key) {
delete storage[key];
this.length--;
this.db.transaction(
function (transaction) {
transaction.executeSql('CREATE TABLE IF NOT EXISTS storage (id NVARCHAR(40) PRIMARY KEY, body NVARCHAR(255))');
transaction.executeSql('DELETE FROM storage where id=?', [key]);
}
);
};
this.clear = function() {
storage = {};
this.length = 0;
this.db.transaction(
function (transaction) {
transaction.executeSql('CREATE TABLE IF NOT EXISTS storage (id NVARCHAR(40) PRIMARY KEY, body NVARCHAR(255))');
transaction.executeSql('DELETE FROM storage', []);
}
);
};
this.key = function(index) {
var i = 0;
for (var j in storage) {
if (i==index) {
return j;
} else {
i++;
}
}
return null;
};
} catch(e) {
alert("Database error "+e+".");
return;
}
};
PhoneGap.addConstructor(function() {
var setupDroidDB = function() {
navigator.openDatabase = window.openDatabase = DroidDB_openDatabase;
window.droiddb = new DroidDB();
}
if (typeof window.openDatabase === "undefined") {
setupDroidDB();
} else {
window.openDatabase_orig = window.openDatabase;
window.openDatabase = function(name, version, desc, size){
// Some versions of Android will throw a SECURITY_ERR so we need
// to catch the exception and seutp our own DB handling.
var db = null;
try {
db = window.openDatabase_orig(name, version, desc, size);
}
catch (ex) {
db = null;
}
if (db == null) {
setupDroidDB();
return DroidDB_openDatabase(name, version, desc, size);
}
else {
return db;
}
}
}
if (typeof window.localStorage === "undefined") {
navigator.localStorage = window.localStorage = new CupcakeLocalStorage();
PhoneGap.waitForInitialization("cupcakeStorage");
}
});
}
| JavaScript |
//jQuery.noConflict();
;(function($){
var currentGroup = null;
var currentFile = null; //not used now
var baseLoc = "http://picfoo.wordjp.com/"
var baseURL = baseLoc + 'php_service/noriGetGroup.php?direction=';
var objSlider;
var isIPhone;
var isIPad;
jQuery(document).ready(entryMain);
function entryMain()
{
var galleryOption = null;
//
var deviceAgent = navigator.userAgent.toLowerCase();
isIPhone = deviceAgent.match(/(iphone|ipod)/);
isIPad = deviceAgent.match(/(ipad)/);
galleryOption= {menu : "simple", fade : true, autohide : false, clickable : false, swipable : true, caption : true, clickhide: true, fullscreen: true};
//jQuery(".jbgallery").css({width: 320, height:460});
objSlider = jQuery(".jbgallery").jbgallery(galleryOption, true);
objSlider.setNextGroup(nextGroup);
objSlider.setPrevGroup(prevGroup);
objSlider.setPicChange(picChanged);
getCurrentInfo();
if(currentGroup == null)
{
nextGroup();
}
else
{
historyGroup();
}
}
function picChanged(index)
{
currentFile = index;
saveCurrentInfo();
}
function nextGroup()
{
var requestURL = baseURL + "next";
if(currentGroup != null)
{
requestURL = requestURL + '¤tgroup=' + currentGroup;
}
$.getJSON(requestURL,
function(data) {
populateDataToGallery(data);
objSlider.go(1);
});
}
function prevGroup(showLast)
{
var requestURL = baseURL + "previous";
if(currentGroup != null)
{
requestURL = requestURL + '¤tgroup=' + currentGroup;
}
$.getJSON(requestURL,
function(data) {
populateDataToGallery(data);
if(showLast){
objSlider.go(data.groupFiles.length);
}
else{
objSlider.go(1);
}
});
}
function historyGroup()
{
var requestURL = baseURL + "current";
if(currentGroup != null)
{
requestURL = requestURL + '¤tgroup=' + currentGroup;
}
$.getJSON(requestURL,
function(data) {
populateDataToGallery(data);
objSlider.go(currentFile);
});
}
function populateDataToGallery(data)
{
var index;
objSlider.empty();
for(index = 0; index < data.groupFiles.length; index++)
{
var imageObj = {
href : baseLoc + "pic/" + data.groupName + "/" + data.groupFiles[index],
title : data.groupTitle,
caption: data.fileDescriptions[index]
};
objSlider.push(imageObj);
}
currentGroup = data.groupName;
saveCurrentInfo();
}
function getCurrentInfo()
{
currentGroup = $.cookie('current_group');
currentFile = parseInt($.cookie('current_file'));
}
function saveCurrentInfo()
{
$.cookie('current_group', currentGroup,{ expires: 14 });
$.cookie('current_file', currentFile.toString(),{ expires: 14 });
}
})(jQuery);
| JavaScript |
/***
*
* jbgallery picasa adapter
*
* $Date: 2010-12-19 19:03:40 +0100 (dom, 19 dic 2010) $
* $Revision: 33 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/adapters/jbpicasa-3.0.js $
* $Id: jbpicasa-3.0.js 33 2010-12-19 18:03:40Z massimiliano.balestrieri $
*
* @requires jQuery v1.3.2
* @requires jbgallery
*
* Copyright (c) 2009 Massimiliano Balestrieri
* Examples and docs at: http://maxb.net/blog/
* Licensed GPL licenses:
* http://www.gnu.org/licenses/gpl.html
*
*/
;(function($){
jBGallery.Adapters.Picasa = function(options){
return this.each(function(){
var that = this;
var _jbg;
var _n_albums = options.albums;
var _account = options.account;
var _filter_album = options.filter;
var _url = 'http://picasaweb.google.com/data/feed/base/user/'+ _account +'?kind=album&alt=rss&hl=en_US&access=public&max-results=' + _n_albums;
$.getJSON(
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D'"+
encodeURIComponent(_url)+
"'&format=json&callback=?",
function(data){
var _html = '';
var _x = 0;
var _init = false;
var _tot = data.query.results.item.length;
$.each(data.query.results.item, function(i,d){
var _u = d.content || d.guid.content;
var _u2 = _u.replace("entry", "feed") + '&kind=photo';
var _idalbum = d.link;
var _last = _tot == (i + 1);
if (_filter_album) {
if (_idalbum.indexOf(_filter_album) === -1)
return;
else
_last = true;
}
$.getJSON(
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D'"+
encodeURIComponent(_u2)+
"'&format=json&callback=?",
function(data){
var _images = [];
$.each(data.query.results.item, function(i,d){
//appendo la PRIMA IMMAGINE
if (!_init && i == 0) {
$(that).append("<ul />");
_init = true;
//test : d.enclosure.url | $(d.description).find("img").attr("src") | (_x + 1)
var _img = '<img src="' + $(d.description).find("img").attr("src") + '" alt="" />';
_html += '<li><a href="' + d.enclosure.url + '" title="">' + _img + '</a><div class="caption">' + d.description + '</div></li>';//i scorretto
$('ul', that).append(_html);
_jbg = $(that).jbgallery(options, true);
_x++;
}else{
//PUSH
_images.push({
href: d.enclosure.url,
caption: d.description,
thumb : $(d.description).find("img").attr("src")
});
if ((i + 1) == data.query.results.item.length) {
_jbg.push(_images);//_jbg.push(_images);
}
}
});
});
});
}
);
});
};
$.fn.jbpicasa = jBGallery.Adapters.Picasa;
})(jQuery); | JavaScript |
/***
*
* jbgallery picasa adapter
*
* $Date: 2010-12-17 19:18:51 +0100 (ven, 17 dic 2010) $
* $Revision: 23 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/adapters/jbpicasa.js $
* $Id: jbpicasa.js 23 2010-12-17 18:18:51Z massimiliano.balestrieri $
*
* @requires jQuery v1.3.2
* @requires jbgallery
*
* Copyright (c) 2009 Massimiliano Balestrieri
* Examples and docs at: http://maxb.net/blog/
* Licensed GPL licenses:
* http://www.gnu.org/licenses/gpl.html
*
*/
;(function($){
jBGallery.Adapters.Picasa = function(options){
return this.each(function(){
var that = this;
var _n_albums = options.albums;
var _account = options.account;
var _filter_album = options.filter;
var _url = 'http://picasaweb.google.com/data/feed/base/user/'+ _account +'?kind=album&alt=rss&hl=en_US&access=public&max-results=' + _n_albums;
$.getJSON(
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D'"+
encodeURIComponent(_url)+
"'&format=json&callback=?",
function(data){
var _html = '';
var _x = 0;
var _init = false;
var _tot = data.query.results.item.length;
$.each(data.query.results.item, function(i,d){
var _u = d.content || d.guid.content;
var _u2 = _u.replace("entry", "feed") + '&kind=photo';
var _idalbum = d.link;
var _last = _tot == (i + 1);
if (_filter_album) {
if (_idalbum.indexOf(_filter_album) === -1)
return;
else
_last = true;
}
$.getJSON(
"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D'"+
encodeURIComponent(_u2)+
"'&format=json&callback=?",
function(data){
$.each(data.query.results.item, function(i,d){
if(!_init && i == 0)
$(that).append("<ul />");
_init = true;
//test : d.enclosure.url | $(d.description).find("img").attr("src") | (_x + 1)
var _img = '<img src="'+$(d.description).find("img").attr("src")+'" alt="" />';
_html += '<li><a href="'+ d.enclosure.url +'" title="">'+ _img +'</a><div class="caption">'+d.description+'</div></li>';//i scorretto
_x++;
});
if (_last) {
$('ul', that).append(_html);
$(that).jbgallery(options).find("img").one("load", function(){
$(that).fadeIn();
});
}
});
});
}
);
});
};
$.fn.jbpicasa = jBGallery.Adapters.Picasa;
})(jQuery); | JavaScript |
/*jslint browser: true */ /*global jQuery: true */
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
// TODO JsDoc
/**
* Create a cookie with the given key and value and other optional parameters.
*
* @example $.cookie('the_cookie', 'the_value');
* @desc Set the value of a cookie.
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
* @desc Create a cookie with all available options.
* @example $.cookie('the_cookie', 'the_value');
* @desc Create a session cookie.
* @example $.cookie('the_cookie', null);
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
* used when the cookie was set.
*
* @param String key The key of the cookie.
* @param String value The value of the cookie.
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
* If set to null or omitted, the cookie will be a session cookie and will not be retained
* when the the browser exits.
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
* require a secure protocol (like HTTPS).
* @type undefined
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
*/
/**
* Get the value of a cookie with the given key.
*
* @example $.cookie('the_cookie');
* @desc Get the value of a cookie.
*
* @param String key The key of the cookie.
* @return The value of the cookie.
* @type String
*
* @name $.cookie
* @cat Plugins/Cookie
* @author Klaus Hartl/klaus.hartl@stilbuero.de
*/
jQuery.cookie = function (key, value, options) {
// key and value given, set cookie...
if (arguments.length > 1 && (value === null || typeof value !== "object")) {
options = jQuery.extend({}, options);
if (value === null) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
return (document.cookie = [
encodeURIComponent(key), '=',
options.raw ? String(value) : encodeURIComponent(String(value)),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
| JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
*
*/
/**
* Sets the type of metadata to use. Metadata is encoded in JSON, and each property
* in the JSON will become a property of the element itself.
*
* There are four supported types of metadata storage:
*
* attr: Inside an attribute. The name parameter indicates *which* attribute.
*
* class: Inside the class attribute, wrapped in curly braces: { }
*
* elem: Inside a child element (e.g. a script tag). The
* name parameter indicates *which* element.
* html5: Values are stored in data-* attributes.
*
* The metadata for an element is loaded the first time the element is accessed via jQuery.
*
* As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
* matched by expr, then redefine the metadata type and run another $(expr) for other elements.
*
* @name $.metadata.setType
*
* @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("class")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from the class attribute
*
* @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
* @before $.metadata.setType("attr", "data")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a "data" attribute
*
* @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
* @before $.metadata.setType("elem", "script")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a nested script element
*
* @example <p id="one" class="some_class" data-item_id="1" data-item_label="Label">This is a p</p>
* @before $.metadata.setType("html5")
* @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
* @desc Reads metadata from a series of data-* attributes
*
* @param String type The encoding type
* @param String name The name of the attribute to be used to get metadata (optional)
* @cat Plugins/Metadata
* @descr Sets the type of encoding to be used when loading metadata for the first time
* @type undefined
* @see metadata()
*/
(function($) {
$.extend({
metadata : {
defaults : {
type: 'class',
name: 'metadata',
cre: /({.*})/,
single: 'metadata'
},
setType: function( type, name ){
this.defaults.type = type;
this.defaults.name = name;
},
get: function( elem, opts ){
var settings = $.extend({},this.defaults,opts);
// check for empty string in single property
if ( !settings.single.length ) settings.single = 'metadata';
var data = $.data(elem, settings.single);
// returned cached data if it already exists
if ( data ) return data;
data = "{}";
var getData = function(data) {
if(typeof data != "string") return data;
if( data.indexOf('{') < 0 ) {
data = eval("(" + data + ")");
}
}
var getObject = function(data) {
if(typeof data != "string") return data;
data = eval("(" + data + ")");
return data;
}
if ( settings.type == "html5" ) {
var object = {};
$( elem.attributes ).each(function() {
var name = this.nodeName;
if(name.match(/^data-/)) name = name.replace(/^data-/, '');
else return true;
object[name] = getObject(this.nodeValue);
});
} else {
if ( settings.type == "class" ) {
var m = settings.cre.exec( elem.className );
if ( m )
data = m[1];
} else if ( settings.type == "elem" ) {
if( !elem.getElementsByTagName ) return;
var e = elem.getElementsByTagName(settings.name);
if ( e.length )
data = $.trim(e[0].innerHTML);
} else if ( elem.getAttribute != undefined ) {
var attr = elem.getAttribute( settings.name );
if ( attr )
data = attr;
}
object = getObject(data.indexOf("{") < 0 ? "{" + data + "}" : data);
}
$.data( elem, settings.single, object );
return object;
}
}
});
/**
* Returns the metadata object for the first member of the jQuery object.
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the defaults
* @type jQuery
* @cat Plugins/Metadata
*/
$.fn.metadata = function( opts ){
return $.metadata.get( this[0], opts );
};
})(jQuery); | JavaScript |
/*
* jSwipe - jQuery Plugin
* http://plugins.jquery.com/project/swipe
* http://www.ryanscherf.com/demos/swipe/
*
* Copyright (c) 2009 Ryan Scherf (www.ryanscherf.com)
* Licensed under the MIT license
*
* $Date: 2009-07-14 (Tue, 14 Jul 2009) $
* $version: 0.1.2
*
* This jQuery plugin will only run on devices running Mobile Safari
* on iPhone or iPod Touch devices running iPhone OS 2.0 or later.
* http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW5
*/
(function($) {
$.fn.swipe = function(options) {
// Default thresholds & swipe functions
var defaults = {
threshold: {
x: 30,
y: 10
},
swipeLeft: function() { alert('swiped left') },
swipeRight: function() { alert('swiped right') }
};
var options = $.extend(defaults, options);
if (!this) return false;
return this.each(function() {
var me = $(this)
// Private variables for each element
var originalCoord = { x: 0, y: 0 }
var finalCoord = { x: 0, y: 0 }
// Screen touched, store the original coordinate
function touchStart(event) {
console.log('Starting swipe gesture1...');
originalCoord.x = event.targetTouches[0].pageX;
originalCoord.y = event.targetTouches[0].pageY;
}
// Store coordinates as finger is swiping
function touchMove(event) {
event.preventDefault();
finalCoord.x = event.targetTouches[0].pageX // Updated X,Y coordinates
finalCoord.y = event.targetTouches[0].pageY
}
// Done Swiping
// Swipe should only be on X axis, ignore if swipe on Y axis
// Calculate if the swipe was left or right
function touchEnd(event) {
var changeY = originalCoord.y - finalCoord.y
console.log('Ending swipe gesture', originalCoord.y, ' ',originalCoord.x, ' ',finalCoord.y,' ',finalCoord.x,' ');
console.log(originalCoord.x);
console.log(originalCoord.y);
console.log(finalCoord.x);
console.log(finalCoord.y);
if(changeY < defaults.threshold.y && changeY > (defaults.threshold.y*-1)) {
changeX = originalCoord.x - finalCoord.x
if(changeX > defaults.threshold.x) {
defaults.swipeLeft();
}
if(changeX < (defaults.threshold.x*-1)) {
defaults.swipeRight();
}
}
}
// Swipe was started
function touchStart(event) {
console.log('Starting swipe gesture2...');
originalCoord.x = event.targetTouches[0].pageX;
originalCoord.y = event.targetTouches[0].pageY;
finalCoord.x = originalCoord.x;
finalCoord.y = originalCoord.y;
}
// Swipe was canceled
function touchCancel(event) {
console.log('Canceling swipe gesture...');
}
// Add gestures to all swipable areas
this.addEventListener("touchstart", touchStart, false);
this.addEventListener("touchmove", touchMove, false);
this.addEventListener("touchend", touchEnd, false);
this.addEventListener("touchcancel", touchCancel, false);
});
};
})(jQuery); | JavaScript |
/***
*
* jbgallery 3.0 BETA
*
* $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
* $Revision: 52 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.js $
* $Id: jbgallery-3.0.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
*
* CHANGELOG:
* - 21/12/2010 : "image fix" refactory + bugfix window resize style centered
* - 20/12/2010 : removed javascript-screen css hack. ie9 don't support change of link[media] attr.
* @requires jQuery v1.4.4
*
* Copyright (c) 2010 Massimiliano Balestrieri
* Examples and docs at: http://maxb.net/blog/
* Licensed GPL licenses:
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Carlo Denaro, Simone Parato, Aaron Hutten, Alain Bourgeoa, Steffen Wenzel, Alfredo
* Inspired by http://www.ringvemedia.com/introduction
*/
//jQuery.noConflict();
;(function($){
jBGallery = {};
jBGallery.Settings = function(){
return {
//option : default value //see docs/demo for usage - PLEASE FIX MY ENGLISH IF YOU CAN & SEND ME :)
style : "centered", //"centered"|"zoom"|"original" - image style
menu : "slider", //false|"numbers"|"simple"|"slider" - menu type
shortcuts: [37, 39], //[prev,next] - keyboard code shortcuts
slideshow: false, //true|false - autostart slideshow
fade : true, //true|false - disable all fade effects
popup : false, //true|false - modal box & traditional popup hack to display multiple gallery (3.0 : fullscreen:false)
randomize: 0, //0|1|2 - randomize first image (1) or randomize "slideshow" (2) - blackout: http://www.grayhats.org
caption : true, //true|false - show/disable internal caption system
//GU
clickhide : false, //true|false - click to hide and show menu & caption
autohide : false, //true|false - auto hide menu & caption
//GU
swipable : false, //true|false - "image swipe & go"
clickable: false, //true|false - "image click & go"
//GU
current : 1, //number - set initial photo (modal "hack" - see demo. don't use "hash". jbgallery use "location.hash" only in popup mode)
webkit : (navigator.userAgent.toLowerCase().search(/webkit/) != -1), //boolean - used for specific browser hack. if you want, you can force disable this flag & try to find crossbrowser solution
ie6 : (/MSIE 6/i.test(navigator.userAgent)), //boolean - IDEM
ie7 : (/MSIE 7/i.test(navigator.userAgent)), //boolean - IDEM
labels : { //labels of internal menu
play : "play",
next : " > ",
prev : " < ",
stop : "stop",
close: "close",
info : "info",
//GU
nextGroup : " >> ",
prevGroup : " << "
},
timers : { //timers
//GU
//fade : 400, //fade duration
fade : 200, //fade duration
//fade : 100, //fade duration
interval: 7000, //slideshow interval
autohide: 7000 //autohide timeout
},
delays: { //delays (timers) to improve usability and reduce events
mousemove: 200, //used by autohide. cancel autohide timeout every XXXms.
resize : 500, //used by ie6 to reduce events handled by window.resize
mouseover: 800 //used by tooltip. show tooltip only if the mouse STAY over thumb for XXXms
},
close : function(){}, //callback handled by menu's button close. see demo. example : close : function(){window.close()}
before : function(){}, //callback handled BEFORE image gallery loaded
after : function(ev){}, //callback(ev) handled AFTER image gallery loaded. receive the native load event.
load : function(ev){}, //callback(ev) handled AFTER native image load event. receive the native load event.
ready : function(el){}, //callback(el) handled AFTER jbgallery render. receive the HTML element.
//WHAT'S NEW - 3.0
fullscreen: true, //true|false : the most important feature of jbgallery 3.0. now jbgallery can "stay in a box" and have multiple istance in one page.
push : function(o){}, //callback handled by push public method (JBGALLERY API). receive the object/string/array of objects/array of strings passed from external. useful for external menu system
unshift : function(o){}, //callback handled by unshift public method (JBGALLERY API). receive the object/string/array of objects/array of strings passed from external.
shift : function(){}, //callback handled by shift public method
pop : function(){}, //callback handled by pop public method
empty : function(){} //callback handled by empty public method
}
};
jBGallery.Init = function(options, data){
function _init(el){
if($(el).data("jbgallery"))
return;
var _options = new jBGallery.Options(options, el);
var _data = new jBGallery.Data(el, options);
//TEMP? if (_data.length == 0) return;
$(el).data("jbgallery", new jBGallery.Core(el, _data, _options));
return $(el).data("jbgallery");
}
if(typeof options == "string"){
if($(this).data("jbgallery"))
return $(this).eq(0).data("jbgallery")[options](data);
}else if(typeof data == "boolean"){//return api. break chinability
return _init($(this).get(0));
}else{
return this.each(function(nr){
_init(this);
});
}
};
jBGallery.Data = function(el, data, options){
var _items = [];
function _add(o, method){
if ($.isArray(o)){
$.each(o, function(i,v){
o[i] = _extend(v);
_items[method](o[i]);
});
} else {
o = _extend(o);
_items[method](o);
}
return o;
}
function _extend(o){
var _o;
if (typeof o == "string") {
_o = _extend({href : o});
} else {
_o = $.extend({
href : '',
title: '',
caption : '',
caption_css : '',
thumb : '',
rel : ''
},o);
}
if(_o.thumb.length == 0 || !_o.thumb)
_o.thumb = _o.href;
return _o;
}
function _init(){
_items = $.map($(el).find("ul > li"), function(li, i){
var _a = $("a", li).get(0);
return _add({
href : _a.href,
title : _a.title,
rel : _a.rel,
caption : $("div.caption", li).html(),
caption_css : $("div.caption", li).clone().removeClass("caption").attr("class"),
thumb : $("img", li).attr("src")
},'push');
});
}
_init();
return {
get : function(i){
if(_items[i])
return _items[i];
else
return _extend('');//mock object - provo ad inizializzare l'engine anche senza elementi
},
items : function(){
return _items;
},
push : function(o){
return _add(o, 'push');
},
unshift : function(o){
return _add(o, 'unshift');
},
shift : function(){
_items.shift();
},
pop : function(){
_items.pop();
},
empty : function(){
_items = [];
},
length : function(){
return _items.length;
}
}
};
jBGallery.Core = function(el, data, options){
var that = el;
//PRIVATE METHODS
function _unload(){
//$("#jbgallery-css").attr("media","javascript-screen");
$("html, body").removeClass("jbg").removeClass("ie6");
_engine.target.unbind();
_engine.target.remove();
$(that).removeData("jbgallery");
$(that).unbind();
$(".jbg-wrap",that).remove();
//elements - loading, menu, slider, caption
var _elements = ".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu";//, #jbg-caption-opacity
$(_elements, el).unbind().find("a").unbind();
$(_elements, el).remove();
$(document)
.unbind('keydown.jbgallery')
.unbind("mousemove.jbgallery")
.unbind("click.jbgallery");
$(window)
.unbind('resize.jbgallery');
}
//MAIN
new jBGallery.Interface(that, data, options);
var _engine = new jBGallery.Engine(that, data, options);
var _keys = new jBGallery.Keys(_engine, options.shortcuts);
_engine.register(_keys);
new jBGallery.OnLoadImage(el, _engine, options);
var _caption = options.caption ? new jBGallery.Caption(that, data, _engine, options) : {};
if (options.menu) {
var _menu;
if (options.menu == 'slider') {
_menu = new jBGallery.MenuSlider(that, data, _engine, _caption, options);
} else {
_menu = new jBGallery.MenuSimple(that, data, _engine, _caption, options);
}
_engine.register(_menu);
}
//events
$(that).bind("destroy", _unload);
$(window).bind("unload", _unload);
$(that).fadeIn(options.timers.fade, function(){
options.ready(that);//menuslider - preload images...
});
// PUCLIC API:
return {
current: _engine.current,
play : _engine.play,
stop : _engine.stop,
go : _engine.go,
right : _engine.right,
left : _engine.left,
destroy: _unload,
//3.0
length : data.length,
push : _engine.push,
shift : _engine.shift,
pop : _engine.pop,
unshift: _engine.unshift,
empty : _engine.empty,
//GU
setNextGroup : _engine.setNextGroup,
setPrevGroup : _engine.setPrevGroup,
setPicChange : _engine.setPicChange,
};
};
jBGallery.Loading = function(){
document.getElementsByTagName('html')[0].className = "loading";
};
jBGallery.Options = function(options, el){
//OPTIONS
var _metadata = {};
if($.metadata)
_metadata = $(el).metadata();
var _settings = new jBGallery.Settings();
var _options = $.extend(true, _settings,_metadata,options);
if(_options.current !== 1)
_options.randomize = 0;
//15/12/2010
//- traditional popup use location.hash
//- "modal" lightbox use the href.hash of handler (see demo)
if(_options.popup && _options.current === 1){
var _hash = parseInt(location.hash.replace("#",""),10);
if(_hash)
_options.current = _hash;
}
_options.current--;
if(_options.current < 0)
_options.current = 0;
//fade
if(!_options.fade)
_options.timers.fade = 0;
//position absolute più sicuro (...ma bug su opera)
if(_options.popup && _options.style == 'centered')
_options.style = 'centered modal';
return _options;
};
jBGallery.EventTimer = function(el, arr, ms, callback, cancel, debug){
$.each(arr, function(i,v){
var _timer = null;
$(el).bind(v, function(ev) {
if (_timer) {
clearTimeout(_timer);
}
_timer = setTimeout(function(){
callback(ev);
}, ms);
});
if(cancel){
$(el).bind(cancel, function(ev) {
if(_timer)clearTimeout(_timer);
});
}
});
};
//GU
jBGallery.ClickToggle = function(menu, options){
function _toggle(){
$(menu).each(function(){
if($(this).css("visibility") !== "hidden"){
if($(this).css("display") === "none"){
//$(this)["slideDown"](options.timers.fade);
$(this).slideDown(options.timers.fade);
}
else{
$(this).slideUp(options.timers.fade);
}
}
});
}
$(document)
.bind("click.jbgallery", _toggle);
};
jBGallery.AutoToggle = function(menu, options, effects){
function _on(){
_set_interval();
_toggle_menu(effects[0])
}
function _off(){
_toggle_menu(effects[1]);
}
function _toggle_menu(method){
$(menu).each(function(){
if($(this).css("visibility") !== "hidden"){
$(this)[method](options.timers.fade);
//above same as: $(this).method(options.timers.fade);
}
});
}
function _set_interval(){
if(_interval){
clearInterval(_interval);
_interval = false;
}
_interval = setInterval(_off, options.timers.autohide);
}
var _interval = false;
var _timer = false;
if(!effects)
effects = ["slideDown","slideUp"];
$(document)
.bind("click.jbgallery", _on)
.bind("mousemove.jbgallery", function(){
if(_timer){
clearTimeout(_timer);
_timer = false;
}
_timer = setTimeout(_on, options.delays.mousemove);
});
_set_interval();
};
jBGallery.Randomizer = function(current, length){
// RANDOM LOAD - blackout: http://www.grayhats.org
current = Math.ceil(length*Math.random());
if(current > length || current == 0)
current = 1;
return current;
};
jBGallery.Interface = function(el, data, options){
if(options.randomize > 0)
options.current = jBGallery.Randomizer(options.current, data.length());
var _css = options.style;
if (options.webkit)
_css = '';
var _image = '<img style="visibility:hidden" class="' + _css + ' jbgallery-target" alt="' + data.get(options.current).title + '" src="' + data.get(options.current).href + '" />';
var _html = '<div class="jbg-wrap ' + options.style + '"><table cellpadding="0" cellspacing="0"><tr><td>' + _image + '</td></tr></table></div>';
var _caption = '<div class="jbg-caption" style="display:none"></div>';
var _loading = '<div class="jbg-loading"><span class="jbg-loading"></span></div>';
//hide
$(el).hide().find("ul").hide();
//$("#jbgallery-css").attr("media","screen");
if (options.fullscreen) {
$("html, body").addClass("jbg-body");
} else {
$(el).addClass("jbox");
}
if(options.ie6)
$("html").addClass("ie6");
$(el)
.prepend(_html)
.prepend(_caption)
.prepend(_loading);//jbox mod
//first
var _img = new Image();
_img.onload = function(){
$('.jbgallery-target',el).hide().css("visibility", "").fadeIn(options.timers.fade);
};
_img.src = data.get(options.current).href;
};
jBGallery.Engine = function(el, data, options){
//PRIVATE VARS
var _current = options.current ? options.current + 1 : 1;//start 1 not 0
var _slideshow = options.slideshow;//onLoadImage comanda
var _interval = options.timers.interval;
var _timer = false;
var _observers = [];
var _refresh = false;
//var _timestamp = 0;
//var _timergo = 1;
var _target = $('.jbgallery-target',el);
var _loading = $(".jbg-loading", el);
//GU
var _nextGroupCallback = null;
var _prevGroupCallback = null;
var _picChangeCallback = null;
//PRIVATE METHODS
function _preload(){
_loading.css("opacity",0.5).show();
}
function _load(nr){
options.before();
_preload();
_current = nr;
//IE7
var _i = data.get(_current - 1);
var _pl = new Image();
_pl.onload = function(){
_target.fadeOut(options.timers.fade, function(){
//http://code.google.com/p/chromium/issues/detail?id=7731
if(this.src == _i.href)
_i.href += '#' + new Date().getTime();
$(this).hide().attr({//.hide()
"src" : _i.href ,
"alt" : _i.title
});
});
};
_pl.src = _i.href;
//GU , index start from 1
_picChangeCallback(_current);
}
//GU, try to cache next n (n==1 for iphone) pictures in the group
function _cacheit(nr){
var i = 0;
for (i=0;i<1;i++){
if(nr + i > data.length())
return;
var _i = data.get(nr + i - 1);
var _pl = new Image();
_pl.onload = function(){
};
_pl.src = _i.href;
}
}
//GU
function _cacheNextPic(){
_cacheit(_current + 1);
}
function _go(nr, ev){
if(nr > data.length() || (nr === _current && !_refresh))
return;
if (_slideshow) {
if(ev){
_load(nr);
}else{
//clearTimeout(_timer); //BUG SLIDESHOW : 18/12/2010
_load(nr);//no event -> next, prev
}
} else {
_load(nr);
}
_refresh = false;
}
function _right(ev){
if(options.randomize == 2)
_current = jBGallery.Randomizer(_current, data.length());
if(_current < data.length()){
var _goto = _current + 1;
_go(_goto, ev);
}else{
//GU: Here move to the next group
_nextGroup();
}
}
function _left(){
if(options.randomize == 2)
_current = jBGallery.Randomizer(_current, data.length());
if(_current > 1){
var _goto = _current - 1;
_go(_goto);
}else{
//var _goto = data.length();
_prevGroup(true);
}
}
function _play(){
if(_slideshow)
return;
_slideshow = true;
_right(_interval);//???
}
function _stop(){
_slideshow = false;
clearTimeout(_timer);
}
function _timeout(ev){
clearTimeout(_timer); //BUG SLIDESHOW : 18/12/2010
_timer = setTimeout(function(){
_right(ev);
}, _interval);
}
function _add(m, o){
var _o = data[m](o);
//GU, do not show anything, let the application call go ...
//if I add an empty and update the target
//if(data.length() == 1)
// _go(1);
_notify(m, _o);
options[m](_o);
}
function _push(o){
//after empty
_add('push', o);
}
function _unshift(o){
if(data.length() > 1)
_current++;
_add('unshift',o);
}
function _pop(){
data.pop();
if (_current > data.length() && data.length() > 0) {
_refresh = true;
_go(data.length());
}
_notify('pop');
options.pop();
if (data.length() == 0)
_empty();
}
function _shift(){
data.shift();
if (_current == 1 && data.length() > 0) {
_refresh = true;
_go(1);
} else {
_current--;
}
_notify('shift');
options.shift();
if (data.length() == 0)
_empty();
}
function _empty(){
_refresh = true;
data.empty();
_notify('empty');
options.empty();
}
function _register(o){
_observers.push(o);
}
function _notify(what, o){
$.each(_observers, function(i,v){
_observers[i].notify(what, o);
});
}
//GU
function _setNextGroup(callback)
{
_nextGroupCallback = callback;
}
function _setPrevGroup(callback)
{
_prevGroupCallback = callback;
}
function _setPicChange(callback)
{
_picChangeCallback = callback;
}
function _nextGroup()
{
_nextGroupCallback();
}
function _prevGroup(showLast)
{
_prevGroupCallback(showLast);
}
//MAIN
//API
return {
current : function(){
return _current;
},
slideshow : function(){
return _slideshow;
},
length : function(){
return data.length();
},
play : _play,
stop : _stop,
go : _go,
right : _right,
left : _left,
target : _target,
loading : _loading,
timeout : _timeout,
//3.0
register : _register,
push : _push,
shift : _shift,
pop : _pop,
unshift : _unshift,
empty : _empty,
//GU
nextGroup : _nextGroup,
prevGroup : _prevGroup,
setNextGroup : _setNextGroup,
setPrevGroup : _setPrevGroup,
setPicChange : _setPicChange,
cacheNextPic : _cacheNextPic
};
};
jBGallery.OnLoadImage = function(el, engine, options){
//PRIVATE METHODS
function _onload(ev){
engine.loading.hide();
//GU
engine.target.hide().css("visibility","").fadeIn(options.timers.fade, _onfadein);//opera 11 fadeOut/visibility:hidden
}
//GU
function _onfadein(){
engine.cacheNextPic();
}
function _tofix(){
return options.ie6 ||
options.webkit ||
options.style !== "zoom";
}
//MAIN
if (_tofix()) {
new jBGallery.Fix(el, engine.target, options);
}
//events
if (options.clickable) {
engine.target
.click(function(){
engine.right();
return false;
})
.css({
cursor : "pointer"
});
}
//GU, Swip support
//events
if (options.swipable) {
engine.target
.swipe({
threshold: {x:10, y: 100},
swipeLeft: function() { engine.right(); },
swipeRight: function() { engine.left(); },
})
.css({
cursor : "pointer"
});
}
engine.target
.one("load", function(){
$('html').removeClass("loading");
})
.bind("load",function(ev){
_onload(ev);
options.load(ev);
options.after(ev);
if(engine.slideshow()){
engine.timeout(ev);
}
});
};
jBGallery.Fix = function(el, target, options){
//PRIVATE METHODS:
function _get_dimensions(img){
var _cnt = options.fullscreen ? 'body' : el;
var _bw = $(_cnt).width();
var _bh = $(_cnt).height();
var _pm = _bw / _bh;
var _p = img.width / img.height;
var _ret = {bw : _bw, bh : _bh, pm : _pm, p : _p, h : img.height, w : img.width};
_img = null;
return _ret;
}
function _fix(){
var _img = target.get(0);
var _f = options.style == 'zoom' ? _fix_zoom : _fit_to_box;
if (options.ie6 || options.ie7) {
setTimeout(function(){
_f(_img)
}, 10);
} else {
_f(_img);
}
}
function _fit_to_box(img){
$(img).width("auto").height("auto");
var _dim = _get_dimensions(img), _force;
if (options.style == 'original' && _dim.bw >= _dim.w && _dim.bh >= _dim.h)
return false;
if(_dim.bw < _dim.bh){//portrait
var _ih = _dim.h * _dim.bw / _dim.w;
if(_force = _ih > _dim.bh){
var _iw = _dim.w * _dim.bh / _dim.h;
_width(_iw, _dim, _force);//original 200x2000
}else{
_width(_dim.bw, _dim);
}
}else{//landscape
var _iw = _dim.w * _dim.bh / _dim.h;
if(_force = _iw > _dim.bw){
var _ih = _dim.h * _dim.bw / _dim.w;
_heigth(_ih, _dim, _force);//original 2000x200
}else{
_heigth(_dim.bh, _dim);
}
}
}
function _fix_zoom(img){
$(img).width("auto").height("auto");
var _dim = _get_dimensions(img);
if (_dim.bh > _dim.bw) {//portrait
var _iw = _dim.w * _dim.bh / _dim.h;
if(_iw < _dim.bw){
var _ih = _dim.h * _dim.bw / _dim.w;
_heigth(_ih, _dim, true);//original 2000x200
}else{
_heigth(_dim.bh, _dim, true);
}
} else {//landscape
var _ih = _dim.h * _dim.bw / _dim.w;
if(_ih < _dim.bh){
var _iw = _dim.w * _dim.bh / _dim.h;
_width(_iw, _dim, true);
}else{
_width(_dim.bw, _dim, true);
}
}
}
function _heigth(nh, dim, force){
if(force || options.style == 'centered' || dim.bh < dim.h)
target.height(nh);
}
function _width(nw, dim, force){
if(force || options.style == 'centered' || dim.bw < dim.w)
target.width(nw);
}
//MAIN
//events
if (options.fullscreen)//event only in fullscreen
jBGallery.EventTimer(window, ["resize.jbgallery"], options.delays.resize, _fix);
target.bind('load', function(ev){
_fix();
});
};
jBGallery.Keys = function(engine, shortcuts){
var _init = false;
function _onkeydown(e){
var _keycode = e.which || e.keyCode;
switch(_keycode){
case shortcuts[0]:
engine.left();
return false;
break;
case shortcuts[1]:
engine.right();
return false;
break;
case 37:
case 38:
case 39:
case 40:
return false;
break;
}
}
function _bind(){
if (!_init && engine.length() > 1) {
$(document).bind("keydown.jbgallery", _onkeydown);
_init = true;
}
}
//MAIN
_bind();
//API
return {
notify : function(){
_bind();
}
}
};
jBGallery.Caption = function(el, data, engine, options){
var _length = 0;
var _init = false;
var _caption = $('.jbg-caption',el);
function _wrap_caption(){
var _current = engine.current();
var _html = '', _rel = '';
var _i = data.get(_current - 1);
var _rel = _i.title;
if(_i.rel.length > 0)
_rel = '<a href="' + _i.rel + '" target="_blank">' + _i.title + '</a>';
if(_i.title.length > 0)
_html += '<h3 ALIGN=CENTER>' + _rel + '</h3>';
if(_i.caption)
_html += '<div ALIGN=CENTER>' + _i.caption + '</div>';
_caption.removeAttr("class").addClass(_i.caption_css).addClass('jbg-caption');
return _html + '';
}
function _toggle(){
if(_length > 0)
_caption.toggle();
}
function _build(){
var _html = _wrap_caption();
_length = _html.length;
_caption.html(_html);
if(_length == 0)
_caption.hide();
//GU
var window_width = $(window).width();
var window_height = $(window).height();
_caption.css('width', window_width);
}
function _caption_selection(){
return _caption;
}
_build();
if(_length > 0)//first
_caption.fadeIn(options.timers.fade);
if(options.autohide){
jBGallery.AutoToggle(_caption, options);
}
engine.target.bind("load", function(){
_build();
});
return {
toggle : _toggle,
caption_selection : _caption_selection
};
};
jBGallery.MenuSimple = function(el, data, engine, caption, options){
var that = el;
var _init = false;
var _menu, _containers;
var _h_play = _button('jbg-play', options.labels.play, play).toggle(!options.slideshow);
var _h_stop = _button('jbg-stop', options.labels.stop, stop).toggle(options.slideshow);
var _length = engine.length();
//var _cnt = el; // options.fullscreen ? 'body' : el;//jbox
//PRIVATE METHODS
function _update_classes(ev){
var _nr = engine.current();
_menu.find("a.selected").removeClass("selected");
_menu.find("a:eq("+ _nr +")").addClass("visited").addClass("selected");
}
function _button(css, label, callback){
var _el = $('<a href="#" class="'+css+'">'+label+'</a>').click(function(){
callback();
return false;
});
return $("<li></li>").append(_el);
}
function _numbers(){
var _html = '';
for(var _x = 1; _x <= engine.length(); _x++)
_html += '<li class="jbg-n"><a href="#">'+_x+'</a></li>';
return _html;
}
function _delegation(ev){
var _el = ev.target || ev.srcElement;
if(_el.tagName.toString().toLowerCase() === 'a'){
var _num = parseInt($(_el).text());
engine.go(_num);
}
return false;
}
function play(){
engine.play();
_h_play.hide();
_h_stop.show();
}
function stop(){
engine.stop();
_h_play.show();
_h_stop.hide();
}
function _render(){
if(!_init && engine.length() > 0){
$('<div class="jbg-menu-opacity" /><ul class="jbg-menu" />').hide().appendTo(el);
_menu = $('.jbg-menu', el);
//GU, adding caption to the Simple Menu
_containers = $('.jbg-menu-opacity , .jbg-menu, .jbg-caption', el);
//NUMBERS
if(options.menu == 'numbers'){
_menu
.append(_numbers())
.click(_delegation)
.find("a:eq(" + (engine.current() -1 )+ ")").addClass("selected").addClass("visited");
}
_menu
.append(_button('jbg-next', options.labels.next, engine.right))
.prepend(_button('jbg-prev', options.labels.prev, engine.left));
//.appendTo(el);
_menu
.append(_button('jbg-next-group', options.labels.nextGroup, engine.nextGroup))
.prepend(_button('jbg-prev-group', options.labels.prevGroup, engine.prevGroup));
//SIMPLE
//if(options.menu == 'simple'){
_menu
.append(_h_play)
.append(_h_stop);
//}
if (options.caption) {
//GU
//_menu
//.append(_button('jbg-info', options.labels.info, function(){
// caption.toggle();
// return false;
//}));
}
if(options.popup){
_menu
.append(_button('jbg-close', options.labels.close, function(){
$(that).trigger("destroy");
options.close();
return false;//15/12/2010
}));
}
if(options.menu == 'numbers')
engine.target.bind("load", _update_classes);
if(options.autohide)
jBGallery.AutoToggle($(_containers), options);
//GU
if(options.clickhide){
jBGallery.ClickToggle($(_containers), options);
}
$(_containers).fadeIn(options.timers.fade);
//GU
caption.caption_selection().fadeIn(options.timers.fade);
_init = true;
}
}
//
function _empty(){
if (options.menu == 'numbers')
$('.jbg-n', _menu).remove();
//GU, I do not want to hide the menu
//$(_containers).fadeOut(options.timers.fade);
_length = engine.length();
}
function _add_number(html){
$('.jbg-next', _menu).parent().before(html);
}
function _add(o){
if(!_init)
_render();
if ($.isArray(o)) {
var _h = '';
var _s = engine.length() - o.length;
$.each(o, function(i, v){
_h += '<li class="jbg-n"><a href="#">'+ (_s + i + 1) +'</a></li>';
});
_add_number(_h)
}else{
_add_number('<li class="jbg-n"><a href="#">'+ engine.length() +'</a></li>')
}
_update_classes();
_length = engine.length();
}
function _remove(selector){
$('li.jbg-n:last', _menu).remove();
}
_render();
return {
notify : function(m,o){
if(data.length() > 0 && !$(_containers).eq(0).is(":visible")){
$(_containers).fadeIn(options.timers.fade);
}
if (options.menu == 'numbers') {
switch (m) {
case 'push':
case 'unshift':
_add(o);
break;
case 'pop':
case 'shift':
_remove();
break;
}
}
if (m == 'empty'){
_empty();
}
}
}
};
jBGallery.MenuSlider = function(el, data, engine, caption, options){
var that = el;
var _cnt = el;//options.fullscreen ? 'body' : el;//jbox
//TEMP: bug. el width simetimes in chrome = 0
if(options.fullscreen)
var _bw = $('body').width() - 130;
else
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
var _sep = '<span> | </span>';
var _popup = '<a href="#" class="jbgs-h-close">'+options.labels.close+'</a>';//TEST
var _info = '<a href="#" class="jbgs-h-info">'+options.labels.info+'</a>';
var _tpl_top = '<div class="jbgs-top"><div class="jbgs-top-center"><a href="#" class="jbgs-h jbgs-h-prev"> </a><a href="#" class="jbgs-h jbgs-h-next"> </a></div><div class="jbgs-top-right"></div></div>';//<div id="jbgs-top-opacity"></div>
var _tpl_slider = '<div class="jbgs-opacity"></div><div class="jbgs"><div class="jbgs-wrapper"><div class="jbgs-left"><a href="#" class="jbgs-h-play jbgs-h"> </a><a href="#" class="jbgs-h-pause jbgs-h"> </a><a href="#" class="jbgs-h-left jbgs-h"> </a></div><div class="jbgs-viewer" style="width:'+_w+'px"></div><div class="jbgs-right"><a href="#" class="jbgs-h-right jbgs-h"> </a></div></div></div>';
var _top, _menu,_menutop,_viewer,_an,_play,_pause,_a,_autohide;
var _init = false;
var _length = engine.length();
//PRIVATE METHODS
function _click_and_lock(el , func){
$(el).click(function(){
var _el = this;
if($(_el).is(".lock"))
return;
$(_el).addClass("lock");
func(function(){
$(_el).removeClass("lock")
});
return false;//15/12/2010
});
}
function _get_optimal_position(nr){
nr = nr - 1;
nr = _get_first_of_last(nr);
var _left = -(nr * 60) <= 0 ? -(nr * 60) : 0;
return _left;
}
function _get_first_of_last(nr){
var _tot = engine.length;
var _v = _get_visible();
return _tot - _v < nr ? _tot - _v : nr;
}
function _focus(nr){
$('a',_an)
.find(".focus").removeClass("focus").css("opacity",'0.7').end()
.eq((nr - 1)).find("img").addClass("focus").css("opacity",'1')
.parent().addClass("focus").css("opacity",'1');
}
function _get_class_thumb(t){
return t.height >= t.width ? "jbgs-thumb-portrait" : "jbgs-thumb-landscape";
}
function _get_optimal_left(t){
if(t.height >= t.width){
return 25;
}else{
var _v = t.width*100/t.height;
return (_v - 60)/2;
}
}
function _left(left, callback){
_an.animate({"left" : left}, function(){
if(callback) callback();
});
}
function _move_left(callback){
var _l = _get_left();
var _v = _get_visible();
//_l = (_l + 60) > 0 ? 0 : (_l + 60);
_l = (_l + (60 * _v)) > 0 ? 0 : (_l + (60 * _v));
_left(_l, callback);
}
function _move_right(callback){
var _l = _get_left();
var _tot = engine.length();
var _back = _get_back(_l);
var _v = _get_visible();
var _max = (_tot - _v) * 60;
if(_tot < _v || _v + _back >= _tot)
return callback();//unlock!
_l = ((_back + _v) + _v) > _tot ? -(_max) : (_l - (60 *_v));//todo
_left(_l, callback);
}
function _is_visible(nr){
var _l = _get_left();
var _back = _get_back(_l);
var _v = _get_visible();
var _first = _get_first_visible(_back, _v);
var _last = _get_last_visible(_back, _v);
return (nr >= _first && nr <= _last);
}
function _get_last_visible(back, v){
return back + v;
}
function _get_first_visible(back, v){
return back + 1;
}
function _get_left(){
return parseInt(_an.css("left"),10);
}
function _get_visible(){
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
return _w / 60;
}
function _get_back(left){
return Math.abs(left)/ 60;// - 60 (right)
}
function _mouseout(ev){
$('a',_an).css("margin-top", "");
$('.jbgs-thumb').fadeOut(options.timers.fade, function(){
$(this).remove();
});
}
function _delegation(ev){
var _el = ev.target || ev.srcElement;
if(_el.tagName.toString().toLowerCase() === 'img'){
$(_el).parent().parent().css("margin-top", "3px");//21/06 + .parent()
var _index = $(_a).index($(_el).parent().parent());//21/06 + .parent()
var _thumb = $(_el).get(0);
var _img = new Image();
_img.src = _thumb.src;
var _id = 'jbgs-thumb-'+_index;
var _l = $(_thumb).parents("li:eq(0)").offset().left - $(el).offset().left;//19/12/2010
var _class = _get_class_thumb(_img);
var _m = _l - _get_optimal_left(_img);
if($("#"+_id).length == 0){
var _btn = options.ie6 || options.ie7 ? '' : '<div class="jbgs-thumb-btn"><div class="jbgs-thumb-tip" /></div>';
var _html = '<div style="left:'+_m+'px" class="jbgs-thumb" id="'+_id+'"><img src="'+_thumb.src+'" alt="" class="'+_class+'" />'+_btn+'</div>';
$(_html).hide().appendTo(_cnt).fadeIn(options.timers.fade);
}
}
}
function _resize(){
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
_viewer.width(_w);
}
//RC2 - 21/06/2010 - TODO config width/height
function _get_thumb_position(t){
return t.height >= t.width ? {top : -((t.height*51/t.width)-51)/2} : {left : -((t.width*51/t.height)-51)/2 };
}
function _set_thumb_class(t){
$(t).addClass(_get_class_thumb(t)).css(_get_thumb_position(t));
}
function _thumb_oncomplete(img){
$(img).wrap('<div />');
if (img.complete) {
_set_thumb_class(img);
}else{
$(img).one("load", function(){
_set_thumb_class(img);
});
}
}
function _add_thumb(o, jmethod){
var _t = $('<li><a title="' + o.title + '" href="' + o.href + '"><img src="' + o.thumb + '" alt="" /></a></li>')
[jmethod](_menu);
var _img = $('img', _t).css("opacity",0.7).get(0);
_thumb_oncomplete(_img);
}
//3.0
function _empty(){
_an.empty();
_autohide.hide(options.timers.fade);
_length = engine.length();
}
function _add(o, jmethod, fromrender){
if(!fromrender && !_init)
_render();
if ($.isArray(o)) {
$.each(o, function(i, v){
_add_thumb(v, jmethod)
});
}else{
_add_thumb(o, jmethod)
}
//_autohide.hide();
if(_length == 0 && !fromrender){
_autohide.fadeIn(options.timers.fade);
}
_length = engine.length();
}
function _remove(selector){
$('li'+selector, _menu).remove();
}
function _render(){
if(!_init && engine.length() > 0){
$(_cnt)
.append(_tpl_top + _tpl_slider).addClass("jbgs-cnt");
_menutop = $('.jbgs-top-right', el);
_viewer = $('.jbgs-viewer', el);
_menu = $('<div class="jbgs-inner"></div>').appendTo(_viewer);//???
_an = $('.jbgs-inner', el);
_play = $('.jbgs-h-play', el);
_pause = $('.jbgs-h-pause', el);
_a = $('a',_an);
_autohide = $('.jbgs-opacity, .jbgs, .jbgs-top' ,el);
_add(data.items(),'appendTo',true);
$('.jbgs-opacity, .jbgs-h').css("opacity",0.8);
if(engine.slideshow())
_play.hide();
else
_pause.hide();
//events
if (options.caption) {
$(_info)
.click(function(){
caption.toggle();
return false;
})
.appendTo(_menutop);
}
if (options.popup) {
if($('a',_menutop).length > 0){
$(_sep).appendTo(_menutop);
}
$(_popup)
.click(function(){
$(that).trigger("destroy");
options.close();
return false;//15/12/2010
})
.appendTo(_menutop);
}
_click_and_lock('.jbgs-h-left', _move_left);
_click_and_lock('.jbgs-h-right', _move_right);
_play.click(function(){
$(this).hide();
_pause.show();
engine.play();
return false;//20/12/2010
});
_pause.click(function(){
$(this).hide();
_play.show();
engine.stop();
return false;//20/12/2010
});
$('.jbgs-h-prev',el).click(function(){
engine.left();
return false;//20/12/2010
});
$('.jbgs-h-next',el).click(function(){
engine.right();
return false;//20/12/2010
});
//$(_an).click(function(ev){
// var _el = ev.target || ev.srcElement;
// if (_el.tagName.toString().toLowerCase() === 'img') {
$('a', _an).live("click", function(){
var _i = $('a', _an).index(this) + 1;
engine.go(_i);
return false;
});
jBGallery.EventTimer(_an, ['mouseover'], options.delays.mouseover, _delegation, 'mouseout');//, true
_an.bind("mouseout", _mouseout);//commenta per testare tooltip
engine.target.bind("load", function(){
var _current = engine.current();
if(!_is_visible(_current)){
var _position = _get_optimal_position(_current);
_left(_position);
}
_focus(_current);
});
jBGallery.EventTimer(window, ['resize.jbgallery'], options.delays.resize, _resize);
if(options.autohide){
jBGallery.AutoToggle(_autohide, options);
jBGallery.AutoToggle(".jbgs-thumb", options, ["fadeIn","fadeOut"]);
}
_init = true;
}
}
//MAIN
_render();
return {
notify : function(m,o){
switch(m){
case 'empty':
_empty();
break;
case 'push':
_add(o,'appendTo');
break;
case 'unshift':
_add(o, 'prependTo');
break;
case 'shift':
_remove(':first');
break;
case 'pop':
_remove(':last');
break;
}
}
}
};
jBGallery.Adapters = {};
$.fn.jbgallery = jBGallery.Init;
})(jQuery);
| JavaScript |
/***
*
* jbgallery 3.0 BETA
*
* $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
* $Revision: 52 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.js $
* $Id: jbgallery-3.0.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
*
* CHANGELOG:
* - 21/12/2010 : "image fix" refactory + bugfix window resize style centered
* - 20/12/2010 : removed javascript-screen css hack. ie9 don't support change of link[media] attr.
* @requires jQuery v1.4.4
*
* Copyright (c) 2010 Massimiliano Balestrieri
* Examples and docs at: http://maxb.net/blog/
* Licensed GPL licenses:
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Carlo Denaro, Simone Parato, Aaron Hutten, Alain Bourgeoa, Steffen Wenzel, Alfredo
* Inspired by http://www.ringvemedia.com/introduction
*/
//jQuery.noConflict();
;(function($){
jBGallery = {};
jBGallery.Settings = function(){
return {
//option : default value //see docs/demo for usage - PLEASE FIX MY ENGLISH IF YOU CAN & SEND ME :)
style : "centered", //"centered"|"zoom"|"original" - image style
menu : "slider", //false|"numbers"|"simple"|"slider" - menu type
shortcuts: [37, 39], //[prev,next] - keyboard code shortcuts
slideshow: false, //true|false - autostart slideshow
fade : true, //true|false - disable all fade effects
popup : false, //true|false - modal box & traditional popup hack to display multiple gallery (3.0 : fullscreen:false)
randomize: 0, //0|1|2 - randomize first image (1) or randomize "slideshow" (2) - blackout: http://www.grayhats.org
caption : true, //true|false - show/disable internal caption system
autohide : false, //true|false - auto hide menu & caption
clickable: false, //true|false - "image click & go"
current : 1, //number - set initial photo (modal "hack" - see demo. don't use "hash". jbgallery use "location.hash" only in popup mode)
webkit : (navigator.userAgent.toLowerCase().search(/webkit/) != -1), //boolean - used for specific browser hack. if you want, you can force disable this flag & try to find crossbrowser solution
ie6 : (/MSIE 6/i.test(navigator.userAgent)), //boolean - IDEM
ie7 : (/MSIE 7/i.test(navigator.userAgent)), //boolean - IDEM
labels : { //labels of internal menu
play : "play",
next : "next",
prev : "prev",
stop : "stop",
close: "close",
info : "info"
},
timers : { //timers
fade : 400, //fade duration
interval: 7000, //slideshow interval
autohide: 7000 //autohide timeout
},
delays: { //delays (timers) to improve usability and reduce events
mousemove: 200, //used by autohide. cancel autohide timeout every XXXms.
resize : 500, //used by ie6 to reduce events handled by window.resize
mouseover: 800 //used by tooltip. show tooltip only if the mouse STAY over thumb for XXXms
},
close : function(){}, //callback handled by menu's button close. see demo. example : close : function(){window.close()}
before : function(){}, //callback handled BEFORE image gallery loaded
after : function(ev){}, //callback(ev) handled AFTER image gallery loaded. receive the native load event.
load : function(ev){}, //callback(ev) handled AFTER native image load event. receive the native load event.
ready : function(el){}, //callback(el) handled AFTER jbgallery render. receive the HTML element.
//WHAT'S NEW - 3.0
fullscreen: true, //true|false : the most important feature of jbgallery 3.0. now jbgallery can "stay in a box" and have multiple istance in one page.
push : function(o){}, //callback handled by push public method (JBGALLERY API). receive the object/string/array of objects/array of strings passed from external. useful for external menu system
unshift : function(o){}, //callback handled by unshift public method (JBGALLERY API). receive the object/string/array of objects/array of strings passed from external.
shift : function(){}, //callback handled by shift public method
pop : function(){}, //callback handled by pop public method
empty : function(){} //callback handled by empty public method
}
};
jBGallery.Init = function(options, data){
function _init(el){
if($(el).data("jbgallery"))
return;
var _options = new jBGallery.Options(options, el);
var _data = new jBGallery.Data(el, options);
//TEMP? if (_data.length == 0) return;
$(el).data("jbgallery", new jBGallery.Core(el, _data, _options));
return $(el).data("jbgallery");
}
if(typeof options == "string"){
if($(this).data("jbgallery"))
return $(this).eq(0).data("jbgallery")[options](data);
}else if(typeof data == "boolean"){//return api. break chinability
return _init($(this).get(0));
}else{
return this.each(function(nr){
_init(this);
});
}
};
jBGallery.Data = function(el, data, options){
var _items = [];
function _add(o, method){
if ($.isArray(o)){
$.each(o, function(i,v){
o[i] = _extend(v);
_items[method](o[i]);
});
} else {
o = _extend(o);
_items[method](o);
}
return o;
}
function _extend(o){
var _o;
if (typeof o == "string") {
_o = _extend({href : o});
} else {
_o = $.extend({
href : '',
title: '',
caption : '',
caption_css : '',
thumb : '',
rel : ''
},o);
}
if(_o.thumb.length == 0 || !_o.thumb)
_o.thumb = _o.href;
return _o;
}
function _init(){
_items = $.map($(el).find("ul > li"), function(li, i){
var _a = $("a", li).get(0);
return _add({
href : _a.href,
title : _a.title,
rel : _a.rel,
caption : $("div.caption", li).html(),
caption_css : $("div.caption", li).clone().removeClass("caption").attr("class"),
thumb : $("img", li).attr("src")
},'push');
});
}
_init();
return {
get : function(i){
if(_items[i])
return _items[i];
else
return _extend('');//mock object - provo ad inizializzare l'engine anche senza elementi
},
items : function(){
return _items;
},
push : function(o){
return _add(o, 'push');
},
unshift : function(o){
return _add(o, 'unshift');
},
shift : function(){
_items.shift();
},
pop : function(){
_items.pop();
},
empty : function(){
_items = [];
},
length : function(){
return _items.length;
}
}
};
jBGallery.Core = function(el, data, options){
var that = el;
//PRIVATE METHODS
function _unload(){
//$("#jbgallery-css").attr("media","javascript-screen");
$("html, body").removeClass("jbg").removeClass("ie6");
_engine.target.unbind();
_engine.target.remove();
$(that).removeData("jbgallery");
$(that).unbind();
$(".jbg-wrap",that).remove();
//elements - loading, menu, slider, caption
var _elements = ".jbgs-thumb, .jbgs, .jbgs-opacity, .jbgs-top, .jbgs-top-opacity, .jbg-loading, .jbg-caption, .jbg-menu-opacity, .jbg-menu";//, #jbg-caption-opacity
$(_elements, el).unbind().find("a").unbind();
$(_elements, el).remove();
$(document)
.unbind('keydown.jbgallery')
.unbind("mousemove.jbgallery")
.unbind("click.jbgallery");
$(window)
.unbind('resize.jbgallery');
}
//MAIN
new jBGallery.Interface(that, data, options);
var _engine = new jBGallery.Engine(that, data, options);
var _keys = new jBGallery.Keys(_engine, options.shortcuts);
_engine.register(_keys);
new jBGallery.OnLoadImage(el, _engine, options);
var _caption = options.caption ? new jBGallery.Caption(that, data, _engine, options) : {};
if (options.menu) {
var _menu;
if (options.menu == 'slider') {
_menu = new jBGallery.MenuSlider(that, data, _engine, _caption, options);
} else {
_menu = new jBGallery.MenuSimple(that, data, _engine, _caption, options);
}
_engine.register(_menu);
}
//events
$(that).bind("destroy", _unload);
$(window).bind("unload", _unload);
$(that).fadeIn(options.timers.fade, function(){
options.ready(that);//menuslider - preload images...
});
// PUCLIC API:
return {
current: _engine.current,
play : _engine.play,
stop : _engine.stop,
go : _engine.go,
right : _engine.right,
left : _engine.left,
destroy: _unload,
//3.0
length : data.length,
push : _engine.push,
shift : _engine.shift,
pop : _engine.pop,
unshift: _engine.unshift,
empty : _engine.empty
};
};
jBGallery.Loading = function(){
document.getElementsByTagName('html')[0].className = "loading";
};
jBGallery.Options = function(options, el){
//OPTIONS
var _metadata = {};
if($.metadata)
_metadata = $(el).metadata();
var _settings = new jBGallery.Settings();
var _options = $.extend(true, _settings,_metadata,options);
if(_options.current !== 1)
_options.randomize = 0;
//15/12/2010
//- traditional popup use location.hash
//- "modal" lightbox use the href.hash of handler (see demo)
if(_options.popup && _options.current === 1){
var _hash = parseInt(location.hash.replace("#",""),10);
if(_hash)
_options.current = _hash;
}
_options.current--;
if(_options.current < 0)
_options.current = 0;
//fade
if(!_options.fade)
_options.timers.fade = 0;
//position absolute più sicuro (...ma bug su opera)
if(_options.popup && _options.style == 'centered')
_options.style = 'centered modal';
return _options;
};
jBGallery.EventTimer = function(el, arr, ms, callback, cancel, debug){
$.each(arr, function(i,v){
var _timer = null;
$(el).bind(v, function(ev) {
if (_timer) {
clearTimeout(_timer);
}
_timer = setTimeout(function(){
callback(ev);
}, ms);
});
if(cancel){
$(el).bind(cancel, function(ev) {
if(_timer)clearTimeout(_timer);
});
}
});
};
jBGallery.AutoToggle = function(menu, options, effects){
function _on(){
_set_interval();
_toggle_menu(effects[0])
}
function _off(){
_toggle_menu(effects[1]);
}
function _toggle_menu(method){
$(menu).each(function(){
if($(this).css("visibility") !== "hidden")
$(this)[method](options.timers.fade);
});
}
function _set_interval(){
if(_interval){
clearInterval(_interval);
_interval = false;
}
_interval = setInterval(_off, options.timers.autohide);
}
var _interval = false;
var _timer = false;
if(!effects)
effects = ["slideDown","slideUp"];
$(document)
.bind("click.jbgallery", _on)
.bind("mousemove.jbgallery", function(){
if(_timer){
clearTimeout(_timer);
_timer = false;
}
_timer = setTimeout(_on, options.delays.mousemove);
});
_set_interval();
};
jBGallery.Randomizer = function(current, length){
// RANDOM LOAD - blackout: http://www.grayhats.org
current = Math.ceil(length*Math.random());
if(current > length || current == 0)
current = 1;
return current;
};
jBGallery.Interface = function(el, data, options){
if(options.randomize > 0)
options.current = jBGallery.Randomizer(options.current, data.length());
var _css = options.style;
if (options.webkit)
_css = '';
var _image = '<img style="visibility:hidden" class="' + _css + ' jbgallery-target" alt="' + data.get(options.current).title + '" src="' + data.get(options.current).href + '" />';
var _html = '<div class="jbg-wrap ' + options.style + '"><table cellpadding="0" cellspacing="0"><tr><td>' + _image + '</td></tr></table></div>';
var _caption = '<div class="jbg-caption" style="display:none"></div>';
var _loading = '<div class="jbg-loading"><span class="jbg-loading"></span></div>';
//hide
$(el).hide().find("ul").hide();
//$("#jbgallery-css").attr("media","screen");
if (options.fullscreen) {
$("html, body").addClass("jbg-body");
} else {
$(el).addClass("jbox");
}
if(options.ie6)
$("html").addClass("ie6");
$(el)
.prepend(_html)
.prepend(_caption)
.prepend(_loading);//jbox mod
//first
var _img = new Image();
_img.onload = function(){
$('.jbgallery-target',el).hide().css("visibility", "").fadeIn(options.timers.fade);
};
_img.src = data.get(options.current).href;
};
jBGallery.Engine = function(el, data, options){
//PRIVATE VARS
var _current = options.current ? options.current + 1 : 1;//start 1 not 0
var _slideshow = options.slideshow;//onLoadImage comanda
var _interval = options.timers.interval;
var _timer = false;
var _observers = [];
var _refresh = false;
//var _timestamp = 0;
//var _timergo = 1;
var _target = $('.jbgallery-target',el);
var _loading = $(".jbg-loading", el);
//PRIVATE METHODS
function _preload(){
_loading.css("opacity",0.5).show();
}
function _load(nr){
options.before();
_preload();
_current = nr;
//IE7
var _i = data.get(_current - 1);
var _pl = new Image();
_pl.onload = function(){
_target.fadeOut(options.timers.fade, function(){
//http://code.google.com/p/chromium/issues/detail?id=7731
if(this.src == _i.href)
_i.href += '#' + new Date().getTime();
$(this).hide().attr({//.hide()
"src" : _i.href ,
"alt" : _i.title
});
});
};
_pl.src = _i.href;
}
function _go(nr, ev){
if(nr > data.length() || (nr === _current && !_refresh))
return;
if (_slideshow) {
if(ev){
_load(nr);
}else{
//clearTimeout(_timer); //BUG SLIDESHOW : 18/12/2010
_load(nr);//no event -> next, prev
}
} else {
_load(nr);
}
_refresh = false;
}
function _right(ev){
if(options.randomize == 2)
_current = jBGallery.Randomizer(_current, data.length());
if(_current < data.length()){
var _goto = _current + 1;
}else{
var _goto = 1;
}
_go(_goto, ev);
}
function _left(){
if(options.randomize == 2)
_current = jBGallery.Randomizer(_current, data.length());
if(_current > 1){
var _goto = _current - 1;
}else{
var _goto = data.length();
}
_go(_goto);
}
function _play(){
if(_slideshow)
return;
_slideshow = true;
_right(_interval);//???
}
function _stop(){
_slideshow = false;
clearTimeout(_timer);
}
function _timeout(ev){
clearTimeout(_timer); //BUG SLIDESHOW : 18/12/2010
_timer = setTimeout(function(){
_right(ev);
}, _interval);
}
function _add(m, o){
var _o = data[m](o);
//se ho svuotato e aggiungo un elemento aggiorno il target
if(data.length() == 1)
_go(1);
_notify(m, _o);
options[m](_o);
}
function _push(o){
//after empty
_add('push', o);
}
function _unshift(o){
if(data.length() > 1)
_current++;
_add('unshift',o);
}
function _pop(){
data.pop();
if (_current > data.length() && data.length() > 0) {
_refresh = true;
_go(data.length());
}
_notify('pop');
options.pop();
if (data.length() == 0)
_empty();
}
function _shift(){
data.shift();
if (_current == 1 && data.length() > 0) {
_refresh = true;
_go(1);
} else {
_current--;
}
_notify('shift');
options.shift();
if (data.length() == 0)
_empty();
}
function _empty(){
_refresh = true;
data.empty();
_notify('empty');
options.empty();
}
function _register(o){
_observers.push(o);
}
function _notify(what, o){
$.each(_observers, function(i,v){
_observers[i].notify(what, o);
});
}
//MAIN
//API
return {
current : function(){
return _current;
},
slideshow : function(){
return _slideshow;
},
length : function(){
return data.length();
},
play : _play,
stop : _stop,
go : _go,
right : _right,
left : _left,
target : _target,
loading : _loading,
timeout : _timeout,
//3.0
register : _register,
push : _push,
shift : _shift,
pop : _pop,
unshift : _unshift,
empty : _empty
};
};
jBGallery.OnLoadImage = function(el, engine, options){
//PRIVATE METHODS
function _onload(ev){
engine.loading.hide();
engine.target.hide().css("visibility","").fadeIn(options.timers.fade);//opera 11 fadeOut/visibility:hidden
}
function _tofix(){
return options.ie6 ||
options.webkit ||
options.style !== "zoom";
}
//MAIN
if (_tofix()) {
new jBGallery.Fix(el, engine.target, options);
}
//events
if (options.clickable) {
engine.target
.click(function(){
engine.right();
return false;
})
.css({
cursor : "pointer"
});
}
engine.target
.one("load", function(){
$('html').removeClass("loading");
})
.bind("load",function(ev){
_onload(ev);
options.load(ev);
options.after(ev);
if(engine.slideshow()){
engine.timeout(ev);
}
});
};
jBGallery.Fix = function(el, target, options){
//PRIVATE METHODS:
function _get_dimensions(img){
var _cnt = options.fullscreen ? 'body' : el;
var _bw = $(_cnt).width();
var _bh = $(_cnt).height();
var _pm = _bw / _bh;
var _p = img.width / img.height;
var _ret = {bw : _bw, bh : _bh, pm : _pm, p : _p, h : img.height, w : img.width};
_img = null;
return _ret;
}
function _fix(){
var _img = target.get(0);
var _f = options.style == 'zoom' ? _fix_zoom : _fit_to_box;
if (options.ie6 || options.ie7) {
setTimeout(function(){
_f(_img)
}, 10);
} else {
_f(_img);
}
}
function _fit_to_box(img){
$(img).width("auto").height("auto");
var _dim = _get_dimensions(img), _force;
if (options.style == 'original' && _dim.bw >= _dim.w && _dim.bh >= _dim.h)
return false;
if(_dim.bw < _dim.bh){//portrait
var _ih = _dim.h * _dim.bw / _dim.w;
if(_force = _ih > _dim.bh){
var _iw = _dim.w * _dim.bh / _dim.h;
_width(_iw, _dim, _force);//original 200x2000
}else{
_width(_dim.bw, _dim);
}
}else{//landscape
var _iw = _dim.w * _dim.bh / _dim.h;
if(_force = _iw > _dim.bw){
var _ih = _dim.h * _dim.bw / _dim.w;
_heigth(_ih, _dim, _force);//original 2000x200
}else{
_heigth(_dim.bh, _dim);
}
}
}
function _fix_zoom(img){
$(img).width("auto").height("auto");
var _dim = _get_dimensions(img);
if (_dim.bh > _dim.bw) {//portrait
var _iw = _dim.w * _dim.bh / _dim.h;
if(_iw < _dim.bw){
var _ih = _dim.h * _dim.bw / _dim.w;
_heigth(_ih, _dim, true);//original 2000x200
}else{
_heigth(_dim.bh, _dim, true);
}
} else {//landscape
var _ih = _dim.h * _dim.bw / _dim.w;
if(_ih < _dim.bh){
var _iw = _dim.w * _dim.bh / _dim.h;
_width(_iw, _dim, true);
}else{
_width(_dim.bw, _dim, true);
}
}
}
function _heigth(nh, dim, force){
if(force || options.style == 'centered' || dim.bh < dim.h)
target.height(nh);
}
function _width(nw, dim, force){
if(force || options.style == 'centered' || dim.bw < dim.w)
target.width(nw);
}
//MAIN
//events
if (options.fullscreen)//event only in fullscreen
jBGallery.EventTimer(window, ["resize.jbgallery"], options.delays.resize, _fix);
target.bind('load', function(ev){
_fix();
});
};
jBGallery.Keys = function(engine, shortcuts){
var _init = false;
function _onkeydown(e){
var _keycode = e.which || e.keyCode;
switch(_keycode){
case shortcuts[0]:
engine.left();
return false;
break;
case shortcuts[1]:
engine.right();
return false;
break;
case 37:
case 38:
case 39:
case 40:
return false;
break;
}
}
function _bind(){
if (!_init && engine.length() > 1) {
$(document).bind("keydown.jbgallery", _onkeydown);
_init = true;
}
}
//MAIN
_bind();
//API
return {
notify : function(){
_bind();
}
}
};
jBGallery.Caption = function(el, data, engine, options){
var _length = 0;
var _init = false;
function _wrap_caption(){
var _current = engine.current();
var _html = '', _rel = '';
var _i = data.get(_current - 1);
var _rel = _i.title;
if(_i.rel.length > 0)
_rel = '<a href="' + _i.rel + '" target="_blank">' + _i.title + '</a>';
if(_i.title.length > 0)
_html += '<h3>' + _rel + '</h3>';
if(_i.caption)
_html += '<div>' + _i.caption + '</div>';
_caption.removeAttr("class").addClass(_i.caption_css).addClass('jbg-caption');
return _html + '';
}
function _toggle(){
if(_length > 0)
_caption.toggle();
}
function _build(){
var _html = _wrap_caption();
_length = _html.length;
_caption.html(_html);
if(_length == 0)
_caption.hide();
}
var _caption = $('.jbg-caption',el);
_build();
if(_length > 0)//first
_caption.fadeIn(options.timers.fade);
if(options.autohide){
jBGallery.AutoToggle(_caption, options);
}
engine.target.bind("load", function(){
_build();
});
return {
toggle : _toggle
};
};
jBGallery.MenuSimple = function(el, data, engine, caption, options){
var that = el;
var _init = false;
var _menu, _containers;
var _h_play = _button('jbg-play', options.labels.play, play).toggle(!options.slideshow);
var _h_stop = _button('jbg-stop', options.labels.stop, stop).toggle(options.slideshow);
var _length = engine.length();
//var _cnt = el; // options.fullscreen ? 'body' : el;//jbox
//PRIVATE METHODS
function _update_classes(ev){
var _nr = engine.current();
_menu.find("a.selected").removeClass("selected");
_menu.find("a:eq("+ _nr +")").addClass("visited").addClass("selected");
}
function _button(css, label, callback){
var _el = $('<a href="#" class="'+css+'">'+label+'</a>').click(function(){
callback();
return false;
});
return $("<li></li>").append(_el);
}
function _numbers(){
var _html = '';
for(var _x = 1; _x <= engine.length(); _x++)
_html += '<li class="jbg-n"><a href="#">'+_x+'</a></li>';
return _html;
}
function _delegation(ev){
var _el = ev.target || ev.srcElement;
if(_el.tagName.toString().toLowerCase() === 'a'){
var _num = parseInt($(_el).text());
engine.go(_num);
}
return false;
}
function play(){
engine.play();
_h_play.hide();
_h_stop.show();
}
function stop(){
engine.stop();
_h_play.show();
_h_stop.hide();
}
function _render(){
if(!_init && engine.length() > 0){
$('<div class="jbg-menu-opacity" /><ul class="jbg-menu" />').hide().appendTo(el);
_menu = $('.jbg-menu', el);
_containers = $('.jbg-menu-opacity , .jbg-menu', el);
//NUMBERS
if(options.menu == 'numbers'){
_menu
.append(_numbers())
.click(_delegation)
.find("a:eq(" + (engine.current() -1 )+ ")").addClass("selected").addClass("visited");
}
_menu
.append(_button('jbg-next', options.labels.next, engine.right))
.prepend(_button('jbg-prev', options.labels.prev, engine.left));
//.appendTo(el);
//SIMPLE
//if(options.menu == 'simple'){
_menu
.append(_h_play)
.append(_h_stop);
//}
if (options.caption) {
_menu
.append(_button('jbg-info', options.labels.info, function(){
caption.toggle();
return false;
}));
}
if(options.popup){
_menu
.append(_button('jbg-close', options.labels.close, function(){
$(that).trigger("destroy");
options.close();
return false;//15/12/2010
}));
}
if(options.menu == 'numbers')
engine.target.bind("load", _update_classes);
if(options.autohide)
jBGallery.AutoToggle($(_containers), options);
$(_containers).fadeIn(options.timers.fade);
_init = true;
}
}
//
function _empty(){
if (options.menu == 'numbers')
$('.jbg-n', _menu).remove();
$(_containers).fadeOut(options.timers.fade);
_length = engine.length();
}
function _add_number(html){
$('.jbg-next', _menu).parent().before(html);
}
function _add(o){
if(!_init)
_render();
if ($.isArray(o)) {
var _h = '';
var _s = engine.length() - o.length;
$.each(o, function(i, v){
_h += '<li class="jbg-n"><a href="#">'+ (_s + i + 1) +'</a></li>';
});
_add_number(_h)
}else{
_add_number('<li class="jbg-n"><a href="#">'+ engine.length() +'</a></li>')
}
_update_classes();
_length = engine.length();
}
function _remove(selector){
$('li.jbg-n:last', _menu).remove();
}
_render();
return {
notify : function(m,o){
if(data.length() > 0 && !$(_containers).eq(0).is(":visible")){
$(_containers).fadeIn(options.timers.fade);
}
if (options.menu == 'numbers') {
switch (m) {
case 'push':
case 'unshift':
_add(o);
break;
case 'pop':
case 'shift':
_remove();
break;
}
}
if (m == 'empty'){
_empty();
}
}
}
};
jBGallery.MenuSlider = function(el, data, engine, caption, options){
var that = el;
var _cnt = el;//options.fullscreen ? 'body' : el;//jbox
//TEMP: bug. el width simetimes in chrome = 0
if(options.fullscreen)
var _bw = $('body').width() - 130;
else
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
var _sep = '<span> | </span>';
var _popup = '<a href="#" class="jbgs-h-close">'+options.labels.close+'</a>';//TEST
var _info = '<a href="#" class="jbgs-h-info">'+options.labels.info+'</a>';
var _tpl_top = '<div class="jbgs-top"><div class="jbgs-top-center"><a href="#" class="jbgs-h jbgs-h-prev"> </a><a href="#" class="jbgs-h jbgs-h-next"> </a></div><div class="jbgs-top-right"></div></div>';//<div id="jbgs-top-opacity"></div>
var _tpl_slider = '<div class="jbgs-opacity"></div><div class="jbgs"><div class="jbgs-wrapper"><div class="jbgs-left"><a href="#" class="jbgs-h-play jbgs-h"> </a><a href="#" class="jbgs-h-pause jbgs-h"> </a><a href="#" class="jbgs-h-left jbgs-h"> </a></div><div class="jbgs-viewer" style="width:'+_w+'px"></div><div class="jbgs-right"><a href="#" class="jbgs-h-right jbgs-h"> </a></div></div></div>';
var _top, _menu,_menutop,_viewer,_an,_play,_pause,_a,_autohide;
var _init = false;
var _length = engine.length();
//PRIVATE METHODS
function _click_and_lock(el , func){
$(el).click(function(){
var _el = this;
if($(_el).is(".lock"))
return;
$(_el).addClass("lock");
func(function(){
$(_el).removeClass("lock")
});
return false;//15/12/2010
});
}
function _get_optimal_position(nr){
nr = nr - 1;
nr = _get_first_of_last(nr);
var _left = -(nr * 60) <= 0 ? -(nr * 60) : 0;
return _left;
}
function _get_first_of_last(nr){
var _tot = engine.length;
var _v = _get_visible();
return _tot - _v < nr ? _tot - _v : nr;
}
function _focus(nr){
$('a',_an)
.find(".focus").removeClass("focus").css("opacity",'0.7').end()
.eq((nr - 1)).find("img").addClass("focus").css("opacity",'1')
.parent().addClass("focus").css("opacity",'1');
}
function _get_class_thumb(t){
return t.height >= t.width ? "jbgs-thumb-portrait" : "jbgs-thumb-landscape";
}
function _get_optimal_left(t){
if(t.height >= t.width){
return 25;
}else{
var _v = t.width*100/t.height;
return (_v - 60)/2;
}
}
function _left(left, callback){
_an.animate({"left" : left}, function(){
if(callback) callback();
});
}
function _move_left(callback){
var _l = _get_left();
var _v = _get_visible();
//_l = (_l + 60) > 0 ? 0 : (_l + 60);
_l = (_l + (60 * _v)) > 0 ? 0 : (_l + (60 * _v));
_left(_l, callback);
}
function _move_right(callback){
var _l = _get_left();
var _tot = engine.length();
var _back = _get_back(_l);
var _v = _get_visible();
var _max = (_tot - _v) * 60;
if(_tot < _v || _v + _back >= _tot)
return callback();//unlock!
_l = ((_back + _v) + _v) > _tot ? -(_max) : (_l - (60 *_v));//todo
_left(_l, callback);
}
function _is_visible(nr){
var _l = _get_left();
var _back = _get_back(_l);
var _v = _get_visible();
var _first = _get_first_visible(_back, _v);
var _last = _get_last_visible(_back, _v);
return (nr >= _first && nr <= _last);
}
function _get_last_visible(back, v){
return back + v;
}
function _get_first_visible(back, v){
return back + 1;
}
function _get_left(){
return parseInt(_an.css("left"),10);
}
function _get_visible(){
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
return _w / 60;
}
function _get_back(left){
return Math.abs(left)/ 60;// - 60 (right)
}
function _mouseout(ev){
$('a',_an).css("margin-top", "");
$('.jbgs-thumb').fadeOut(options.timers.fade, function(){
$(this).remove();
});
}
function _delegation(ev){
var _el = ev.target || ev.srcElement;
if(_el.tagName.toString().toLowerCase() === 'img'){
$(_el).parent().parent().css("margin-top", "3px");//21/06 + .parent()
var _index = $(_a).index($(_el).parent().parent());//21/06 + .parent()
var _thumb = $(_el).get(0);
var _img = new Image();
_img.src = _thumb.src;
var _id = 'jbgs-thumb-'+_index;
var _l = $(_thumb).parents("li:eq(0)").offset().left - $(el).offset().left;//19/12/2010
var _class = _get_class_thumb(_img);
var _m = _l - _get_optimal_left(_img);
if($("#"+_id).length == 0){
var _btn = options.ie6 || options.ie7 ? '' : '<div class="jbgs-thumb-btn"><div class="jbgs-thumb-tip" /></div>';
var _html = '<div style="left:'+_m+'px" class="jbgs-thumb" id="'+_id+'"><img src="'+_thumb.src+'" alt="" class="'+_class+'" />'+_btn+'</div>';
$(_html).hide().appendTo(_cnt).fadeIn(options.timers.fade);
}
}
}
function _resize(){
var _bw = $(_cnt).width() - 130;
var _w = (_bw) - (_bw % 60);
_viewer.width(_w);
}
//RC2 - 21/06/2010 - TODO config width/height
function _get_thumb_position(t){
return t.height >= t.width ? {top : -((t.height*51/t.width)-51)/2} : {left : -((t.width*51/t.height)-51)/2 };
}
function _set_thumb_class(t){
$(t).addClass(_get_class_thumb(t)).css(_get_thumb_position(t));
}
function _thumb_oncomplete(img){
$(img).wrap('<div />');
if (img.complete) {
_set_thumb_class(img);
}else{
$(img).one("load", function(){
_set_thumb_class(img);
});
}
}
function _add_thumb(o, jmethod){
var _t = $('<li><a title="' + o.title + '" href="' + o.href + '"><img src="' + o.thumb + '" alt="" /></a></li>')
[jmethod](_menu);
var _img = $('img', _t).css("opacity",0.7).get(0);
_thumb_oncomplete(_img);
}
//3.0
function _empty(){
_an.empty();
_autohide.hide(options.timers.fade);
_length = engine.length();
}
function _add(o, jmethod, fromrender){
if(!fromrender && !_init)
_render();
if ($.isArray(o)) {
$.each(o, function(i, v){
_add_thumb(v, jmethod)
});
}else{
_add_thumb(o, jmethod)
}
//_autohide.hide();
if(_length == 0 && !fromrender){
_autohide.fadeIn(options.timers.fade);
}
_length = engine.length();
}
function _remove(selector){
$('li'+selector, _menu).remove();
}
function _render(){
if(!_init && engine.length() > 0){
$(_cnt)
.append(_tpl_top + _tpl_slider).addClass("jbgs-cnt");
_menutop = $('.jbgs-top-right', el);
_viewer = $('.jbgs-viewer', el);
_menu = $('<div class="jbgs-inner"></div>').appendTo(_viewer);//???
_an = $('.jbgs-inner', el);
_play = $('.jbgs-h-play', el);
_pause = $('.jbgs-h-pause', el);
_a = $('a',_an);
_autohide = $('.jbgs-opacity, .jbgs, .jbgs-top' ,el);
_add(data.items(),'appendTo',true);
$('.jbgs-opacity, .jbgs-h').css("opacity",0.8);
if(engine.slideshow())
_play.hide();
else
_pause.hide();
//events
if (options.caption) {
$(_info)
.click(function(){
caption.toggle();
return false;
})
.appendTo(_menutop);
}
if (options.popup) {
if($('a',_menutop).length > 0){
$(_sep).appendTo(_menutop);
}
$(_popup)
.click(function(){
$(that).trigger("destroy");
options.close();
return false;//15/12/2010
})
.appendTo(_menutop);
}
_click_and_lock('.jbgs-h-left', _move_left);
_click_and_lock('.jbgs-h-right', _move_right);
_play.click(function(){
$(this).hide();
_pause.show();
engine.play();
return false;//20/12/2010
});
_pause.click(function(){
$(this).hide();
_play.show();
engine.stop();
return false;//20/12/2010
});
$('.jbgs-h-prev',el).click(function(){
engine.left();
return false;//20/12/2010
});
$('.jbgs-h-next',el).click(function(){
engine.right();
return false;//20/12/2010
});
//$(_an).click(function(ev){
// var _el = ev.target || ev.srcElement;
// if (_el.tagName.toString().toLowerCase() === 'img') {
$('a', _an).live("click", function(){
var _i = $('a', _an).index(this) + 1;
engine.go(_i);
return false;
});
jBGallery.EventTimer(_an, ['mouseover'], options.delays.mouseover, _delegation, 'mouseout');//, true
_an.bind("mouseout", _mouseout);//commenta per testare tooltip
engine.target.bind("load", function(){
var _current = engine.current();
if(!_is_visible(_current)){
var _position = _get_optimal_position(_current);
_left(_position);
}
_focus(_current);
});
jBGallery.EventTimer(window, ['resize.jbgallery'], options.delays.resize, _resize);
if(options.autohide){
jBGallery.AutoToggle(_autohide, options);
jBGallery.AutoToggle(".jbgs-thumb", options, ["fadeIn","fadeOut"]);
}
_init = true;
}
}
//MAIN
_render();
return {
notify : function(m,o){
switch(m){
case 'empty':
_empty();
break;
case 'push':
_add(o,'appendTo');
break;
case 'unshift':
_add(o, 'prependTo');
break;
case 'shift':
_remove(':first');
break;
case 'pop':
_remove(':last');
break;
}
}
}
};
jBGallery.Adapters = {};
$.fn.jbgallery = jBGallery.Init;
})(jQuery);
| JavaScript |
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw )
{
if ( typeof sNewSource != 'undefined' && sNewSource != null )
{
oSettings.sAjaxSource = sNewSource;
}
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
var iStart = oSettings._iDisplayStart;
var aData = [];
this.oApi._fnServerParams( oSettings, aData );
oSettings.fnServerData( oSettings.sAjaxSource, aData, function(json) {
/* Clear the old information from the table */
that.oApi._fnClearTable( oSettings );
/* Got the data - add it to the table */
var aData = (oSettings.sAjaxDataProp !== "") ?
that.oApi._fnGetObjectDataFn( oSettings.sAjaxDataProp )( json ) : json;
for ( var i=0 ; i<aData.length ; i++ )
{
that.oApi._fnAddData( oSettings, aData[i] );
}
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
that.fnDraw();
if ( typeof bStandingRedraw == 'undefined' && bStandingRedraw != true )
{
oSettings._iDisplayStart = iStart;
that.fnDraw( false );
}
that.oApi._fnProcessingDisplay( oSettings, false );
/* Callback user function - for event handlers etc */
if ( typeof fnCallback == 'function' && fnCallback != null )
{
fnCallback( oSettings );
}
}, oSettings );
}
$(document).ready(function() {
var oTable;
oTable = $('#grid').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false,
"bAutoWidth": false,
"sAjaxSource": 'ajax.php/json'
} );
var timer = setInterval( function () {
oTable.fnReloadAjax();
}, 30000 );
} ); | JavaScript |
/******************************************************************************************************************************
COMMING SOON PAGE
*******************************************************************************************************************************/
(function($) {
/**
* Set your date here (YEAR, MONTH (0 for January/11 for December), DAY, HOUR, MINUTE, SECOND)
* according to the GMT+0 Timezone
**/
var launch = new Date(2014, 08, 01, 11, 00);
/**
* The script
**/
var message = $('#message');
var days = $('#days');
var hours = $('#hours');
var minutes = $('#minutes');
var seconds = $('#seconds');
setDate();
function setDate(){
var now = new Date();
if( launch < now ){
days.html('<h1>0</H1><p>Day</p>');
hours.html('<h1>0</h1><p>Hour</p>');
minutes.html('<h1>0</h1><p>Minute</p>');
seconds.html('<h1>0</h1><p>Second</p>');
message.html('OUR SITE IS NOT READY YET...');
}
else{
var s = -now.getTimezoneOffset()*60 + (launch.getTime() - now.getTime())/1000;
var d = Math.floor(s/86400);
days.html('<h1>'+d+'</h1><p>Day'+(d>1?'s':''),'</p>');
s -= d*86400;
var h = Math.floor(s/3600);
hours.html('<h1>'+h+'</h1><p>Hour'+(h>1?'s':''),'</p>');
s -= h*3600;
var m = Math.floor(s/60);
minutes.html('<h1>'+m+'</h1><p>Minute'+(m>1?'s':''),'</p>');
s = Math.floor(s-m*60);
seconds.html('<h1>'+s+'</h1><p>Second'+(s>1?'s':''),'</p>');
setTimeout(setDate, 1000);
message.html('Nuestro sitio no esta terminado aún, pero muy pronto lo estara...');
}
}
})(jQuery);
/******************************************************************************************************************************
ANIMATIONS
*******************************************************************************************************************************/
(function($) {
"use strict";
var isMobile = false;
if (navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i)||
navigator.userAgent.match(/iPod/i) ||
navigator.userAgent.match(/BlackBerry/i)) {
isMobile = true;
}
if (isMobile == true) {
$('body').removeClass('nomobile');
$('.animated').removeClass('animated');
}
$(function() {
if (isMobile == false) {
$('*[data-animated]').addClass('animated');
}
function animated_contents() {
$(".animated:appeared").each(function (i) {
var $this = $(this),
animated = $(this).data('animated');
setTimeout(function () {
$this.addClass(animated);
}, 50 * i);
});
}
animated_contents();
$(window).scroll(function () {
animated_contents();
});
});
})(jQuery);
/******************************************************************************************************************************
SLIDER
*******************************************************************************************************************************/
(function($) {
"use strict";
$("body.nomobile #slider").revolution(
{
delay:9000,
startheight:450,
startwidth:890,
thumbWidth:100,
thumbHeight:50,
thumbAmount:5,
onHoverStop:"on",
hideThumbs:200,
navigationType:"bullet",
navigationStyle:"round",
navigationArrows:"none",
touchenabled:"on",
navOffsetHorizontal:0,
navOffsetVertical:80,
shadow:undefined,
fullWidth:"on",
fullScreen:"on"
});
})(jQuery);
/******************************************************************************************************************************
BOOTSTRAP
*******************************************************************************************************************************/
(function($) {
"use strict";
$('[data-rel=tooltip]').tooltip();
$(".alert").alert();
})(jQuery);
/******************************************************************************************************************************
PROGRESS BAR
*******************************************************************************************************************************/
(function($) {
"use strict";
$("a.btn-progress").click(function(){
$('#bar-container').slideToggle();
});
})(jQuery);
| JavaScript |
/*
* QueryLoader v2 - A simple script to create a preloader for images
*
* For instructions read the original post:
* http://www.gayadesign.com/diy/queryloader2-preload-your-images-with-ease/
*
* Copyright (c) 2011 - Gaya Kessler
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Version: 2.5
* Last update: 15-09-2013
*
*/
(function($){
$.queryLoader2 = function(el, options){
var base = this;
// Access to jQuery and DOM versions of element
base.$el = $(el);
base.el = el;
// Add a reverse reference to the DOM object
base.$el.data("queryLoader2", base);
//declare variables
base.qLimageContainer = "";
base.qLoverlay = "";
base.qLbar = "";
base.qLpercentage = "";
base.qLimages = [];
base.qLbgimages = [];
base.qLimageCounter = 0;
base.qLdone = 0;
base.qLdestroyed = false;
base.init = function(){
base.options = $.extend({},$.queryLoader2.defaultOptions, options);
//find images
base.findImageInElement(base.el);
if (base.options.deepSearch == true) {
base.$el.find("*:not(script)").each(function() {
base.findImageInElement(this);
});
}
//create containers
base.createPreloadContainer();
base.createOverlayLoader();
};
//the container where unbindable images will go
base.createPreloadContainer = function() {
base.qLimageContainer = $("<div></div>").appendTo("body").css({
display: "none",
width: 0,
height: 0,
overflow: "hidden"
});
//add background images for loading
for (var i = 0; base.qLbgimages.length > i; i++) {
$.ajax({
url: base.qLbgimages[i],
type: 'HEAD',
complete: function (data) {
if (!base.qLdestroyed) {
base.addImageForPreload(this['url']);
}
}
});
}
};
base.addImageForPreload = function(url) {
var image = $("<img />").attr("src", url);
//binding load before the DOM adding
base.bindLoadEvent(image);
image.appendTo(base.qLimageContainer);
};
//create the overlay
base.createOverlayLoader = function () {
var overlayPosition = "absolute";
if (base.$el.prop("tagName") == "BODY") {
overlayPosition = "fixed";
} else {
base.$el.css("position", "relative");
}
base.qLoverlay = $("<div id='" + base.options.overlayId + "'></div>").css({
width: "100%",
height: "100%",
backgroundColor: base.options.backgroundColor,
backgroundPosition: "fixed",
position: overlayPosition,
zIndex: 666999, //very high!
top: 0,
left: 0
}).appendTo(base.$el);
base.qLbar = $("<div id='qLbar'></div>").css({
height: base.options.barHeight + "px",
marginTop: "-" + (base.options.barHeight / 2) + "px",
backgroundColor: base.options.barColor,
width: "0%",
position: "absolute",
top: "50%"
}).appendTo(base.qLoverlay);
if (base.options.percentage == true) {
base.qLpercentage = $("<div id='qLpercentage'></div>").text("0%").css({
height: "40px",
width: "100px",
position: "absolute",
fontSize: "3em",
top: "50%",
left: "50%",
marginTop: "-" + (59 + base.options.barHeight) + "px",
textAlign: "center",
marginLeft: "-50px",
color: base.options.barColor
}).appendTo(base.qLoverlay);
}
if (!base.qLimages.length) {
base.destroyContainers();
}
};
//destroy all containers created by QueryLoader
base.destroyContainers = function () {
base.qLdestroyed = true;
base.qLimageContainer.remove();
base.qLoverlay.remove();
};
base.findImageInElement = function (element) {
var url = "";
var obj = $(element);
var type = "normal";
if (obj.css("background-image") != "none") {
url = obj.css("background-image");
type = "background";
} else if (typeof(obj.attr("src")) != "undefined" && element.nodeName.toLowerCase() == "img") {
url = obj.attr("src");
}
if (url.indexOf("gradient") == -1) {
url = url.replace(/url\(\"/g, "");
url = url.replace(/url\(/g, "");
url = url.replace(/\"\)/g, "");
url = url.replace(/\)/g, "");
var urls = url.split(", ");
for (var i = 0; i < urls.length; i++) {
if (urls[i].length > 0 && base.qLimages.indexOf(urls[i]) == -1 && !urls[i].match(/^(data:)/i)) {
var extra = "";
if (base.isIE() || base.isOpera()){
//filthy always no cache for IE, sorry peeps!
extra = "?rand=" + Math.random();
base.qLbgimages.push(urls[i] + extra);
} else {
if (type == "background") {
base.qLbgimages.push(urls[i]);
} else {
base.bindLoadEvent(obj);
}
}
base.qLimages.push(urls[i]);
}
}
}
}
base.isIE = function () {
return navigator.userAgent.match(/msie/i);
};
base.isOpera = function () {
return navigator.userAgent.match(/Opera/i);
};
base.bindLoadEvent = function (element) {
base.qLimageCounter++;
element.bind("load error", function () {
base.completeImageLoading(this);
});
}
base.completeImageLoading = function (el) {
base.qLdone++;
var percentage = (base.qLdone / base.qLimageCounter) * 100;
base.qLbar.stop().animate({
width: percentage + "%",
minWidth: percentage + "%"
}, 200);
if (base.options.percentage == true) {
base.qLpercentage.text(Math.ceil(percentage) + "%");
}
if (base.qLdone == base.qLimageCounter) {
base.endLoader();
}
};
base.endLoader = function () {
base.qLdestroyed = true;
base.onLoadComplete();
};
base.onLoadComplete = function() {
if (base.options.completeAnimation == "grow") {
var animationTime = 500;
base.qLbar.stop().animate({
"width": "100%"
}, animationTime, function () {
$(this).animate({
top: "0%",
width: "100%",
height: "100%"
}, 500, function () {
$('#' + base.options.overlayId).fadeOut(500, function () {
$(this).remove();
base.destroyContainers();
base.options.onComplete();
})
});
});
} else {
$('#' + base.options.overlayId).fadeOut(500, function () {
$('#' + base.options.overlayId).remove();
base.destroyContainers();
base.options.onComplete();
});
}
}
// Run initializer
base.init();
};
//The default options
$.queryLoader2.defaultOptions = {
onComplete: function() {},
backgroundColor: "#000",
barColor: "#fff",
overlayId: 'qLoverlay',
barHeight: 1,
percentage: false,
deepSearch: true,
completeAnimation: "fade",
minimumTime: 500
};
//function binder
$.fn.queryLoader2 = function(options){
return this.each(function(){
(new $.queryLoader2(this, options));
});
};
})(jQuery);
//HERE COMES THE IE SHITSTORM
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (elt /*, from*/) {
var len = this.length >>> 0;
var from = Number(arguments[1]) || 0;
from = (from < 0)
? Math.ceil(from)
: Math.floor(from);
if (from < 0)
from += len;
for (; from < len; from++) {
if (from in this &&
this[from] === elt)
return from;
}
return -1;
};
}
/* ========================================================================
* Bootstrap: tooltip.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame
* ========================================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ======================================================================== */
+function ($) { "use strict";
// TOOLTIP PUBLIC CLASS DEFINITION
// ===============================
var Tooltip = function (element, options) {
this.type =
this.options =
this.enabled =
this.timeout =
this.hoverState =
this.$element = null
this.init('tooltip', element, options)
}
Tooltip.DEFAULTS = {
animation: true
, placement: 'top'
, selector: false
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
, trigger: 'hover focus'
, title: ''
, delay: 0
, html: false
, container: false
}
Tooltip.prototype.init = function (type, element, options) {
this.enabled = true
this.type = type
this.$element = $(element)
this.options = this.getOptions(options)
var triggers = this.options.trigger.split(' ')
for (var i = triggers.length; i--;) {
var trigger = triggers[i]
if (trigger == 'click') {
this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
} else if (trigger != 'manual') {
var eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
var eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
}
}
this.options.selector ?
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
this.fixTitle()
}
Tooltip.prototype.getDefaults = function () {
return Tooltip.DEFAULTS
}
Tooltip.prototype.getOptions = function (options) {
options = $.extend({}, this.getDefaults(), this.$element.data(), options)
if (options.delay && typeof options.delay == 'number') {
options.delay = {
show: options.delay
, hide: options.delay
}
}
return options
}
Tooltip.prototype.getDelegateOptions = function () {
var options = {}
var defaults = this.getDefaults()
this._options && $.each(this._options, function (key, value) {
if (defaults[key] != value) options[key] = value
})
return options
}
Tooltip.prototype.enter = function (obj) {
var self = obj instanceof this.constructor ?
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
clearTimeout(self.timeout)
self.hoverState = 'in'
if (!self.options.delay || !self.options.delay.show) return self.show()
self.timeout = setTimeout(function () {
if (self.hoverState == 'in') self.show()
}, self.options.delay.show)
}
Tooltip.prototype.leave = function (obj) {
var self = obj instanceof this.constructor ?
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
clearTimeout(self.timeout)
self.hoverState = 'out'
if (!self.options.delay || !self.options.delay.hide) return self.hide()
self.timeout = setTimeout(function () {
if (self.hoverState == 'out') self.hide()
}, self.options.delay.hide)
}
Tooltip.prototype.show = function () {
var e = $.Event('show.bs.'+ this.type)
if (this.hasContent() && this.enabled) {
this.$element.trigger(e)
if (e.isDefaultPrevented()) return
var $tip = this.tip()
this.setContent()
if (this.options.animation) $tip.addClass('fade')
var placement = typeof this.options.placement == 'function' ?
this.options.placement.call(this, $tip[0], this.$element[0]) :
this.options.placement
var autoToken = /\s?auto?\s?/i
var autoPlace = autoToken.test(placement)
if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
$tip
.detach()
.css({ top: 0, left: 0, display: 'block' })
.addClass(placement)
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
var pos = this.getPosition()
var actualWidth = $tip[0].offsetWidth
var actualHeight = $tip[0].offsetHeight
if (autoPlace) {
var $parent = this.$element.parent()
var orgPlacement = placement
var docScroll = document.documentElement.scrollTop || document.body.scrollTop
var parentWidth = this.options.container == 'body' ? window.innerWidth : $parent.outerWidth()
var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()
var parentLeft = this.options.container == 'body' ? 0 : $parent.offset().left
placement = placement == 'bottom' && pos.top + pos.height + actualHeight - docScroll > parentHeight ? 'top' :
placement == 'top' && pos.top - docScroll - actualHeight < 0 ? 'bottom' :
placement == 'right' && pos.right + actualWidth > parentWidth ? 'left' :
placement == 'left' && pos.left - actualWidth < parentLeft ? 'right' :
placement
$tip
.removeClass(orgPlacement)
.addClass(placement)
}
var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
this.applyPlacement(calculatedOffset, placement)
this.$element.trigger('shown.bs.' + this.type)
}
}
Tooltip.prototype.applyPlacement = function(offset, placement) {
var replace
var $tip = this.tip()
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight
// manually read margins because getBoundingClientRect includes difference
var marginTop = parseInt($tip.css('margin-top'), 10)
var marginLeft = parseInt($tip.css('margin-left'), 10)
// we must check for NaN for ie 8/9
if (isNaN(marginTop)) marginTop = 0
if (isNaN(marginLeft)) marginLeft = 0
offset.top = offset.top + marginTop
offset.left = offset.left + marginLeft
$tip
.offset(offset)
.addClass('in')
// check to see if placing tip in new offset caused the tip to resize itself
var actualWidth = $tip[0].offsetWidth
var actualHeight = $tip[0].offsetHeight
if (placement == 'top' && actualHeight != height) {
replace = true
offset.top = offset.top + height - actualHeight
}
if (/bottom|top/.test(placement)) {
var delta = 0
if (offset.left < 0) {
delta = offset.left * -2
offset.left = 0
$tip.offset(offset)
actualWidth = $tip[0].offsetWidth
actualHeight = $tip[0].offsetHeight
}
this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
} else {
this.replaceArrow(actualHeight - height, actualHeight, 'top')
}
if (replace) $tip.offset(offset)
}
Tooltip.prototype.replaceArrow = function(delta, dimension, position) {
this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
}
Tooltip.prototype.setContent = function () {
var $tip = this.tip()
var title = this.getTitle()
$tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
$tip.removeClass('fade in top bottom left right')
}
Tooltip.prototype.hide = function () {
var that = this
var $tip = this.tip()
var e = $.Event('hide.bs.' + this.type)
function complete() {
if (that.hoverState != 'in') $tip.detach()
}
this.$element.trigger(e)
if (e.isDefaultPrevented()) return
$tip.removeClass('in')
$.support.transition && this.$tip.hasClass('fade') ?
$tip
.one($.support.transition.end, complete)
.emulateTransitionEnd(150) :
complete()
this.$element.trigger('hidden.bs.' + this.type)
return this
}
Tooltip.prototype.fixTitle = function () {
var $e = this.$element
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
}
}
Tooltip.prototype.hasContent = function () {
return this.getTitle()
}
Tooltip.prototype.getPosition = function () {
var el = this.$element[0]
return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
width: el.offsetWidth
, height: el.offsetHeight
}, this.$element.offset())
}
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
/* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
}
Tooltip.prototype.getTitle = function () {
var title
var $e = this.$element
var o = this.options
title = $e.attr('data-original-title')
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
return title
}
Tooltip.prototype.tip = function () {
return this.$tip = this.$tip || $(this.options.template)
}
Tooltip.prototype.arrow = function () {
return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')
}
Tooltip.prototype.validate = function () {
if (!this.$element[0].parentNode) {
this.hide()
this.$element = null
this.options = null
}
}
Tooltip.prototype.enable = function () {
this.enabled = true
}
Tooltip.prototype.disable = function () {
this.enabled = false
}
Tooltip.prototype.toggleEnabled = function () {
this.enabled = !this.enabled
}
Tooltip.prototype.toggle = function (e) {
var self = e ? $(e.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type) : this
self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
}
Tooltip.prototype.destroy = function () {
this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
}
// TOOLTIP PLUGIN DEFINITION
// =========================
var old = $.fn.tooltip
$.fn.tooltip = function (option) {
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.tooltip')
var options = typeof option == 'object' && option
if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})
}
$.fn.tooltip.Constructor = Tooltip
// TOOLTIP NO CONFLICT
// ===================
$.fn.tooltip.noConflict = function () {
$.fn.tooltip = old
return this
}
}(window.jQuery);
/* ========================================================================
* Bootstrap: alert.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#alerts
* ========================================================================
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ======================================================================== */
+function ($) { "use strict";
// ALERT CLASS DEFINITION
// ======================
var dismiss = '[data-dismiss="alert"]'
var Alert = function (el) {
$(el).on('click', dismiss, this.close)
}
Alert.prototype.close = function (e) {
var $this = $(this)
var selector = $this.attr('data-target')
if (!selector) {
selector = $this.attr('href')
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
var $parent = $(selector)
if (e) e.preventDefault()
if (!$parent.length) {
$parent = $this.hasClass('alert') ? $this : $this.parent()
}
$parent.trigger(e = $.Event('close.bs.alert'))
if (e.isDefaultPrevented()) return
$parent.removeClass('in')
function removeElement() {
$parent.trigger('closed.bs.alert').remove()
}
$.support.transition && $parent.hasClass('fade') ?
$parent
.one($.support.transition.end, removeElement)
.emulateTransitionEnd(150) :
removeElement()
}
// ALERT PLUGIN DEFINITION
// =======================
var old = $.fn.alert
$.fn.alert = function (option) {
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.alert')
if (!data) $this.data('bs.alert', (data = new Alert(this)))
if (typeof option == 'string') data[option].call($this)
})
}
$.fn.alert.Constructor = Alert
// ALERT NO CONFLICT
// =================
$.fn.alert.noConflict = function () {
$.fn.alert = old
return this
}
// ALERT DATA-API
// ==============
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
}(window.jQuery);
/*
* jQuery appear plugin
*
* Copyright (c) 2012 Andrey Sidorov
* licensed under MIT license.
*
* https://github.com/morr/jquery.appear/
*
* Version: 0.3.3
*/
(function($) {
var selectors = [];
var check_binded = false;
var check_lock = false;
var defaults = {
interval: 250,
force_process: false
}
var $window = $(window);
var $prior_appeared;
function process() {
check_lock = false;
for (var index = 0; index < selectors.length; index++) {
var $appeared = $(selectors[index]).filter(function() {
return $(this).is(':appeared');
});
$appeared.trigger('appear', [$appeared]);
if ($prior_appeared) {
var $disappeared = $prior_appeared.not($appeared);
$disappeared.trigger('disappear', [$disappeared]);
}
$prior_appeared = $appeared;
}
}
// "appeared" custom filter
$.expr[':']['appeared'] = function(element) {
var $element = $(element);
if (!$element.is(':visible')) {
return false;
}
var window_left = $window.scrollLeft();
var window_top = $window.scrollTop();
var offset = $element.offset();
var left = offset.left;
var top = offset.top;
if (top + $element.height() >= window_top &&
top - ($element.data('appear-top-offset') || 0) <= window_top + $window.height() &&
left + $element.width() >= window_left &&
left - ($element.data('appear-left-offset') || 0) <= window_left + $window.width()) {
return true;
} else {
return false;
}
}
$.fn.extend({
// watching for element's appearance in browser viewport
appear: function(options) {
var opts = $.extend({}, defaults, options || {});
var selector = this.selector || this;
if (!check_binded) {
var on_check = function() {
if (check_lock) {
return;
}
check_lock = true;
setTimeout(process, opts.interval);
};
$(window).scroll(on_check).resize(on_check);
check_binded = true;
}
if (opts.force_process) {
setTimeout(process, opts.interval);
}
selectors.push(selector);
return $(selector);
}
});
$.extend({
// force elements's appearance check
force_appear: function() {
if (check_binded) {
process();
return true;
};
return false;
}
});
})(jQuery);
| JavaScript |
/**
* Class to represent common url operations
* @param param
* @constructor
*/
function Url(param) {
if (typeof param === 'string') {
this.parseUrl(param);
}
this.params = {};
}
Url.prototype.toString = function toString() {
return this.getUrl();
};
Url.prototype.setParam = function setParam(name, value) {
this.params[name] = value;
};
/**
* Can take text or an object with key, values handle either a url
* or values. will override baseUrl if already set
* @param params
*/
Url.prototype.setParams = function setParams(params) {
this.params = params;
};
/**
* return final url with params included
* Same output as toString()
* @return {*}
*/
Url.prototype.getUrl = function getUrl() {
return this.baseUrl + this.getParamString();
};
Url.prototype.getUrlEncoded = function getUrlEncoded(){
return encodeURI(this.getUrl());
};
Url.prototype.getParamString = function getParamString() {
var i = '',
a = '',
result = '';
if(this.baseUrl.indexOf('?') == -1) {
result = '?';
} else if (this.baseUrl.indexOf('?') < this.baseUrl.length - 1) {
a = '&';
}
var params = this.params;
for (i in params) {
if(this.baseUrl.indexOf('?' + i + '=') == -1
&& this.baseUrl.indexOf('&' + i + '=') == -1) {
result += a + i + "=" + params[i];
a = '&';
}
}
return result;
};
Url.prototype.setBaseUrl = function setBaseUrl(url) {
this.baseUrl = url;
};
/**
* Breaks up a url and overrides the baseUrl and params even if previously set
* @param url
* @return {*}
*/
Url.prototype.parseUrl = function parseUrl(url) { //replaceParams (url, replaceParams)
var base, right, left, params,
result, i, str;
if (this.isSimpleUrl(url) === true) {
this.setBaseUrl(url);
return this.getUrl();
}
result = url.split('?');
base = result[0];
right = result[1];
result = right.split('&');
this.setBaseUrl(base);
// Break apart URL into an array of parameters
params = {};
for (i in result) {
str = result[i];
left = str.substr(0,str.indexOf('=')); //using this instead of.split because some queries have more than one equals
right = str.substr(str.indexOf('=')+1);
params[left] = right;
}
this.setParams(params);
return this.getUrl();
};
/**
* A simple url is one that doesn't contain ?, &, or = anywhere
* @param url
* @return {Boolean}
*/
Url.prototype.isSimpleUrl = function isSimpleUrl(url){
if (url.indexOf('?') === -1) {
return true;
}
return false;
}; | JavaScript |
/**
* Wrap Xhr requests, adding the ability to group and cancel Xhr requests to prevent callbacks from firing
* when clicking away from a page with outstanding requests
* Supported callbacks:
* success
* error
*
* Example 1 - simple post
* var xhr = new Xhr();
* xhr.post({url:url, data:data});
*
* Example 2 - Xhr grouping
* var xhrGroup1 = new Xhr();
* var xhrGroup2 = new Xhr();
* xhrGroup1.get({url:url});
* xhrGroup1.cancel();
* xhrGroup2.get({url:url});
*
* @param logger = Instance of Logger
* @constructor
*/
var Xhr = function Xhr() {
this.cancelled = false;
//this.requests = [];
};
/**
* @public
* @param params
*/
Xhr.prototype.get = function get(params) {
params.type = 'GET';
this.send(params);
};
/**
* @public
* @param params
*/
Xhr.prototype.post = function post(params) {
params.type = 'POST';
this.send(params);
};
/**
* @private
* @param params
* @return {*}
*/
Xhr.prototype.send = function get2(params) {
var type = params['type'],
url = params['url'],
data = params['data'],
success = params['success'],
error = params['error'],
dataType,
acceptHeader,
timeout,
async,
cache,
headers = {};
/*****/
console.log('xhr -- url: '+url);
if(params.dataReturn){
success(params.dataReturn);
return;
}
/*****/
if (params['dataType']) {
dataType = params['dataType'];
} else {
dataType = 'json';
}
if (dataType === 'xml') {
acceptHeader = 'application/xml';
} else if (dataType === 'json') {
acceptHeader = 'application/json';
} else {
acceptHeader = '*/*';
}
if (params['timeout']) {
timeout = params['timeout'];
} else {
timeout = '30000';
}
if (params['async']) {
async = params['async'];
} else {
async = true;
}
if (params['cache'] === undefined) {
cache = true;
} else {
cache = params['cache'];
}
if (params['headers']) {
headers = params['headers'];
}
if(!headers['Accept']) {
headers['Accept'] = acceptHeader;
}
this.cancelled = false;
getCORS(url, null, function(data){
success(data);
});
/*$.ajax({
url: 'http://flowercardvn.com/webservice/webservice.php?controller=category',
data: data,
async: async,
cache: cache,
type: "GET",
dataType: 'json',
timeout: timeout,
headers: headers,
success: function (data) {
// if (this.cancelled === true) {
// } else {
console.log(data);
success(data);
// }
},
error: function (req, status, e) {
// if(error) {
error(req, status, e);
// }
// if (this.cancelled === true) {
// } else {
// if (this.isTimedOut(status, e) === true) {
// return;
// }
// }
}
});*/
};
/**
* @private
* @param status
* @param e
* @return {Boolean}
*/
Xhr.prototype.isTimedOut = function isTimedOut(status, e) {
if (status === 'timeout') {
return true;
}
return e.toString().indexOf("NETWORK_ERR") !== -1;
};
/**
* @public
* Cancels all outstanding requests
*/
Xhr.prototype.cancel = function cancel() {
////console.log('[XHR] Cancelling Xhr requests..');
this.cancelled = true;
}; | JavaScript |
//@todo move "inherits" somewhere else
var inherits = function(childCtor, parentCtor) {
function tempCtor() {};
tempCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new tempCtor();
childCtor.prototype.constructor = childCtor;
};
/**
* Class to represent common url operations and set default params for common API urls
* @param param
* @constructor
*/
function ApiUrl(param) {
Url.call(this);
this.setDefaultParams();
this.apiList = {
'aSpot': settings.get('urls.apiBaseUrl') + 'webservice.php?controller=bestseller&type=bestsellerwomanday_product',
'category': settings.get('urls.apiBaseUrl') + 'webservice.php?controller=category',
'productInCategory': settings.get('urls.apiBaseUrl') + 'webservice.php?controller=product',/*&categoryID=59*/
'productDetail': settings.get('urls.apiBaseUrl') + 'webservice.php?controller=product',/*&productID=270*/
'shoppingCart': settings.get('urls.apiBaseUrl') + 'webservice.php?controller=shoppingcart&method=getBasket&customername=user',
};
}
inherits(ApiUrl, Url);
ApiUrl.prototype.setDefaultParams = function setDefaultParams() {
/*var ck = new Cookies();
var dma = ck.get('dma')!=null ? ck.get('dma') : settings.get('general.dmaDefault');
this.params['lang'] = (ck.get('lang') != null ? ck.get('lang') : settings.get('general.langDefault'));
this.params['deviceType'] = (ck.get('deviceType') != null ? ck.get('deviceType') : settings.get('general.deviceTypeDefault'));
if(!this.params['dma']) {
this.params['dma'] = dma;
}
if(!this.params['maxResults']) {
this.params['maxResults'] = settings.get('general.maxLoadedAPIResult');
}*/
};
/**
* Override method to append to params instead of wipe them all (which would destroy default params and make ApiUrl worthless)
* @param params
*/
ApiUrl.prototype.setParams = function setParams(params) {
for (var key in params) {
this.params[key] = params[key];
}
};
| JavaScript |
//using HTML5 localStorage instead of cookies
function LocalStores(){
}
LocalStores.prototype.get = function get(name){
var str = localStorage.getItem(name);
if (!str) {
str = null;
}
return str;
};
LocalStores.prototype.set = function set(name, value, days){
localStorage.setItem(name, value);
};
LocalStores.prototype.remove = function remove(name){
localStorage.removeItem(name);
};
LocalStores.prototype.isAvailable = function isAvailable(value){
return (typeof(value)!='undefined' && value!=null);
};
LocalStores.prototype.chooseValue = function chooseValue(){
var ck = new Cookies();
for(i in arguments){
if(ck.isAvailable(arguments[i])){
return arguments[i];
}
}
return null;
};
| JavaScript |
/**
* Accessing config settings in JavaScript
* @param json
* @constructor
*/
function Settings(json) {
this.map = json;
}
/**
* @public
*/
Settings.prototype.set = function set() {
};
/**
* @public
*/
Settings.prototype.get = function get(name) {
return this.map[name];
};
| JavaScript |
function Utility(device){
this.device = device;
this.cookies = new LocalStores();
this.listDateTimePicker={};
}
Utility.deviceFactory = function deviceFactory(deviceType) {
switch (deviceType) {
case 'mobile':
return new UtilityMobile();
case 'tablet':
return new UtilityTablet();
default:
return new UtilityMobile();
}
};
/*******************************************************************************************************/
/*******************************************************************************************************/
Utility.prototype.getDeviceType = function getDeviceType(){
switch (devTy) {
case 'mobile':
utility.cookies.set("deviceType", "mobile", 365);
break;
case 'tablet':
utility.cookies.set("deviceType", "tablet", 365);
break;
default:
utility.cookies.set("deviceType", "phone", 365);
}
};
Utility.prototype.loadGeneralActions = function loadGeneralActions() {
$('#category_page #btnMore').live("click",function(){
utility.renderListProduct({
idCategory: $(this).attr('idCategory'),
isMoreClick: true
});
});
$('#show-product-detail').live('click',function(){
utility.hideFilterItem();
utility.renderProductDetail({
idProduct: $(this).attr('idProduct')
});
});
$('#more-like-this-product').live('click',function(){
utility.renderProductMoreLikeThis({
idProduct: $('#product_page').attr('idProduct'),
isMoreClick: true
});
});
$('#product_page .dwbw.dwb-s').live('click',function(){
var item = utility.newItem($('#product_page').attr('idProduct'), $('#product_page').attr('productName'), $('#product_page').attr('price'))
listGift = $('#product_page #group-gift input');
cart.add({
item : item
});
if(listGift && listGift !== undefined){
console.log(listGift.length);
for(var i = 0; i < listGift.length; i++){
console.log('checked'+i+': '+listGift.eq(i).attr('checked'));
if(listGift.eq(i).attr('checked') == "checked"){
var k = utility.newItem(listGift.eq(i).attr('alt'),listGift.eq(i).parent().find('.ui-btn-text').html(),listGift.eq(i).attr('value'));
cart.add({
item : k
});
}
}
}
});
$('#product_page .dwbw.dwb-c').live('click',function(){
console.log('linkShare: '+$('#product_page').attr('linkShare'));
if (platform == "Android") {
AndroidFunction.showShare($('#product_page').attr('linkShare'));
}
});
$('#show-popup-info').live('click',function(){
currentProductClick = $(this).parent();
utility.showPopupDetail(currentProductClick);
$('#trigger_click_item a').eq(1).click();
});
$('.dw-persp .dwo').live('click',function(){
$("#time-delivery").mobiscroll('hide');
});
$('.category-item-title').live('click',function(){
utility.renderListProduct({
idCategory: $(this).attr('idCategory')
});
});
$('#redirect_main').live('click',function(){
utility.redirectMainPage();
});
$('#redirect_search').live('click',function(){
utility.redirectSearchPage();
});
$('#redirect_cart').live('click',function(){
utility.redirectCartPage();
});
$('.swiper-slide').live('click',function(){
var idProduct = $(this).attr('idProduct');
if(idProduct != undefined){
utility.hideFilterItem();
utility.renderProductDetail({
idProduct: idProduct
});
}
});
$('#exit_app').click(function () {
utility.hideExitAppButton();
});
$('#exit_button').click(function () {
utility.hideExitAppButton();
utility.exitAppAction();
});
$('#purchase_add').live('click',function(){
var item = utility.newItem($(currentProductClick).find('#show-product-detail').attr('idProduct'), $(currentProductClick).find('.heading-category').html(), $(currentProductClick).find('strong').eq(1).html());
cart.add({
item : item
});
$('#purchase_add').parent().find('a').eq(1).click();
});
$('#remove-product-from-cart').live('click',function(){
var idProduct = $(this).parent().parent().find('td').eq(0).find('a').attr('idProduct');
console.log($(this).parent().parent().find('td').find('a').eq(0));
console.log('idProduct: '+idProduct);
cart.remove({
idProduct: idProduct
});
});
$('#zoom_out').live('click',function(){
var i = $(this).parent().children().eq(0);
var w = $(i).find('img').eq(0).width() + 200;
console.log(w);
$(i).css('width',w);
});
$('#zoom_in').live('click',function(){
var i = $(this).parent().children().eq(0);
var w = $(i).find('img').eq(0).width() - 200;
console.log(w);
$(i).css('width',w);
});
$('#cart_page .android-ics').live('click',function(){
// utility.publishPayment();
$('#paypal_form_show input[type=submit]').click();
});
};
Utility.prototype.getDeviceType = function getDeviceType() {
switch (devTy) {
case 'mobile':
utility.cookies.set("deviceType", "mobile", 365);
break;
case 'tablet':
utility.cookies.set("deviceType", "tablet", 365);
break;
default:
utility.cookies.set("deviceType", "mobile", 365);
}
};
Utility.prototype.encodeString = function encodeString(str) {
return JSON.stringify(str);
};
Utility.prototype.decodeString = function decodeString(str) {
return JSON.parse(str);
};
Utility.prototype.redirectMainPage = function redirectMainPage() {
$('#trigger_click_item a').eq(3).click();
};
Utility.prototype.redirectSearchPage = function redirectSearchPage() {
$('#trigger_click_item a').eq(5).click();
};
Utility.prototype.redirectCartPage = function redirectCartPage() {
$('#trigger_click_item a').eq(4).click();
utility.renderProductInCart();
};
Utility.prototype.activeNavBar = function activeNavBar(item) {
$('.ui-footer').removeClass('ui-btn-active');
$(item).addClass('ui-btn-active');
};
Utility.prototype.show = function show() {
$('.background').removeClass('template');
var h = $('.ui-page-active').outerHeight() + $('.ui-page-active .ui-header').outerHeight();
$('.background').css('height',h);
$.mobile.showPageLoadingMsg("a", "Loading ...");
};
Utility.prototype.hide = function hide() {
$('.background').addClass('template');
$.mobile.hidePageLoadingMsg();
};
Utility.prototype.realPrice = function realPrice(price) {
try{
if(price.length <= 3){
return parseInt(price);
}
return parseInt(price.toString().substring(0,price.toString().indexOf('.')));
}catch(err){
return parseInt(price);
}
};
Utility.prototype.createDateTimePicker = function createDateTimePicker(params) {
var elementName = params.elementName,
theme = params.theme ? params.theme : 'android-ics light',
display = params.display ? params.display : 'top',
mode = params.mode ? params.mode : 'mixed';
$(elementName).mobiscroll('destroy');
utility.listDateTimePicker[elementName] = $(elementName).mobiscroll().datetime({
theme: theme,
display: display,
mode: mode
},{minDate:new Date()});
};
Utility.prototype.hideFilterItem = function hideFilterItem() {
$('#filter_contain').hide();
};
Utility.prototype.showFilterItem = function showFilterItem() {
$('#filter_contain').show();
$('#filter_contain').css('width',$('#my-wrapper').outerWidth());
$('#my-wrapper form').appendTo($('#filter_contain'));
};
Utility.prototype.getCarouselItem = function getCarouselItem(item) {
var template=$('#carousel_item').html();
template=template.replace('[ID]',item.ID);
template=template.replace('[ID]',item.ID);
template=template.replace('[ID]',item.ID);
template=template.replace('[NAME]',item.Name);
return template;
};
Utility.prototype.getCarouselSlideItem = function getCarouselSlideItem(item) {
var template=$('#carousel_slide_item').html();
template=template.replace('[ID]',item.ID);
template=template.replace('[IMG]',item.Image);
template=template.replace('[TITLE]',item.Name);
template=template.replace('[PRICE]',utility.realPrice(item.Price));
return template;
};
Utility.prototype.renderArrayObject = function renderArrayObject(params,success,error) {
dataHelper.getAPIDataBasic(params,success,error);
};
Utility.prototype.getItemInASpot = function getItemInCategory(item) {
var template=$('#aspot_item').html();
template=template.replace('[ID]',item.ID);
template=template.replace('[IMG]',item.Image);
template=template.replace('[TITLE]',item.Name);
template=template.replace('[DES]',"");
template=template.replace('[PRICE]',utility.realPrice(item.Price));
return template;
};
Utility.prototype.renderASpot = function renderASpot(params,success,error) {
$('.swiper-aspot .swiper-wrapper').html("");
utility.hideFilterItem();
utility.show();
utility.renderArrayObject({
url: 'http://flowercardvn.com/webservice/webservice.php?controller=bestseller&type=bestsellerwomanday_product',
isCachedLocal: false,
data: "",
},function(result){
for(i in result){
$('.swiper-aspot .swiper-wrapper').append(utility.getItemInASpot(result[i]));
}
carousel.drawCarousel({
elementName: '.swiper-aspot',
mode: carousel.horizontal,
slidesPerSlide: 1,
loop: true
});
utility.hide();
},function(req, status, e){
});
};
Utility.prototype.renderListProductInCategoryToCarousel = function renderListProductInCategoryToCarousel(params) {
var idCategory = params.idCategory,
slidesPerSlide = params.slidesPerSlide ? params.slidesPerSlide : carousel.numberItemOnPortrait(),
elementName = params.elementName,
elementWrapper = params.elementWrapper;
utility.show();
api.setBaseUrl(api.apiList.productInCategory);
utility.renderArrayObject({
url: api.getUrl()+"&categoryID="+idCategory,
isCachedLocal: false,
data: "{idcategory:,"+idCategory+"}"
},function(result){
for(i in result){
$(elementWrapper).append(utility.getCarouselSlideItem(result[i]));
}
var r = result.length;
while(r <= slidesPerSlide && r > 0){
$(elementWrapper).append(utility.getCarouselSlideItem(result[0]));
r++;
}
carousel.drawCarousel({
elementName: elementName,
mode: carousel.horizontal,
slidesPerSlide: slidesPerSlide,
loop: true
});
utility.hide();
},function(req, status, e){
});
};
Utility.prototype.renderListCategoryToCarousel = function renderListCategoryToCarousel() {
$('#main-list-category').html("");
utility.hideFilterItem();
utility.show();
utility.renderArrayObject({
url: 'http://flowercardvn.com/webservice/webservice.php?controller=category',
isCachedLocal: false,
data: "",
},function(result){
for(i in result){
$('#main-list-category').append(utility.getCarouselItem(result[i]));
utility.show();
utility.renderListProductInCategoryToCarousel({
idCategory: result[i].ID,
slidesPerSlide: carousel.numberItemOnPortrait(),
elementName: '#product_in_category_swiper_'+result[i].ID,
elementWrapper: '#product_in_category_'+result[i].ID+' .swiper-wrapper'
});
}
$('#main-list-category').listview('refresh');
},function(req, status, e){
});
};
Utility.prototype.getItemInCategory = function getItemInCategory(item) {
var template=$('#category_item_template').html();
template=template.replace('[ID]',item.ID);
template=template.replace('[IMG]',item.Image);
template=template.replace('[TITLE]',item.Name);
template=template.replace('[DES]',"");
template=template.replace('[PRICE]',utility.realPrice(item.Price));
return template;
};
Utility.prototype.getMoreButtonInCategory = function getMoreButtonInCategory(params) {
var template=$('#category_item_more_template').html();
template = template.replace('[IDCATE]',params.idCategory);
return template;
};
Utility.prototype.showPopupDetail = function showPopupDetail(li) {
var a = $('#category_page #purchase'),
idProduct = $(li).find('#show-product-detail').attr('idProduct');
a.find('h3').html($(li).find('.heading-category').html());
a.find('p').html($(li).find('.des-category').html());
a.find('.price').html("$"+$(li).find('strong').eq(1).html());
};
Utility.prototype.renderListProduct = function renderListProduct(params) {
var idCategory = params.idCategory,
isMoreClick = params.isMoreClick ? params.isMoreClick : false;
if(isMoreClick){
$('#category_page #listview-ul li:last-child').remove();
}else{
$('#listview-ul').html("");
}
$('#category_page').attr('idCategory',idCategory);
utility.show();
utility.renderArrayObject({
url: "http://flowercardvn.com/webservice/webservice.php?controller=product&categoryID=" + idCategory,
isCachedLocal: false,
data: "",
},function(result){
for(i in result){
$('#listview-ul').append(utility.getItemInCategory(result[i]));
}
$('#listview-ul').append(utility.getMoreButtonInCategory({
idCategory: idCategory
}));
if(!isMoreClick){
$('#trigger_click_item a').eq(2).click();
}
$('#category_page #btnMore').button();
$('#category_page #btnMore').parent().parent().css('visibility','hidden');
$('#listview-ul').listview('refresh');
// utility.hide();
},function(req, status, e){
});
};
Utility.prototype.getProductDetail = function getProductDetail(item) {
var template=$('#product_metadata').html();
template=template.replace('[IMG]',item.image);
template=template.replace('[TITLE]',item.name);
template=template.replace('[DESC]',item.description);
template=template.replace('[PRICE]',utility.realPrice(item.price));
return template;
};
Utility.prototype.getProductOptions = function getProductOptions(item) {
var template=$('#product_option').html();
template=template.replace('[ID]',item.id);
template=template.replace('[SHARE]',item.share);
return template;
};
Utility.prototype.getProductMoreLikeThis = function getProductMoreLikeThis(item) {
var template=$('#product_more').html();
template=template.replace('[IMG]',item.image);
template=template.replace('[ID]',item.id);
template=template.replace('[TITLE]',item.name);
return template;
};
Utility.prototype.renderGiftProduct = function renderGiftProduct(params) {
var data = params.gift.option,
temp = $('#product_option_gift').html(),
iTemp = "",
items = "";
if(data && data !== undefined){
for(var i=0; i < data.length; i++){
iTemp = $('#product_option_gift_item').html();
iTemp = iTemp.replace('[ID]','item-'+i);
iTemp = iTemp.replace('[ID]','item-'+i);
iTemp = iTemp.replace('[ID]','item-'+i);
iTemp = iTemp.replace('[PRICE]',(i*5));
iTemp = iTemp.replace('[IDP]',(i*50));
iTemp = iTemp.replace('[NAME]',data[i].name);
items += iTemp;
}
temp = temp.replace('[GIFT_ITEM]',items);
$('#product_detail').append(temp);
}
};
Utility.prototype.renderProductDetail = function renderProductDetail(params) {
var idProduct = params.idProduct;
$('#product_detail').html("");
utility.hideFilterItem();
utility.show();
utility.renderArrayObject({
url: "http://flowercardvn.com/webservice/webservice.php?controller=detailProduct&productID="+idProduct,
isCachedLocal: false,
data: "",
},function(result){
$('*').scrollTop(0);
console.log(result);
$('#product_detail').append(utility.getProductDetail(result));
utility.createItemPayment(result);
$('#product_page').attr('idProduct',idProduct);
$('#product_page').attr('price',utility.realPrice(result.price));
$('#product_page').attr('linkShare',result.shareURL);
$('#product_page').attr('productName',result.name);
$('#product_page').attr('idCategory',result.idCategory);
utility.renderGiftProduct({
gift: result.option.Gift[0]
});
$('#product_detail').append(utility.getProductOptions(result));
$('#trigger_click_item a').eq(0).click();
$('#product_detail').listview('refresh');
try{
$("#product_page #group-gift").trigger("create");
}catch(err){
console.log(err);
}
},function(req, status, e){
});
utility.renderProductMoreLikeThis({
idProduct: idProduct
});
};
Utility.prototype.setPrositionListItemMore = function setPrositionListItemMore() {
var wi = $('#item-wrapper').children().outerWidth(),
wp = $('#item-wrapper').outerWidth(),
ni = Math.floor(wp/wi),
mg = (wp-wi*ni)/2 - 5;
console.log('ni: '+ni+' -- wi: '+wi+' -- wp: '+wp+' -- mg: '+mg);
$('#item-wrapper').css('margin-left',mg);
};
Utility.prototype.renderProductMoreLikeThis = function renderProductMoreLikeThis(params) {
var idProduct = params.idProduct,
isMoreClick = params.isMoreClick ? params.isMoreClick : false;
if(!isMoreClick){
$('#product_detail_more #item-wrapper').html("");
}
utility.show();
utility.renderArrayObject({
url: "get-product-more",
isCachedLocal: false,
data: "",
dataReturn:productListMore
},function(result){
for(i in result){
$('#product_detail_more #item-wrapper').append(utility.getProductMoreLikeThis(result[i]));
}
utility.setPrositionListItemMore();
// utility.hide();
},function(req, status, e){
});
};
Utility.prototype.newItem = function newItem(id,name,price) {
var item = {
ID: 0,
NAME: "",
PRICE: 0,
QUANTITY: 0
};
item.ID = id;
item.NAME = name;
item.PRICE = price;
// item.ID = $('#product_page').attr('idProduct');
// item.NAME = $('#product_page').attr('productName');
// item.PRICE = $('#product_page').attr('price');
item.QUANTITY = 1;
return item;
};
Utility.prototype.addToCart = function addToCart(params) {
var idProduct = params.idProduct,
quantity = 1
price = params.price ? params.price : 0;
};
Utility.prototype.getProductInCart = function getProductInCart(item) {
var template = '<tr>'+
'<td><a id="show-product-detail" href="#" idProduct="[ID]">[NAME]</a></td>'+
'<td>[QUANTITY]</td>'+
'<td>$[PRICE]</td>'+
'<td><a class="delete-item-form-cart" data-icon="delete" data-role="button" data-iconpos="notext" data-inline="true" id="remove-product-from-cart" href="#">Remove</a></td>'+
'</tr>';
template=template.replace('[ID]',item.ID);
template=template.replace('[NAME]',item.NAME);
template=template.replace('[QUANTITY]',item.QUANTITY);
template=template.replace('[PRICE]',item.PRICE);
return template;
};
Utility.prototype.renderProductInCart = function renderProductInCart() {
$('#cart_page #table-custom tbody').html("");
for(var i = 0; i<cart.data.length; i++ ){
$('#cart_page #table-custom tbody').append(utility.getProductInCart(cart.data[i]));
}
$('#table-custom').table('refresh');
$('.delete-item-form-cart').button()
$('#table-custom').parent().children('a').css('display','none');
};
Utility.prototype.showExitAppButton = function showExitAppButton(){
$('#exit_app').removeClass('template');
};
Utility.prototype.exitAppAction = function exitAppAction(){
if(platform == "Android"){
AndroidFunction.exitApp();
}
};
Utility.prototype.hideExitAppButton = function hideExitAppButton(){
$('#exit_app').addClass('template');
};
Utility.prototype.releaseFocus = function releaseFocus(){
$('input').focusout();
};
Utility.prototype.publishPayment = function publishPayment() {
miniCartId + '=reset';
utility.createPayment();
};
Utility.prototype.createPayment = function createPayment() {
for( var i = 0 ; i < cart.data.length ; i++ ){
$('#paypal_checkout_form').append(utility.createItemPayment(cart.data[i]));
$('#paypal_checkout_form form').eq(i).submit();
}
};
Utility.prototype.createItemPayment = function createItemPayment(item) {
$('#paypal_checkout_form input[name=item_name]').val(item.name);
$('#paypal_checkout_form input[name=business]').val(settings.get('paypals.account'));
$('#paypal_checkout_form input[name=quantity]').val(1);
$('#paypal_checkout_form input[name=amount]').val(utility.realPrice(item.price));
};
Utility.prototype.showExternalLink = function showExternalLink(link) {
console.log('showExternalLink: '+link);
$('.fancybox').attr('href',link);
$('.fancybox').click();
};
| JavaScript |
function UtilityMobile() {
}
UtilityMobile.prototype.loadGeneralActions = function loadGeneralActions() {
};
| JavaScript |
function UtilityTablet() {
}
UtilityTablet.prototype.loadGeneralActions = function loadGeneralActions() {
console.log('UtilityTablet -- loadGeneralActions');
}; | JavaScript |
function DataHelper(){
this.GET = 'GET';
this.POST = 'POST';
this.xhr=new Xhr();
}
DataHelper.prototype.getAPIDataBasic = function getAPIDataBasic(params,success,error) {
var result = {},
url = params.url,
isCachedLocal = params.isCachedLocal === true ? true : false,
data = params.data ? params.data : '',
method = params.method === undefined ? this.GET : params.method;
if (cache.get(url) === null) {
this.xhr.get({
url: url,
data: data,
type: method,
dataType: 'json',
dataReturn: params.dataReturn,
success: function (json) {
if (typeof json === 'string') {
result = JSON.parse(json);
} else {
result = json;
}
if(isCachedLocal){
cache.set(params.url, result);
}
if (success !== undefined) {
success(result);
}
},
error: function (xhr, status, e) {
if (error !== undefined) {
error(xhr, status, e);
}
}
});
} else if (params.success !== undefined) {
if (async) {
setTimeout(function () {
params.success(cache.get(url));
}, 100);
} else {
params.success(cache.get(url));
}
}
};
| JavaScript |
var cacheData = [];
function Cache(){}
/**
* Set data to Cache with the key is a specified url
* params
* url : specified url and its query string
* data : data taken from the API
*/
Cache.prototype.set = function set(url, data){
cacheData.push({url: url, data: data});
}
/**
* Get data from Cache by a specified url
* params
* url : specified url and its query string
* return : data
*/
Cache.prototype.get = function get(url){
var data = null;
for(var i in cacheData){
if(cacheData[i].url === url){
data = cacheData[i].data;
break;
}
}
return data;
} | JavaScript |
function CarouselTablet() {
this.itemOnPortrait=5;
this.itemOnLanscape=7;
}
CarouselTablet.prototype.loadDefault = function loadDefault() {
};
CarouselTablet.prototype.numberItemOnPortrait = function numberItemOnPortrait() {
return this.itemOnPortrait;
};
CarouselTablet.prototype.numberItemOnLanscape = function numberItemOnLanscape() {
return this.itemOnLanscape;
}; | JavaScript |
var PAGE = {
INDEX:0,
CATEGORY:1,
PRODUCT:2,
SEARCH:3,
CONTACT:4
},
popup,
utility,
dataHelper,
carousel,
cache,
devTy="mobile",
cart,
currentProductClick,
platform,
settings,
api,
miniCartId = "paypalCart";
//config jquery mobile
$(document).bind("mobileinit", function(){
$.mobile.loadingMessageTextVisible = true;
$.mobile.allowCrossDomainPages=true;
$.support.cors=true;
defaultDialogTransition="slidefade";
defaultPageTransition="slidefade";
loadingMessage="Loading";
loadingMessageTextVisible=true;
loadingMessageTheme="a";
pageLoadErrorMessage="Error Loading Page";
pageLoadErrorMessageTheme="a";
});
//call js when dom html load success not use $(document).ready() for jquery mobile
$(document).bind('pageinit',function(){
console.log('pageinit');
});
var categoryList = [{"id": "1","name": "Hoa tình yêu"},
{"id": "2","name": "Ngày của mẹ"},
{"id": "3","name": "Quốc tế phụ nữ"}];
var productListBest = [{"id": "1","name": "Hoa lan","image":"img/slider/1.jpg","price":"20"},
{"id": "2","name": "Hoa hồng","image":"img/slider/1.jpg","price":"20"},
{"id": "3","name": "Hoa ly ly","image":"img/slider/1.jpg","price":"20"}];
var productList = [{"id":"1","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"2","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"3","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"4","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"5","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"6","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"7","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"8","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"9","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"10","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"11","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"12","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"}];
var productListMore = [{"id":"13","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"14","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"15","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"16","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"17","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"18","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"19","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"20","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"21","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"22","name":"Birthday Confetti","image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"23","name":"Chantilly Pink Roses", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"},
{"id":"24","name":"Coral Sunset ", "image":"img/slider/1.jpg","shortDescription":"Môtả","price":"20"}];
var productDetail = [{"idCategory":"1","id":"1","price":"20","name":"Birthday Confetti","image":"img/slider/1.jpg",
"Description":"Môtả","option":{"Gift":{"name":"quà tặng kèm","type" : "image","option": {"uncheck":"img/slider/1.jpg", "card":"img/slider/1.jpg","chocolate":"img/slider/1.jpg", "bear":"img/slider/1.jpg"}},"Delivery":{"name":"chon cách giao hàng","type" : "image","option":{"normal":"giao hang thong thuong","exactlyday":"giao dung ngay","exactlyhour":"giao dung gio"}},"TimeDelivery":{"name":"thời điểm giao hàng","type":"datetimepicker"},"AddressAndMesgage":{"name":"Địađiểm và lời nhắn","type":"textfield"}}}];
$(document).ready(function(){
console.log('$(document).ready');
// init param
/*********************************************/
settings = new Settings({
"urls.postercdnurl": "http://flowercardvn.com/image/cache/",
"urls.publicBaseUrl": "http://flowercardvn.com/",
"urls.proxyBaseUrl": "http://flowercardvn.com/",
"urls.apiBaseUrl": "http://flowercardvn.com/webservice/",
"urls.signupUrl": "",
"paypals.account": "acracy.nguyen@gmail.com"
});
$('.fancybox').fancybox();
platform = "Android";
popup=new Popup();
api = new ApiUrl();
utility=new Utility(Utility.deviceFactory(devTy));
utility.getDeviceType();
dataHelper=new DataHelper();
carousel=new Carousel(Carousel.deviceFactory(devTy));
utility.cookies.remove('PPMiniCart');
utility.cookies.remove('cart');
cache=new Cache();
cart= new Cart();
cart.getFromLocal();
PAYPAL.apps.MiniCart.render({
assetURL: '../',
name: miniCartId,
events: {
onRender: cart.onRender,
afterRender: cart.afterRender,
onHide: cart.onHide,
afterHide: cart.afterHide,
onShow: cart.onShow,
afterShow: cart.afterShow,
onAddToCart: cart.onAddToCart,
afterAddToCart: cart.afterAddToCart,
onRemoveFromCart: cart.onRemoveFromCart,
afterRemoveFromCart: cart.afterRemoveFromCart,
onCheckout: cart.onCheckout,
onReset: cart.onReset,
afterReset: cart.afterReset
}
});
//
utility.loadGeneralActions();
utility.createDateTimePicker({
elementName:'#cart_page #time-delivery'
});
utility.hideFilterItem();
utility.renderASpot();
utility.renderListCategoryToCarousel();
});
$('#main_page').live('pagehide', function () {
// utility.hideFilterItem();
});
$('#category_page').live('pagehide', function () {
utility.hideFilterItem();
});
$('#category_page').live('pageshow', function () {
// console.log('category_page');
// try{
utility.showFilterItem();
// var idCategory = $('#category_page').attr('idCategory');
// if(isNaN(idCategory)){
// var idCategory_product = $('#product_page').attr('idCategory');
// if(isNaN(idCategory_product)){
// utility.renderListProduct({
// idCategory: idCategory_product
// });
// }else{
// window.location = $('base').attr('href');
// }
// }else{
// utility.renderListProduct({
// idCategory: idCategory
// });
// }
// }catch(err){
// window.location = $('base').attr('href');
// }
utility.hide();
});
$('#product_page').live('pageshow', function () {
// console.log('product_page');
// try{
// var idProduct = $('#product_page').attr('idProduct');
// var idCategory = $('#product_page').attr('idCategory');
// if(isNaN(idProduct)){
// if(isNaN(idCategory)){
// utility.renderListProduct({
// idCategory: idCategory
// });
// }else{
// window.location = $('base').attr('href');
// }
// }else{
// utility.renderProductDetail({
// idProduct: idProduct
// });
// }
// }catch(err){
// window.location = $('base').attr('href');
// }
utility.hide();
});
$('#cart_page').live('pageshow', function () {
// utility.hideFilterItem();
// utility.renderProductInCart();
// console.log('cart_page');
utility.hide();
});
$('#main_page').live('pageshow', function () {
// utility.hideFilterItem();
console.log('main_page');
try{
carousel.resizeFix();
}catch(err){
}
try{
utility.hide();
}catch(err){
}
});
| JavaScript |
function Cookies(){
}
Cookies.prototype.get = function get(name){
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0){
var cookie = c.substring(nameEQ.length,c.length);
if(cookie!=null){
cookie = cookie.split(/\~|\%7E/);
return cookie[cookie.length-1];
}
return cookie;
}
}
return null;
};
Cookies.prototype.set = function set(name, value, days){
var expires = "", date = new Date();
if (days) {
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
}
document.cookie = name+"="+value+expires+"; path=/";
};
Cookies.prototype.remove = function remove(name){
this.set(name,"",-1);
};
Cookies.prototype.isAvailable = function isAvailable(value){
return (typeof(value)!='undefined' && value!=null);
};
Cookies.prototype.chooseValue = function chooseValue(){
var ck = new Cookies();
for(i in arguments){
if(ck.isAvailable(arguments[i])){
return arguments[i];
}
}
return null;
}; | JavaScript |
function Cart(){
this.data = [];
this.gift = {};
this.deliveryType = -1;
this.timeDelivery = -1;
this.address = "";
this.message = "";
}
Cart.prototype.add = function add(params){
var item = params.item;
console.log(item.ID);
try{
if(!cart.checkExit(item)){
cart.data.push(item);
popup.showMessage('','Add Success!!!','',popup.type.TYPE_ALERT);
}
cart.save();
return true;
}catch(err){
console.log('err: '+err);
return false;
}
};
Cart.prototype.remove = function remove(params){
var idProduct = params.idProduct;
for(var i = 0; i< cart.data.length; i++){
var item= cart.data[i];
if(parseFloat(item.ID) == parseFloat(idProduct)){
cart.data.splice(parseFloat(i),1);
popup.showMessage('','Remove Success!!!','',popup.type.TYPE_ALERT);
}
}
cart.save();
cart.getFromLocal();
utility.renderProductInCart();
};
Cart.prototype.checkExit = function checkExit(d){
for(var i = 0; i< cart.data.length; i++){
var item= cart.data[i];
if(parseFloat(item.ID) == parseFloat(d.ID)){
item.QUANTITY += 1;
item.NAME = d.NAME;
item.PRICE = d.PRICE;
popup.showMessage('','Update Success!!!','',popup.type.TYPE_ALERT);
return true;
}
}
return false;
};
Cart.prototype.show = function show(params){
};
Cart.prototype.publish = function publish(params){
};
Cart.prototype.save = function save(){
var w = {
data: cart.data,
gift: cart.gift,
deliveryType: cart.deliveryType,
timeDelivery: cart.timeDelivery,
address: cart.address,
message: cart.message
};
var d = JSON.stringify(w);
utility.cookies.set('cart',d,365);
};
Cart.prototype.getFromLocal = function getFromLocal(){
try{
var d = JSON.parse(utility.cookies.get('cart'));
cart.data = d.data;
cart.gift = d.gift;
cart.deliveryType = d.deliveryType;
cart.timeDelivery = d.timeDelivery;
cart.address = d.address;
cart.message = d.message;
}catch(err){
utility.cookies.remove('cart');
}
};
/*PAYPAL-IMPLEMENT*****************************************/
Cart.prototype.onRender = function onRender() {
console.log('onRender');
};
Cart.prototype.afterRender = function afterRender() {
console.log('afterRender');
};
Cart.prototype.onHide = function onHide(e) {
console.log('onHide');
};
Cart.prototype.afterHide = function afterHide(e) {
console.log('afterHide');
};
Cart.prototype.onShow = function onShow(e) {
console.log('onShow');
};
Cart.prototype.afterShow = function afterShow(e) {
console.log('afterShow');
};
Cart.prototype.onAddToCart = function onAddToCart(obj) {
console.log('onAddToCart');
};
Cart.prototype.afterAddToCart = function afterAddToCart(obj) {
console.log('afterAddToCart');
};
Cart.prototype.onRemoveFromCart = function onRemoveFromCart(obj) {
console.log('onCheckout');
};
Cart.prototype.afterRemoveFromCart = function afterRemoveFromCart(obj) {
console.log('afterRemoveFromCart');
};
Cart.prototype.onCheckout = function onCheckout(e) {
console.log('onCheckout');
};
Cart.prototype.onReset = function onReset() {
console.log('onReset');
};
Cart.prototype.afterReset = function afterReset() {
console.log('afterReset');
};
Cart.prototype.userAddProducts = function userAddProducts(cart) {
console.log('userAddProducts');
}
Cart.prototype.userRemoveProducts = function userRemoveProducts(cart) {
console.log('userRemoveProducts');
}
Cart.prototype.fakeEvent = function fakeEvent(el, type) {
console.log('fakeEvent');
}
Cart.prototype.isCartShowing = function isCartShowing() {
console.log('isCartShowing');
return (parseInt(PAYPAL.apps.MiniCart.UI.cart.style.top, 10) === 0);
}
| JavaScript |
/**
* This is for Cross-site Origin Resource Sharing (CORS) requests.
*
* Additionally the script will fail-over to a proxy if you have one set up.
*
* @param string url the url to retrieve
* @param mixed data data to send along with the get request [optional]
* @param function callback function to call on successful result [optional]
* @param string type the type of data to be returned [optional]
*/
function getCORS(url, data, callback, type) {
try {
// Try using jQuery to get data
jQuery.get(url, data, callback, type);
} catch(e) {
// jQuery get() failed, try IE8 CORS, or use the proxy
if (jQuery.browser.msie && window.XDomainRequest) {
// Use Microsoft XDR
var xdr = new XDomainRequest();
xdr.open("get", url);
xdr.onload = function() {
callback(this.responseText, 'success');
};
xdr.send();
} else {
try {
// Ancient browser, use our proxy
var mycallback = function() {
var textstatus = 'error';
var data = 'error';
if ((this.readyState == 4)
&& (this.status == '200')) {
textstatus = 'success';
data = this.responseText;
}
callback(data, textstatus);
};
// proxy_xmlhttp is a separate script you'll have to set up
request = new proxy_xmlhttp();
request.open('GET', url, true);
request.onreadystatechange = mycallback;
request.send();
} catch(e) {
// Could not fetch using the proxy
}
}
}
}
/**
* This method is for Cross-site Origin Resource Sharing (CORS) POSTs
*
* @param string url the url to post to
* @param mixed data additional data to send [optional]
* @param function callback a function to call on success [optional]
* @param string type the type of data to be returned [optional]
*/
function postCORS(url, data, callback, type)
{
try {
// Try using jQuery to POST
jQuery.post(url, data, callback, type);
} catch(e) {
// jQuery POST failed
var params = '';
for (key in data) {
params = params+'&'+key+'='+data[key];
}
// Try XDR, or use the proxy
if (jQuery.browser.msie && window.XDomainRequest) {
// Use XDR
var xdr = new XDomainRequest();
xdr.open("post", url);
xdr.send(params);
xdr.onload = function() {
callback(xdr.responseText, 'success');
};
} else {
try {
// Use the proxy to post the data.
request = new proxy_xmlhttp();
request.open('POST', url, true);
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
request.send(params);
} catch(e) {
// could not post using the proxy
}
}
}
} | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.6
*
* Requires: 1.2.2+
*/
(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=
d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); | JavaScript |
/*!
* MiniCart
*
* @author Jeff Harrell <https://github.com/jeffharrell/>
* @license MIT <https://github.com/jeffharrell/MiniCart/blob/master/LICENSE>
*/
if (typeof PAYPAL === 'undefined' || !PAYPAL) {
var PAYPAL = {};
}
PAYPAL.apps = PAYPAL.apps || {};
(function () {
'use strict';
/**
* Default configuration
*/
var config = {
/**
* The parent element the cart should "pin" to
*/
parent: document.body,
/**
* Edge of the window to pin the cart to
*/
displayEdge: 'right',
/**
* Distance from the edge of the window
*/
edgeDistance: '50px',
/**
* HTML target property for the checkout form
*/
formTarget: null,
/**
* The base path of your website to set the cookie to
*/
cookiePath: '/',
/**
* The number of days to keep the cart data
*/
cartDuration: 30,
/**
* Strings used for display text
*/
strings: {
button: 'Checkout',
subtotal: 'Subtotal: ',
discount: 'Discount: ',
shipping: 'does not include shipping & tax',
processing: 'Processing...'
},
/**
* Unique ID used on the wrapper element
*/
name: 'PPMiniCart',
/**
* Boolean to determine if the cart should "peek" when it's hidden with items
*/
peekEnabled: true,
/**
* The URL of the PayPal website
*/
paypalURL: 'https://www.paypal.com/cgi-bin/webscr',
/**
* The base URL to the visual assets
*/
assetURL: 'http://www.minicartjs.com/build/',
events: {
/**
* Custom event fired before the cart is rendered
*/
onRender: null,
/**
* Custom event fired after the cart is rendered
*/
afterRender: null,
/**
* Custom event fired before the cart is hidden
*
* @param e {event} The triggering event
*/
onHide: null,
/**
* Custom event fired after the cart is hidden
*
* @param e {event} The triggering event
*/
afterHide: null,
/**
* Custom event fired before the cart is shown
*
* @param e {event} The triggering event
*/
onShow: null,
/**
* Custom event fired after the cart is shown
*
* @param e {event} The triggering event
*/
afterShow: null,
/**
* Custom event fired before a product is added to the cart
*
* @param data {object} Product object
*/
onAddToCart: null,
/**
* Custom event fired after a product is added to the cart
*
* @param data {object} Product object
*/
afterAddToCart: null,
/**
* Custom event fired before a product is removed from the cart
*
* @param data {object} Product object
*/
onRemoveFromCart: null,
/**
* Custom event fired after a product is removed from the cart
*
* @param data {object} Product object
*/
afterRemoveFromCart: null,
/**
* Custom event fired before the checkout action takes place
*
* @param e {event} The triggering event
*/
onCheckout: null,
/**
* Custom event fired before the cart is reset
*/
onReset: null,
/**
* Custom event fired after the cart is reset
*/
afterReset: null
}
};
if (!PAYPAL.apps.MiniCart) {
/**
* Mini Cart application
*/
PAYPAL.apps.MiniCart = (function () {
var minicart = {},
isShowing = false,
isRendered = false;
/** PRIVATE **/
/**
* PayPal form cmd values which are supported
*/
var SUPPORTED_CMDS = { _cart: true, _xclick: true };
/**
* The form origin that is passed to PayPal
*/
var BN_VALUE = 'MiniCart_AddToCart_WPS_US';
/**
* Regex filter for cart settings, which appear only once in a cart
*/
var SETTING_FILTER = /^(?:business|currency_code|lc|paymentaction|no_shipping|cn|no_note|invoice|handling_cart|weight_cart|weight_unit|tax_cart|page_style|image_url|cpp_|cs|cbt|return|cancel_return|notify_url|rm|custom|charset)/;
/**
* Adds the cart's CSS to the page in a <style> element.
* The CSS lives in this file so that it can leverage properties from the config
* and doesn't require an additional download. To override the CSS see the FAQ.
*/
var _addCSS = function () {
var name = config.name,
css = [],
style, head;
css.push('#' + name + ' form { position:fixed; float:none; top:-250px; ' + config.displayEdge + ':' + config.edgeDistance + '; width:265px; margin:0; padding:50px 10px 0; min-height:170px; background:#fff url(' + config.assetURL + 'images/minicart_sprite.png) no-repeat -125px -60px; border:1px solid #999; border-top:0; font:13px/normal arial, helvetica; color:#333; text-align:left; -moz-border-radius:0 0 8px 8px; -webkit-border-radius:0 0 8px 8px; border-radius:0 0 8px 8px; -moz-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1); -webkit-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1); box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1); } ');
css.push('#' + name + ' ul { position:relative; overflow-x:hidden; overflow-y:auto; height:130px; margin:0 0 7px; padding:0; list-style-type:none; border-top:1px solid #ccc; border-bottom:1px solid #ccc; } ');
css.push('#' + name + ' li { position:relative; margin:-1px 0 0; padding:6px 5px 6px 0; border-top:1px solid #f2f2f2; } ');
css.push('#' + name + ' li a { display: block; width: 155px; color:#333; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } ');
css.push('#' + name + ' li a span { color:#999; font-size:10px; } ');
css.push('#' + name + ' li .quantity { position:absolute; top:.5em; right:78px; width:22px; padding:1px; border:1px solid #83a8cc; text-align:right; } ');
css.push('#' + name + ' li .price { position:absolute; top:.5em; right:4px; } ');
css.push('#' + name + ' li .remove { position:absolute; top:9px; right:60px; width:14px; height:14px; background:url(' + config.assetURL + 'images/minicart_sprite.png) no-repeat -134px -4px; border:0; cursor:pointer; } ');
css.push('#' + name + ' p { margin:0; padding:0 0 0 20px; background:url(' + config.assetURL + 'images/minicart_sprite.png) no-repeat; font-size:13px; font-weight:bold; } ');
css.push('#' + name + ' p:hover { cursor:pointer; } ');
css.push('#' + name + ' p input { float:right; margin:4px 0 0; padding:1px 4px; text-decoration:none; font-weight:normal; color:#333; background:#ffa822 url(' + config.assetURL + 'images/minicart_sprite.png) repeat-x left center; border:1px solid #d5bd98; border-right-color:#935e0d; border-bottom-color:#935e0d; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } ');
css.push('#' + name + ' p .shipping { display:block; font-size:10px; font-weight:normal; color:#999; } ');
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet) {
style.styleSheet.cssText = css.join('');
} else {
style.appendChild(document.createTextNode(css.join('')));
}
head = document.getElementsByTagName('head')[0];
head.appendChild(style);
};
/**
* Builds the DOM elements required by the cart
*/
var _buildDOM = function () {
var UI = minicart.UI,
cmd, type, bn, parent, version;
UI.wrapper = document.createElement('div');
UI.wrapper.id = config.name;
cmd = document.createElement('input');
cmd.type = 'hidden';
cmd.name = 'cmd';
cmd.value = '_cart';
type = cmd.cloneNode(false);
type.name = 'upload';
type.value = '1';
bn = cmd.cloneNode(false);
bn.name = 'bn';
bn.value = BN_VALUE;
UI.cart = document.createElement('form');
UI.cart.method = 'post';
UI.cart.action = config.paypalURL;
if (config.formTarget) {
UI.cart.target = config.formTarget;
}
UI.cart.appendChild(cmd);
UI.cart.appendChild(type);
UI.cart.appendChild(bn);
UI.wrapper.appendChild(UI.cart);
UI.itemList = document.createElement('ul');
UI.cart.appendChild(UI.itemList);
UI.summary = document.createElement('p');
UI.cart.appendChild(UI.summary);
UI.button = document.createElement('input');
UI.button.type = 'submit';
UI.button.value = config.strings.button;
UI.summary.appendChild(UI.button);
UI.subtotal = document.createElement('span');
UI.subtotal.innerHTML = config.strings.subtotal;
UI.subtotalAmount = document.createElement('span');
UI.subtotalAmount.innerHTML = '0.00';
UI.subtotal.appendChild(UI.subtotalAmount);
UI.summary.appendChild(UI.subtotal);
UI.shipping = document.createElement('span');
UI.shipping.className = 'shipping';
UI.shipping.innerHTML = config.strings.shipping;
UI.summary.appendChild(UI.shipping);
// Workaround: IE 6 and IE 7/8 in quirks mode do not support position: fixed in CSS
if (window.attachEvent && !window.opera) {
version = navigator.userAgent.match(/MSIE\s([^;]*)/);
if (version) {
version = parseFloat(version[1]);
if (version < 7 || (version >= 7 && document.compatMode === 'BackCompat')) {
UI.cart.style.position = 'absolute';
UI.wrapper.style[config.displayEdge] = '0';
UI.wrapper.style.setExpression('top', 'x = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop');
}
}
}
parent = (typeof config.parent === 'string') ? document.getElementById(config.parent) : config.parent;
parent.appendChild(UI.wrapper);
};
/**
* Attaches the cart events to it's DOM elements
*/
var _bindEvents = function () {
var ui = minicart.UI,
forms, form, i;
// Look for all "Cart" and "Buy Now" forms on the page and attach events
forms = document.getElementsByTagName('form');
for (i = 0; i < forms.length; i++) {
form = forms[i];
if (form.cmd && SUPPORTED_CMDS[form.cmd.value]) {
minicart.bindForm(form);
}
}
// Hide the Mini Cart for all non-cart related clicks
$.event.add(document, 'click', function (e) {
if (isShowing) {
var target = e.target,
cartEl = ui.cart;
if (!(/input|button|select|option/i.test(target.tagName))) {
while (target.nodeType === 1) {
if (target === cartEl) {
return;
}
target = target.parentNode;
}
minicart.hide(null);
}
}
});
// Run the checkout code when submitting the form
$.event.add(ui.cart, 'submit', function (e) {
_checkout(e);
});
// Show the cart when clicking on the summary
$.event.add(ui.summary, 'click', function (e) {
var target = e.target;
if (target !== ui.button) {
minicart.toggle(e);
}
});
// Redraw the cart if the back/forward cache doesn't re-render
$.event.add(window, 'pageshow', function (e) {
if (e.persisted) {
_redrawCartItems(true);
minicart.hide();
}
});
// Update other windows when HTML5 localStorage is updated
if (window.attachEvent && !window.opera) {
$.event.add(document, 'storage', function (e) {
// IE needs a delay in order to properly see the change
setTimeout(_redrawCartItems, 100);
});
} else {
$.event.add(window, 'storage', function (e) {
// Safari, Chrome, and Opera can filter on updated storage key
// Firefox can't so it uses a brute force approach
if ((e.key && e.key === config.name) || !e.key) {
_redrawCartItems();
}
});
}
};
/**
* Parses the userConfig (if applicable) and overwrites the default values
*/
var _parseUserConfig = function (userConfig) {
var key;
// TODO: This should recursively merge the config values
for (key in userConfig) {
if (typeof config[key] !== undefined) {
config[key] = userConfig[key];
}
}
};
/**
* Loads the stored data and builds the cart
*/
var _parseStorage = function () {
var data, length, i;
if ((data = $.storage.load())) {
length = data.length;
for (i = 0; i < length; i++) {
if (_renderProduct(data[i])) {
isShowing = true;
}
}
}
};
/**
* Data parser used for forms
*
* @param form {HTMLElement} An HTML form
* @return {object}
*/
var _parseForm = function (form) {
var raw = form.elements,
data = {},
pair, value, i, len;
for (i = 0, len = raw.length; i < len; i++) {
pair = raw[i];
if ((value = $.util.getInputValue(pair))) {
data[pair.name] = value;
}
}
return data;
};
/**
* Massage's a object's data in preparation for adding it to the user's cart
*
* @param data {object} An object of WPS xclick style data to add to the cart. The format is { product: '', settings: '' }.
* @return {object}
*/
var _parseData = function (data) {
var product = {},
settings = {},
existing, option_index, key, len, match, i, j;
// Parse the data into a two categories: product and settings
for (key in data) {
if (SETTING_FILTER.test(key)) {
settings[key] = data[key];
} else {
product[key] = data[key];
}
}
// Check the products to see if this variation already exists
// If it does then reuse the same object
for (i = 0, len = minicart.products.length; i < len; i++) {
existing = minicart.products[i].product;
// Do the product name and number match
if (product.item_name === existing.item_name && product.item_number === existing.item_number) {
// Products are a match so far; Now do all of the products options match?
match = true;
j = 0;
while (existing['os' + j]) {
if (product['os' + j] !== existing['os' + j]) {
match = false;
break;
}
j++;
}
if (match) {
product.offset = existing.offset;
break;
}
}
}
// Normalize the values
product.href = product.href || window.location.href;
product.quantity = product.quantity || 1;
product.amount = product.amount || 0;
// Add Mini Cart specific settings
if (settings['return'] && settings['return'].indexOf('#') === -1) {
settings['return'] += '#' + config.name + '=reset';
}
// Add option amounts to the total amount
option_index = (product.option_index) ? product.option_index : 0;
while (product['os' + option_index]) {
i = 0;
while (typeof product['option_select' + i] !== 'undefined') {
if (product['option_select' + i] === product['os' + option_index]) {
product.amount = product.amount + parseFloat(product['option_amount' + i]);
break;
}
i++;
}
option_index++;
}
return {
product: product,
settings: settings
};
};
/**
* Resets the cart and renders the products
*/
var _redrawCartItems = function (silent) {
minicart.products = [];
minicart.UI.itemList.innerHTML = '';
minicart.UI.subtotalAmount.innerHTML = '';
minicart.UI.button.value = config.strings.button;
_parseStorage();
minicart.updateSubtotal(silent);
};
/**
* Renders the product in the cart
*
* @param data {object} The data for the product
*/
var _renderProduct = function (data) {
var ui = minicart.UI,
cartEl = ui.cart,
product = new ProductNode(data, minicart.UI.itemList.children.length + 1),
offset = data.product.offset,
keyupTimer, hiddenInput, key;
minicart.products[offset] = product;
// Add hidden settings data to parent form
for (key in data.settings) {
if (cartEl.elements[key]) {
if (cartEl.elements[key].value) {
cartEl.elements[key].value = data.settings[key];
} else {
cartEl.elements[key] = data.settings[key];
}
} else {
hiddenInput = document.createElement('input');
hiddenInput.type = 'hidden';
hiddenInput.name = key;
hiddenInput.value = data.settings[key];
cartEl.appendChild(hiddenInput);
}
}
// if the product has no name or number then don't add it
if (product.isPlaceholder) {
return false;
// otherwise, setup the new element
} else {
// Click event for "x"
$.event.add(product.removeInput, 'click', function () {
_removeProduct(product, offset);
});
// Event for changing quantities
var currentValue = product.quantityInput.value;
$.event.add(product.quantityInput, 'keyup', function () {
var that = this;
keyupTimer = setTimeout(function () {
var value = parseInt(that.value, 10);
if (!isNaN(value) && value !== currentValue) {
currentValue = value;
product.setQuantity(value);
// Delete the product
if (!product.getQuantity()) {
_removeProduct(product, offset);
}
minicart.updateSubtotal();
$.storage.save(minicart.products);
}
}, 250);
});
// Add the item and fade it in
ui.itemList.insertBefore(product.liNode, ui.itemList.firstChild);
$.util.animate(product.liNode, 'opacity', { from: 0, to: 1 });
return true;
}
};
/**
* Removes a product from the cart
*
* @param product {ProductNode} The product object
* @param offset {Number} The offset for the product in the cart
*/
var _removeProduct = function (product, offset) {
var events = config.events,
onRemoveFromCart = events.onRemoveFromCart,
afterRemoveFromCart = events.afterRemoveFromCart;
if (typeof onRemoveFromCart === 'function') {
if (onRemoveFromCart.call(minicart, product) === false) {
return;
}
}
product.setQuantity(0);
product.quantityInput.style.display = 'none';
$.util.animate(product.liNode, 'opacity', { from: 1, to: 0 }, function () {
$.util.animate(product.liNode, 'height', { from: 18, to: 0 }, function () {
try {
product.liNode.parentNode.removeChild(product.liNode);
} catch (e) {
// fail
}
// regenerate the form element indexes
var products = minicart.UI.cart.getElementsByTagName('li'),
products_len = products.length,
inputs,
inputs_len,
input,
matches,
i, j, k = 1;
for (i = 0 ; i < products_len; i++) {
inputs = products[i].getElementsByTagName('input');
inputs_len = inputs.length;
for (j = 0; j < inputs_len; j++) {
input = inputs[j];
matches = /(.+)_[0-9]+$/.exec(input.name);
if (matches && matches[1]) {
input.name = matches[1] + '_' + k;
}
}
k++;
}
if (typeof afterRemoveFromCart === 'function') {
afterRemoveFromCart.call(minicart, product);
}
});
});
minicart.products[offset].product.item_name = '';
minicart.products[offset].product.item_number = '';
minicart.updateSubtotal();
$.storage.save(minicart.products, config.cartDuration);
};
/**
* Event when the cart form is submitted
*
* @param e {event} The form submission event
*/
var _checkout = function (e) {
var onCheckout = config.events.onCheckout;
if (typeof onCheckout === 'function') {
if (onCheckout.call(minicart, e) === false) {
e.preventDefault();
return;
}
}
minicart.UI.button.value = config.strings.processing;
};
/** PUBLIC **/
/**
* Array of ProductNode
*/
minicart.products = [];
/**
* Container for UI elements
*/
minicart.UI = {};
/**
* Renders the cart, creates the configuration and loads the data
*
* @param userConfig {object} User settings which override the default configuration
*/
minicart.render = function (userConfig) {
var events, onRender, afterRender, hash, cmd;
// Overwrite default configuration with user settings
_parseUserConfig(userConfig);
events = config.events;
onRender = events.onRender;
afterRender = events.afterRender;
if (typeof onRender === 'function') {
if (onRender.call(minicart) === false) {
return;
}
}
if (!isRendered) {
// Render the cart UI
_addCSS();
_buildDOM();
_bindEvents();
// Check if a transaction was completed
// The "return" form param is modified to contain a hash value
// with "PPMiniCart=reset". If this is seen then it's assumed
// that a transaction was completed and we should reset the cart.
hash = location.hash.substring(1);
if (hash.indexOf(config.name + '=') === 0) {
cmd = hash.split('=')[1];
if (cmd === 'reset') {
minicart.reset();
location.hash = '';
}
}
}
// Process any stored data and render it
// TODO: _parseStorage shouldn't be so tightly coupled here and one
// should be able to redraw without re-parsing the storage
_redrawCartItems(true);
// Trigger the cart to peek on first load if any products were loaded
if (!isRendered) {
if (isShowing) {
setTimeout(function () {
minicart.hide(null);
}, 500);
} else {
$.storage.remove();
}
}
isRendered = true;
if (typeof afterRender === 'function') {
afterRender.call(minicart);
}
};
/**
* Binds a form to the Mini Cart
*
* @param form {HTMLElement} The form element to bind
*/
minicart.bindForm = function (form) {
if (form.add) {
$.event.add(form, 'submit', function (e) {
e.preventDefault(e);
var data = _parseForm(e.target);
minicart.addToCart(data);
});
} else if (form.display) {
$.event.add(form, 'submit', function (e) {
e.preventDefault();
minicart.show(e);
});
} else {
return false;
}
return true;
};
/**
* Adds a product to the cart
*
* @param data {object} Product object. See _parseData for format
* @return {boolean} True if the product was added, false otherwise
*/
minicart.addToCart = function (data) {
var events = config.events,
onAddToCart = events.onAddToCart,
afterAddToCart = events.afterAddToCart,
success = false,
productNode, offset;
data = _parseData(data);
offset = data.product.offset;
if (typeof onAddToCart === 'function') {
if (onAddToCart.call(minicart, data.product) === false) {
return;
}
}
// Check if the product has already been added; update if so
if ((productNode = this.getProductAtOffset(offset))) {
productNode.product.quantity += parseInt(data.product.quantity || 1, 10);
productNode.setPrice(data.product.amount * productNode.product.quantity);
productNode.setQuantity(productNode.product.quantity);
success = true;
// Add a new DOM element for the product
} else {
data.product.offset = minicart.products.length;
success = _renderProduct(data);
}
minicart.updateSubtotal();
minicart.show(null);
$.storage.save(minicart.products, config.cartDuration);
if (typeof afterAddToCart === 'function') {
afterAddToCart.call(minicart, data);
}
return success;
};
/**
* Returns a product from the Mini Cart's interal storage
*
* @param offset {number} The offset of the product
* @return {ProductNode}
*/
minicart.getProductAtOffset = function (offset) {
return (typeof offset !== 'undefined' && this.products[offset]);
};
/**
* Iterates over each product and calculates the subtotal
*
* @return {number} The subtotal
*/
minicart.calculateSubtotal = function () {
var amount = 0,
products = minicart.products,
product, item, price, discount, len, i;
for (i = 0, len = products.length; i < len; i++) {
item = products[i];
if ((product = item.product)) {
if (product.quantity && product.amount) {
price = product.amount;
discount = item.getDiscount();
amount += parseFloat((price * product.quantity) - discount);
}
}
}
return amount.toFixed(2);
};
/**
* Updates the UI with the current subtotal and currency code
*/
minicart.updateSubtotal = function (silent) {
var ui = minicart.UI,
cartEl = ui.cart.elements,
subtotalEl = ui.subtotalAmount,
subtotal = minicart.calculateSubtotal(),
level = 1,
currency_code, currency_symbol, hex, len, i;
// Get the currency
currency_code = '';
currency_symbol = '';
if (cartEl.currency_code) {
currency_code = cartEl.currency_code.value || cartEl.currency_code;
} else {
for (i = 0, len = cartEl.length; i < len; i++) {
if (cartEl[i].name === 'currency_code') {
currency_code = cartEl[i].value || cartEl[i];
break;
}
}
}
// Update the UI
subtotalEl.innerHTML = $.util.formatCurrency(subtotal, currency_code);
// Yellow fade on update
if (!silent) {
(function doFade() {
hex = level.toString(16);
level++;
subtotalEl.style.backgroundColor = '#ff' + hex;
if (level >= 15) {
subtotalEl.style.backgroundColor = 'transparent';
// hide the cart if there's no total
if (subtotal === '0.00') {
minicart.reset();
}
return;
}
setTimeout(doFade, 30);
})();
}
};
/**
* Shows the cart
*
* @param e {event} The triggering event
*/
minicart.show = function (e) {
var from = parseInt(minicart.UI.cart.offsetTop, 10),
to = 0,
events = config.events,
onShow = events.onShow,
afterShow = events.afterShow;
if (e && e.preventDefault) { e.preventDefault(); }
if (typeof onShow === 'function') {
if (onShow.call(minicart, e) === false) {
return;
}
}
$.util.animate(minicart.UI.cart, 'top', { from: from, to: to }, function () {
if (typeof afterShow === 'function') {
afterShow.call(minicart, e);
}
});
minicart.UI.summary.style.backgroundPosition = '-195px 2px';
isShowing = true;
};
/**
* Hides the cart off the screen
*
* @param e {event} The triggering event
* @param fully {boolean} Should the cart be fully hidden? Optional. Defaults to false.
*/
minicart.hide = function (e, fully) {
var ui = minicart.UI,
cartEl = ui.cart,
summaryEl = ui.summary,
cartHeight = (cartEl.offsetHeight) ? cartEl.offsetHeight : document.defaultView.getComputedStyle(cartEl, '').getPropertyValue('height'),
summaryHeight = (summaryEl.offsetHeight) ? summaryEl.offsetHeight : document.defaultView.getComputedStyle(summaryEl, '').getPropertyValue('height'),
from = parseInt(cartEl.offsetTop, 10),
events = config.events,
onHide = events.onHide,
afterHide = events.afterHide,
to;
// make the cart fully hidden
if (fully || minicart.products.length === 0 || !config.peekEnabled) {
to = cartHeight * -1;
// otherwise only show a little teaser portion of it
} else {
to = (cartHeight - summaryHeight - 8) * -1;
}
if (e && e.preventDefault) { e.preventDefault(); }
if (typeof onHide === 'function') {
if (onHide.call(minicart, e) === false) {
return;
}
}
$.util.animate(cartEl, 'top', { from: from, to: to }, function () {
if (typeof afterHide === 'function') {
afterHide.call(minicart, e);
}
});
summaryEl.style.backgroundPosition = '-195px -32px';
isShowing = false;
};
/**
* Toggles the display of the cart
*
* @param e {event} The triggering event
*/
minicart.toggle = function (e) {
if (isShowing) {
minicart.hide(e);
} else {
minicart.show(e);
}
};
/**
* Resets the cart to it's initial state
*/
minicart.reset = function () {
var ui = minicart.UI,
events = config.events,
onReset = events.onReset,
afterReset = events.afterReset;
if (typeof onReset === 'function') {
if (onReset.call(minicart) === false) {
return;
}
}
minicart.products = [];
if (isShowing) {
ui.itemList.innerHTML = '';
ui.subtotalAmount.innerHTML = '';
minicart.hide(null, true);
}
$.storage.remove();
if (typeof afterReset === 'function') {
afterReset.call(minicart);
}
};
// Expose the object as public methods
return minicart;
})();
/**
* An HTMLElement which displays each product
*
* @param data {object} The data for the product
* @param position {number} The product number
*/
var ProductNode = function (data, position) {
this._view(data, position);
};
ProductNode.prototype = {
/**
* Creates the DOM nodes and adds the product content
*
* @param data {object} The data for the product
* @param position {number} The product number
*/
_view: function (data, position) {
var name, price, quantity, discount, options, hiddenInput, key;
this.product = data.product;
this.settings = data.settings;
this.liNode = document.createElement('li');
this.nameNode = document.createElement('a');
this.metaNode = document.createElement('span');
this.discountNode = document.createElement('span');
this.discountInput = document.createElement('input');
this.priceNode = document.createElement('span');
this.quantityInput = document.createElement('input');
this.removeInput = document.createElement('input');
// Don't add blank products
if (!this.product || (!this.product.item_name && !this.product.item_number)) {
this.isPlaceholder = true;
return;
}
// Name
if (this.product.item_name) {
name = this.product.item_name;
}
this.nameNode.innerHTML = name;
this.nameNode.title = name;
this.nameNode.href = this.product.href;
this.nameNode.appendChild(this.metaNode);
// Meta info
if (this.product.item_number) {
this.metaNode.innerHTML = '<br />#' + this.product.item_number;
}
// Options
options = this.getOptions();
for (key in options) {
this.metaNode.innerHTML += '<br />' + key + ': ' + options[key];
}
// Discount
discount = this.getDiscount();
if (discount>=0) {
this.discountInput.type = 'hidden';
this.discountInput.name = 'discount_amount_' + position;
this.discountInput.value = discount;
this.metaNode.appendChild(this.discountInput);
}
// Price
price = this.getPrice();
this.priceNode.className = 'price';
// Quantity
quantity = this.getQuantity();
this.quantityInput.name = 'quantity_' + position;
this.quantityInput.className = 'quantity';
this.quantityInput.setAttribute('autocomplete', 'off');
this.setQuantity(quantity);
// Remove button
this.removeInput.type = 'button';
this.removeInput.className = 'remove';
// Build out the DOM
this.liNode.appendChild(this.nameNode);
this.liNode.appendChild(this.quantityInput);
if (discount) {
this.liNode.appendChild(this.discountInput);
}
this.liNode.appendChild(this.removeInput);
this.liNode.appendChild(this.priceNode);
// Add in hidden product data
for (key in this.product) {
if (key !== 'quantity' && key.indexOf('discount_') === -1) {
hiddenInput = document.createElement('input');
hiddenInput.type = 'hidden';
hiddenInput.name = key + '_' + position;
hiddenInput.value = this.product[key];
this.liNode.appendChild(hiddenInput);
}
}
},
/**
* Calculates the discount for a product
*
* @return {Object} An object with the discount amount or percentage
*/
getDiscount: function () {
var discount = 0,
discountNum = this.product.discount_num || -1,
quantity;
// Discounts: Amount-based
if (this.product.discount_amount>=0) {
// Discount amount for the first item
discount = parseFloat(this.product.discount_amount);
// Discount amount for each additional item
if (this.product.discount_amount2) {
quantity = this.getQuantity();
if (quantity > 1) {
discount += Math.min(quantity - 1, discountNum) * parseFloat(this.product.discount_amount2);
}
}
// Discounts: Percentage-based
} else if (this.product.discount_rate>=0) {
// Discount amount on the first item
discount = this.product.amount * parseFloat(this.product.discount_rate) / 100;
// Discount amount for each additional item
if (this.product.discount_rate2) {
quantity = this.getQuantity();
if (quantity > 1) {
discount += Math.min(quantity - 1, discountNum) * this.product.amount * parseFloat(this.product.discount_amount2) / 100;
}
}
}
return discount && discount.toFixed(2);
},
/**
* Returns an object of options for the product
*
* @return {Object}
*/
getOptions: function () {
var options = {},
i = 0;
while (typeof this.product['on' + i] !== 'undefined') {
options[this.product['on' + i]] = this.product['os' + i];
i++;
}
return options;
},
/**
* Utility function to set the quantity of this product
*
* @param value {number} The new value
*/
setQuantity: function (value) {
var discount;
value = parseInt(value, 10);
this.product.quantity = value;
if (this.quantityInput.value !== value) {
this.quantityInput.value = value;
if ((discount = this.getDiscount())) {
this.discountInput.value = discount;
/**
* Append the discount node if it doesn't already exist
*
* @author Ethan Schroeder <ethan.schroeder@gmail.com>
*/
if (!this.discountNode.innerHTML) {
this.metaNode.appendChild(this.discountNode);
}
this.discountNode.innerHTML = '<br />';
this.discountNode.innerHTML += config.strings.discount;
this.discountNode.innerHTML += $.util.formatCurrency(discount, this.settings.currency_code);
}
}
this.setPrice(this.product.amount * value);
},
/**
* Utility function to get the quantity of this product
*
* @return {number}
*/
getQuantity: function () {
return (typeof this.product.quantity !== undefined) ? this.product.quantity : 1;
},
/**
* Utility function to set the price of this product
*
* @param value {number} The new value
*/
setPrice: function (value) {
value = parseFloat(value, 10);
this.priceNode.innerHTML = $.util.formatCurrency(value.toFixed(2), this.settings.currency_code);
},
/**
* Utility function to get the price of this product
*
* @return {number}
*/
getPrice: function () {
return (this.product.amount * this.getQuantity()).toFixed(2);
}
};
/** UTILITY **/
var $ = {};
$.storage = (function () {
var name = config.name;
// Use HTML5 client side storage
if (window.localStorage) {
return {
/**
* Loads the saved data
*
* @return {object}
*/
load: function () {
var data = localStorage.getItem(name),
todayDate, expiresDate;
if (data) {
data = JSON.parse(decodeURIComponent(data));
}
if (data && data.expires) {
todayDate = new Date();
expiresDate = new Date(data.expires);
if (todayDate > expiresDate) {
$.storage.remove();
return;
}
}
// A little bit of backwards compatibility for the moment
if (data && data.value) {
return data.value;
} else {
return data;
}
},
/**
* Saves the data
*
* @param items {object} The list of items to save
* @param duration {Number} The number of days to keep the data
*/
save: function (items, duration) {
var date = new Date(),
data = [],
wrappedData, item, len, i;
if (items) {
for (i = 0, len = items.length; i < len; i++) {
item = items[i];
data.push({
product: item.product,
settings: item.settings
});
}
date.setTime(date.getTime() + duration * 24 * 60 * 60 * 1000);
wrappedData = {
value: data,
expires: date.toGMTString()
};
localStorage.setItem(name, encodeURIComponent(JSON.stringify(wrappedData)));
}
},
/**
* Removes the saved data
*/
remove: function () {
localStorage.removeItem(name);
}
};
// Otherwise use cookie based storage
} else {
return {
/**
* Loads the saved data
*
* @return {object}
*/
load: function () {
var key = name + '=',
data, cookies, cookie, value, i;
try {
cookies = document.cookie.split(';');
for (i = 0; i < cookies.length; i++) {
cookie = cookies[i];
while (cookie.charAt(0) === ' ') {
cookie = cookie.substring(1, cookie.length);
}
if (cookie.indexOf(key) === 0) {
value = cookie.substring(key.length, cookie.length);
data = JSON.parse(decodeURIComponent(value));
}
}
} catch (e) {}
return data;
},
/**
* Saves the data
*
* @param items {object} The list of items to save
* @param duration {Number} The number of days to keep the data
*/
save: function (items, duration) {
var date = new Date(),
data = [],
item, len, i;
if (items) {
for (i = 0, len = items.length; i < len; i++) {
item = items[i];
data.push({
product: item.product,
settings: item.settings
});
}
date.setTime(date.getTime() + duration * 24 * 60 * 60 * 1000);
document.cookie = config.name + '=' + encodeURIComponent(JSON.stringify(data)) + '; expires=' + date.toGMTString() + '; path=' + config.cookiePath;
}
},
/**
* Removes the saved data
*/
remove: function () {
this.save(null, -1);
}
};
}
})();
$.event = (function () {
/**
* Events are added here for easy reference
*/
var cache = [];
// Non-IE events
if (document.addEventListener) {
return {
/**
* Add an event to an object and optionally adjust it's scope
*
* @param obj {HTMLElement} The object to attach the event to
* @param type {string} The type of event excluding "on"
* @param fn {function} The function
* @param scope {object} Object to adjust the scope to (optional)
*/
add: function (obj, type, fn, scope) {
scope = scope || obj;
var wrappedFn = function (e) { fn.call(scope, e); };
obj.addEventListener(type, wrappedFn, false);
cache.push([obj, type, fn, wrappedFn]);
},
/**
* Remove an event from an object
*
* @param obj {HTMLElement} The object to remove the event from
* @param type {string} The type of event excluding "on"
* @param fn {function} The function
*/
remove: function (obj, type, fn) {
var wrappedFn, item, len = cache.length, i;
for (i = 0; i < len; i++) {
item = cache[i];
if (item[0] === obj && item[1] === type && item[2] === fn) {
wrappedFn = item[3];
if (wrappedFn) {
obj.removeEventListener(type, wrappedFn, false);
delete cache[i];
}
}
}
}
};
// IE events
} else if (document.attachEvent) {
return {
/**
* Add an event to an object and optionally adjust it's scope (IE)
*
* @param obj {HTMLElement} The object to attach the event to
* @param type {string} The type of event excluding "on"
* @param fn {function} The function
* @param scope {object} Object to adjust the scope to (optional)
*/
add: function (obj, type, fn, scope) {
scope = scope || obj;
var wrappedFn = function () {
var e = window.event;
e.target = e.target || e.srcElement;
e.preventDefault = function () {
e.returnValue = false;
};
fn.call(scope, e);
};
obj.attachEvent('on' + type, wrappedFn);
cache.push([obj, type, fn, wrappedFn]);
},
/**
* Remove an event from an object (IE)
*
* @param obj {HTMLElement} The object to remove the event from
* @param type {string} The type of event excluding "on"
* @param fn {function} The function
*/
remove: function (obj, type, fn) {
var wrappedFn, item, len = cache.length, i;
for (i = 0; i < len; i++) {
item = cache[i];
if (item[0] === obj && item[1] === type && item[2] === fn) {
wrappedFn = item[3];
if (wrappedFn) {
obj.detachEvent('on' + type, wrappedFn);
delete cache[i];
}
}
}
}
};
}
})();
$.util = {
/**
* Animation method for elements
*
* @param el {HTMLElement} The element to animate
* @param prop {string} Name of the property to change
* @param config {object} Properties of the animation
* @param callback {function} Callback function after the animation is complete
*/
animate: function (el, prop, config, callback) {
config = config || {};
config.from = config.from || 0;
config.to = config.to || 0;
config.duration = config.duration || 10;
config.unit = (/top|bottom|left|right|width|height/.test(prop)) ? 'px' : '';
var step = (config.to - config.from) / 20,
current = config.from;
(function doAnimate() {
el.style[prop] = current + config.unit;
current += step;
if ((step > 0 && current > config.to) || (step < 0 && current < config.to) || step === 0) {
el.style[prop] = config.to + config.unit;
if (typeof callback === 'function') {
callback();
}
return;
}
setTimeout(doAnimate, config.duration);
})();
},
/**
* Convenience method to return the value of any type of form input
*
* @param input {HTMLElement} The element who's value is returned
*/
getInputValue: function (input) {
var tag = input.tagName.toLowerCase();
if (tag === 'select') {
return input.options[input.selectedIndex].value;
} else if (tag === 'textarea') {
return input.innerHTML;
} else {
if (input.type === 'radio') {
return (input.checked) ? input.value : null;
} else if (input.type === 'checkbox') {
return (input.checked) ? input.value : null;
} else {
return input.value;
}
}
},
/**
* Formats a float into a currency
*
* @param amount {float} The currency amount
* @param code {string} The three letter currency code
*/
formatCurrency: function (amount, code) {
// TODO: The supported currency patterns need to be refined and
// should support values for before, after, decimal, and separator.
var currencies = {
AED: { before: '\u062c' },
ANG: { before: '\u0192' },
ARS: { before: '$' },
AUD: { before: '$' },
AWG: { before: '\u0192' },
BBD: { before: '$' },
BGN: { before: '\u043b\u0432' },
BMD: { before: '$' },
BND: { before: '$' },
BRL: { before: 'R$' },
BSD: { before: '$' },
CAD: { before: '$' },
CHF: { before: '' },
CLP: { before: '$' },
CNY: { before: '\u00A5' },
COP: { before: '$' },
CRC: { before: '\u20A1' },
CZK: { before: 'Kc' },
DKK: { before: 'kr' },
DOP: { before: '$' },
EEK: { before: 'kr' },
EUR: { before: '\u20AC' },
GBP: { before: '\u00A3' },
GTQ: { before: 'Q' },
HKD: { before: '$' },
HRK: { before: 'kn' },
HUF: { before: 'Ft' },
IDR: { before: 'Rp' },
ILS: { before: '\u20AA' },
INR: { before: 'Rs.' },
ISK: { before: 'kr' },
JMD: { before: 'J$' },
JPY: { before: '\u00A5' },
KRW: { before: '\u20A9' },
KYD: { before: '$' },
LTL: { before: 'Lt' },
LVL: { before: 'Ls' },
MXN: { before: '$' },
MYR: { before: 'RM' },
NOK: { before: 'kr' },
NZD: { before: '$' },
PEN: { before: 'S/' },
PHP: { before: 'Php' },
PLN: { before: 'z' },
QAR: { before: '\ufdfc' },
RON: { before: 'lei' },
RUB: { before: '\u0440\u0443\u0431' },
SAR: { before: '\ufdfc' },
SEK: { before: 'kr' },
SGD: { before: '$' },
THB: { before: '\u0E3F' },
TRY: { before: 'TL' },
TTD: { before: 'TT$' },
TWD: { before: 'NT$' },
UAH: { before: '\u20b4' },
USD: { before: '$' },
UYU: { before: '$U' },
VEF: { before: 'Bs' },
VND: { before: '\u20ab' },
XCD: { before: '$' },
ZAR: { before: 'R' }
},
currency = currencies[code] || {},
before = currency.before || '',
after = currency.after || '';
return before + amount + after;
}
};
}
})();
| JavaScript |
function CarouselMobile() {
this.itemOnPortrait=3;
this.itemOnLanscape=5;
}
CarouselMobile.prototype.loadDefault = function loadDefault() {
};
CarouselMobile.prototype.numberItemOnPortrait = function numberItemOnPortrait() {
return this.itemOnPortrait;
};
CarouselMobile.prototype.numberItemOnLanscape = function numberItemOnLanscape() {
return this.itemOnLanscape;
}; | JavaScript |
function Popup() {
this.type = {'TYPE_ALERT': 0, 'TYPE_CONFIRM': 1};
}
Popup.prototype.showMessage = function showMessage(title, message, jsCallBack, type) {
if (platform == "Android") {
AndroidFunction.showMessage(title, message, jsCallBack, type);
//alert(message);
} else if (platform == "iPhone" || platform == "iPod" || platform == "iPad") {
window.location = "js-call:showMessage('" + title + "',;,'" + message.replace(/'/g, "\\'") + "',;,'" + jsCallBack + "',;," + type + ")";
} else {
alert(message);
}
}; | JavaScript |
function Carousel(device) {
this.listCarousel = {};
this.device = device;
this.horizontal='horizontal';
this.vertical='vertical';
this.carouselName = []
}
Carousel.deviceFactory = function deviceFactory(deviceType) {
switch (deviceType) {
case 'mobile':
return new CarouselMobile();
case 'tablet':
return new CarouselTablet();
default:
return new CarouselMobile();
}
};
Carousel.prototype.numberItemOnPortrait = function numberItemOnPortrait() {
return this.device.numberItemOnPortrait();
};
Carousel.prototype.numberItemOnLanscape = function numberItemOnLanscape() {
return this.device.numberItemOnLanscape();
};
Carousel.prototype.drawCarouselBanner = function drawCarouselBanner(params) {
var elementName = params.elementName,
mode = params.mode ? params.mode : this.horizontal,
slidesPerSlide = params.slidesPerSlide ? params.slidesPerSlide: 1,
loop = params.loop ? params.loop: true;
carousel.listCarousel[elementName] = $(elementName).swiper({
mode : mode,
slidesPerSlide : slidesPerSlide,
loop:loop,
autoPlay:2000
});
carousel.carouselName.push(elementName);
};
Carousel.prototype.drawCarousel = function drawCarousel(params) {
var elementName = params.elementName,
mode = params.mode ? params.mode : 'horizontal',
slidesPerSlide = params.slidesPerSlide ? params.slidesPerSlide: 3,
loop = params.loop ? params.loop: true;
carousel.listCarousel[elementName] = $(elementName).swiper({
mode : mode,
slidesPerSlide : slidesPerSlide,
loop:loop,
});
carousel.carouselName.push(elementName);
carousel.resizeFix();
};
Carousel.prototype.resizeFix = function resizeFix() {
for(i in carousel.carouselName){
try{
carousel.listCarousel[carousel.carouselName[i]].resizeFix();
}catch(err){
}
}
}; | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(function ($) {
//Shortcut for fancyBox object
var F = $.fancybox;
//Add helper object
F.helpers.thumbs = {
defaults : {
width : 50, // thumbnail width
height : 50, // thumbnail height
position : 'bottom', // 'top' or 'bottom'
source : function ( item ) { // function to obtain the URL of the thumbnail image
var href;
if (item.element) {
href = $(item.element).find('img').attr('src');
}
if (!href && item.type === 'image' && item.href) {
href = item.href;
}
return href;
}
},
wrap : null,
list : null,
width : 0,
init: function (opts, obj) {
var that = this,
list,
thumbWidth = opts.width,
thumbHeight = opts.height,
thumbSource = opts.source;
//Build list structure
list = '';
for (var n = 0; n < obj.group.length; n++) {
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
}
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
//Load each thumbnail
$.each(obj.group, function (i) {
var href = thumbSource( obj.group[ i ] );
if (!href) {
return;
}
$("<img />").load(function () {
var width = this.width,
height = this.height,
widthRatio, heightRatio, parent;
if (!that.list || !width || !height) {
return;
}
//Calculate thumbnail width/height and center it
widthRatio = width / thumbWidth;
heightRatio = height / thumbHeight;
parent = that.list.children().eq(i).find('a');
if (widthRatio >= 1 && heightRatio >= 1) {
if (widthRatio > heightRatio) {
width = Math.floor(width / heightRatio);
height = thumbHeight;
} else {
width = thumbWidth;
height = Math.floor(height / widthRatio);
}
}
$(this).css({
width : width,
height : height,
top : Math.floor(thumbHeight / 2 - height / 2),
left : Math.floor(thumbWidth / 2 - width / 2)
});
parent.width(thumbWidth).height(thumbHeight);
$(this).hide().appendTo(parent).fadeIn(300);
}).attr('src', href);
});
//Set initial width
this.width = this.list.children().eq(0).outerWidth(true);
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
},
beforeLoad: function (opts, obj) {
//Remove self if gallery do not have at least two items
if (obj.group.length < 2) {
obj.helpers.thumbs = false;
return;
}
//Increase bottom margin to give space for thumbs
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
},
afterShow: function (opts, obj) {
//Check if exists and create or update list
if (this.list) {
this.onUpdate(opts, obj);
} else {
this.init(opts, obj);
}
//Set active element
this.list.children().removeClass('active').eq(obj.index).addClass('active');
},
//Center list
onUpdate: function (opts, obj) {
if (this.list) {
this.list.stop(true).animate({
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
}, 150);
}
},
beforeClose: function () {
if (this.wrap) {
this.wrap.remove();
}
this.wrap = null;
this.list = null;
this.width = 0;
}
}
}(jQuery)); | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* media: {
* youtube : {
* params : {
* autoplay : 0
* }
* }
* }
* }
* });
*
* Or:
* $(".fancybox").fancybox({,
* helpers : {
* media: true
* },
* youtube : {
* autoplay: 0
* }
* });
*
* Supports:
*
* Youtube
* http://www.youtube.com/watch?v=opj24KnzrWo
* http://www.youtube.com/embed/opj24KnzrWo
* http://youtu.be/opj24KnzrWo
* Vimeo
* http://vimeo.com/40648169
* http://vimeo.com/channels/staffpicks/38843628
* http://vimeo.com/groups/surrealism/videos/36516384
* http://player.vimeo.com/video/45074303
* Metacafe
* http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
* http://www.metacafe.com/watch/7635964/
* Dailymotion
* http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
* Twitvid
* http://twitvid.com/QY7MD
* Twitpic
* http://twitpic.com/7p93st
* Instagram
* http://instagr.am/p/IejkuUGxQn/
* http://instagram.com/p/IejkuUGxQn/
* Google maps
* http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
* http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
* http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
*/
(function ($) {
"use strict";
//Shortcut for fancyBox object
var F = $.fancybox,
format = function( url, rez, params ) {
params = params || '';
if ( $.type( params ) === "object" ) {
params = $.param(params, true);
}
$.each(rez, function(key, value) {
url = url.replace( '$' + key, value || '' );
});
if (params.length) {
url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
}
return url;
};
//Add helper object
F.helpers.media = {
defaults : {
youtube : {
matcher : /(youtube\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
params : {
autoplay : 1,
autohide : 1,
fs : 1,
rel : 0,
hd : 1,
wmode : 'opaque',
enablejsapi : 1
},
type : 'iframe',
url : '//www.youtube.com/embed/$3'
},
vimeo : {
matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
params : {
autoplay : 1,
hd : 1,
show_title : 1,
show_byline : 1,
show_portrait : 0,
fullscreen : 1
},
type : 'iframe',
url : '//player.vimeo.com/video/$1'
},
metacafe : {
matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
params : {
autoPlay : 'yes'
},
type : 'swf',
url : function( rez, params, obj ) {
obj.swf.flashVars = 'playerVars=' + $.param( params, true );
return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
}
},
dailymotion : {
matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
params : {
additionalInfos : 0,
autoStart : 1
},
type : 'swf',
url : '//www.dailymotion.com/swf/video/$1'
},
twitvid : {
matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
params : {
autoplay : 0
},
type : 'iframe',
url : '//www.twitvid.com/embed.php?guid=$1'
},
twitpic : {
matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
type : 'image',
url : '//twitpic.com/show/full/$1/'
},
instagram : {
matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
type : 'image',
url : '//$1/p/$2/media/'
},
google_maps : {
matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
type : 'iframe',
url : function( rez ) {
return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
}
}
},
beforeLoad : function(opts, obj) {
var url = obj.href || '',
type = false,
what,
item,
rez,
params;
for (what in opts) {
item = opts[ what ];
rez = url.match( item.matcher );
if (rez) {
type = item.type;
params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
break;
}
}
if (type) {
obj.href = url;
obj.type = type;
obj.autoHeight = false;
}
}
};
}(jQuery)); | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for fancyBox object
var F = $.fancybox;
//Add helper object
F.helpers.buttons = {
defaults : {
skipSingle : false, // disables if gallery contains single image
position : 'top', // 'top' or 'bottom'
tpl : '<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:jQuery.fancybox.close();"></a></li></ul></div>'
},
list : null,
buttons: null,
beforeLoad: function (opts, obj) {
//Remove self if gallery do not have at least two items
if (opts.skipSingle && obj.group.length < 2) {
obj.helpers.buttons = false;
obj.closeBtn = true;
return;
}
//Increase top margin to give space for buttons
obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30;
},
onPlayStart: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn');
}
},
onPlayEnd: function () {
if (this.buttons) {
this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn');
}
},
afterShow: function (opts, obj) {
var buttons = this.buttons;
if (!buttons) {
this.list = $(opts.tpl).addClass(opts.position).appendTo('body');
buttons = {
prev : this.list.find('.btnPrev').click( F.prev ),
next : this.list.find('.btnNext').click( F.next ),
play : this.list.find('.btnPlay').click( F.play ),
toggle : this.list.find('.btnToggle').click( F.toggle )
}
}
//Prev
if (obj.index > 0 || obj.loop) {
buttons.prev.removeClass('btnDisabled');
} else {
buttons.prev.addClass('btnDisabled');
}
//Next / Play
if (obj.loop || obj.index < obj.group.length - 1) {
buttons.next.removeClass('btnDisabled');
buttons.play.removeClass('btnDisabled');
} else {
buttons.next.addClass('btnDisabled');
buttons.play.addClass('btnDisabled');
}
this.buttons = buttons;
this.onUpdate(opts, obj);
},
onUpdate: function (opts, obj) {
var toggle;
if (!this.buttons) {
return;
}
toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn');
//Size toggle button
if (obj.canShrink) {
toggle.addClass('btnToggleOn');
} else if (!obj.canExpand) {
toggle.addClass('btnDisabled');
}
},
beforeClose: function () {
if (this.list) {
this.list.remove();
}
this.list = null;
this.buttons = null;
}
};
}(jQuery)); | JavaScript |
$(document).ready(function() {
if($('div.form.login').length) { // in login page
$('input#LoginForm_password').focus();
}
$('table.preview input[name="checkAll"]').click(function() {
$('table.preview .confirm input').prop('checked', this.checked);
});
$('table.preview td.confirm input').click(function() {
$('table.preview input[name="checkAll"]').prop('checked', !$('table.preview td.confirm input:not(:checked)').length);
});
$('table.preview input[name="checkAll"]').prop('checked', !$('table.preview td.confirm input:not(:checked)').length);
$('.form .row.sticky input:not(.error), .form .row.sticky select:not(.error), .form .row.sticky textarea:not(.error)').each(function(){
var value;
if(this.tagName=='SELECT')
value=this.options[this.selectedIndex].text;
else if(this.tagName=='TEXTAREA')
value=$(this).html();
else
value=$(this).val();
if(value=='')
value='[empty]';
$(this).before('<div class="value">'+value+'</div>').hide();
});
$('.form.gii .row.sticky .value').live('click', function(){
$(this).hide();
$(this).next().show().get(0).focus();
});
$('.form.gii .row input, .form.gii .row textarea, .form.gii .row select, .with-tooltip').not('.no-tooltip, .no-tooltip *').tooltip({
position: "center right",
offset: [-2, 10]
});
$('.form.gii .row input').change(function(){
$('.form.gii .feedback').hide();
$('.form.gii input[name="generate"]').hide();
});
$('.form.gii .view-code').click(function(){
var title=$(this).attr('rel');
$.fancybox.showActivity();
$.ajax({
type: 'POST',
cache: false,
url: $(this).attr('href'),
data: $('.form.gii form').serializeArray(),
success: function(data){
$.fancybox(data, {
'title': title,
'titlePosition': 'inside',
'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
return '<div id="tip7-title"><span><a href="javascript:;" onclick="$.fancybox.close();">close</a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + '</div>';
},
'showCloseButton': false,
'autoDimensions': false,
'width': 900,
'height': 'auto',
'onComplete':function(){
$('#fancybox-inner').scrollTop(0);
}
});
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
$.fancybox('<div class="error">'+XMLHttpRequest.responseText+'</div>');
}
});
return false;
});
$('#fancybox-inner .close-code').live('click', function(){
$.fancybox.close();
return false;
});
}); | JavaScript |
/**
* jQuery Yii plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yii.js 3053 2011-03-12 21:25:33Z qiang.xue $
*/
;(function($) {
$.yii = {
version : '1.0',
submitForm : function (element, url, params) {
var f = $(element).parents('form')[0];
if (!f) {
f = document.createElement('form');
f.style.display = 'none';
element.parentNode.appendChild(f);
f.method = 'POST';
}
if (typeof url == 'string' && url != '') {
f.action = url;
}
if (element.target != null) {
f.target = element.target;
}
var inputs = [];
$.each(params, function(name, value) {
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", name);
input.setAttribute("value", value);
f.appendChild(input);
inputs.push(input);
});
// remember who triggers the form submission
// this is used by jquery.yiiactiveform.js
$(f).data('submitObject', $(element));
$(f).trigger('submit');
$.each(inputs, function() {
f.removeChild(this);
});
}
};
})(jQuery);
| JavaScript |
/*
### jQuery Star Rating Plugin v3.13 - 2009-03-26 ###
* Home: http://www.fyneworks.com/jquery/star-rating/
* Code: http://code.google.com/p/jquery-star-rating-plugin/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
###
*/
/*# AVOID COLLISIONS #*/
;if(window.jQuery) (function($){
// IE6 Background Image Fix
if ($.browser.msie) try { document.execCommand("BackgroundImageCache", false, true)} catch(e) { }
// Thanks to http://www.visualjquery.com/rating/rating_redux.html
// plugin initialization
$.fn.rating = function(options){
if(this.length==0) return this; // quick fail
// Handle API methods
if(typeof arguments[0]=='string'){
// Perform API methods on individual elements
if(this.length>1){
var args = arguments;
return this.each(function(){
$.fn.rating.apply($(this), args);
});
}
// Invoke API method handler
$.fn.rating[arguments[0]].apply(this, $.makeArray(arguments).slice(1) || []);
// Quick exit...
return this;
}
// Initialize options for this call
var options = $.extend(
{}/* new object */,
$.fn.rating.options/* default options */,
options || {} /* just-in-time options */
);
// Allow multiple controls with the same name by making each call unique
$.fn.rating.calls++;
// loop through each matched element
this
.not('.star-rating-applied')
.addClass('star-rating-applied')
.each(function(){
// Load control parameters / find context / etc
var control, input = $(this);
var eid = (this.name || 'unnamed-rating').replace(/\[|\]/g, '_').replace(/^\_+|\_+$/g,'');
var context = $(this.form || document.body);
// FIX: http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=23
var raters = context.data('rating');
if(!raters || raters.call!=$.fn.rating.calls) raters = { count:0, call:$.fn.rating.calls };
var rater = raters[eid];
// if rater is available, verify that the control still exists
if(rater) control = rater.data('rating');
if(rater && control)//{// save a byte!
// add star to control if rater is available and the same control still exists
control.count++;
//}// save a byte!
else{
// create new control if first star or control element was removed/replaced
// Initialize options for this raters
control = $.extend(
{}/* new object */,
options || {} /* current call options */,
($.metadata? input.metadata(): ($.meta?input.data():null)) || {}, /* metadata options */
{ count:0, stars: [], inputs: [] }
);
// increment number of rating controls
control.serial = raters.count++;
// create rating element
rater = $('<span class="star-rating-control"/>');
input.before(rater);
// Mark element for initialization (once all stars are ready)
rater.addClass('rating-to-be-drawn');
// Accept readOnly setting from 'disabled' property
if(input.attr('disabled')) control.readOnly = true;
// Create 'cancel' button
rater.append(
control.cancel = $('<div class="rating-cancel"><a title="' + control.cancel + '">' + control.cancelValue + '</a></div>')
.mouseover(function(){
$(this).rating('drain');
$(this).addClass('star-rating-hover');
//$(this).rating('focus');
})
.mouseout(function(){
$(this).rating('draw');
$(this).removeClass('star-rating-hover');
//$(this).rating('blur');
})
.click(function(){
$(this).rating('select');
})
.data('rating', control)
);
} // first element of group
// insert rating star
var star = $('<div class="star-rating rater-'+ control.serial +'"><a title="' + (this.title || this.value) + '">' + this.value + '</a></div>');
rater.append(star);
// inherit attributes from input element
if(this.id) star.attr('id', this.id);
if(this.className) star.addClass(this.className);
// Half-stars?
if(control.half) control.split = 2;
// Prepare division control
if(typeof control.split=='number' && control.split>0){
var stw = ($.fn.width ? star.width() : 0) || control.starWidth;
var spi = (control.count % control.split), spw = Math.floor(stw/control.split);
star
// restrict star's width and hide overflow (already in CSS)
.width(spw)
// move the star left by using a negative margin
// this is work-around to IE's stupid box model (position:relative doesn't work)
.find('a').css({ 'margin-left':'-'+ (spi*spw) +'px' })
}
// readOnly?
if(control.readOnly)//{ //save a byte!
// Mark star as readOnly so user can customize display
star.addClass('star-rating-readonly');
//} //save a byte!
else//{ //save a byte!
// Enable hover css effects
star.addClass('star-rating-live')
// Attach mouse events
.mouseover(function(){
$(this).rating('fill');
$(this).rating('focus');
})
.mouseout(function(){
$(this).rating('draw');
$(this).rating('blur');
})
.click(function(){
$(this).rating('select');
})
;
//}; //save a byte!
// set current selection
if(this.checked) control.current = star;
// hide input element
input.hide();
// backward compatibility, form element to plugin
input.change(function(){
$(this).rating('select');
});
// attach reference to star to input element and vice-versa
star.data('rating.input', input.data('rating.star', star));
// store control information in form (or body when form not available)
control.stars[control.stars.length] = star[0];
control.inputs[control.inputs.length] = input[0];
control.rater = raters[eid] = rater;
control.context = context;
input.data('rating', control);
rater.data('rating', control);
star.data('rating', control);
context.data('rating', raters);
}); // each element
// Initialize ratings (first draw)
$('.rating-to-be-drawn').rating('draw').removeClass('rating-to-be-drawn');
return this; // don't break the chain...
};
/*--------------------------------------------------------*/
/*
### Core functionality and API ###
*/
$.extend($.fn.rating, {
// Used to append a unique serial number to internal control ID
// each time the plugin is invoked so same name controls can co-exist
calls: 0,
focus: function(){
var control = this.data('rating'); if(!control) return this;
if(!control.focus) return this; // quick fail if not required
// find data for event
var input = $(this).data('rating.input') || $( this.tagName=='INPUT' ? this : null );
// focus handler, as requested by focusdigital.co.uk
if(control.focus) control.focus.apply(input[0], [input.val(), $('a', input.data('rating.star'))[0]]);
}, // $.fn.rating.focus
blur: function(){
var control = this.data('rating'); if(!control) return this;
if(!control.blur) return this; // quick fail if not required
// find data for event
var input = $(this).data('rating.input') || $( this.tagName=='INPUT' ? this : null );
// blur handler, as requested by focusdigital.co.uk
if(control.blur) control.blur.apply(input[0], [input.val(), $('a', input.data('rating.star'))[0]]);
}, // $.fn.rating.blur
fill: function(){ // fill to the current mouse position.
var control = this.data('rating'); if(!control) return this;
// do not execute when control is in read-only mode
if(control.readOnly) return;
// Reset all stars and highlight them up to this element
this.rating('drain');
this.prevAll().andSelf().filter('.rater-'+ control.serial).addClass('star-rating-hover');
},// $.fn.rating.fill
drain: function() { // drain all the stars.
var control = this.data('rating'); if(!control) return this;
// do not execute when control is in read-only mode
if(control.readOnly) return;
// Reset all stars
control.rater.children().filter('.rater-'+ control.serial).removeClass('star-rating-on').removeClass('star-rating-hover');
},// $.fn.rating.drain
draw: function(){ // set value and stars to reflect current selection
var control = this.data('rating'); if(!control) return this;
// Clear all stars
this.rating('drain');
// Set control value
if(control.current){
control.current.data('rating.input').attr('checked','checked');
control.current.prevAll().andSelf().filter('.rater-'+ control.serial).addClass('star-rating-on');
}
else
$(control.inputs).removeAttr('checked');
// Show/hide 'cancel' button
control.cancel[control.readOnly || control.required?'hide':'show']();
// Add/remove read-only classes to remove hand pointer
this.siblings()[control.readOnly?'addClass':'removeClass']('star-rating-readonly');
},// $.fn.rating.draw
select: function(value,wantCallBack){ // select a value
// ***** MODIFICATION *****
// Thanks to faivre.thomas - http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=27
//
// ***** LIST OF MODIFICATION *****
// ***** added Parameter wantCallBack : false if you don't want a callback. true or undefined if you want postback to be performed at the end of this method'
// ***** recursive calls to this method were like : ... .rating('select') it's now like .rating('select',undefined,wantCallBack); (parameters are set.)
// ***** line which is calling callback
// ***** /LIST OF MODIFICATION *****
var control = this.data('rating'); if(!control) return this;
// do not execute when control is in read-only mode
if(control.readOnly) return;
// clear selection
control.current = null;
// programmatically (based on user input)
if(typeof value!='undefined'){
// select by index (0 based)
if(typeof value=='number')
return $(control.stars[value]).rating('select',undefined,wantCallBack);
// select by literal value (must be passed as a string
if(typeof value=='string')
//return
$.each(control.stars, function(){
if($(this).data('rating.input').val()==value) $(this).rating('select',undefined,wantCallBack);
});
}
else
control.current = this[0].tagName=='INPUT' ?
this.data('rating.star') :
(this.is('.rater-'+ control.serial) ? this : null);
// Update rating control state
this.data('rating', control);
// Update display
this.rating('draw');
// find data for event
var input = $( control.current ? control.current.data('rating.input') : null );
// click callback, as requested here: http://plugins.jquery.com/node/1655
// **** MODIFICATION *****
// Thanks to faivre.thomas - http://code.google.com/p/jquery-star-rating-plugin/issues/detail?id=27
//
//old line doing the callback :
//if(control.callback) control.callback.apply(input[0], [input.val(), $('a', control.current)[0]]);// callback event
//
//new line doing the callback (if i want :)
if((wantCallBack ||wantCallBack == undefined) && control.callback) control.callback.apply(input[0], [input.val(), $('a', control.current)[0]]);// callback event
//to ensure retro-compatibility, wantCallBack must be considered as true by default
// **** /MODIFICATION *****
},// $.fn.rating.select
readOnly: function(toggle, disable){ // make the control read-only (still submits value)
var control = this.data('rating'); if(!control) return this;
// setread-only status
control.readOnly = toggle || toggle==undefined ? true : false;
// enable/disable control value submission
if(disable) $(control.inputs).attr("disabled", "disabled");
else $(control.inputs).removeAttr("disabled");
// Update rating control state
this.data('rating', control);
// Update display
this.rating('draw');
},// $.fn.rating.readOnly
disable: function(){ // make read-only and never submit value
this.rating('readOnly', true, true);
},// $.fn.rating.disable
enable: function(){ // make read/write and submit value
this.rating('readOnly', false, false);
}// $.fn.rating.select
});
/*--------------------------------------------------------*/
/*
### Default Settings ###
eg.: You can override default control like this:
$.fn.rating.options.cancel = 'Clear';
*/
$.fn.rating.options = { //$.extend($.fn.rating, { options: {
cancel: 'Cancel Rating', // advisory title for the 'cancel' link
cancelValue: '', // value to submit when user click the 'cancel' link
split: 0, // split the star into how many parts?
// Width of star image in case the plugin can't work it out. This can happen if
// the jQuery.dimensions plugin is not available OR the image is hidden at installation
starWidth: 16//,
//NB.: These don't need to be pre-defined (can be undefined/null) so let's save some code!
//half: false, // just a shortcut to control.split = 2
//required: false, // disables the 'cancel' button so user can only select one of the specified values
//readOnly: false, // disable rating plugin interaction/ values cannot be changed
//focus: function(){}, // executed when stars are focused
//blur: function(){}, // executed when stars are focused
//callback: function(){}, // executed when a star is clicked
}; //} });
/*--------------------------------------------------------*/
/*
### Default implementation ###
The plugin will attach itself to file inputs
with the class 'multi' when the page loads
*/
$(function(){
$('input[type=radio].star').rating();
});
/*# AVOID COLLISIONS #*/
})(jQuery);
| JavaScript |
/**
* Ajax Queue Plugin
*
* Homepage: http://jquery.com/plugins/project/ajaxqueue
* Documentation: http://docs.jquery.com/AjaxQueue
*/
/**
<script>
$(function(){
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxSync({
url: "test.php",
success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
});
jQuery.ajaxSync({
url: "test.php",
success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
});
});
</script>
<ul style="position: absolute; top: 5px; right: 5px;"></ul>
*/
/*
* Queued Ajax requests.
* A new Ajax request won't be started until the previous queued
* request has finished.
*/
/*
* Synced Ajax requests.
* The Ajax request will happen as soon as you call this method, but
* the callbacks (success/error/complete) won't fire until all previous
* synced requests have been completed.
*/
(function($) {
var ajax = $.ajax;
var pendingRequests = {};
var synced = [];
var syncedData = [];
$.ajax = function(settings) {
// create settings for compatibility with ajaxSetup
settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings));
var port = settings.port;
switch(settings.mode) {
case "abort":
if ( pendingRequests[port] ) {
pendingRequests[port].abort();
}
return pendingRequests[port] = ajax.apply(this, arguments);
case "queue":
var _old = settings.complete;
settings.complete = function(){
if ( _old )
_old.apply( this, arguments );
jQuery([ajax]).dequeue("ajax" + port );;
};
jQuery([ ajax ]).queue("ajax" + port, function(){
ajax( settings );
});
return;
case "sync":
var pos = synced.length;
synced[ pos ] = {
error: settings.error,
success: settings.success,
complete: settings.complete,
done: false
};
syncedData[ pos ] = {
error: [],
success: [],
complete: []
};
settings.error = function(){ syncedData[ pos ].error = arguments; };
settings.success = function(){ syncedData[ pos ].success = arguments; };
settings.complete = function(){
syncedData[ pos ].complete = arguments;
synced[ pos ].done = true;
if ( pos == 0 || !synced[ pos-1 ] )
for ( var i = pos; i < synced.length && synced[i].done; i++ ) {
if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error );
if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success );
if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete );
synced[i] = null;
syncedData[i] = null;
}
};
}
return ajax.apply(this, arguments);
};
})(jQuery); | JavaScript |
/*
* jQuery Autocomplete plugin 1.1
*
* Modified for Yii Framework:
* - Renamed "autocomplete" to "legacyautocomplete".
* - Fixed IE8 problems (mario.ffranco).
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(function($) {
$.fn.extend({
legacyautocomplete: function(urlOrData, options) {
var isUrl = typeof urlOrData == "string";
options = $.extend({}, $.Autocompleter.defaults, {
url: isUrl ? urlOrData : null,
data: isUrl ? null : urlOrData,
delay: isUrl ? $.Autocompleter.defaults.delay : 10,
max: options && !options.scroll ? 10 : 150
}, options);
// if highlight is set to false, replace it with a do-nothing function
options.highlight = options.highlight || function(value) { return value; };
// if the formatMatch option is not specified, then use formatItem for backwards compatibility
options.formatMatch = options.formatMatch || options.formatItem;
return this.each(function() {
new $.Autocompleter(this, options);
});
},
result: function(handler) {
return this.bind("result", handler);
},
search: function(handler) {
return this.trigger("search", [handler]);
},
flushCache: function() {
return this.trigger("flushCache");
},
setOptions: function(options){
return this.trigger("setOptions", [options]);
},
unautocomplete: function() {
return this.trigger("unautocomplete");
}
});
$.Autocompleter = function(input, options) {
var KEY = {
UP: 38,
DOWN: 40,
DEL: 46,
TAB: 9,
RETURN: 13,
ESC: 27,
COMMA: 188,
PAGEUP: 33,
PAGEDOWN: 34,
BACKSPACE: 8
};
// Create $ object for input element
var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass);
var timeout;
var previousValue = "";
var cache = $.Autocompleter.Cache(options);
var hasFocus = 0;
var lastKeyPressCode;
var config = {
mouseDownOnSelect: false
};
var select = $.Autocompleter.Select(options, input, selectCurrent, config);
var blockSubmit;
// prevent form submit in opera when selecting with return key
$.browser.opera && $(input.form).bind("submit.autocomplete", function() {
if (blockSubmit) {
blockSubmit = false;
return false;
}
});
// only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all
$input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) {
// a keypress means the input has focus
// avoids issue where input had focus before the autocomplete was applied
hasFocus = 1;
// track last key pressed
lastKeyPressCode = event.keyCode;
switch(event.keyCode) {
case KEY.UP:
event.preventDefault();
if ( select.visible() ) {
select.prev();
} else {
onChange(0, true);
}
break;
case KEY.DOWN:
event.preventDefault();
if ( select.visible() ) {
select.next();
} else {
onChange(0, true);
}
break;
case KEY.PAGEUP:
event.preventDefault();
if ( select.visible() ) {
select.pageUp();
} else {
onChange(0, true);
}
break;
case KEY.PAGEDOWN:
event.preventDefault();
if ( select.visible() ) {
select.pageDown();
} else {
onChange(0, true);
}
break;
// matches also semicolon
case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA:
case KEY.TAB:
case KEY.RETURN:
if( selectCurrent() ) {
// stop default to prevent a form submit, Opera needs special handling
event.preventDefault();
blockSubmit = true;
return false;
}
break;
case KEY.ESC:
select.hide();
break;
default:
clearTimeout(timeout);
timeout = setTimeout(onChange, options.delay);
break;
}
}).focus(function(){
// track whether the field has focus, we shouldn't process any
// results if the field no longer has focus
hasFocus++;
}).blur(function() {
hasFocus = 0;
if (!config.mouseDownOnSelect) {
hideResults();
}
}).click(function() {
// show select when clicking in a focused field
if ( hasFocus++ > 1 && !select.visible() ) {
onChange(0, true);
}
}).bind("search", function() {
// TODO why not just specifying both arguments?
var fn = (arguments.length > 1) ? arguments[1] : null;
function findValueCallback(q, data) {
var result;
if( data && data.length ) {
for (var i=0; i < data.length; i++) {
if( data[i].result.toLowerCase() == q.toLowerCase() ) {
result = data[i];
break;
}
}
}
if( typeof fn == "function" ) fn(result);
else $input.trigger("result", result && [result.data, result.value]);
}
$.each(trimWords($input.val()), function(i, value) {
request(value, findValueCallback, findValueCallback);
});
}).bind("flushCache", function() {
cache.flush();
}).bind("setOptions", function() {
$.extend(options, arguments[1]);
// if we've updated the data, repopulate
if ( "data" in arguments[1] )
cache.populate();
}).bind("unautocomplete", function() {
select.unbind();
$input.unbind();
$(input.form).unbind(".autocomplete");
});
function selectCurrent() {
var selected = select.selected();
if( !selected )
return false;
var v = selected.result;
previousValue = v;
if ( options.multiple ) {
var words = trimWords($input.val());
if ( words.length > 1 ) {
var seperator = options.multipleSeparator.length;
var cursorAt = $(input).selection().start;
var wordAt, progress = 0;
$.each(words, function(i, word) {
progress += word.length;
if (cursorAt <= progress) {
wordAt = i;
// Following return caused IE8 to set cursor to the start of the line.
// return false;
}
progress += seperator;
});
words[wordAt] = v;
// TODO this should set the cursor to the right position, but it gets overriden somewhere
//$.Autocompleter.Selection(input, progress + seperator, progress + seperator);
v = words.join( options.multipleSeparator );
}
v += options.multipleSeparator;
}
$input.val(v);
hideResultsNow();
$input.trigger("result", [selected.data, selected.value]);
return true;
}
function onChange(crap, skipPrevCheck) {
if( lastKeyPressCode == KEY.DEL ) {
select.hide();
return;
}
var currentValue = $input.val();
if ( !skipPrevCheck && currentValue == previousValue )
return;
previousValue = currentValue;
currentValue = lastWord(currentValue);
if ( currentValue.length >= options.minChars) {
$input.addClass(options.loadingClass);
if (!options.matchCase)
currentValue = currentValue.toLowerCase();
request(currentValue, receiveData, hideResultsNow);
} else {
stopLoading();
select.hide();
}
};
function trimWords(value) {
if (!value)
return [""];
if (!options.multiple)
return [$.trim(value)];
return $.map(value.split(options.multipleSeparator), function(word) {
return $.trim(value).length ? $.trim(word) : null;
});
}
function lastWord(value) {
if ( !options.multiple )
return value;
var words = trimWords(value);
if (words.length == 1)
return words[0];
var cursorAt = $(input).selection().start;
if (cursorAt == value.length) {
words = trimWords(value)
} else {
words = trimWords(value.replace(value.substring(cursorAt), ""));
}
return words[words.length - 1];
}
// fills in the input box w/the first match (assumed to be the best match)
// q: the term entered
// sValue: the first matching result
function autoFill(q, sValue){
// autofill in the complete box w/the first match as long as the user hasn't entered in more data
// if the last user key pressed was backspace, don't autofill
if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {
// fill in the value (keep the case the user has typed)
$input.val($input.val() + sValue.substring(lastWord(previousValue).length));
// select the portion of the value not typed by the user (so the next character will erase)
$(input).selection(previousValue.length, previousValue.length + sValue.length);
}
};
function hideResults() {
clearTimeout(timeout);
timeout = setTimeout(hideResultsNow, 200);
};
function hideResultsNow() {
var wasVisible = select.visible();
select.hide();
clearTimeout(timeout);
stopLoading();
if (options.mustMatch) {
// call search and run callback
$input.search(
function (result){
// if no value found, clear the input box
if( !result ) {
if (options.multiple) {
var words = trimWords($input.val()).slice(0, -1);
$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );
}
else {
$input.val( "" );
$input.trigger("result", null);
}
}
}
);
}
};
function receiveData(q, data) {
if ( data && data.length && hasFocus ) {
stopLoading();
select.display(data, q);
autoFill(q, data[0].value);
select.show();
} else {
hideResultsNow();
}
};
function request(term, success, failure) {
if (!options.matchCase)
term = term.toLowerCase();
var data = cache.load(term);
// recieve the cached data
if (data && data.length) {
success(term, data);
// if an AJAX url has been supplied, try loading the data now
} else if( (typeof options.url == "string") && (options.url.length > 0) ){
var extraParams = {
timestamp: +new Date()
};
$.each(options.extraParams, function(key, param) {
extraParams[key] = typeof param == "function" ? param() : param;
});
$.ajax({
// try to leverage ajaxQueue plugin to abort previous requests
mode: "abort",
// limit abortion to this input
port: "autocomplete" + input.name,
dataType: options.dataType,
url: options.url,
data: $.extend({
q: lastWord(term),
limit: options.max
}, extraParams),
success: function(data) {
var parsed = options.parse && options.parse(data) || parse(data);
cache.add(term, parsed);
success(term, parsed);
}
});
} else {
// if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match
select.emptyList();
failure(term);
}
};
function parse(data) {
var parsed = [];
var rows = data.split("\n");
for (var i=0; i < rows.length; i++) {
var row = $.trim(rows[i]);
if (row) {
row = row.split("|");
parsed[parsed.length] = {
data: row,
value: row[0],
result: options.formatResult && options.formatResult(row, row[0]) || row[0]
};
}
}
return parsed;
};
function stopLoading() {
$input.removeClass(options.loadingClass);
};
};
$.Autocompleter.defaults = {
inputClass: "ac_input",
resultsClass: "ac_results",
loadingClass: "ac_loading",
minChars: 1,
delay: 400,
matchCase: false,
matchSubset: true,
matchContains: false,
cacheLength: 10,
max: 100,
mustMatch: false,
extraParams: {},
selectFirst: true,
formatItem: function(row) { return row[0]; },
formatMatch: null,
autoFill: false,
width: 0,
multiple: false,
multipleSeparator: ", ",
highlight: function(value, term) {
return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
},
scroll: true,
scrollHeight: 180
};
$.Autocompleter.Cache = function(options) {
var data = {};
var length = 0;
function matchSubset(s, sub) {
if (!options.matchCase)
s = s.toLowerCase();
var i = s.indexOf(sub);
if (options.matchContains == "word"){
i = s.toLowerCase().search("\\b" + sub.toLowerCase());
}
if (i == -1) return false;
return i == 0 || options.matchContains;
};
function add(q, value) {
if (length > options.cacheLength){
flush();
}
if (!data[q]){
length++;
}
data[q] = value;
}
function populate(){
if( !options.data ) return false;
// track the matches
var stMatchSets = {},
nullData = 0;
// no url was specified, we need to adjust the cache length to make sure it fits the local data store
if( !options.url ) options.cacheLength = 1;
// track all options for minChars = 0
stMatchSets[""] = [];
// loop through the array and create a lookup structure
for ( var i = 0, ol = options.data.length; i < ol; i++ ) {
var rawValue = options.data[i];
// if rawValue is a string, make an array otherwise just reference the array
rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue;
var value = options.formatMatch(rawValue, i+1, options.data.length);
if ( value === false )
continue;
var firstChar = value.charAt(0).toLowerCase();
// if no lookup array for this character exists, look it up now
if( !stMatchSets[firstChar] )
stMatchSets[firstChar] = [];
// if the match is a string
var row = {
value: value,
data: rawValue,
result: options.formatResult && options.formatResult(rawValue) || value
};
// push the current match into the set list
stMatchSets[firstChar].push(row);
// keep track of minChars zero items
if ( nullData++ < options.max ) {
stMatchSets[""].push(row);
}
};
// add the data items to the cache
$.each(stMatchSets, function(i, value) {
// increase the cache size
options.cacheLength++;
// add to the cache
add(i, value);
});
}
// populate any existing data
setTimeout(populate, 25);
function flush(){
data = {};
length = 0;
}
return {
flush: flush,
add: add,
populate: populate,
load: function(q) {
if (!options.cacheLength || !length)
return null;
/*
* if dealing w/local data and matchContains than we must make sure
* to loop through all the data collections looking for matches
*/
if( !options.url && options.matchContains ){
// track all matches
var csub = [];
// loop through all the data grids for matches
for( var k in data ){
// don't search through the stMatchSets[""] (minChars: 0) cache
// this prevents duplicates
if( k.length > 0 ){
var c = data[k];
$.each(c, function(i, x) {
// if we've got a match, add it to the array
if (matchSubset(x.value, q)) {
csub.push(x);
}
});
}
}
return csub;
} else
// if the exact item exists, use it
if (data[q]){
return data[q];
} else
if (options.matchSubset) {
for (var i = q.length - 1; i >= options.minChars; i--) {
var c = data[q.substr(0, i)];
if (c) {
var csub = [];
$.each(c, function(i, x) {
if (matchSubset(x.value, q)) {
csub[csub.length] = x;
}
});
return csub;
}
}
}
return null;
}
};
};
$.Autocompleter.Select = function (options, input, select, config) {
var CLASSES = {
ACTIVE: "ac_over"
};
var listItems,
active = -1,
data,
term = "",
needsInit = true,
element,
list;
// Create results
function init() {
if (!needsInit)
return;
element = $("<div/>")
.hide()
.addClass(options.resultsClass)
.css("position", "absolute")
.appendTo(document.body);
list = $("<ul/>").appendTo(element).mouseover( function(event) {
if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
$(target(event)).addClass(CLASSES.ACTIVE);
}
}).click(function(event) {
$(target(event)).addClass(CLASSES.ACTIVE);
select();
// TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
input.focus();
return false;
}).mousedown(function() {
config.mouseDownOnSelect = true;
}).mouseup(function() {
config.mouseDownOnSelect = false;
});
if( options.width > 0 )
element.css("width", options.width);
needsInit = false;
}
function target(event) {
var element = event.target;
while(element && element.tagName != "LI")
element = element.parentNode;
// more fun with IE, sometimes event.target is empty, just ignore it then
if(!element)
return [];
return element;
}
function moveSelect(step) {
listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);
movePosition(step);
var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);
if(options.scroll) {
var offset = 0;
listItems.slice(0, active).each(function() {
offset += this.offsetHeight;
});
if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) {
list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());
} else if(offset < list.scrollTop()) {
list.scrollTop(offset);
}
}
};
function movePosition(step) {
active += step;
if (active < 0) {
active = listItems.size() - 1;
} else if (active >= listItems.size()) {
active = 0;
}
}
function limitNumberOfItems(available) {
return options.max && options.max < available
? options.max
: available;
}
function fillList() {
list.empty();
var max = limitNumberOfItems(data.length);
for (var i=0; i < max; i++) {
if (!data[i])
continue;
var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);
if ( formatted === false )
continue;
var li = $("<li/>").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0];
$.data(li, "ac_data", data[i]);
}
listItems = list.find("li");
if ( options.selectFirst ) {
listItems.slice(0, 1).addClass(CLASSES.ACTIVE);
active = 0;
}
// apply bgiframe if available
if ( $.fn.bgiframe )
list.bgiframe();
}
return {
display: function(d, q) {
init();
data = d;
term = q;
fillList();
},
next: function() {
moveSelect(1);
},
prev: function() {
moveSelect(-1);
},
pageUp: function() {
if (active != 0 && active - 8 < 0) {
moveSelect( -active );
} else {
moveSelect(-8);
}
},
pageDown: function() {
if (active != listItems.size() - 1 && active + 8 > listItems.size()) {
moveSelect( listItems.size() - 1 - active );
} else {
moveSelect(8);
}
},
hide: function() {
element && element.hide();
listItems && listItems.removeClass(CLASSES.ACTIVE);
active = -1;
},
visible : function() {
return element && element.is(":visible");
},
current: function() {
return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);
},
show: function() {
var offset = $(input).offset();
element.css({
width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
top: offset.top + input.offsetHeight,
left: offset.left
}).show();
if(options.scroll) {
list.scrollTop(0);
list.css({
maxHeight: options.scrollHeight,
overflow: 'auto'
});
if($.browser.msie && typeof document.body.style.maxHeight === "undefined") {
var listHeight = 0;
listItems.each(function() {
listHeight += this.offsetHeight;
});
var scrollbarsVisible = listHeight > options.scrollHeight;
list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );
if (!scrollbarsVisible) {
// IE doesn't recalculate width when scrollbar disappears
listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );
}
}
}
},
selected: function() {
var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);
return selected && selected.length && $.data(selected[0], "ac_data");
},
emptyList: function (){
list && list.empty();
},
unbind: function() {
element && element.remove();
}
};
};
$.fn.selection = function(start, end) {
if (start !== undefined) {
return this.each(function() {
if( this.createTextRange ){
var selRange = this.createTextRange();
if (end === undefined || start == end) {
selRange.move("character", start);
selRange.select();
} else {
selRange.collapse(true);
selRange.moveStart("character", start);
selRange.moveEnd("character", end);
selRange.select();
}
} else if( this.setSelectionRange ){
this.setSelectionRange(start, end);
} else if( this.selectionStart ){
this.selectionStart = start;
this.selectionEnd = end;
}
});
}
var field = this[0];
if ( field.createTextRange ) {
var range = document.selection.createRange(),
orig = field.value,
teststring = "<->",
textLength = range.text.length;
range.text = teststring;
var caretAt = field.value.indexOf(teststring);
field.value = orig;
this.selection(caretAt, caretAt + textLength);
return {
start: caretAt,
end: caretAt + textLength
}
} else if( field.selectionStart !== undefined ){
return {
start: field.selectionStart,
end: field.selectionEnd
}
}
};
})(jQuery); | JavaScript |
/*!
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery BBQ: Back Button & Query Library
//
// *Version: 1.2.1, Last updated: 2/17/2010*
//
// Project Home - http://benalman.com/projects/jquery-bbq-plugin/
// GitHub - http://github.com/cowboy/jquery-bbq/
// Source - http://github.com/cowboy/jquery-bbq/raw/master/jquery.ba-bbq.js
// (Minified) - http://github.com/cowboy/jquery-bbq/raw/master/jquery.ba-bbq.min.js (4.0kb)
//
// About: License
//
// Copyright (c) 2010 "Cowboy" Ben Alman,
// Dual licensed under the MIT and GPL licenses.
// http://benalman.com/about/license/
//
// About: Examples
//
// These working examples, complete with fully commented code, illustrate a few
// ways in which this plugin can be used.
//
// Basic AJAX - http://benalman.com/code/projects/jquery-bbq/examples/fragment-basic/
// Advanced AJAX - http://benalman.com/code/projects/jquery-bbq/examples/fragment-advanced/
// jQuery UI Tabs - http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui-tabs/
// Deparam - http://benalman.com/code/projects/jquery-bbq/examples/deparam/
//
// About: Support and Testing
//
// Information about what version or versions of jQuery this plugin has been
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
// jQuery Versions - 1.3.2, 1.4.1, 1.4.2
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4,
// Chrome 4-5, Opera 9.6-10.1.
// Unit Tests - http://benalman.com/code/projects/jquery-bbq/unit/
//
// About: Release History
//
// 1.2.1 - (2/17/2010) Actually fixed the stale window.location Safari bug from
// <jQuery hashchange event> in BBQ, which was the main reason for the
// previous release!
// 1.2 - (2/16/2010) Integrated <jQuery hashchange event> v1.2, which fixes a
// Safari bug, the event can now be bound before DOM ready, and IE6/7
// page should no longer scroll when the event is first bound. Also
// added the <jQuery.param.fragment.noEscape> method, and reworked the
// <hashchange event (BBQ)> internal "add" method to be compatible with
// changes made to the jQuery 1.4.2 special events API.
// 1.1.1 - (1/22/2010) Integrated <jQuery hashchange event> v1.1, which fixes an
// obscure IE8 EmulateIE7 meta tag compatibility mode bug.
// 1.1 - (1/9/2010) Broke out the jQuery BBQ event.special <hashchange event>
// functionality into a separate plugin for users who want just the
// basic event & back button support, without all the extra awesomeness
// that BBQ provides. This plugin will be included as part of jQuery BBQ,
// but also be available separately. See <jQuery hashchange event>
// plugin for more information. Also added the <jQuery.bbq.removeState>
// method and added additional <jQuery.deparam> examples.
// 1.0.3 - (12/2/2009) Fixed an issue in IE 6 where location.search and
// location.hash would report incorrectly if the hash contained the ?
// character. Also <jQuery.param.querystring> and <jQuery.param.fragment>
// will no longer parse params out of a URL that doesn't contain ? or #,
// respectively.
// 1.0.2 - (10/10/2009) Fixed an issue in IE 6/7 where the hidden IFRAME caused
// a "This page contains both secure and nonsecure items." warning when
// used on an https:// page.
// 1.0.1 - (10/7/2009) Fixed an issue in IE 8. Since both "IE7" and "IE8
// Compatibility View" modes erroneously report that the browser
// supports the native window.onhashchange event, a slightly more
// robust test needed to be added.
// 1.0 - (10/2/2009) Initial release
(function($,window){
'$:nomunge'; // Used by YUI compressor.
// Some convenient shortcuts.
var undefined,
aps = Array.prototype.slice,
decode = decodeURIComponent,
// Method / object references.
jq_param = $.param,
jq_param_fragment,
jq_deparam,
jq_deparam_fragment,
jq_bbq = $.bbq = $.bbq || {},
jq_bbq_pushState,
jq_bbq_getState,
jq_elemUrlAttr,
jq_event_special = $.event.special,
// Reused strings.
str_hashchange = 'hashchange',
str_querystring = 'querystring',
str_fragment = 'fragment',
str_elemUrlAttr = 'elemUrlAttr',
str_location = 'location',
str_href = 'href',
str_src = 'src',
// Reused RegExp.
re_trim_querystring = /^.*\?|#.*$/g,
re_trim_fragment = /^.*\#/,
re_no_escape,
// Used by jQuery.elemUrlAttr.
elemUrlAttr_cache = {};
// A few commonly used bits, broken out to help reduce minified file size.
function is_string( arg ) {
return typeof arg === 'string';
};
// Why write the same function twice? Let's curry! Mmmm, curry..
function curry( func ) {
var args = aps.call( arguments, 1 );
return function() {
return func.apply( this, args.concat( aps.call( arguments ) ) );
};
};
// Get location.hash (or what you'd expect location.hash to be) sans any
// leading #. Thanks for making this necessary, Firefox!
function get_fragment( url ) {
return url.replace( /^[^#]*#?(.*)$/, '$1' );
};
// Get location.search (or what you'd expect location.search to be) sans any
// leading #. Thanks for making this necessary, IE6!
function get_querystring( url ) {
return url.replace( /(?:^[^?#]*\?([^#]*).*$)?.*/, '$1' );
};
// Section: Param (to string)
//
// Method: jQuery.param.querystring
//
// Retrieve the query string from a URL or if no arguments are passed, the
// current window.location.
//
// Usage:
//
// > jQuery.param.querystring( [ url ] );
//
// Arguments:
//
// url - (String) A URL containing query string params to be parsed. If url
// is not passed, the current window.location is used.
//
// Returns:
//
// (String) The parsed query string, with any leading "?" removed.
//
// Method: jQuery.param.querystring (build url)
//
// Merge a URL, with or without pre-existing query string params, plus any
// object, params string or URL containing query string params into a new URL.
//
// Usage:
//
// > jQuery.param.querystring( url, params [, merge_mode ] );
//
// Arguments:
//
// url - (String) A valid URL for params to be merged into. This URL may
// contain a query string and/or fragment (hash).
// params - (String) A params string or URL containing query string params to
// be merged into url.
// params - (Object) A params object to be merged into url.
// merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
// specified, and is as-follows:
//
// * 0: params in the params argument will override any query string
// params in url.
// * 1: any query string params in url will override params in the params
// argument.
// * 2: params argument will completely replace any query string in url.
//
// Returns:
//
// (String) Either a params string with urlencoded data or a URL with a
// urlencoded query string in the format 'a=b&c=d&e=f'.
// Method: jQuery.param.fragment
//
// Retrieve the fragment (hash) from a URL or if no arguments are passed, the
// current window.location.
//
// Usage:
//
// > jQuery.param.fragment( [ url ] );
//
// Arguments:
//
// url - (String) A URL containing fragment (hash) params to be parsed. If
// url is not passed, the current window.location is used.
//
// Returns:
//
// (String) The parsed fragment (hash) string, with any leading "#" removed.
// Method: jQuery.param.fragment (build url)
//
// Merge a URL, with or without pre-existing fragment (hash) params, plus any
// object, params string or URL containing fragment (hash) params into a new
// URL.
//
// Usage:
//
// > jQuery.param.fragment( url, params [, merge_mode ] );
//
// Arguments:
//
// url - (String) A valid URL for params to be merged into. This URL may
// contain a query string and/or fragment (hash).
// params - (String) A params string or URL containing fragment (hash) params
// to be merged into url.
// params - (Object) A params object to be merged into url.
// merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
// specified, and is as-follows:
//
// * 0: params in the params argument will override any fragment (hash)
// params in url.
// * 1: any fragment (hash) params in url will override params in the
// params argument.
// * 2: params argument will completely replace any query string in url.
//
// Returns:
//
// (String) Either a params string with urlencoded data or a URL with a
// urlencoded fragment (hash) in the format 'a=b&c=d&e=f'.
function jq_param_sub( is_fragment, get_func, url, params, merge_mode ) {
var result,
qs,
matches,
url_params,
hash;
if ( params !== undefined ) {
// Build URL by merging params into url string.
// matches[1] = url part that precedes params, not including trailing ?/#
// matches[2] = params, not including leading ?/#
// matches[3] = if in 'querystring' mode, hash including leading #, otherwise ''
matches = url.match( is_fragment ? /^([^#]*)\#?(.*)$/ : /^([^#?]*)\??([^#]*)(#?.*)/ );
// Get the hash if in 'querystring' mode, and it exists.
hash = matches[3] || '';
if ( merge_mode === 2 && is_string( params ) ) {
// If merge_mode is 2 and params is a string, merge the fragment / query
// string into the URL wholesale, without converting it into an object.
qs = params.replace( is_fragment ? re_trim_fragment : re_trim_querystring, '' );
} else {
// Convert relevant params in url to object.
url_params = jq_deparam( matches[2] );
params = is_string( params )
// Convert passed params string into object.
? jq_deparam[ is_fragment ? str_fragment : str_querystring ]( params )
// Passed params object.
: params;
qs = merge_mode === 2 ? params // passed params replace url params
: merge_mode === 1 ? $.extend( {}, params, url_params ) // url params override passed params
: $.extend( {}, url_params, params ); // passed params override url params
// Convert params object to a string.
qs = jq_param( qs );
// Unescape characters specified via $.param.noEscape. Since only hash-
// history users have requested this feature, it's only enabled for
// fragment-related params strings.
if ( is_fragment ) {
qs = qs.replace( re_no_escape, decode );
}
}
// Build URL from the base url, querystring and hash. In 'querystring'
// mode, ? is only added if a query string exists. In 'fragment' mode, #
// is always added.
result = matches[1] + ( is_fragment ? '#' : qs || !matches[1] ? '?' : '' ) + qs + hash;
} else {
// If URL was passed in, parse params from URL string, otherwise parse
// params from window.location.
result = get_func( url !== undefined ? url : window[ str_location ][ str_href ] );
}
return result;
};
jq_param[ str_querystring ] = curry( jq_param_sub, 0, get_querystring );
jq_param[ str_fragment ] = jq_param_fragment = curry( jq_param_sub, 1, get_fragment );
// Method: jQuery.param.fragment.noEscape
//
// Specify characters that will be left unescaped when fragments are created
// or merged using <jQuery.param.fragment>, or when the fragment is modified
// using <jQuery.bbq.pushState>. This option only applies to serialized data
// object fragments, and not set-as-string fragments. Does not affect the
// query string. Defaults to ",/" (comma, forward slash).
//
// Note that this is considered a purely aesthetic option, and will help to
// create URLs that "look pretty" in the address bar or bookmarks, without
// affecting functionality in any way. That being said, be careful to not
// unescape characters that are used as delimiters or serve a special
// purpose, such as the "#?&=+" (octothorpe, question mark, ampersand,
// equals, plus) characters.
//
// Usage:
//
// > jQuery.param.fragment.noEscape( [ chars ] );
//
// Arguments:
//
// chars - (String) The characters to not escape in the fragment. If
// unspecified, defaults to empty string (escape all characters).
//
// Returns:
//
// Nothing.
jq_param_fragment.noEscape = function( chars ) {
chars = chars || '';
var arr = $.map( chars.split(''), encodeURIComponent );
re_no_escape = new RegExp( arr.join('|'), 'g' );
};
// A sensible default. These are the characters people seem to complain about
// "uglifying up the URL" the most.
jq_param_fragment.noEscape( ',/' );
// Section: Deparam (from string)
//
// Method: jQuery.deparam
//
// Deserialize a params string into an object, optionally coercing numbers,
// booleans, null and undefined values; this method is the counterpart to the
// internal jQuery.param method.
//
// Usage:
//
// > jQuery.deparam( params [, coerce ] );
//
// Arguments:
//
// params - (String) A params string to be parsed.
// coerce - (Boolean) If true, coerces any numbers or true, false, null, and
// undefined to their actual value. Defaults to false if omitted.
//
// Returns:
//
// (Object) An object representing the deserialized params string.
$.deparam = jq_deparam = function( params, coerce ) {
var obj = {},
coerce_types = { 'true': !0, 'false': !1, 'null': null };
// Iterate over all name=value pairs.
$.each( params.replace( /\+/g, ' ' ).split( '&' ), function(j,v){
var param = v.split( '=' ),
key = decode( param[0] ),
val,
cur = obj,
i = 0,
// If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it
// into its component parts.
keys = key.split( '][' ),
keys_last = keys.length - 1;
// If the first keys part contains [ and the last ends with ], then []
// are correctly balanced.
if ( /\[/.test( keys[0] ) && /\]$/.test( keys[ keys_last ] ) ) {
// Remove the trailing ] from the last keys part.
keys[ keys_last ] = keys[ keys_last ].replace( /\]$/, '' );
// Split first keys part into two parts on the [ and add them back onto
// the beginning of the keys array.
keys = keys.shift().split('[').concat( keys );
keys_last = keys.length - 1;
} else {
// Basic 'foo' style key.
keys_last = 0;
}
// Are we dealing with a name=value pair, or just a name?
if ( param.length === 2 ) {
val = decode( param[1] );
// Coerce values.
if ( coerce ) {
val = val && !isNaN(val) ? +val // number
: val === 'undefined' ? undefined // undefined
: coerce_types[val] !== undefined ? coerce_types[val] // true, false, null
: val; // string
}
if ( keys_last ) {
// Complex key, build deep object structure based on a few rules:
// * The 'cur' pointer starts at the object top-level.
// * [] = array push (n is set to array length), [n] = array if n is
// numeric, otherwise object.
// * If at the last keys part, set the value.
// * For each keys part, if the current level is undefined create an
// object or array based on the type of the next keys part.
// * Move the 'cur' pointer to the next level.
// * Rinse & repeat.
for ( ; i <= keys_last; i++ ) {
key = keys[i] === '' ? cur.length : keys[i];
cur = cur[key] = i < keys_last
? cur[key] || ( keys[i+1] && isNaN( keys[i+1] ) ? {} : [] )
: val;
}
} else {
// Simple key, even simpler rules, since only scalars and shallow
// arrays are allowed.
if ( $.isArray( obj[key] ) ) {
// val is already an array, so push on the next value.
obj[key].push( val );
} else if ( obj[key] !== undefined ) {
// val isn't an array, but since a second value has been specified,
// convert val into an array.
obj[key] = [ obj[key], val ];
} else {
// val is a scalar.
obj[key] = val;
}
}
} else if ( key ) {
// No value was defined, so set something meaningful.
obj[key] = coerce
? undefined
: '';
}
});
return obj;
};
// Method: jQuery.deparam.querystring
//
// Parse the query string from a URL or the current window.location,
// deserializing it into an object, optionally coercing numbers, booleans,
// null and undefined values.
//
// Usage:
//
// > jQuery.deparam.querystring( [ url ] [, coerce ] );
//
// Arguments:
//
// url - (String) An optional params string or URL containing query string
// params to be parsed. If url is omitted, the current window.location
// is used.
// coerce - (Boolean) If true, coerces any numbers or true, false, null, and
// undefined to their actual value. Defaults to false if omitted.
//
// Returns:
//
// (Object) An object representing the deserialized params string.
// Method: jQuery.deparam.fragment
//
// Parse the fragment (hash) from a URL or the current window.location,
// deserializing it into an object, optionally coercing numbers, booleans,
// null and undefined values.
//
// Usage:
//
// > jQuery.deparam.fragment( [ url ] [, coerce ] );
//
// Arguments:
//
// url - (String) An optional params string or URL containing fragment (hash)
// params to be parsed. If url is omitted, the current window.location
// is used.
// coerce - (Boolean) If true, coerces any numbers or true, false, null, and
// undefined to their actual value. Defaults to false if omitted.
//
// Returns:
//
// (Object) An object representing the deserialized params string.
function jq_deparam_sub( is_fragment, url_or_params, coerce ) {
if ( url_or_params === undefined || typeof url_or_params === 'boolean' ) {
// url_or_params not specified.
coerce = url_or_params;
url_or_params = jq_param[ is_fragment ? str_fragment : str_querystring ]();
} else {
url_or_params = is_string( url_or_params )
? url_or_params.replace( is_fragment ? re_trim_fragment : re_trim_querystring, '' )
: url_or_params;
}
return jq_deparam( url_or_params, coerce );
};
jq_deparam[ str_querystring ] = curry( jq_deparam_sub, 0 );
jq_deparam[ str_fragment ] = jq_deparam_fragment = curry( jq_deparam_sub, 1 );
// Section: Element manipulation
//
// Method: jQuery.elemUrlAttr
//
// Get the internal "Default URL attribute per tag" list, or augment the list
// with additional tag-attribute pairs, in case the defaults are insufficient.
//
// In the <jQuery.fn.querystring> and <jQuery.fn.fragment> methods, this list
// is used to determine which attribute contains the URL to be modified, if
// an "attr" param is not specified.
//
// Default Tag-Attribute List:
//
// a - href
// base - href
// iframe - src
// img - src
// input - src
// form - action
// link - href
// script - src
//
// Usage:
//
// > jQuery.elemUrlAttr( [ tag_attr ] );
//
// Arguments:
//
// tag_attr - (Object) An object containing a list of tag names and their
// associated default attribute names in the format { tag: 'attr', ... } to
// be merged into the internal tag-attribute list.
//
// Returns:
//
// (Object) An object containing all stored tag-attribute values.
// Only define function and set defaults if function doesn't already exist, as
// the urlInternal plugin will provide this method as well.
$[ str_elemUrlAttr ] || ($[ str_elemUrlAttr ] = function( obj ) {
return $.extend( elemUrlAttr_cache, obj );
})({
a: str_href,
base: str_href,
iframe: str_src,
img: str_src,
input: str_src,
form: 'action',
link: str_href,
script: str_src
});
jq_elemUrlAttr = $[ str_elemUrlAttr ];
// Method: jQuery.fn.querystring
//
// Update URL attribute in one or more elements, merging the current URL (with
// or without pre-existing query string params) plus any params object or
// string into a new URL, which is then set into that attribute. Like
// <jQuery.param.querystring (build url)>, but for all elements in a jQuery
// collection.
//
// Usage:
//
// > jQuery('selector').querystring( [ attr, ] params [, merge_mode ] );
//
// Arguments:
//
// attr - (String) Optional name of an attribute that will contain a URL to
// merge params or url into. See <jQuery.elemUrlAttr> for a list of default
// attributes.
// params - (Object) A params object to be merged into the URL attribute.
// params - (String) A URL containing query string params, or params string
// to be merged into the URL attribute.
// merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
// specified, and is as-follows:
//
// * 0: params in the params argument will override any params in attr URL.
// * 1: any params in attr URL will override params in the params argument.
// * 2: params argument will completely replace any query string in attr
// URL.
//
// Returns:
//
// (jQuery) The initial jQuery collection of elements, but with modified URL
// attribute values.
// Method: jQuery.fn.fragment
//
// Update URL attribute in one or more elements, merging the current URL (with
// or without pre-existing fragment/hash params) plus any params object or
// string into a new URL, which is then set into that attribute. Like
// <jQuery.param.fragment (build url)>, but for all elements in a jQuery
// collection.
//
// Usage:
//
// > jQuery('selector').fragment( [ attr, ] params [, merge_mode ] );
//
// Arguments:
//
// attr - (String) Optional name of an attribute that will contain a URL to
// merge params into. See <jQuery.elemUrlAttr> for a list of default
// attributes.
// params - (Object) A params object to be merged into the URL attribute.
// params - (String) A URL containing fragment (hash) params, or params
// string to be merged into the URL attribute.
// merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
// specified, and is as-follows:
//
// * 0: params in the params argument will override any params in attr URL.
// * 1: any params in attr URL will override params in the params argument.
// * 2: params argument will completely replace any fragment (hash) in attr
// URL.
//
// Returns:
//
// (jQuery) The initial jQuery collection of elements, but with modified URL
// attribute values.
function jq_fn_sub( mode, force_attr, params, merge_mode ) {
if ( !is_string( params ) && typeof params !== 'object' ) {
// force_attr not specified.
merge_mode = params;
params = force_attr;
force_attr = undefined;
}
return this.each(function(){
var that = $(this),
// Get attribute specified, or default specified via $.elemUrlAttr.
attr = force_attr || jq_elemUrlAttr()[ ( this.nodeName || '' ).toLowerCase() ] || '',
// Get URL value.
url = attr && that.attr( attr ) || '';
// Update attribute with new URL.
that.attr( attr, jq_param[ mode ]( url, params, merge_mode ) );
});
};
$.fn[ str_querystring ] = curry( jq_fn_sub, str_querystring );
$.fn[ str_fragment ] = curry( jq_fn_sub, str_fragment );
// Section: History, hashchange event
//
// Method: jQuery.bbq.pushState
//
// Adds a 'state' into the browser history at the current position, setting
// location.hash and triggering any bound <hashchange event> callbacks
// (provided the new state is different than the previous state).
//
// If no arguments are passed, an empty state is created, which is just a
// shortcut for jQuery.bbq.pushState( {}, 2 ).
//
// Usage:
//
// > jQuery.bbq.pushState( [ params [, merge_mode ] ] );
//
// Arguments:
//
// params - (String) A serialized params string or a hash string beginning
// with # to merge into location.hash.
// params - (Object) A params object to merge into location.hash.
// merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
// specified (unless a hash string beginning with # is specified, in which
// case merge behavior defaults to 2), and is as-follows:
//
// * 0: params in the params argument will override any params in the
// current state.
// * 1: any params in the current state will override params in the params
// argument.
// * 2: params argument will completely replace current state.
//
// Returns:
//
// Nothing.
//
// Additional Notes:
//
// * Setting an empty state may cause the browser to scroll.
// * Unlike the fragment and querystring methods, if a hash string beginning
// with # is specified as the params agrument, merge_mode defaults to 2.
jq_bbq.pushState = jq_bbq_pushState = function( params, merge_mode ) {
if ( is_string( params ) && /^#/.test( params ) && merge_mode === undefined ) {
// Params string begins with # and merge_mode not specified, so completely
// overwrite window.location.hash.
merge_mode = 2;
}
var has_args = params !== undefined,
// Merge params into window.location using $.param.fragment.
url = jq_param_fragment( window[ str_location ][ str_href ],
has_args ? params : {}, has_args ? merge_mode : 2 );
// Set new window.location.href. If hash is empty, use just # to prevent
// browser from reloading the page. Note that Safari 3 & Chrome barf on
// location.hash = '#'.
window[ str_location ][ str_href ] = url + ( /#/.test( url ) ? '' : '#' );
};
// Method: jQuery.bbq.getState
//
// Retrieves the current 'state' from the browser history, parsing
// location.hash for a specific key or returning an object containing the
// entire state, optionally coercing numbers, booleans, null and undefined
// values.
//
// Usage:
//
// > jQuery.bbq.getState( [ key ] [, coerce ] );
//
// Arguments:
//
// key - (String) An optional state key for which to return a value.
// coerce - (Boolean) If true, coerces any numbers or true, false, null, and
// undefined to their actual value. Defaults to false.
//
// Returns:
//
// (Anything) If key is passed, returns the value corresponding with that key
// in the location.hash 'state', or undefined. If not, an object
// representing the entire 'state' is returned.
jq_bbq.getState = jq_bbq_getState = function( key, coerce ) {
return key === undefined || typeof key === 'boolean'
? jq_deparam_fragment( key ) // 'key' really means 'coerce' here
: jq_deparam_fragment( coerce )[ key ];
};
// Method: jQuery.bbq.removeState
//
// Remove one or more keys from the current browser history 'state', creating
// a new state, setting location.hash and triggering any bound
// <hashchange event> callbacks (provided the new state is different than
// the previous state).
//
// If no arguments are passed, an empty state is created, which is just a
// shortcut for jQuery.bbq.pushState( {}, 2 ).
//
// Usage:
//
// > jQuery.bbq.removeState( [ key [, key ... ] ] );
//
// Arguments:
//
// key - (String) One or more key values to remove from the current state,
// passed as individual arguments.
// key - (Array) A single array argument that contains a list of key values
// to remove from the current state.
//
// Returns:
//
// Nothing.
//
// Additional Notes:
//
// * Setting an empty state may cause the browser to scroll.
jq_bbq.removeState = function( arr ) {
var state = {};
// If one or more arguments is passed..
if ( arr !== undefined ) {
// Get the current state.
state = jq_bbq_getState();
// For each passed key, delete the corresponding property from the current
// state.
$.each( $.isArray( arr ) ? arr : arguments, function(i,v){
delete state[ v ];
});
}
// Set the state, completely overriding any existing state.
jq_bbq_pushState( state, 2 );
};
// Event: hashchange event (BBQ)
//
// Usage in jQuery 1.4 and newer:
//
// In jQuery 1.4 and newer, the event object passed into any hashchange event
// callback is augmented with a copy of the location.hash fragment at the time
// the event was triggered as its event.fragment property. In addition, the
// event.getState method operates on this property (instead of location.hash)
// which allows this fragment-as-a-state to be referenced later, even after
// window.location may have changed.
//
// Note that event.fragment and event.getState are not defined according to
// W3C (or any other) specification, but will still be available whether or
// not the hashchange event exists natively in the browser, because of the
// utility they provide.
//
// The event.fragment property contains the output of <jQuery.param.fragment>
// and the event.getState method is equivalent to the <jQuery.bbq.getState>
// method.
//
// > $(window).bind( 'hashchange', function( event ) {
// > var hash_str = event.fragment,
// > param_obj = event.getState(),
// > param_val = event.getState( 'param_name' ),
// > param_val_coerced = event.getState( 'param_name', true );
// > ...
// > });
//
// Usage in jQuery 1.3.2:
//
// In jQuery 1.3.2, the event object cannot to be augmented as in jQuery 1.4+,
// so the fragment state isn't bound to the event object and must instead be
// parsed using the <jQuery.param.fragment> and <jQuery.bbq.getState> methods.
//
// > $(window).bind( 'hashchange', function( event ) {
// > var hash_str = $.param.fragment(),
// > param_obj = $.bbq.getState(),
// > param_val = $.bbq.getState( 'param_name' ),
// > param_val_coerced = $.bbq.getState( 'param_name', true );
// > ...
// > });
//
// Additional Notes:
//
// * Due to changes in the special events API, jQuery BBQ v1.2 or newer is
// required to enable the augmented event object in jQuery 1.4.2 and newer.
// * See <jQuery hashchange event> for more detailed information.
jq_event_special[ str_hashchange ] = $.extend( jq_event_special[ str_hashchange ], {
// Augmenting the event object with the .fragment property and .getState
// method requires jQuery 1.4 or newer. Note: with 1.3.2, everything will
// work, but the event won't be augmented)
add: function( handleObj ) {
var old_handler;
function new_handler(e) {
// e.fragment is set to the value of location.hash (with any leading #
// removed) at the time the event is triggered.
var hash = e[ str_fragment ] = jq_param_fragment();
// e.getState() works just like $.bbq.getState(), but uses the
// e.fragment property stored on the event object.
e.getState = function( key, coerce ) {
return key === undefined || typeof key === 'boolean'
? jq_deparam( hash, key ) // 'key' really means 'coerce' here
: jq_deparam( hash, coerce )[ key ];
};
old_handler.apply( this, arguments );
};
// This may seem a little complicated, but it normalizes the special event
// .add method between jQuery 1.4/1.4.1 and 1.4.2+
if ( $.isFunction( handleObj ) ) {
// 1.4, 1.4.1
old_handler = handleObj;
return new_handler;
} else {
// 1.4.2+
old_handler = handleObj.handler;
handleObj.handler = new_handler;
}
}
});
})(jQuery,this);
/*!
* jQuery hashchange event - v1.2 - 2/11/2010
* http://benalman.com/projects/jquery-hashchange-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery hashchange event
//
// *Version: 1.2, Last updated: 2/11/2010*
//
// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
// GitHub - http://github.com/cowboy/jquery-hashchange/
// Source - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
// (Minified) - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (1.1kb)
//
// About: License
//
// Copyright (c) 2010 "Cowboy" Ben Alman,
// Dual licensed under the MIT and GPL licenses.
// http://benalman.com/about/license/
//
// About: Examples
//
// This working example, complete with fully commented code, illustrate one way
// in which this plugin can be used.
//
// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
//
// About: Support and Testing
//
// Information about what version or versions of jQuery this plugin has been
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
// jQuery Versions - 1.3.2, 1.4.1, 1.4.2
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.1.
// Unit Tests - http://benalman.com/code/projects/jquery-hashchange/unit/
//
// About: Known issues
//
// While this jQuery hashchange event implementation is quite stable and robust,
// there are a few unfortunate browser bugs surrounding expected hashchange
// event-based behaviors, independent of any JavaScript window.onhashchange
// abstraction. See the following examples for more information:
//
// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
//
// About: Release History
//
// 1.2 - (2/11/2010) Fixed a bug where coming back to a page using this plugin
// from a page on another domain would cause an error in Safari 4. Also,
// IE6/7 Iframe is now inserted after the body (this actually works),
// which prevents the page from scrolling when the event is first bound.
// Event can also now be bound before DOM ready, but it won't be usable
// before then in IE6/7.
// 1.1 - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
// where browser version is incorrectly reported as 8.0, despite
// inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
// 1.0 - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
// window.onhashchange functionality into a separate plugin for users
// who want just the basic event & back button support, without all the
// extra awesomeness that BBQ provides. This plugin will be included as
// part of jQuery BBQ, but also be available separately.
(function($,window,undefined){
'$:nomunge'; // Used by YUI compressor.
// Method / object references.
var fake_onhashchange,
jq_event_special = $.event.special,
// Reused strings.
str_location = 'location',
str_hashchange = 'hashchange',
str_href = 'href',
// IE6/7 specifically need some special love when it comes to back-button
// support, so let's do a little browser sniffing..
browser = $.browser,
mode = document.documentMode,
is_old_ie = browser.msie && ( mode === undefined || mode < 8 ),
// Does the browser support window.onhashchange? Test for IE version, since
// IE8 incorrectly reports this when in "IE7" or "IE8 Compatibility View"!
supports_onhashchange = 'on' + str_hashchange in window && !is_old_ie;
// Get location.hash (or what you'd expect location.hash to be) sans any
// leading #. Thanks for making this necessary, Firefox!
function get_fragment( url ) {
url = url || window[ str_location ][ str_href ];
return url.replace( /^[^#]*#?(.*)$/, '$1' );
};
// Property: jQuery.hashchangeDelay
//
// The numeric interval (in milliseconds) at which the <hashchange event>
// polling loop executes. Defaults to 100.
$[ str_hashchange + 'Delay' ] = 100;
// Event: hashchange event
//
// Fired when location.hash changes. In browsers that support it, the native
// window.onhashchange event is used (IE8, FF3.6), otherwise a polling loop is
// initialized, running every <jQuery.hashchangeDelay> milliseconds to see if
// the hash has changed. In IE 6 and 7, a hidden Iframe is created to allow
// the back button and hash-based history to work.
//
// Usage:
//
// > $(window).bind( 'hashchange', function(e) {
// > var hash = location.hash;
// > ...
// > });
//
// Additional Notes:
//
// * The polling loop and Iframe are not created until at least one callback
// is actually bound to 'hashchange'.
// * If you need the bound callback(s) to execute immediately, in cases where
// the page 'state' exists on page load (via bookmark or page refresh, for
// example) use $(window).trigger( 'hashchange' );
// * The event can be bound before DOM ready, but since it won't be usable
// before then in IE6/7 (due to the necessary Iframe), recommended usage is
// to bind it inside a $(document).ready() callback.
jq_event_special[ str_hashchange ] = $.extend( jq_event_special[ str_hashchange ], {
// Called only when the first 'hashchange' event is bound to window.
setup: function() {
// If window.onhashchange is supported natively, there's nothing to do..
if ( supports_onhashchange ) { return false; }
// Otherwise, we need to create our own. And we don't want to call this
// until the user binds to the event, just in case they never do, since it
// will create a polling loop and possibly even a hidden Iframe.
$( fake_onhashchange.start );
},
// Called only when the last 'hashchange' event is unbound from window.
teardown: function() {
// If window.onhashchange is supported natively, there's nothing to do..
if ( supports_onhashchange ) { return false; }
// Otherwise, we need to stop ours (if possible).
$( fake_onhashchange.stop );
}
});
// fake_onhashchange does all the work of triggering the window.onhashchange
// event for browsers that don't natively support it, including creating a
// polling loop to watch for hash changes and in IE 6/7 creating a hidden
// Iframe to enable back and forward.
fake_onhashchange = (function(){
var self = {},
timeout_id,
iframe,
set_history,
get_history;
// Initialize. In IE 6/7, creates a hidden Iframe for history handling.
function init(){
// Most browsers don't need special methods here..
set_history = get_history = function(val){ return val; };
// But IE6/7 do!
if ( is_old_ie ) {
// Create hidden Iframe after the end of the body to prevent initial
// page load from scrolling unnecessarily.
iframe = $('<iframe src="javascript:0"/>').hide().insertAfter( 'body' )[0].contentWindow;
// Get history by looking at the hidden Iframe's location.hash.
get_history = function() {
return get_fragment( iframe.document[ str_location ][ str_href ] );
};
// Set a new history item by opening and then closing the Iframe
// document, *then* setting its location.hash.
set_history = function( hash, history_hash ) {
if ( hash !== history_hash ) {
var doc = iframe.document;
doc.open().close();
doc[ str_location ].hash = '#' + hash;
}
};
// Set initial history.
set_history( get_fragment() );
}
};
// Start the polling loop.
self.start = function() {
// Polling loop is already running!
if ( timeout_id ) { return; }
// Remember the initial hash so it doesn't get triggered immediately.
var last_hash = get_fragment();
// Initialize if not yet initialized.
set_history || init();
// This polling loop checks every $.hashchangeDelay milliseconds to see if
// location.hash has changed, and triggers the 'hashchange' event on
// window when necessary.
(function loopy(){
var hash = get_fragment(),
history_hash = get_history( last_hash );
if ( hash !== last_hash ) {
set_history( last_hash = hash, history_hash );
$(window).trigger( str_hashchange );
} else if ( history_hash !== last_hash ) {
window[ str_location ][ str_href ] = window[ str_location ][ str_href ].replace( /#.*/, '' ) + '#' + history_hash;
}
timeout_id = setTimeout( loopy, $[ str_hashchange + 'Delay' ] );
})();
};
// Stop the polling loop, but only if an IE6/7 Iframe wasn't created. In
// that case, even if there are no longer any bound event handlers, the
// polling loop is still necessary for back/next to work at all!
self.stop = function() {
if ( !iframe ) {
timeout_id && clearTimeout( timeout_id );
timeout_id = 0;
}
};
return self;
})();
})(jQuery,this); | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.