MediaWiki:Common.js — различия между версиями

Материал из ЭНЭ
Перейти к: навигация, поиск
м
 
(не показано 7 промежуточных версии 2 участников)
Строка 1: Строка 1:
//See http://ru.wikipedia.org/wiki/project:code //<source lang=javascript>
+
/* */
 +
//<source lang="javascript">
 +
/* <pre> */
 +
var mpTitle = "Заглавная страница";
 +
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" — ")) == mpTitle);
 +
var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
  
importScript_ = importScript
+
/** JSconfig (old version, to be replaced soon) ************
importScript = function (page, proj){
+
  * Global configuration options to enable and disable specific
  if (!proj) importScript_(page)
+
  * script features from [[MediaWiki:Common.js]]
  else {
+
* Override these default settings in your [[Special:Mypage/monobook.js]]
  if (proj.indexOf('.')==-1) proj += '.wikipedia.org'
+
* for Example: JSconfig.loadAutoInformationTemplate = false;
  importScriptURI('http://'+proj+'/w/index.php?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_')))
+
*
  }
+
*  Maintainer: [[User:Dschwen]]
 +
*/
 +
 
 +
var JSconfig_old =
 +
{
 +
loadAutoInformationTemplate : true,
 +
  specialSearchEnhanced : true,
 +
subPagesLink : true,
 +
attributeSelf : true,
 +
userUploadsLink : true
 
}
 
}
  
addLoadEvent = addOnloadHook
 
  
 +
/** JSconfig ************
 +
* Global configuration options to enable/disable and configure
 +
* specific script features from [[MediaWiki:Common.js]] and
 +
* [[MediaWiki:Monobook.js]]
 +
* This framework adds config options (saved as cookies) to [[Special:Preferences]]
 +
* For a more permanent change you can override the default settings in your
 +
* [[Special:Mypage/monobook.js]]
 +
* for Example: JSconfig.keys[loadAutoInformationTemplate] = false;
 +
*
 +
*  Maintainer: [[User:Dschwen]]
 +
*/
  
function ts_parseFloat(n){
+
var JSconfig =
  if (!n) return 0
+
{
n = parseFloat(n.replace(/\./g, '').replace(/,/, '.'))
+
  prefix : 'jsconfig_',
  return (isNaN(n) ? 0 : n)
+
  keys : {},
}
+
meta : {},
  
 +
//
 +
// Register a new configuration item
 +
//  * name          : String, internal name
 +
//  * default_value : String or Boolean (type determines configuration widget)
 +
//  * description  : String, text appearing next to the widget in the preferences
 +
//  * prefpage      : Integer (optional), section in the preferences to insert the widget:
 +
//                    0 : User profile
 +
//                    1 : Skin
 +
//                    2 : Math
 +
//                    3 : Files
 +
//                    4 : Date and time
 +
//                    5 : Editing
 +
//                    6 : Recent changes
 +
//                    7 : Watchlist
 +
//                    8 : Search
 +
//                    9 : Misc
 +
//
 +
// Access keys through JSconfig.keys[name]
 +
//
 +
registerKey : function( name, default_value, description, prefpage )
 +
{
 +
  if( typeof(JSconfig.keys[name]) == 'undefined' )
 +
  JSconfig.keys[name] = default_value;
 +
  else {
  
function LinkFA(){
+
  // all cookies are read as strings,
var pLang = document.getElementById('p-lang')
+
  // convert to the type of the default value
if (!pLang) return
+
  switch( typeof(default_value) )
var iw = pLang.getElementsByTagName('li')
+
   {
for (var i=0; i < iw.length; i++)
+
    case 'boolean' : JSconfig.keys[name] = ( JSconfig.keys[name] == 'true' ); break;
   if (document.getElementById(iw[i].className+'-fa')){
+
    case 'number'  : JSconfig.keys[name] = JSconfig.keys[name]/1; break;
    iw[i].className += ' FA'
+
    iw[i].title = 'Эта статья является избранной в другом языковом разделе'
+
  }else if (document.getElementById(iw[i].className+'-ga')){
+
    iw[i].className += ' GA'
+
    iw[i].title = 'Эта статья является хорошей в другом языковом разделе'
+
 
   }
 
   }
}
 
  
 +
  }
  
function icqIcons(){
+
  JSconfig.meta[name] = { 'description' : description, 'page' : prefpage || 0, 'default_value' : default_value };
var a, spans = document.getElementById('content').getElementsByTagName('span')
+
},
for (var i=0; a=spans[i]; i++)
+
  if (a.className == 'ICQ')
+
    a.style.backgroundImage = "url('http://status.icq.com/online.gif?icq="+a.id+"&img=5&randseed="+Math.floor(Math.random()*10000000)+"')"
+
}
+
  
 +
readCookies : function()
 +
{
 +
  var cookies = document.cookie.split("; ");
 +
  var p =JSconfig.prefix.length;
 +
  var i;
  
function newSectionLink(){
+
  for( var key in cookies )
var plus = document.getElementById('ca-addsection')
+
  {
if (!plus) return
+
  if( cookies[key].substring(0,p) == JSconfig.prefix )
var custom = document.getElementById('add-custom-section')
+
  {
if (!custom) return
+
    i = cookies[key].indexOf('=');
plus.firstChild.setAttribute('href', custom.getElementsByTagName('a')[0].href)
+
    //alert( cookies[key] + ',' + key + ',' + cookies[key].substring(p,i) );
}
+
    JSconfig.keys[cookies[key].substring(p,i)] = cookies[key].substring(i+1);
 +
  }
 +
  }
 +
},
  
 +
writeCookies : function()
 +
{
 +
  for( var key in JSconfig.keys )
 +
  document.cookie = JSconfig.prefix + key + '=' + JSconfig.keys[key] + '; path=/; expires=Thu, 2 Aug 2009 10:10:10 UTC';
 +
},
  
function editZeroSection(){
+
evaluateForm : function()
var body = document.getElementById('bodyContent')
+
{
if (!body) return
+
  var w_ctrl,wt;
var h2s = body.getElementsByTagName('H2')
+
  //alert('about to save JSconfig');
var h2 = h2s[0]
+
  for( var key in JSconfig.meta ) {
if (!h2) return
+
  w_ctrl = document.getElementById( JSconfig.prefix + key )
if (h2.parentNode.id == 'toctitle') h2 = h2s[1]
+
  if( w_ctrl )  
if (!h2) return
+
  {
var span = h2.firstChild
+
    wt = typeof( JSconfig.meta[key].default_value );
if (!span || span.className != 'editsection') return
+
    switch( wt ) {
var zero = span.cloneNode(true)
+
    case 'boolean' : JSconfig.keys[key] = w_ctrl.checked; break;
body.insertBefore(zero, body.firstChild)
+
    case 'string' : JSconfig.keys[key] = w_ctrl.value; break;
var a = zero.getElementsByTagName('a')[0]
+
    }
if (a.href.indexOf('&section=T') == -1 )  a.title = a.title.replace(/:.*$/,': 0')
+
  }
else a.title = 'Править секцию: 0'
+
  }
a.setAttribute('href', wgScript + '?title='+encodeURIComponent(wgPageName) + '&action=edit&section=0')
+
}
+
  
 +
  JSconfig.writeCookies();
 +
  return true;
 +
},
  
function mainPage(){
+
setUpForm : function()
  if (wgArticleId == 23 || wgArticleId == 4401){
+
  {  
   var li = addPortletLink('p-lang', wgArticlePath.replace(/\$1/, 'Википедия:Список_Википедий'), 'Полный список', 'interwiki-completelist')
+
   var prefChild = document.getElementById('preferences');
   if (li) li.style.fontWeight = 'bold'
+
   if( !prefChild ) return;
   var nstab = document.getElementById('ca-nstab-main') || document.getElementById('ca-current')
+
   prefChild = prefChild.childNodes;
  if (nstab && wgUserLanguage == 'ru')  nstab.firstChild.firstChild.nodeValue = 'Заглавная'
+
}
+
}
+
  
 +
  //
 +
  // make a list of all preferences sections
 +
  //
 +
  var tabs = new Array;
 +
  var len = prefChild.length;
 +
  for( var key = 0; key < len; key++ ) {
 +
  if( prefChild[key].tagName &&
 +
      prefChild[key].tagName.toLowerCase() == 'fieldset' )
 +
    tabs.push(prefChild[key]);
 +
  }
  
//Collapsiblе: [[ВП:СБ]]
+
  //
 +
  // Create Widgets for all registered config keys
 +
  //
 +
  var w_div, w_label, w_ctrl, wt;
 +
  for( var key in JSconfig.meta ) {
 +
  w_div = document.createElement( 'DIV' );
  
var NavigationBarShowDefault = 2
+
  w_label = document.createElement( 'LABEL' );
var NavigationBarHide = '[скрыть]'
+
  w_label.appendChild( document.createTextNode( JSconfig.meta[key].description ) )
var NavigationBarShow = '[показать]'
+
  w_label.htmlFor = JSconfig.prefix + key;
  
var hasClass = (function (){
+
  wt = typeof( JSconfig.meta[key].default_value );
var reCache = {}
+
return function (element, className){
+
  return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className)
+
  }
+
})()
+
  
function collapsibleTables(){
+
  w_ctrl = document.createElement( 'INPUT' );
var Table, HRow,  HCell, btn, a, tblIdx = 0, colTables = []
+
  w_ctrl.id = JSconfig.prefix + key;
var allTables = document.getElementsByTagName('table')
+
 
for (var i=0; Table = allTables[i]; i++){
+
   // before insertion into the DOM tree
   if (!hasClass(Table, 'collapsible')) continue
+
   switch( wt ) {
   if (!(HRow=Table.rows[0])) continue
+
    case 'boolean' : w_ctrl.type = 'checkbox'; break;
  if (!(HCell=HRow.getElementsByTagName('th')[0])) continue
+
    case 'string'  : w_ctrl.type = 'text'; break;
  Table.id = 'collapsibleTable' + tblIdx
+
   }
   btn = document.createElement('span')
+
 
   btn.style.cssText = 'float:right; font-weight:normal; font-size:smaller'
+
  w_div.appendChild( w_label );
   a = document.createElement('a')
+
   w_div.appendChild( w_ctrl );
   a.id = 'collapseButton' + tblIdx
+
   tabs[JSconfig.meta[key].page].appendChild( w_div );
   a.href = 'javascript:collapseTable(' + tblIdx + ');'  
+
 
  a.style.color = HCell.style.color
+
   // after insertion into the DOM tree
   a.appendChild(document.createTextNode(NavigationBarHide))
+
   switch( wt ) {
  btn.appendChild(a)
+
    case 'boolean' : w_ctrl.defaultChecked = w_ctrl.checked = JSconfig.keys[key]; break;
  HCell.insertBefore(btn, HCell.childNodes[0])
+
    case 'string' : w_ctrl.defaultValue = w_ctrl.value = JSconfig.keys[key]; break;
  colTables[tblIdx++] = Table
+
   }
 +
 
 +
  }
 +
  addEvent(document.getElementById('preferences').parentNode, 'submit', JSconfig.evaluateForm );
 
  }
 
  }
for (var i=0; i < tblIdx; i++)
 
  if ((tblIdx > NavigationBarShowDefault && hasClass(colTables[i], 'autocollapse')) || hasClass(colTables[i], 'collapsed'))
 
    collapseTable(i)
 
 
}
 
}
  
function collapseTable (idx){
+
JSconfig.readCookies();
var Table = document.getElementById('collapsibleTable' + idx)
+
addOnloadHook(JSconfig.setUpForm);
var btn = document.getElementById('collapseButton' + idx)
+
 
if (!Table || !btn) return false
+
if (isMainPage && !isDiff)  
var Rows = Table.rows
+
{
var isShown = (btn.firstChild.data == NavigationBarHide)
+
document.write('<style type="text/css">/*<![CDATA[*/ #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
btn.firstChild.data = isShown ?  NavigationBarShow : NavigationBarHide
+
var disp = isShown ? 'none' : Rows[0].style.display
+
for (var i=1; i < Rows.length; i++)
+
    Rows[i].style.display = disp
+
 
}
 
}
  
function collapsibleDivs(){
+
/* подгрузка файла со скриптами для редактирования  *****************************************
  var navIdx = 0, colNavs = [], i, NavFrame
+
  */
  var divs = document.getElementById('content').getElementsByTagName('div')
+
  if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
  for (i=0; NavFrame = divs[i]; i++) {
+
  {
  if (!hasClass(NavFrame, 'NavFrame')) continue
+
      if (wgCanonicalNamespace != "Special")
  NavFrame.id = 'NavFrame' + navIdx
+
      {
  var a = document.createElement('a')
+
          document.write('<script type="text/javascript" src="/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
  a.className = 'NavToggle'
+
 
  a.id = 'NavToggle' + navIdx
+
/* importScript('MediaWiki:Onlyifediting.js'); */
  a.href = 'javascript:collapseDiv(' + navIdx + ');'
+
       }
  a.appendChild(document.createTextNode(NavigationBarHide))
+
  for (var j=0; j < NavFrame.childNodes.length; j++)
+
    if (hasClass(NavFrame.childNodes[j], 'NavHead'))
+
       NavFrame.childNodes[j].appendChild(a)
+
  colNavs[navIdx++] = NavFrame
+
 
  }
 
  }
for (i=0; i < navIdx; i++)
 
  if ((navIdx > NavigationBarShowDefault && !hasClass(colNavs[i], 'expanded')) || hasClass(colNavs[i], 'collapsed'))
 
    collapseDiv(i)
 
}
 
  
function collapseDiv(idx) {
+
 
  var div = document.getElementById('NavFrame' + idx)
+
  function addLoadEvent(func)  
  var btn = document.getElementById('NavToggle' + idx)
+
  {
  if (!div || !btn) return false
+
  if (window.addEventListener)  
var isShown = (btn.firstChild.data == NavigationBarHide)
+
  window.addEventListener("load", func, false);
  btn.firstChild.data = isShown ? NavigationBarShow : NavigationBarHide
+
  else if (window.attachEvent)  
var disp = isShown ? 'none' : 'block'
+
   window.attachEvent("onload", func);
for (var child = div.firstChild;  child != null;  child = child.nextSibling)
+
   if (hasClass(child, 'NavPic') || hasClass(child, 'NavContent'))
+
      child.style.display = disp
+
 
}
 
}
  
Строка 169: Строка 213:
 
   case 'Search': importScript('MediaWiki:Search.js'); break
 
   case 'Search': importScript('MediaWiki:Search.js'); break
 
   }
 
   }
}else if (wgAction != 'history'){
 
  addOnloadHook(editZeroSection)
 
  addOnloadHook(collapsibleDivs)
 
  addOnloadHook(collapsibleTables)
 
  addOnloadHook(mainPage)
 
  importScript('MediaWiki:Wikiminiatlas.js', 'meta.wikimedia.org')
 
  if (navigator.appName=='Microsoft Internet Explorer' && document.createStyleSheet)
 
    document.createStyleSheet().addRule('.IPA', 'font-family: "Doulos SIL", "Charis SIL", Gentium, "DejaVu Sans", Code2000, "TITUS Cyberbit Basic", "Arial Unicode MS", "Lucida Sans Unicode", "Chrysanthi Unicode";')
 
  if (wgNamespaceNumber == 0)
 
    addOnloadHook(LinkFA)
 
  else {
 
    addOnloadHook(icqIcons)
 
    addOnloadHook(newSectionLink)
 
  }
 
  if (wgAction=='edit' || wgAction=='submit') importScript('MediaWiki:Editpage.js')
 
}
 
 
 
if (wgUserGroups)
 
for (var i=0; i<wgUserGroups.length; i++) switch (wgUserGroups[i]){
 
case 'editor': importStylesheet('MediaWiki:Gadget-FlaggedRevs.css'); break
 
case 'sysop': importScript('MediaWiki:Sysop.js'); break
 
 
}
 
}
  
// Сообщить об ошибке
+
// русификация кнопок на панели инструментов
//importScript( "MediaWiki:Wikibugs.js" )
+
if (wgAction == 'edit' || wgAction == 'submit')
 +
addOnloadHook(function(){
 +
if (mwEditButtons.length < 3) return;
 +
mwEditButtons[0].imageFile = 'http://wiki.laser.ru/images/9/9a/Button_boldru.png';
 +
mwEditButtons[1].imageFile = 'http://wiki.laser.ru/images/8/88/Button_italicru.png';
 +
mwEditButtons[2].imageFile = 'http://wiki.laser.ru/images/0/03/Button_internal_link_ukr.png'
 +
})
  
 +
/* </pre> */
 
//</source>
 
//</source>

Текущая версия на 12:54, 11 декабря 2013

/* */
//<source lang="javascript">
/* <pre> */
var mpTitle = "Заглавная страница";
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" — ")) == mpTitle);
var isDiff = (document.location.search && (document.location.search.indexOf("diff=") != -1 || document.location.search.indexOf("oldid=") != -1));
 
