Utilisateur:Musstruss/common.js
Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
- Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
- Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
//syntax highlighter
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript');
//MonobookToolbar
importScript('MediaWiki:Gadget-MonobookToolbar.js');
//MonobookToolbarStandard
//<nowiki>
if (['edit', 'submit'].includes(mw.config.get('wgAction'))) {
mw.loader.using('ext.gadget.MonobookToolbar', function () {
/************************************* Insérer ici les boutons standards *************************************/
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/e/e2/Button_bold.png", "Texte en gras", "'''", "'''", "texte en gras", "mw-editbutton-bold");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/1d/Button_italic.png", "Texte en italique", "''", "''", "texte en italique", "mw-editbutton-italic");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png", "Texte souligné", "<u>", "</u>", "texte souligné", "mw-editbutton-underline");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/3/30/Btn_toolbar_rayer.png", "Texte barré", "<s>", "</s>", "texte barré", "mw-editbutton-strike");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/6/6a/Button_sup_letter.png", "Texte en exposant", "<sup>", "</sup>", "texte en exposant", "mw-editbutton-sup");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/a/aa/Button_sub_letter.png", "Texte en indice", "<sub>", "</sub>", "texte en indice", "mw-editbutton-sub");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/8/89/Button_bigger.png", "Texte en grand", "<big>", "</big>", "texte en grand", "mw-editbutton-big");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/0/0d/Button_smaller.png", "Texte en petit", "<small>", "</small>", "texte en petit", "mw-editbutton-small");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/7/78/Button_head_A2.png", "Chapitre de niveau 2", "== ", " ==", "Nom du chapitre", "mw-editbutton-headline");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/4/4f/Button_head_A3.png", "Chapitre de niveau 3", "=== ", " ===", "Nom du chapitre", "mw-editbutton-headline3");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/14/Button_head_A4.png", "Chapitre de niveau 4", "==== ", " ====", "Nom du chapitre", "mw-editbutton-headline4");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/8/8c/Button_head_A5.png", "Chapitre de niveau 5", "===== ", " =====", "Nom du chapitre", "mw-editbutton-headline5");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/c/c0/Button_link.png", "Lien interne", "[[", "]]", "titre de la page", "mw-editbutton-link");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/e/ec/Button_extlink.png", "Lien externe", "[", "]", "http://www.example.com titre du lien", "mw-editbutton-extlink");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png", "Catégorie", '[[Catégorie:', "]]", 'nom de la catégorie', "mw-editbutton-category");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", "Modèle", '{{', "}}", 'modèle ou page à inclure', "mw-editbutton-template");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/1b/Button_hide_wiki_tag.png", "Commentaire caché", "<!-- ", " -->", "commentaire caché", "mw-editbutton-comment");
MonobookToolbar.addButton('//upload.wikimedia.org/wikipedia/commons/8/88/Btn_toolbar_enum.png', "Énumération", "\n# élément 1\n# élément 2\n# élément 3", "", "", "mw-editbutton-enum");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/11/Btn_toolbar_liste.png", "Liste", '\n* élément A\n* élément B\n* élément C', "", "", "mw-editbutton-liste");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/d/de/Button_image.png", "Image", "[[Fichier:", "|thumb|Description de l'image.]]", "Exemple.jpg", "mw-editbutton-image");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/19/Button_media.png", "Média", "[[Fichier:", "|thumb|Description du média.]]", "Exemple.ogg", "mw-editbutton-media");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/9/9e/Btn_toolbar_gallery.png", "Galerie d'images", "\n<gallery>\nFichier:Exemple.jpg|[[Tournesol]]\nFichier:Exemple1.jpg|[[La Joconde]]\nFichier:Exemple2.jpg|Un [[hamster]]\n</gallery>", "", "", "mw-editbutton-gallery");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/5/5b/Math_icon.png", "Expression mathématique (format LaTeX)", "<math>", "</math>", "\\rho=\\sqrt{x_0^2+y_0^2}", "mw-editbutton-math");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/8/82/Nowiki_icon.png", "Ignorer le format wiki", "<nowiki"+">", "</"+"nowiki>", "", "mw-editbutton-nowiki");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/6/6d/Button_sig.png", "Signature datée", "-- ~~"+"~~", "", "", "mw-editbutton-signature");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/0/0d/Button_hr.png", "Ligne horizontale", "--"+"--", "", "", "mw-editbutton-hr");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/c/c8/Button_redirect.png", "Redirection", "#REDIRECTION [[", "]]", "nom de la destination", "mw-editbutton-redirect");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png", "Tableau", "{| class=\"wikitable\"\n|", "\n|}", "-\n! titre 1\n! titre 2\n! titre 3\n|-\n| rangée 1, case 1\n| rangée 1, case 2\n| rangée 1, case 3\n|-\n| rangée 2, case 1\n| rangée 2, case 2\n| rangée 2, case 3", "mw-editbutton-table");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png", "Saut de ligne", "<br>", "", "", "mw-editbutton-br");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png", "Référence", "<ref>", "</ref>", "référence, citation ou lien", "mw-editbutton-ref");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/6/64/Buttonrefvs8.png", "Index des références", '== Notes et références ==\n{{Références}}', "", "", "mw-editbutton-references");
MonobookToolbar.addButton("//upload.wikimedia.org/wikipedia/commons/b/bb/Seealso.png", "Section Annexes", '== Notes et références ==\n{{Références}}\n\n== Annexes ==\n=== Articles connexes ===\n* [[À remplacer]]\n\n=== Liens externes ===\n*\n\n=== Bibliographie ===\n* [[À remplacer]]\n\n', "", "", "mw-editbutton-voiraussi");
/************************************* Fin des boutons standards *************************************/
});
}
//</nowiki>
//portail-eval
// <nowiki>
/* jslint laxbreak: true */
/* globals mw, $ */
var cpeSpecialPage = 'Spécial:Portail-éval';
$(function () {
mw.loader.using( 'mediawiki.util', function () {
mw.util.addPortletLink('p-tb', mw.util.getUrl(cpeSpecialPage), 'Portail-éval', 'r-cpe', 'Portail-éval');
});
});
if (mw.config.get('wgPageName').replace(/_/g, ' ') == cpeSpecialPage.replace(/_/g, ' ')) {
/* Génération de la liste */
function cpeArticleLink(article) {
return '<a href="' + mw.util.getUrl(article) + '">' + mw.html.escape(article) + '</a>';
}
function cpeReadCat(categ, callbackFun, progressFun) {
var query = {format: 'json', action: 'query', list: 'categorymembers', cmtitle: categ, cmlimit: 500};
var catMembers = [];
function readCatLoop(obj) {
$.merge(catMembers, obj.query.categorymembers);
progressFun(catMembers.length);
if (obj['continue']) {
var queryContinue = Object.assign({}, query, obj['continue']);
$.getJSON(mw.util.wikiScript('api'), queryContinue, readCatLoop);
} else {
callbackFun(catMembers);
}
}
$.getJSON(mw.util.wikiScript('api'), query, readCatLoop);
}
function cpeComputeLists(projet, callbackFun) {
var cpeImp = ['inconnue', 'faible', 'moyenne', 'élevée', 'maximum'];
var cpeListePortail = {};
var cpeListeEval = {};
function initReadInfo(cat) {
$('#cpeResult').html('Lecture de <tt>' + mw.html.escape(cat) + '</tt> <span id="cpeCatReadCount"></span>');
}
function updateReadInfo(size) {
$('#cpeCatReadCount').text('(' + size + ' lus)');
}
function listeEval(index) {
if (index < cpeImp.length) {
var category = 'Catégorie:Article du projet ' + projet + " d'importance " + cpeImp[index];
initReadInfo(category);
cpeReadCat(category,
function (catMembers) {
for (var i = 0; i < catMembers.length; i++) {
if (catMembers[i].ns == 1) {
var talkTitle = catMembers[i].title;
var title = talkTitle.substr(talkTitle.indexOf(':') + 1);
cpeListeEval[title] = true;
}
}
listeEval(index + 1);
},
updateReadInfo
);
} else {
callbackFun(cpeListePortail, cpeListeEval);
}
}
$('#cpeResult').html('Calcul du nom du portail');
var api = new mw.Api();
var parseRequest = {
'action': 'parse',
'contentmodel': 'wikitext',
'text': '{{' + 'subst:Utilisateur:Orlodrim/Portail par projet|1=' + projet + '}}',
'prop': 'text',
'onlypst': '1'
};
api.get(parseRequest).done(function(parseResult) {
var portail = parseResult['parse']['text']['*'];
if (portail !== projet) {
$('#cpeNomPortail').html('<p>Le nom du portail correspondant à ce projet est «\xA0' + portail +
'\xA0».</p>');
}
initReadInfo('Catégorie:Portail:' + portail + '/Articles liés');
cpeReadCat('Catégorie:Portail:' + portail + '/Articles liés',
function (catMembers) {
for (var i = 0; i < catMembers.length; i++) {
cpeListePortail[catMembers[i].title] = true;
}
listeEval(0);
},
updateReadInfo
);
});
}
/* Formulaire */
window.cpeCompute = function () {
var projet = $('#cpeProjet').val();
projet = projet.substr(0, 1).toUpperCase() + projet.substr(1);
if (projet == '') {
$('#cpeResult').text("Erreur : le champ 'Projet' est vide.");
return;
}
$('#cpeCompute').attr('disabled', 'disabled');
$('#cpeNomPortail').text('');
cpeComputeLists(projet,
function (listePortail, listeEval) {
var directLink = location.protocol + mw.config.get('wgServer') + mw.config.get('wgScript')
+ '?title=' + encodeURIComponent(cpeSpecialPage)
+ '&projet=' + encodeURIComponent(projet);
var html = '<p><small>Lien direct pour revenir à cette requête : <a href="' +
mw.html.escape(directLink) + '">' + mw.html.escape(directLink) + '</a></small></p>';
html += '<p><a href="#" id="cpeDisplayWikicode" class="cpe-closed">Version en wikicode à copier-coller' +
'</a></p>';
var list1 = '', list2 = '';
var wikicodeList1 = '', wikicodeList2 = '';
var listCount1 = 0, listCount2 = 0, maxListCount = 500;
var article;
for (article in listePortail) {
if (!listeEval[article]) {
listCount1++;
if (listCount1 <= maxListCount) {
list1 += '<li>' + cpeArticleLink(article);
wikicodeList1 += '*[[' + article + ']]\n';
}
}
}
for (article in listeEval) {
if (!listePortail[article]) {
listCount2++;
if (listCount2 <= maxListCount) {
list2 += '<li>' + cpeArticleLink(article);
wikicodeList2 += '*[[' + article + ']]\n';
}
}
}
function formatCount(c) {
if (c == 0) {
return 'Aucun article';
} else if (c == 1) {
return '1 article';
} else if (c <= maxListCount) {
return c + ' articles';
} else {
return c + ' articles (seulement ' + maxListCount + ' affichés)';
}
}
html += '<h2>Articles du portail non évalués</h2>'
+ '<p>' + formatCount(listCount1) + '</p><ul>' + list1 + '</ul>'
+ '<h2>Articles évalués sans le portail</h2>'
+ '<p>' + formatCount(listCount2) + '</p><ul>' + list2 + '</ul>';
$('#cpeResult').html(html);
$('#cpeCompute').prop('disabled', false);
$('#cpeDisplayWikicode').click(function() {
var link = $(this);
link.toggleClass('cpe-closed cpe-opened');
if (link.hasClass('cpe-opened')) {
link.after('<div id="cpeWikicodeDiv"><textarea id="cpeWikicode" cols="80" rows="25" readonly></textarea></div>');
$('#cpeWikicode').val('== Articles du portail non évalués ==\n' + wikicodeList1 + '\n== Articles évalués sans le portail ==\n' + wikicodeList2);
} else {
$('#cpeWikicodeDiv').remove();
}
});
}
);
};
function cpeInitForm(projet) {
$('head').append('<style>'
+ '.cpe-closed {padding: 0 0 0 16px; background: url(//upload.wikimedia.org/wikipedia/commons/4/41/MediaWiki_Vector_skin_right_arrow.png) no-repeat left center;}'
+ '.cpe-opened {padding: 0 0 0 16px; background: url(//upload.wikimedia.org/wikipedia/commons/1/10/MediaWiki_Vector_skin_action_arrow.png) no-repeat left center;}'
+ '</style>');
var html = '<p>Ce formulaire sert à calculer la liste des articles qui ont un portail mais pas une évaluation, et réciproquement.</p>'
+ '<p>Projet (par exemple <i>Chemin de fer</i>)<br /><input id="cpeProjet" size="64" value="'
+ mw.html.escape(projet) + '" /></p>'
+ '<p><input type="button" id="cpeCompute" onclick="cpeCompute();" value="Calculer" /></p><div id="cpeNomPortail"></div><div id="cpeResult"></div>';
$("#bodyContent").html(html);
mw.loader.using(["jquery.ui"], function () {
$("#cpeProjet").autocomplete({source:
function (request, response) {
if (/[{}|<>\[\]]/.test(request.term)) {
response([]);
return;
}
var commonPrefix = 'Évaluation des articles du projet ';
var prefix = commonPrefix + request.term.substr(0, 1).toUpperCase() + request.term.substr(1);
var query = {format: 'json', action: 'query', list: 'allpages', apprefix: prefix, apnamespace: 14, rawcontinue: ''};
$.getJSON(mw.util.wikiScript('api'), query, function (obj) {
var projets = [];
for (var i = 0; i < obj.query.allpages.length; i++) {
var category = obj.query.allpages[i].title;
projets.push(category.substr(category.indexOf(':') + 1 + commonPrefix.length));
}
if (projets.length == 1 && projets[0] == request.term) {
response([]);
} else {
response(projets);
}
});
}
});
});
}
$(function () {
var title = "Comparaison portail et articles évalués";
var projet = "";
window.document.title = title;
$('#firstHeading').html(title);
var params = location.search.substr(1).split("&");
for (var i = 0; i < params.length; i++) {
var nameVal = params[i].split("=");
if (nameVal.length < 2) continue;
if (nameVal[0] == "portail" || nameVal[0] == "projet") {
projet = decodeURIComponent(nameVal[1]);
}
}
cpeInitForm(projet);
});
}
// </nowiki>
//PagesSansBandeauDePortail
/* {{Projet:JavaScript/Script|PagesSansBandeauDePortail}} */
// Documentation : [[Projet:Portails/Articles_sans_portail/intro]]
// <source lang=javascript><pre><nowiki>
var PagesSansBandeauDePortail_GoodPages = 'Projet:Articles_sans_portail/';
var PagesSansBandeauDePortail_BadPages = 'Projet:Articles_sans_portail/intro';
var PagesSansBandeauDePortail_WorkingImage = "//upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif";
var PagesSansBandeauDePortail_Modeles = new Array();
var PagesSansBandeauDePortail_Images = new Array();
PagesSansBandeauDePortail_Modeles.push('[[File:Yes check.svg|15px|Fait|link=]]');
PagesSansBandeauDePortail_Images.push('<img height="15" width="15" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Yes_check.svg/15px-Yes_check.svg.png" alt="Fait">');
PagesSansBandeauDePortail_Modeles.push('[[File:Disambig.png|15px|Homonymie|link=]]');
PagesSansBandeauDePortail_Images.push('<img height="11" width="15" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/69/Disambig.png/15px-Disambig.png" alt="Disambig.png">');
function PagesSansBandeauDePortail_AddNavigLinks(){
var Content = document.getElementById('bodyContent'); // monobook, myskin, chick, simple, vector
if(!Content) Content = document.getElementById('article'); // cologneblue, nostalgia, standard
if(!Content) Content = document.getElementById('mw_contentholder'); // modern
if(!Content) return;
var ThisPage = false;
var TDs = Content.getElementsByTagName('td');
for(var a=0;a<TDs.length;a++){
if($(TDs[a]).hasClass("list")){
var Strongs = TDs[a].getElementsByTagName('strong');
for(var b=0;b<Strongs.length;b++){
if($(Strongs[b]).hasClass("selflink")){
ThisPage = Strongs[b];
}
}
}
}
if(!ThisPage) return;
var PreviousPage = false;
var Node = ThisPage.previousSibling;
while(Node){
if(Node.tagName){
if(Node.tagName.toLowerCase() == "a"){
PreviousPage = Node;
break;
}
}
Node = Node.previousSibling;
}
var NextPage = false;
Node = ThisPage.nextSibling;
while(Node){
if(Node.tagName){
if(Node.tagName.toLowerCase() == "a"){
NextPage = Node;
break;
}
}
Node = Node.nextSibling;
}
var PreviousLink = "";
if(PreviousPage){
PreviousLink='<a href="'+PreviousPage.href+'" title="'+PreviousPage.title+'">Page précédente : '+PreviousPage.innerHTML+'</a>';
}
var NextLink = "";
if(NextPage){
NextLink='<a href="'+NextPage.href+'" title="'+NextPage.title+'">Page suivante : '+NextPage.innerHTML+'</a>';
}
var Tables = document.getElementsByTagName('table');
for(var a=0;a<Tables.length;a++){
if($(Tables[a]).hasClass("navbox")){
var TitleLinks = Tables[a].getElementsByTagName('th')[0].getElementsByTagName('a');
var TitleDiv = TitleLinks[(TitleLinks.length-1)].parentNode;
TitleDiv.innerHTML = '<small>('+PreviousLink +')</small> — '+ TitleDiv.innerHTML + ' — <small>(' + NextLink+')</small>';
}
}
}
var PagesSansBandeauDePortail_AllLinks = new Array();
function PagesSansBandeauDePortail_AddLinks(){
var Content = document.getElementById('bodyContent'); // monobook, myskin, chick, simple, vector
if(!Content) Content = document.getElementById('article'); // cologneblue, nostalgia, standard
if(!Content) Content = document.getElementById('mw_contentholder'); // modern
if(!Content) return;
$(document.body).addClass("PagesSansBandeauDePortail");
var Count = -1;
var Liste = Content.getElementsByTagName('li');
for(var a=0;a<Liste.length;a++){
var Lien = Liste[a].getElementsByTagName('a')[0];
if(!Lien) continue;
if(decodeURIComponent(Lien.href).indexOf(mw.config.get('wgFormattedNamespaces')[6]+":")!=-1) Lien = Liste[a].getElementsByTagName('a')[1];
if(!Lien) continue;
if((Lien.href.indexOf("#")==-1)&&(Lien.className!="new")&&(Lien.parentNode.tagName.toLowerCase()!="s")&&(Lien.href.indexOf("javascript:")==-1)){
Count++;
PagesSansBandeauDePortail_AllLinks.push(Lien);
Lien.id = "Link_"+Count;
Lien.className = "LinkWithButtons";
var SpanLinks = document.createElement('span');
SpanLinks.className = "SpanLinks";
Lien.parentNode.insertBefore(SpanLinks, Lien);
var PreviewLink = document.createElement('a');
PreviewLink.href = "javascript:PagesSansBandeauDePortail_Preview('"+Count+"');";
PreviewLink.title = "Previsualiser la page";
PreviewLink.innerHTML = '<img height="15" width="15" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/61/Crystal_Clear_app_kappfinder.png/15px-Crystal_Clear_app_kappfinder.png" alt="Prévisualiser">';
SpanLinks.appendChild(PreviewLink);
}
}
var Spans = document.getElementsByTagName('span');
for(var a=0;a<Spans.length;a++){
if($(Spans[a]).hasClass("mw-editsection")){
var Section = Spans[a].getElementsByTagName('a')[0].href.split('section=')[1];
var UpdateAllLink = '<a href="javascript:PagesSansBandeauDePortail_UpdateAll('+Section+');" title="Marquer comme faites les pages de cette section ayant un bandeau de portail">[mettre à jour]</a>';
Spans[a].innerHTML += ' '+UpdateAllLink;
Spans[a].id = "editsection_"+Section;
}
}
}
function PagesSansBandeauDePortail_Done(index, modeleIndex){
//alert('Done - '+index);
var Lien = document.getElementById("Link_"+index);
if(!Lien) return;
var Page = PagesSansBandeauDePortail_HTMLDecode(Lien.innerHTML);
PagesSansBandeauDePortail_Edit(Page, modeleIndex, index);
}
// Détermination de la hauteur de l'écran
function PagesSansBandeauDePortail_GetScreenHeight(){
var ScreenHeight = 0;
if( typeof( window.innerHeight ) == 'number' ) {
ScreenHeight = parseInt(window.innerHeight);
}else if( document.documentElement && document.documentElement.clientHeight ){
ScreenHeight = parseInt(document.documentElement.clientHeight);
}else if( document.body && document.body.clientHeight ){
ScreenHeight = parseInt(document.body.clientHeight);
}
return ScreenHeight;
}
// Détermination de la largeur de l'écran
function PagesSansBandeauDePortail_GetScreenWidth(){
var ScreenWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
ScreenWidth = parseInt(window.innerWidth);
}else if( document.documentElement && document.documentElement.clientWidth ){
ScreenWidth = parseInt(document.documentElement.clientWidth);
}else if( document.body && document.body.clientWidth ){
ScreenWidth = parseInt(document.body.clientWidth);
}
return ScreenWidth;
}
function PagesSansBandeauDePortail_Preview(index){
//alert('Preview - '+index);
var Lien = document.getElementById("Link_"+index);
if(!Lien) return;
var Href = Lien.href;
var Frame = document.getElementById("Frame_"+index);
if(!Frame){
var LargeurEcran = PagesSansBandeauDePortail_GetScreenWidth();
var HauteurEcran = PagesSansBandeauDePortail_GetScreenHeight();
var Parent = Lien.parentNode;
Frame = document.createElement('div');
Frame.id="Frame_"+index;
Parent.appendChild(Frame);
Frame.style.position='fixed';
Frame.style.zIndex= 1000;
Frame.style.width= '75%';
PositionGauche = parseInt((LargeurEcran-Frame.clientWidth)/2) ;
PositionHaut = parseInt((HauteurEcran-Frame.clientHeight)/5) ;
Frame.style.left=PositionGauche + 'px';
Frame.style.top=PositionHaut + 'px';
Frame.style.backgroundColor='white';
Frame.style.border='3px double black';
var TopBar = document.createElement('div');
TopBar.className = "TopBarDiv";
var CloseLink = document.createElement('a');
CloseLink.href = "javascript:PagesSansBandeauDePortail_EndPreview('"+index+"');";
CloseLink.title = "Fermer la fenêtre";
CloseLink.setAttribute("style", "float:right");
CloseLink.innerHTML = '<img height="30" width="30" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Crystal_Clear_action_button_cancel.png/30px-Crystal_Clear_action_button_cancel.png" alt="Fermer">';
TopBar.appendChild(CloseLink);
var CenterTag = document.createElement('center');
TopBar.appendChild(CenterTag);
var DoneLink = document.createElement('a');
DoneLink.href = "javascript:PagesSansBandeauDePortail_Done('"+index+"', 0);";
DoneLink.title = "Marquer comme fait";
DoneLink.innerHTML = '<img height="30" width="30" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/47/Done.png/30px-Done.png" alt="Fait">';
CenterTag.appendChild(DoneLink);
CenterTag.appendChild(document.createTextNode(' - '));
var HomonDoneLink = document.createElement('a');
HomonDoneLink.href = "javascript:PagesSansBandeauDePortail_Done('"+index+"', 1);";
HomonDoneLink.title = "Marquer comme page d\'homonymie";
HomonDoneLink.innerHTML = '<img height="30" width="30" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/69/Disambig.png/30px-Disambig.png" alt="Fait : homonymie">';
CenterTag.appendChild(HomonDoneLink);
Frame.appendChild(TopBar);
TopBar.onmousedown=function(event) {
monbody = document.body;
positionSouris_X = parseInt( event.clientX );
positionSouris_Y = parseInt( event.clientY );
Frame.initialX = parseInt( positionSouris_X - Frame.offsetLeft);
Frame.initialY = parseInt( positionSouris_Y - Frame.offsetTop);
monbody.onmousemove = function(event) {
positionSouris_X = parseInt( event.clientX );
positionSouris_Y = parseInt( event.clientY );
PositionGauche = parseInt( positionSouris_X ) - Frame.initialX;
PositionHaut = parseInt(positionSouris_Y ) - Frame.initialY;
if( PositionGauche < 0){
PositionGauche = 0;
}
if( PositionHaut < 0){
PositionHaut = 0;
}
Frame.style.left=PositionGauche + 'px';
Frame.style.top=PositionHaut + 'px';
Frame.style.opacity='.8';
};
monbody.onmouseup=function(event) {
Frame.style.opacity='';
monbody.onmousemove=null;
monbody.onmouseup=null;
};
};
var FrameContent = document.createElement('iframe');
FrameContent.src=Href;
FrameContent.width="100%";
FrameContent.height= parseInt(HauteurEcran/2) + "px";
Frame.appendChild(FrameContent);
var BottomBar = document.createElement('div');
BottomBar.style.height = "30px";
BottomBar.style.cursor='se-resize';
BottomBar.onmousedown = function(event){
monbody = document.body;
positionSouris_X = parseInt( event.clientX );
positionSouris_Y = parseInt( event.clientY );
FrameContent.initialWidth = parseInt( positionSouris_X - FrameContent.offsetWidth );
FrameContent.initialHeight = parseInt( positionSouris_Y - FrameContent.offsetHeight );
Frame.initialWidth = parseInt( positionSouris_X - Frame.offsetWidth );
Frame.initialHeight = parseInt( positionSouris_Y - Frame.offsetHeight );
Frame.style.opacity='.8';
monbody.onmousemove=function(event) {
positionSouris_X = parseInt( event.clientX );
positionSouris_Y = parseInt( event.clientY );
FrameContent.width = parseInt( positionSouris_X - FrameContent.initialWidth ) + 'px';
FrameContent.height = parseInt( positionSouris_Y - FrameContent.initialHeight ) + 'px';
Frame.style.width = parseInt( positionSouris_X - Frame.initialWidth ) + 'px';
Frame.style.height = parseInt( positionSouris_Y - Frame.initialHeight ) + 'px';
};
monbody.onmouseup=function(event) {
Frame.style.opacity = '';
monbody.onmousemove=null;
monbody.onmouseup=null;
};
};
Frame.appendChild(BottomBar);
Parent.appendChild(Frame);
}
}
function PagesSansBandeauDePortail_EndPreview(index){
var Frame = document.getElementById("Frame_"+index);
if(Frame) Frame.parentNode.removeChild(Frame);
}
function PagesSansBandeauDePortail_HTMLDecode(text){
var EncodedCharacter = new Array();
var DecodedCharacter = new Array();
var CharacterCount = 0;
EncodedCharacter[CharacterCount] = "&";
DecodedCharacter[CharacterCount] = "&";
CharacterCount++;
EncodedCharacter[CharacterCount] = "'";
DecodedCharacter[CharacterCount] = "'";
CharacterCount++;
EncodedCharacter[CharacterCount] = """;
DecodedCharacter[CharacterCount] = '"';
CharacterCount++;
EncodedCharacter[CharacterCount] = " ";
DecodedCharacter[CharacterCount] = ' ';
CharacterCount++;
for(var a=0;a<EncodedCharacter.length;a++){
while(text.indexOf(EncodedCharacter[a])!=-1){
text = text.split(EncodedCharacter[a]).join(DecodedCharacter[a]);
if(text.indexOf(EncodedCharacter[a])==-1) break;
}
}
return text;
}
function PagesSansBandeauDePortail_Edit(Page, ModeleIndex, index){
PagesSansBandeauDePortail_EndPreview(index);
var Image = document.createElement('img');
Image.id = "Working_Image"+index;
Image.src = PagesSansBandeauDePortail_WorkingImage;
Image.width = 50;
Image.heigth = 50;
Image.style.position = "fixed";
Image.style.zIndex = 10000;
Image.style.top = 0;
Image.style.right = 0;
document.body.insertBefore(Image, document.body.firstChild);
var AdresseEdition = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=edit';
var RequeteEdition = new XMLHttpRequest();
RequeteEdition.open("GET", AdresseEdition, true);
RequeteEdition.onreadystatechange = function() {
if(RequeteEdition.readyState != 4 || RequeteEdition.status != 200) return;
var ElementTraitement = document.createElement('div');
ElementTraitement.id = "EditPage_"+index;
ElementTraitement.style.display = "none";
document.body.insertBefore(ElementTraitement, document.body.firstChild);
ElementTraitement.innerHTML = RequeteEdition.responseText;
var ContenuPage = PagesSansBandeauDePortail_HTMLDecode(document.getElementById("wpTextbox1").value);
var AncienSommaire = document.editform.wpSummary.value;
var AncienLien = '[['+Page+']]';
var NouvelleLigne = '<li>'+PagesSansBandeauDePortail_Modeles[ModeleIndex]+' <s>[['+Page+']]</s></li>';
var Lines = ContenuPage.split('\n');
for(var a=0;a<Lines.length;a++){
var ThisLine = Lines[a];
if(ThisLine.indexOf(AncienLien)!=-1){
for(var b=0;b<PagesSansBandeauDePortail_Modeles.length;b++){
if(ThisLine.indexOf(PagesSansBandeauDePortail_Modeles[b])!=-1){
ModeleIndex = b;
PagesSansBandeauDePortail_EditOK(index, ModeleIndex);
return;
}
}
Lines[a] = NouvelleLigne;
}
}
var NouveauContenuPage = Lines.join('\n');
var NouveauSommaire = 'Mise à jour : - [['+Page+']]';
document.getElementById("wpTextbox1").value = NouveauContenuPage;
document.editform.wpSummary.value = NouveauSommaire ;
document.editform.wpMinoredit.checked = "checked";
document.editform.wpWatchthis.checked = false;
var action = document.getElementById("editform").action;
var boundary = '--------123xyz';
var data = '';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpUnicodeCheck"\n\nℳ𝒲♥𝓊𝓃𝒾𝒸ℴ𝒹ℯ\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpAntispam"\n\n\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="format"\n\ntext/x-wiki\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="model"\n\nwikitext\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpTextbox1"\n\n' + NouveauContenuPage + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpSummary"\n\n' + NouveauSommaire + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpMinoredit"\n\n'
+ document.editform.wpMinoredit.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpSection"\n\n'
+ document.editform.wpSection.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpStarttime"\n\n'
+ document.editform.wpStarttime.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpEdittime"\n\n'
+ document.editform.wpEdittime.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="editRevId"\n\n'
+ document.editform.editRevId.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpScrolltop"\n\n'
+ document.editform.wpScrolltop.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpAutoSummary"\n\n'
+ document.editform.wpAutoSummary.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="oldid"\n\n'
+ document.editform.oldid.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="parentRevId"\n\n'
+ document.editform.parentRevId.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpEditToken"\n\n'
+ document.editform.wpEditToken.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpUltimateParam"\n\n'
+ document.editform.wpUltimateParam.value + '\n';
var RequetePublication = new XMLHttpRequest();
RequetePublication.open('POST', action, true);
RequetePublication.setRequestHeader('Content-Type', 'multipart/form-data; boundary='+boundary);
RequetePublication.onreadystatechange = function(){
if (RequetePublication.readyState != 4) return;
PagesSansBandeauDePortail_EditOK(index, ModeleIndex);
};
RequetePublication.send(data + '--' + boundary);
};
RequeteEdition.send(null);
}
function PagesSansBandeauDePortail_EditOK(index, ModeleIndex){
var EditDiv = document.getElementById("EditPage_"+index);
if(EditDiv) EditDiv.parentNode.removeChild(EditDiv);
var WorkingImage = document.getElementById("Working_Image"+index);
if(WorkingImage) WorkingImage.parentNode.removeChild(WorkingImage);
var Link = document.getElementById("Link_"+index);
if(Link){
var Modele = PagesSansBandeauDePortail_Images[ModeleIndex];
var Li = Link.parentNode;
var Span = Li.getElementsByTagName('span')[0];
Li.removeChild(Link);
var Barre = document.createElement('s');
Barre.appendChild(Link);
Li.innerHTML = Modele+' ';
Li.appendChild(Barre);
}
}
var PagesSansBandeauDePortail_UpdateIsRunning = false;
function PagesSansBandeauDePortail_UpdateAll(Section){
if(PagesSansBandeauDePortail_UpdateIsRunning) return;
var PagesSansBandeauDePortail_AllLinksTitle = new Array();
var SousTitre = document.getElementById("editsection_"+Section).parentNode;
var Node = SousTitre.nextSibling;
var FoundNode = false;
while((Node)&&(!FoundNode)){
if(Node.tagName){
if(Node.tagName.toLowerCase().indexOf("h")!=-1) break;
if((Node.tagName.toLowerCase().indexOf("ol")!=-1)&&(!FoundNode)){
FoundNode = Node;
break;
}
}
Node = Node.nextSibling;
}
var AllLinks = Node.getElementsByTagName('a');
for(var a=0;a<AllLinks.length;a++){
if($(AllLinks[a]).hasClass("LinkWithButtons")){
if(AllLinks[a].parentNode.tagName.toLowerCase()!="s"){
var Title = AllLinks[a].title;
if(!Title) Title = PagesSansBandeauDePortail_HTMLDecode(AllLinks[a].innerHTML);
PagesSansBandeauDePortail_AllLinksTitle.push(Title);
}
}
}
var Conf = confirm('Nombre de pages à vérifier : '+PagesSansBandeauDePortail_AllLinksTitle.length);
if((PagesSansBandeauDePortail_AllLinksTitle.length==0)||(!Conf)) return;
var DivImage = document.createElement('div');
DivImage.id = "Working_Image";
DivImage.style.height = "100%";
DivImage.style.position = "fixed";
DivImage.style.zIndex = 10000;
DivImage.style.top = 0;
DivImage.style.right = 0;
DivImage.style.overflowY = "scroll";
DivImage.style.background = "white";
DivImage.style.border = "2px solid silver";
DivImage.style.opacity = 0.8;
var Image = document.createElement('img');
Image.src = PagesSansBandeauDePortail_WorkingImage;
Image.width = 50;
Image.heigth = 50;
DivImage.appendChild(Image);
var NewOl = document.createElement('ol');
NewOl.id="Working_Image_Ol";
DivImage.appendChild(NewOl);
document.body.insertBefore(DivImage, document.body.firstChild);
PagesSansBandeauDePortail_UpdateIsRunning = true;
PagesSansBandeauDePortail_UpdateOne(Section, PagesSansBandeauDePortail_AllLinksTitle, 0);
}
function PagesSansBandeauDePortail_UpdateOne(Section, TitleList, position, TitleCheckedList){
if(!TitleCheckedList) TitleCheckedList = new Array();
if(!position) position = 0;
var Link = TitleList[position];
if(!Link){
PagesSansBandeauDePortail_UpdateEdit(Section, TitleList, TitleCheckedList);
return;
}
TitleCheckedList[position] = false;
var Adresse = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/api.php?format=xml&action=query&prop=templates&redirects&tllimit=499&titles='+encodeURIComponent(Link);
var Requete = new XMLHttpRequest();
Requete.open("GET", Adresse, true);
Requete.onreadystatechange = function() {
if(Requete.readyState != 4 || Requete.status != 200) return;
var XML = Requete.responseXML;
var AllTemp = XML.getElementsByTagName('tl');
for(var a=0;a<AllTemp.length;a++){
var Titre = AllTemp[a].getAttribute('title');
if(Titre=="Modèle:Méta lien vers portail"){
TitleCheckedList[position] = true;
}
}
document.getElementById("Working_Image_Ol").innerHTML += '<li>'
+ Link
+ ' : '
+ TitleCheckedList[position]
+ '</li>';
PagesSansBandeauDePortail_UpdateOne(Section, TitleList, (position+1), TitleCheckedList);
};
Requete.send(null);
}
function PagesSansBandeauDePortail_UpdateEdit(Section, TitleList, TitleCheckedList){
var Adresse = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title='+encodeURIComponent(mw.config.get('wgPageName'))+'&action=edit§ion='+Section;
var RequeteEdition = new XMLHttpRequest();
RequeteEdition.open("GET", Adresse, true);
RequeteEdition.onreadystatechange = function() {
if(RequeteEdition.readyState != 4 || RequeteEdition.status != 200) return;
var ElementTraitement = document.createElement('div');
ElementTraitement.id = "EditPage";
ElementTraitement.style.display = "none";
document.body.insertBefore(ElementTraitement, document.body.firstChild);
ElementTraitement.innerHTML = RequeteEdition.responseText;
var ContenuPage = PagesSansBandeauDePortail_HTMLDecode(document.getElementById("wpTextbox1").value);
var AncienSommaire = document.editform.wpSummary.value;
var Lines = ContenuPage.split('\n');
for(var a=0;a<Lines.length;a++){
var ThisLine = Lines[a];
for(var b=0;b<TitleList.length;b++){
var OldLink="[["+TitleList[b]+"]]";
if(ThisLine.indexOf(OldLink)!=-1){
var WithPortal = TitleCheckedList[b];
if(WithPortal){
Lines[a] = '<li>'+PagesSansBandeauDePortail_Modeles[0]+' <s>[['+TitleList[b]+']]</s></li>';
}
}
}
}
var NouveauContenuPage = Lines.join('\n');
var NouveauSommaire = AncienSommaire +'Mise à jour globale';
document.getElementById("wpTextbox1").value = NouveauContenuPage;
document.editform.wpSummary.value = NouveauSommaire ;
document.editform.wpMinoredit.checked = "checked";
document.editform.wpWatchthis.checked = false;
var action = document.getElementById("editform").action;
var boundary = '--------123xyz';
var data = '';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpUnicodeCheck"\n\nℳ𝒲♥𝓊𝓃𝒾𝒸ℴ𝒹ℯ\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpAntispam"\n\n\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="format"\n\ntext/x-wiki\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="model"\n\nwikitext\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpTextbox1"\n\n' + NouveauContenuPage + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpSummary"\n\n' + NouveauSommaire + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpMinoredit"\n\n'
+ document.editform.wpMinoredit.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpSection"\n\n'
+ document.editform.wpSection.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpStarttime"\n\n'
+ document.editform.wpStarttime.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpEdittime"\n\n'
+ document.editform.wpEdittime.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="editRevId"\n\n'
+ document.editform.editRevId.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpScrolltop"\n\n'
+ document.editform.wpScrolltop.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpAutoSummary"\n\n'
+ document.editform.wpAutoSummary.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="oldid"\n\n'
+ document.editform.oldid.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="parentRevId"\n\n'
+ document.editform.parentRevId.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpEditToken"\n\n'
+ document.editform.wpEditToken.value + '\n';
data += '--' + boundary + '\nContent-Disposition: form-data; name="wpUltimateParam"\n\n'
+ document.editform.wpUltimateParam.value + '\n';
var RequetePublication = new XMLHttpRequest();
RequetePublication.open('POST', action, true);
RequetePublication.setRequestHeader('Content-Type', 'multipart/form-data; boundary='+boundary);
RequetePublication.onreadystatechange = function(){
if (RequetePublication.readyState != 4) return;
PagesSansBandeauDePortail_UpdateFinish(TitleList, TitleCheckedList);
};
RequetePublication.send(data + '--' + boundary);
};
RequeteEdition.send(null);
}
function PagesSansBandeauDePortail_UpdateFinish(TitleList, TitleCheckedList){
for(var a=0;a<TitleList.length;a++){
if(TitleCheckedList[a]){
var ThisTitle = TitleList[a];
for(var b=0;b<PagesSansBandeauDePortail_AllLinks.length;b++){
var LinkTitle = PagesSansBandeauDePortail_HTMLDecode(PagesSansBandeauDePortail_AllLinks[b].innerHTML);
if(LinkTitle==ThisTitle) PagesSansBandeauDePortail_EditOK(b, 0);
}
}
}
var EditPage = document.getElementById("EditPage");
if(EditPage) EditPage.parentNode.removeChild(EditPage);
var Working = document.getElementById("Working_Image");
if(Working) Working.parentNode.removeChild(Working);
PagesSansBandeauDePortail_UpdateIsRunning = false;
}
if((mw.config.get('wgPageName').indexOf(PagesSansBandeauDePortail_GoodPages)!=-1)&&(mw.config.get('wgPageName').indexOf(PagesSansBandeauDePortail_BadPages)==-1)&&(mw.config.get('wgAction')=="view")){
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-PagesSansBandeauDePortail.css&action=raw&ctype=text/css', 'text/css');
$(PagesSansBandeauDePortail_AddNavigLinks);
$(PagesSansBandeauDePortail_AddLinks);
}
//</nowiki></pre></source>
//Auditor
/*
* Adiutor: A gadget to assist various user actions
* Author: Vikipolimer
* Licencing and attribution: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
*/
.adiutor-user-dashboard-container {
padding: 65px;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/ac/Illustration_of_Reading_Wikipedia_in_the_Classroom_%28blue%29_03.png);
background-repeat: no-repeat;
background-position: calc(100% - 10%) 30%;
background-size: 35%;
}
.adiutor-user-dashboard-stats-container {
width: 55%;
display: flex !important;
margin-top: 35px;
}
.adiutor-user-dashboard-adiutor-total-stats {
float: left;
width: inherit;
background-color: var(--background-color-progressive, #3367cc) !important;
border: none !important;
color: var(--color-inverted, #fff);
}
.adiutor-user-dashboard-adiutor-total-stats .oo-ui-iconElement-icon {
filter: invert(2);
}
.adiutor-user-dashboard-adiutor-csd-stats {
float: left;
width: inherit;
margin: 0px !important;
border: none !important;
;
}
.adiutor-user-dashboard-adiutor-afd-stats {
float: right;
margin: 0px !important;
width: inherit;
border: none !important;
;
}
.adiutor-user-dashboard-main-x {
height: 100%;
min-height: -moz-available;
min-height: fill-available;
height: max-content;
display: contents;
}
span.adiutor-user-dashboard-top-logo {
width: 201px;
display: inline-grid;
text-align-last: left;
}
span.adiutor-user-dashboard-bottom-about-button {
width: 201px;
display: inline-grid;
text-align-last: left;
}
label.adiutor-user-dashboard-contribution-count {
display: block;
font-size: 16px;
line-height: 36px;
font-weight: 100;
margin-bottom: 10px;
}
label.adiutor-user-dashboard-welcome-text {
font-size: 34px;
margin-right: 14px;
font-weight: 300;
}
label.adiutor-user-dashboard-welcome-username {
font-size: 34px;
font-weight: 700;
color: var(--accent-color-base, #3366cc);
}
.adiutor-user-dashboard-adiutor-description {
width: 55%;
margin-top: 50px;
font-size: 17px;
text-align: justify;
}
.adiutor-user-dashboard-adiutor-description .oo-ui-labelElement-label {
font-weight: 300;
}
label.adiutor-user-dashboard-logo {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/1a/Adiutor_logo.svg');
width: 200px;
height: 100px;
background-size: 133px;
background-repeat: no-repeat;
position: absolute;
bottom: 0;
right: 0;
}
.adiutor-administrator-helper-csd-requests-butons {
float: right;
}
.adiutor-administrator-helper-article-content {
margin-top: 70px !important;
}
.adiutor-administrator-helper-csd-article-content {
padding: 0 !important;
}
.adiutor-administrator-helper-csd--toolbar {
height: 33px;
padding: 10px;
background: var(--background-color-base, #fff);
border-bottom: 1px solid #c8ccd0;
position: fixed;
width: 100%;
width: -webkit-fill-available;
text-align: right;
}
.adiutor-administrator-helper-csd--content-area {
margin-top: 60px;
padding: 50px;
}
.adiutor-administrator-helper-csd-toolbar-page-name {
float: left;
padding: 10px;
font-weight: 900;
font-size: 14px;
}
.afd-helper-button-group {
float: right;
font-size: 12px;
}
.afd-helper-comment-textarea textarea {
height: 80px;
}
.afd-helper-notification {
position: fixed;
top: 90px;
right: 70px;
width: 215px;
font-size: 12px;
padding: 20px !important;
}
.afd-opinion-select-btn-group {
display: flex !important;
flex-wrap: wrap !important;
width: 100%;
padding: 0;
margin: 0;
}
.afd-opinion-select-btn {
flex-grow: 1;
display: grid !important;
font-size: 12px;
}
.afd-result-select-btn-group {
display: flex !important;
flex-wrap: wrap !important;
width: 100%;
padding: 0;
margin: 0;
}
.afd-result-select-btn {
flex-grow: 1;
display: grid !important;
font-size: 12px;
}
.xfd-closed .afd-helper-button-group {
display: none;
}
#Bakım_bağlantıları .afd-helper-button-group {
display: none;
}
.adiutor-top-selector {
margin-top: 2px;
}
.adiutor-csd-modal-container {
display: flex;
position: inherit;
}
.adiutor-csd-modal-container .one {
width: 50%;
float: left;
}
.adiutor-csd-modal-container .two {
width: 50%;
float: right;
padding-left: 25px;
}
.cov-url-list-item {
padding: 10px;
background: var(--background-color-base, #fff);
list-style: none;
margin-bottom: 5px;
border: 1px solid #dadada;
}
.cov-url-list-item a {
color: var(--color-emphasized, #000);
}
ul.cov-url-list {
padding: 0;
margin: 0;
}
.cov-url-list-item-vio-high {
border: 1px solid #de3333;
background: var(--background-color-base, #fff);
color: var(--color-link-red, red);
}
.cov-url-list-item-vio-high a {
font-weight: 900;
color: var(--color-link-red, #de3333);
}
.adiutor-top-settings-menu {
border-top: 1px solid #cecece;
}
.adiutor-top-user-menu {
border-bottom: 1px solid #cecece;
}
.adiutor-user-status {
position: relative;
font-size: 14px;
float: right;
color: #04af89;
font-family: system-ui;
text-align: right;
font-weight: 700;
}
.adiutor-user-status-active {
position: relative;
width: 75px;
font-size: 14px;
float: right;
color: #04af89;
font-family: system-ui;
text-align: right;
font-weight: 700;
}
.adiutor-user-status-active:before {
content: '';
width: 26px;
height: 24px;
position: absolute;
top: 9px;
left: 6px;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/a/aa/OOjs_UI_icon_userTalk-ltr-constructive.svg);
background-repeat: no-repeat;
background-size: 18px;
}
.adiutor-user-status-passive {
position: relative;
width: 110px;
font-size: 14px;
float: right;
color: #04af89;
font-family: system-ui;
text-align: right;
font-weight: 700;
}
.adiutor-user-status-passive:before {
content: '';
width: 26px;
height: 24px;
position: absolute;
top: 9px;
left: 6px;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/b6/OOjs_UI_icon_userTalk-ltr.svg);
background-repeat: no-repeat;
background-size: 18px;
}
.adiutor-user-status-away {
position: relative;
width: 85px;
font-size: 14px;
float: right;
color: #d9ab21;
font-family: system-ui;
text-align: right;
font-weight: 700;
}
.adiutor-user-status-away:before {
content: '';
width: 26px;
height: 24px;
position: absolute;
top: 9px;
left: 6px;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/b6/OOjs_UI_icon_userTalk-ltr.svg);
background-repeat: no-repeat;
background-size: 18px;
}
.adiutor-user-status-selector {
display: inline;
float: right;
width: 98px;
font-size: 12px;
font-family: sans-serif;
}
.adiutor-top-rrd-menu {
border-bottom: 1px solid #cecece;
}
.adiutor-mentor-response-preview-area {
margin-top: 15px;
border: 1px solid #a2a9b1;
padding: 10px;
}
.adiutor-rpp-botton-select {
margin-top: 10px;
}
.adiutor-top-user-menu-end {
border-bottom: 1px solid #a2a9b1;
}
.adiutor-tag-list-container {
max-height: 350px;
overflow: scroll;
}
.adiutor-csd-modal-dialog-notification {
position: absolute;
top: 60px;
right: 100px;
z-index: 999;
}
.articles-worked-on-popup .oo-ui-popupWidget-head {
box-sizing: border-box;
border-bottom: 1px solid #c8ccd1;
margin: 0;
font-size: 1.2em;
font-weight: bold;
line-height: 2.5595238em;
}
.articles-worked-on-popup>.oo-ui-popupWidget-popup>.oo-ui-popupWidget-footer {
width: 100%;
margin: 0;
border-top: 1px solid #c8ccd1;
}
.articles-worked-on-popup-footer-buttons {
display: flex;
margin: 0;
justify-content: space-between;
}
.articles-worked-on-popup-footer-button {
flex: 1;
margin: 0;
display: grid;
height: 50px;
border: none;
}
.articles-worked-on-popup-footer-button .oo-ui-buttonElement-button {
padding: 14px !important;
font-size: inherit;
font-weight: bold;
border-top: none;
border-bottom: none;
border-right: none;
}
.adiutor-work-list-item:hover {
background: #ececec !important;
}
.adiutor-work-list-item {
margin: 0px !important;
cursor: pointer;
padding-left: 10px !important;
border: none !important;
background: var(--background-color-interactive-subtle, #f8f9fa) !important;
border-top: 1px solid #a2a9b1 !important;
}
.articles-worked-on-popup-search-box input {
height: 50px;
border: none !important;
padding-left: 10px !important;
}
.adiutor-aricle-detail-box {
margin-top: -0.7px;
padding: 10px !important;
display: list-item;
height: 50px;
padding-top: 15px !important;
font-size: 12px;
background-color: var(--background-color-interactive-subtle, #f7f8f9) !important;
border-color: #a2a9b1 !important;
}
span.adiutor-aricle-detail-box-button-group {
right: 45px;
display: revert;
position: absolute;
top: 8px;
}
.articles-worked-on-popup-search-box-enmpy {
display: flex;
padding: 5px;
padding-bottom: 15px;
font-weight: initial;
padding-top: 20px;
padding-right: 15px;
}
.articles-worked-on-popup-search-box-enmpy-image .oo-ui-iconElement-icon {
display: none !important;
}
.articles-worked-on-popup-search-box-enmpy-image .oo-ui-labelElement-label {
padding: 10px;
margin: 0;
padding-top: 0;
}
.adiutor-page-more-info-tip-author {
border: none !important;
margin: 0 !important;
}
.adiutor-page-more-info-tip-date {
border: none !important;
margin: 0 !important;
}
.adiutor-page-more-info-tip-keyword {
border: none !important;
margin: 0 !important;
border-top: 1px solid #a2a9b1 !important;
}
.adiutor-user-page-container {
margin-top: 20px;
display: initial;
position: inherit;
}
.adiutor-user-page-box-container {
width: 99.80%;
display: flex !important;
margin: 0;
background: var(--background-color-interactive-subtle, #f8f9fa);
border: 1px solid #d1d1d1;
height: 90px;
}
.adiutor-user-page-username-details {
float: left;
width: inherit;
background-color: var(--background-color-interactive-subtle, #f8f9fa) !important;
border: none !important;
color: var(--color-emphasized, #000);
display: grid;
padding-left: 54px !important;
}
.adiutor-user-page-username-details .oo-ui-iconElement-icon {
filter: invert(2);
}
.adiutor-user-page-change-count {
float: left;
width: inherit;
margin: 0px !important;
border: none !important;
background-color: #ffffff00 !important;
border-left: 1px solid #d1d1d1 !important;
}
.adiutor-user-page-miscellaneous {
float: right;
margin: 0px !important;
width: inherit;
border: none !important;
;
}
span.adiutor-user-page-button-group {
display: inherit;
position: relative;
margin-top: 28px !important;
margin-right: 18px !important;
}
.adiutor-user-page-username-details .oo-ui-iconElement-icon {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/OOjs_UI_icon_userAvatarOutline-progressive.svg/1920px-OOjs_UI_icon_userAvatarOutline-progressive.svg.png);
background-position: center !important;
width: 50px;
height: 50px;
filter: unset;
display: block;
float: left;
background-size: 50px;
margin-top: 18px;
margin-left: 16px;
}
h2.adiutor-help-content-heading-sub {
font-size: 16px;
font-weight: 900;
color: var(--accent-color-base, #3367cc);
}
span.adiutor-aricle-show-video-button {
position: absolute;
z-index: 99;
right: 23px;
top: 30px;
}
.adiutor-dashboard-administrator-tools-welcome {
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
padding: 50px;
}
.adiutor-dashboard-administrator-tools-fd-welcome-messsage {
margin: 0;
width: 55%;
display: revert;
text-align: center;
}
.adiutor-dashboard-administrator-tools-fd-welcome-messsage .oo-ui-labelElement-label {
margin: 0;
}
.adiutor-dashboard-administrator-tools-fd-welcome-messsage span {
margin: 0 !important;
}
.adiutor-dashboard-administrator-tools-welcome-img span {
display: none;
margin: 0 !important;
width: 100%;
}
.adiutor-dashboard-administrator-tools-welcome-top{
display: contents !important;
}