File manager - Edit - /home/missmand/public_html/learning/js/script.js
Back
$(document).ready(function(){ /* Mise à jour du temps passé sur la platforme temps : 1 min */ setInterval(function(){ $.ajax({ type: 'GET', url : 'https://www.missmandarine.com/learning/cron/updateConnexion.php' }); },30000); /* Deco automatique aprés 1h00 */ setInterval(function(){ document.location.href = 'https://www.missmandarine.com/learning/deco.php'; },60000 * 60); /* info bulle */ $(document).tooltip({ track: true }); /* Menu déroulant pour le compte utilisateur */ $('#portrait').click(function(){ var portrait = $(this); var sousPortrait = $("#sousPortrait"); if(portrait.hasClass('active')){ portrait.removeClass('active'); sousPortrait.fadeOut('fast'); }else{ portrait.addClass('active'); sousPortrait.fadeIn('fast'); } }); /* Hauteur des sujets (responsive) */ if($('#sujet .sortie').length){ $('#sujet .sortie').matchHeight(); } /* Hauteur des bloc sur le tableau de bord (responsive) */ if($('#conteneur #contenu #blocs .bloc').length){ $('#conteneur #contenu #blocs .bloc').matchHeight(); } /* Hauteur des documents (responsive) */ if($('#document .sortie').length){ $('#document .sortie').matchHeight(); } /* Hauteur des utilisateurs (responsive) */ if($('#utilisateurs .utilisateur').length){ $('#utilisateurs .utilisateur').matchHeight(); } /* Limitation de caractère */ $('.limit').keydown(function(){ var element = $(this); var name = element.attr('data-name'); var limit = element.attr('data-limit'); var string = element.val().length +1; var total = limit - string; $('#'+name).html(total); }); /* Quand on sort du champ */ $('.limit').focusout(function(){ var element = $(this); var name = element.attr('data-name'); var limit = element.attr('data-limit'); var string = element.val().length; var total = limit - string; $('#'+name).html(total); }); /* Input fichier */ $('#btnBas #fichier').click(function(){ $('input[name="fichier"]').click(); }); $('input[name="fichier"]').change(function(){ valeur = $(this).val().replace(/C:\\fakepath\\/i, ''); $('#btnBas #fichier').html(valeur); }); /* Slide pour le questionnaire d'auto évaluation */ $(".slider").slider({ range: "max", min: 0, max: 5, value: 0, slide: function( event, ui ) { $(this).prev('input').val(ui.value); $(this).next('.legende').html(ui.value+" / 5"); } }); /* Accordéon des apprenants */ $('#contenu table#apprenant tr.utilisateur').click(function(){ var apprenant = $(this); var apprenantId = apprenant.attr('id'); if(apprenant.hasClass('active') == false){ /* Reset */ $('#contenu table#apprenant tr.utilisateur').removeClass('active'); $('#contenu table#apprenant tr.infos:visible').hide(); /* Active */ apprenant.addClass('active'); $('#contenu table#apprenant tr#info'+apprenantId).fadeIn('fast'); }else{ apprenant.removeClass('active'); $('#contenu table#apprenant tr#info'+apprenantId).hide(); } }); /* Signaler un abus dans les formations */ $('.abusCommentaire').click(function(e){ e.preventDefault(); var commentaire = $(this); var commentaireId = commentaire.attr('id'); var parentLi = commentaire.parent(); $.ajax({ type: 'GET', url : 'https://www.missmandarine.com/learning/formation/abus.php?commentaire='+commentaireId, success:function(data){ parentLi.html(data); } }); }); /* Signaler un abus dans les sujets */ $('.abusSujet').click(function(e){ e.preventDefault(); var sujet = $(this); var sujetId = sujet.attr('id'); var parentLi = sujet.parent(); $.ajax({ type: 'GET', url : 'https://www.missmandarine.com/learning/forum/abusSujet.php?sujet='+sujetId, success:function(data){ parentLi.html(data); } }); }); /* Signaler un abus dans les réponses */ $('.abusReponse').click(function(e){ e.preventDefault(); var reponse = $(this); var reponseId = reponse.attr('id'); var parentLi = reponse.parent(); $.ajax({ type: 'GET', url : 'https://www.missmandarine.com/learning/forum/abusReponse.php?reponse='+reponseId, success:function(data){ parentLi.html(data); } }); }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings