Artificial Intelligence
Please fill the required field.

Система государственных органов Российской Федерации


', toc[i][2]); }; //$('#toc ol').append(mark.StylePriority); // MARK.STYLE //for (var i=0; i<toc.length; i++) { // if (toc[i][0] == 'P') { // // }; //}; }, // Mark notes list in Special Nation Pages // Маркирует заметки в СПО. Mark_SP_New: function () { var note = false; var mark = {}; mark.new = { // новые блоки внутри специальных настраниц NS: $('<div/>').addClass('mark-new-sections'), MO: $('<br />'), MA: $('<div/>').addClass('mark-new-article'), MS: $('<div/>').addClass('mark-new-section'), MP: $('<div/>').addClass('mark-new-paragraph'), MIEnumerator: $('<div/>').addClass('mark-new-paragraph cursor-default').append('<p>Первый абзац значимого изложения, и достаточный<br />для новой статьи или означенного текстового блока.</p>'), MEnumerator: $('<div/>').addClass('mark-new-paragraph cursor-default').append('<p>Абзац значимого изложения второго порядка.</p>'), }; var first = true; var fullSec; //для частичной маркировки $('#wikiPreviewBottons .edit').remove(); $('#wikiPreview B, #wikiPreview I').contents().each(function () { switch ($(this).prop("tagName")) { case 'B': { if (note) { note = false; } else { if (first) { first = false; $(this).before(mark.new.NS).after(mark.new.NS.clone()); fullSec = $(this).closest('li'); }; $(this).replaceWith(mark.new.MS).after(mark.new.MS.clone()); }; }; break; case 'I': { if (note) { $(this).replaceWith(mark.new.MO).after(mark.new.MO.clone()); } else { if (fullSec && $(this).parent()[0] == fullSec[0]) { // first usage } else { $(this).replaceWith(mark.new.MA).after(mark.new.MA.clone()); } } }; break; case '#text': { note = true; }; break; } }); $('.mark-new-section:first').slimScroll({ height: "100%", width: "100%" }); }, }, // Administration... // Special decisions for this wiki. Admin: { // Links on Special Nations Pages into HTML Lists. Decisions: function (div) { // id var UID; // Короткие имена материалов. var shortNames = [ // 1, 2, 3, 4, 5(6) [ 'MO', 'ТМ', 'ДОМ', 'СТА', 'ПТА'], [ 'MO', 'КО', 'РФ', 'ОКТ', 'ВО'], [ 'MO', 'КП', 'КА', 'ОП', 'СП'], [ 'MO', 'ЗР', 'КОМ', 'СИП', 'МИ'] ]; $($(div).attr('id')).find('.page a[class]').each(function () { UID = $(this).attr('class'); if (UID < 10) { $(this).prepend(shortNames[7-UID][this.tagName.charAt(0) == 'B' ? 1 : 0]+UID+'. '); } else { if (UDI > 50) { UID = UID.slice(2, 3); } else { UID = UID.slice(1, 3); } $(this).prepend(shortNames[UID-1][this.tagName.charAt(0) == 'B' ? 2 : 3]+(UID-1)+'. '); } }); }, Links: function () { }, }, // Full pane for wiki wiki: { // Sizes of operations globals: {}, // Initial sizes boot: function () { Using("http://vintagecraft.ru/mf/wsp/slimScroll.js", function () { var uid = 5; var descr = ['Акты', 'Политика', 'Блоки', 'Контакты', 'Самоопределения','Источники общих принципов']; var descr1 = ['Исходящие по актам', 'Исходящие по политике', 'Исходящие по блокам', 'Исходящие по контактам', 'Исходящие по самоопредениям' ]; var opNames = ['physRE', 'socEN', 'sysRU', 'decSA', 'isoSE', 'desMK']; var endOn = ['-255px','10px','305px','615px','925px', '1235px']; var w = 0; var h = 410; var procEN = $('#md')[0].offsetHeight, procPL = $('#mf')[0].offsetHeight; procES = procPL/(document.body.offsetHeight - 300); // procPR = $('#mf')[0].offsetTop - procNS, // procNR = procPL - procNS; // { left: "920px", width: "300px"}; //$('#sub #tab-tabdo').css({ left: "620px", width: "300px"}); //$('#sub #tab-tabsa').css({ left: "920px", width: "300px"}); //$('#sub #tab-tabse').css({ left: "1220px", width: "300px"}); //if (mw.config.get('wgCanonicalSpecialPageName') != '') { // if (mw.config.get('wgCanonicalNamespace') == '') { // // TOC as set //$('#scroll-paint #TOC')/*.outerHeight(370)*/.css('top:0px;bottom:inherit'); // }; //}; //$('#scroll-Pub have:content > div:not(.ni):not(.KZ)').css('display', 'none'); $('<div/>') .attr('id', 'scroll-Pub-header') .css( { left:"-8px", width:"75px",top:"-19px"}) .css("opacity", "1") .appendTo('body'); //$('.scroll-Pub header').append('<button>sdsad</button>'); //$('.title').html('function'+w); //$('body').append(' <h3>Left :'+endOn[w]+'</h3>'); //$(opNames[w1] + ':hidden').css('display', 'block'); $('.scroll-Pub').css( { left: '-190px', LQ: 'hjgh', bottom:'0px', height:'390px', width:'200px', paddng: '8px', position: 'fixed', transition: "0.5s cubic-bezier(.010, .010, .190, 1)", zIndex: 100 }); $('.scroll-Pub div[class!="header"]').hide(); $('#scroll-Pub-act-dropitag').parent().show(); $('#scroll-Pub-dsa-dropitag').parent().show(); $('#scroll-Pub-uid-dropitag').parent().show(); //$('.scroll-Pub div:not(:contains(Рейтинги))').hide(); //$('.scroll-Pub div:not(:not(:contains(Рейтинги)))').show(); Using( 'http://vintagecraft.ru/mf/wsp/slimScroll.js', function () { $('.scroll-Pub').slimScroll({ allowPageScroll: false, //alwaysVisible: true, height: "390px", width: '190px', //color: "#ffccf2", size: "6px", //railVisible: true, //railColor: "#83dff7", //freeWheeling: false, //opacity: 0.1, //start: "top", }); $('#sub #tab-tabsa').hide(); }); }); }, }, // System information // Информаиионные статьи Sys: { } } if (window.getURL() != "/wiki/Special:Home") { wikitype.decisions(); } else {} })(window, document, window.version); /** // System.js Chapter: Download, Install & Run 文件系统 上传文件 删除文件 获取文件列表 文件列表 删除空文件系统 呼叫/Run 呼叫/Call Text: System.js ~~ @: en @:R http://vintagecraft.ru ? <textarea class="textbox" id="text0" rows="30" cols="10"> </textarea> ? [labels] Install at the following wiki Collect run files Call API Monobook Sunbook Tabs Monobook Sunbook List * Chapter CSS System info Sub Running system Action Collect SPA data Save as System.js.monobook.css: API: MONOBOOK ========================= ===@@ I will develop it only for myself, only in my own interests. - by unix === R/ /api.php currentUser Init #textway = new systemjs.textway(); if (!window.systemjs) { systemjs = /systemjs/; storage database filesystem sys actions path path.NormalizePath path.GetLevel actions.CallFunc actions.Get actions.RunScript actions.LinkFile actions.LinkSpecial filesystem.Download filesystem.Install filesystem.UploadFile filesystem.RemoveFile filesystem.Storage filesystem.List filesystem.Clean sys.getWikiInfo sys.SystemInfo } ["path"] var systemjs = { wikistorage: { API: '/api.php', Source: '{{FILENAME}}', Full: '{{SERVER}}{{SCRIPTPATH}}/{{FILENAME}}', dbPagedTemplateInfon: { action:'query', format:'json', list:'allpages', aplimit: 500, apto: 'END', }, wikiInfoTemplateInfon: { API: '/api.php', Wiki: 'query', infos: 'Allpages', aplimit: 500, apto: 'END', }, }, Pages: ['MediaWiki:Common.js', 'MediaWiki:Monobook.css', 'MediaWiki:Vector.css', 'MediaWiki:Wikia.css' ], Scripts: ['/wikia.js', '/common.js', '/j/smw.js', '/j/Sunbook.js' ], wikitext: { MONOBOOK: "* w/oCommon CSS and JS \n ** /wikia.js \n ** /j/smw.js", FUZZYBUDDYBOOK: "* w/oCommon CSS and JS \n ** /wikia.js \n ** /j/smw.js \n ** /j/Sunbook.js \n ** [[MediaWiki:Wikia.css]] \n * [[MediaWiki:Common.js]] \n * [[MediaWiki:Monobook.css]] \n * [[User:Sunnya343/GlobalQuiz]]", SUNBOOK: "* with [[User:Sunnya343/GlobalQuiz]] and other ", }, }; systemjs.path = function () { this.NormalizePath = function (path) { if (path.toUpperCase().slice(0,5) == 'HTTP:') { path = path.slice(7); if (path.slice(0,window.location.host.length) != window.location.host) { path += window.location.host; } path = "http://" + path; }; path = path.replace(new RegExp(":", "g"), '$3A'); return path; }; this.GetLevel = function (path) { var level = 0; for (var i = 0; i < path.length; i++) { if (path[i] == '/') { level++; }; }; return level; }; }; systemjs.filesystem = { API: '', download: function (path) { systemjs.textway.initFiles(systemjs.wikistorage.Full.replace('{{FILENAME}}', path)); }, Install: function () { var init = function(path) { var article = {}; article.text = systemjs.textway.initFiles(g.pla [input type="submit" value="Save as"](path + systemjs.wikistorage.DownloadHref(path))) article.title }; }, RemoveAll: function () { } }; systemjs.sys = { info: { namespace: '', pages: [] }, SystemInfo: function () { var Process = new systemjs.actions.RunScript(); Process.Param = { action: 'query', format: 'json', generator: 'allpages', gaplimit: 50, gapcontinue: '0', gapto: 'The end', }; Process.Success = function(r) { var pageList = '<textarea>' + r + '</textarea>'; pages = []; r.continue = Path.GetLevel(r, 'gapcontinue'); }; }, getWikiInfo: function() { var Process = new systemjs.actions.RunScript(); Process.Param = { action: 'query', format: 'json', list: 'allpages', aplimit: 50, apfrom: '', apfilterredir: 'nonredirects', apto: '%', }; var pages; Process.Success = function (r) { var pageList = '<textarea>' + r + '</textarea>'; pageList = pageList.replace(new RegExp("(%A4)", "g"), '[[') += ']]'; pages = []; r.apfrom = 'The end'; }; } }; systemjs.actions = { // замена CallLookup:'/api.php?action=parse&format=json&prop=text&text={{':PAGENAME:}}&format=json', // /api.php?action=parse&format=json&prop=text&text=[[:PAGENAME:]]&format=json // /api.php? // action=query // format=json // list=allpages // aplimit=500 // apfrom=User%3ASunnya // apfilterredir=nonredirects // action=query // format=json // list=allpages // aplimit=500 // apfilterredir=nonredirects // apfrom=Figure "https://vintagecraft.ru/api.php?action=query&format=json&list=allpages&aplimit=500&apfilterredir=nonredirects&apfrom=ГВИС".Get() RunScript: function(method, param) { this.Path = '';// Title this.Page = ''; this.PathLevel = 0; this.Param = param; // PARAMETERS this.Method = method; // METHOD CALL API this.Success = function (str) {}; // Success completed this.Good = "[{\"title\":\""; // Success page title this.Numprint = 0; // Number of answers this.Fails = function (str) {}; // Failed completed this.Bad = function (str) {}; // Add to bad array this.TimeOut = 1000; this.Result = function () { var query = $.ajax( { url: systemjs.wikistorage.API, data: this.Param, dataType: method, success: function(r) { // Запись результатов } }); query.done(function() { console.log("success"); }); }, if (systemjs.Path.GetLeves != 0) { this.PathLevel = systemjs.Path.GetLevel(goTo, 'appendtext'); // of var goTo = systemjs.Path.GetLevel(goTo), 'appendtext'); this.Page = data; this.EvenItem = function (even) { }; this.GetEven(0,1); } else { setTimeout(At.countdown(.9), systemjs.TimeOut); this.Result(); } }; RunFile: function () { }; LinkFile: function () { }; Get: function (str) { }; InitInstall: function () { }; InitRemove: function () { }; InitRun: function () { }; connect: function () { var doDB doDB.init('') { Pages } } }; systemjs.storage = {}; systemjs.database = { init: target, do: function(path) { var Storage, Cells, current; this.table = []; this.edit = function (str) { }; this.checkCell = function (str) { };