/** JSconfig (old version, to be replaced soon) ************
 * Global configuration options to enable and disable specific
 * script features from [[MediaWiki:Common.js]]
 * Override these default settings in your [[Special:Mypage/monobook.js]]
 * for Example: JSconfig.loadAutoInformationTemplate = false;
 *
 *  Maintainer: [[User:Dschwen]]
 */
 
var JSconfig_old =
{
 loadAutoInformationTemplate : true,
 specialSearchEnhanced : true,
 subPagesLink : true,
 attributeSelf : true,
 userUploadsLink : true
}
 
 
/** JSconfig ************
 * Global configuration options to enable/disable and configure
 * specific script features from [[MediaWiki:Common.js]] and
 * [[MediaWiki:Monobook.js]]
 * This framework adds config options (saved as cookies) to [[Special:Preferences]]
 * For a more permanent change you can override the default settings in your 
 * [[Special:Mypage/monobook.js]]
 * for Example: JSconfig.keys[loadAutoInformationTemplate] = false;
 *
 *  Maintainer: [[User:Dschwen]]
 */
 
var JSconfig =
{
 prefix : 'jsconfig_',
 keys : {},
 meta : {},
 
 //
 // Register a new configuration item
 //  * name          : String, internal name
 //  * default_value : String or Boolean (type determines configuration widget)
 //  * description   : String, text appearing next to the widget in the preferences
 //  * prefpage      : Integer (optional), section in the preferences to insert the widget:
 //                     0 : User profile
 //                     1 : Skin
 //                     2 : Math
 //                     3 : Files
 //                     4 : Date and time
 //                     5 : Editing
 //                     6 : Recent changes
 //                     7 : Watchlist
 //                     8 : Search
 //                     9 : Misc
 //
 // Access keys through JSconfig.keys[name]
 //
 registerKey : function( name, default_value, description, prefpage )
 {
  if( typeof(JSconfig.keys[name]) == 'undefined' ) 
   JSconfig.keys[name] = default_value;
  else {
 
   // all cookies are read as strings, 
   // convert to the type of the default value
   switch( typeof(default_value) )
   {
    case 'boolean' : JSconfig.keys[name] = ( JSconfig.keys[name] == 'true' ); break;
    case 'number'  : JSconfig.keys[name] = JSconfig.keys[name]/1; break;
   }
 
  }
 
  JSconfig.meta[name] = { 'description' : description, 'page' : prefpage || 0, 'default_value' : default_value };
 },
 
 readCookies : function()
 {
  var cookies = document.cookie.split("; ");
  var p =JSconfig.prefix.length;
  var i;
 
  for( var key in cookies )
  {
   if( cookies[key].substring(0,p) == JSconfig.prefix )
   {
    i = cookies[key].indexOf('=');
    //alert( cookies[key] + ',' + key + ',' + cookies[key].substring(p,i) );
    JSconfig.keys[cookies[key].substring(p,i)] = cookies[key].substring(i+1);
   }
  }
 },
 
 writeCookies : function()
 {
  for( var key in JSconfig.keys )
   document.cookie = JSconfig.prefix + key + '=' + JSconfig.keys[key] + '; path=/; expires=Thu, 2 Aug 2009 10:10:10 UTC';
 },
 
 evaluateForm : function()
 {
  var w_ctrl,wt;
  //alert('about to save JSconfig');
  for( var key in JSconfig.meta ) {
   w_ctrl = document.getElementById( JSconfig.prefix + key )
   if( w_ctrl ) 
   {
    wt = typeof( JSconfig.meta[key].default_value );
    switch( wt ) {
     case 'boolean' : JSconfig.keys[key] = w_ctrl.checked; break;
     case 'string' : JSconfig.keys[key] = w_ctrl.value; break;
    }
   }
  }
 
  JSconfig.writeCookies();
  return true;
 },
 
 setUpForm : function()
 { 
  var prefChild = document.getElementById('preferences');
  if( !prefChild ) return;
  prefChild = prefChild.childNodes;
 
  //
  // make a list of all preferences sections
  //
  var tabs = new Array;
  var len = prefChild.length;
  for( var key = 0; key < len; key++ ) {
   if( prefChild[key].tagName &&
       prefChild[key].tagName.toLowerCase() == 'fieldset' ) 
    tabs.push(prefChild[key]);
  }
 
  //
  // Create Widgets for all registered config keys
  //
  var w_div, w_label, w_ctrl, wt;
  for( var key in JSconfig.meta ) {
   w_div = document.createElement( 'DIV' );
 
   w_label = document.createElement( 'LABEL' );
   w_label.appendChild( document.createTextNode( JSconfig.meta[key].description ) )
   w_label.htmlFor = JSconfig.prefix + key;
 
   wt = typeof( JSconfig.meta[key].default_value );
 
   w_ctrl = document.createElement( 'INPUT' );
   w_ctrl.id = JSconfig.prefix + key;
 
   // before insertion into the DOM tree
   switch( wt ) {
    case 'boolean' : w_ctrl.type = 'checkbox'; break;
    case 'string'  : w_ctrl.type = 'text'; break;
   }
 
   w_div.appendChild( w_label );
   w_div.appendChild( w_ctrl );
   tabs[JSconfig.meta[key].page].appendChild( w_div );
 
   // after insertion into the DOM tree
   switch( wt ) {
    case 'boolean' : w_ctrl.defaultChecked = w_ctrl.checked = JSconfig.keys[key]; break;
    case 'string' : w_ctrl.defaultValue = w_ctrl.value = JSconfig.keys[key]; break;
   }
 
  }
  addEvent(document.getElementById('preferences').parentNode, 'submit', JSconfig.evaluateForm );
 }
}
 
JSconfig.readCookies();
addOnloadHook(JSconfig.setUpForm);
 
if (isMainPage && !isDiff) 
{
document.write('<style type="text/css">/*<![CDATA[*/ #siteSub, #contentSub, h1.firstHeading { display: none !important; } /*]]>*/</style>');
}
 
 /* подгрузка файла со скриптами для редактирования  *****************************************
 */
 if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
 {
       if (wgCanonicalNamespace != "Special")
       {
           document.write('<script type="text/javascript" src="/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
/* importScript('MediaWiki:Onlyifediting.js'); */
       }
 }
 
 
 function addLoadEvent(func) 
 {
 if (window.addEventListener) 
   window.addEventListener("load", func, false);
 else if (window.attachEvent) 
   window.attachEvent("onload", func);
}
 
//Execution
if (wgCanonicalNamespace == 'Special'){
  switch (wgCanonicalSpecialPageName){
   case 'Upload': importScript('MediaWiki:Upload.js'); break
   case 'Search': importScript('MediaWiki:Search.js'); break
  }
}
 
// русификация кнопок на панели инструментов
if (wgAction == 'edit' || wgAction == 'submit') 
addOnloadHook(function(){
 if (mwEditButtons.length < 3) return;
 mwEditButtons[0].imageFile = 'http://wiki.laser.ru/images/9/9a/Button_boldru.png';
 mwEditButtons[1].imageFile = 'http://wiki.laser.ru/images/8/88/Button_italicru.png';
 mwEditButtons[2].imageFile = 'http://wiki.laser.ru/images/0/03/Button_internal_link_ukr.png'
})
 
/* </pre> */
//</source>