PageSourceSearch

https://www.lnc.nc/sites/all/themes/lnc2015/js/customs.js?tlvu41

js lnc.nc collected 2026-09-24 19:35:05 UTC 10,357 bytes, 74 lines download raw bytes

1jQuery(document).ready(function($){ $(window).scroll(function(){$('.tm_hide').each(function(i){var bottom_of_object=$(this).position().top+$(this).outerHeight();var bottom_of_window=$(window).scrollTop()+$(window).height();if(bottom_of_window>bottom_of_object){$(this).animate({'opacity':'1'},100);}});});if($(".swipebox").length){$(".swipebox").swipebox({useCSS:true,hideBarsDelay:0});}$('#navigasi_menu_reseponsive ul li ul li a').show().each(function(index,item){$(this).text('- '+$(this).text());});$('#navigasi_menu_reseponsive ul li ul li ul li a').show().each(function(index,item){$(this).text('- - '+$(this).text());});$("<select />").appendTo("nav");$("<option />",{"selected":"selected","value":"","text":"Go to..."}).appendTo("nav select");$("nav a").each(function(){var el=$(this);$("<option />",{"value":el.attr("href"),"text":el.text()}).appendTo("nav select");});$("nav select").change(function(){window.location=$(this).find("option:selected").val();});$('#navigasi_menu_reseponsive').remove();$(window).scroll(function(){if($(this).scrollTop()!=0){$('#backtotop').fadeIn();}else{$('#backtotop').fadeOut();}});$('#backtotop').click(function(){$('body,html').animate({scrollTop:0},1000);});calculateWindow();function calculateWindow(){var w=(jQuery(window).width()-1155)/2;$(".tm_header_left_stripe").width(w);if(w>171&&w<771){$(".tm_left_bot_header .navigasi_menu_2").css("top","25px");}else if(w>771){$(".tm_left_bot_header .navigasi_menu_2").css("top","22px");}else{$(".tm_left_bot_header .navigasi_menu_2").css("top","24px");}}$(window).resize(function(){calculateWindow();});$(".promotion-left-content .views-field-field-imagearticle").click(function(){var href=$(".promotion-left-content .views-row-1 .views-field-title-1 .field-content a").attr('href');window.location.href=href;});$(".promotion-left-content .views-field-field-imagebreve").click(function(){var href=$(".promotion-left-content .views-row-1 .views-field-title-1 .field-content a").attr('href');window.location.href=href;});$(".promotion-left-content .views-field-field-imagebreve").mousedown(function(e){if(e.which==2){e.preventDefault();var href=$(".promotion-left-content .views-row-1 .views-field-title-1 .field-content a").attr('href');window.open(href,'_blank');}});$('.views-row .views-field-field-imagearticle .field-content').each(function(){if($(this).children().length==0){$(this).parent().css("display","none");}});$('.view-taxonomy .views-row .views-field-field-vignette .field-content').each(function(){if($(this).children().length==0){$(this).parent().css("display","none");}});$('.view-taxonomy .views-row .views-field-field-imagecollection .field-content').each(function(){if($(this).children().length==0){$(this).parent().css("display","none");}});$('.password-suggestions').before('<img class="pass-arrow" src="/sites/all/themes/lnc2015/images/pass-arrow.jpg">');$('.password-field').on('input',function(){console.log();});var edit=[167,154,142,131,110];var reset=[52,39,28,19,0];var arr;var topA=0;var typingTimer;var doneTypingInterval=50;var $input=$('.password-field');if($('.form-item-current-pass').length>0){$('.password-suggestions').css('top','110px');$('.pass-arrow').css('top','203px');arr=edit;}else{$('.password-suggestions').css('top','19px');$('.pass-arrow').css('top','87px');arr=reset;}$input.on('keyup',function(){clearTimeout(typingTimer);typingTimer=setTimeout(doneTyping,doneTypingInterval);});$input.on('keydown',function(){clearTimeout(typingTimer);});$input.on('click',function(){if($('.password-suggestions').css('display')=='none'){$('.pass-arrow').css('display','none');}else{$('.pass-arrow').css('display','block');}});function doneTyping(){if($('.password-suggestions').css('display')=='none'){$('.pass-arrow').css('display','none');}else{$('.pass-arrow').css('display','block');}$('.password-suggestions').css('top',arr[$('.password-suggestions ul').children().length-1]+'px');}var url='/crowdsourcing/';if($('#crowdsourcing-form #edit-upload').length){$('#crowdsourcing-form #edit-upload').fileupload({url:url,dataType:'json',acceptFileTypes:/(\.|\/)(gif|jpe?g|png|mpg|mp4|mp3|flv|avi|mov|pdf|txt|rtf)$/i,done:function(e,data){$.each(data.result.files,function(index,file){console.log(data.result.files);if(file.error){alert("Les formats de fichiers autorisés sont : jpg / jpeg / gif / png mpg mp4 mp3 flv avi mov pdf txt rtf.");}else{$('<p/>').text(file.name).appendTo('#files');$('<input>').attr({type:'hidden',name:'uploaded[upload][]',}).val(file.url).insertAfter('#edit-upload');
1$('#progress .progress-bar').css('width','0%');}});if($('#files p').length>=3){$('<p/>').text("Maximum file upload has reached.").appendTo('#files');$('#edit-upload').prop('disabled',true);}$("#crowdsourcing-form #edit-submit").prop('disabled',false);$("#crowdsourcing-form #edit-submit").attr('style','background-color:#e30046!important');},progressall:function(e,data){node=$(data.context.children()[index]);if(file.error){alert("Les formats de fichiers autorisés sont : jpg / jpeg / gif / png mpg mp4 mp3 flv avi mov pdf txt rtf.");}else{var progress=parseInt(data.loaded/data.total*100,10);$("#crowdsourcing-form #edit-submit").prop('disabled',true);$("#crowdsourcing-form #edit-submit").attr('style','background-color:#968E91!important');$('#progress .progress-bar').css('width',progress+'%');}}}).prop('disabled',!$.support.fileInput).parent().addClass($.support.fileInput?undefined:'disabled');}$("#crowdsourcing-form #edit-submit").click(function(e){if($("#crowdsourcing-form #edit-name").val().trim().length<=0){e.preventDefault();$("#crowdsourcing-form .name.field-error").text("Merci de renseigner votre nom.");}else{$("#crowdsourcing-form .name.field-error").text("");}var emailReg=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);var valid=emailReg.test($('#edit-email').val());if(!valid){e.preventDefault();$("#crowdsourcing-form .email.field-error").text("L'adresse email renseignée n'est pas valide.");}else{$("#crowdsourcing-form .email.field-error").text("");}if($("#crowdsourcing-form #edit-eula").prop('checked')==false){e.preventDefault();alert("Merci de confirmer avoir pris connaissance des conditions d'utilisations.");}});function validateEmail(email){var emailReg=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);var valid=emailReg.test(email);if(!valid){return false;}else{return true;}}$("#block-menu-menu-lnc-main-menu .menu li.expanded:nth-child(11) ul li ul").css("left","-264px");$("#block-menu-menu-lnc-main-menu .menu li.expanded:nth-child(11) ul li ul").css("background","transparent");function getnumber(){jQuery('.rrssb > ul').prepend('<li class="rrssb-disqus"><a href="#disqus_thread"><div class="rrssb-icon"><i class="fa fa-comment"></i><span id="dq-count">&nbsp;&nbsp;</span></div><div class="rrssb-text">Réagissez</div></a></li>');var ctn=jQuery('#ctn-wrap .disqus-comment-count').text();if(ctn=="Aucun commentaire"){jQuery("#dq-count").text(0);}else{jQuery("#dq-count").text(ctn.replace("Commentaire",""));}}setTimeout(getnumber,1500);if($(".promotion-left-content .views-field-field-imagebreve .field-content").children().length>0){$(".promotion-left-content .views-field-field-imagearticle").css("display","none");}
2if($('.tm_magzslider').length){$('.tm_magzslider').show().bxSlider({pager:false,speed:800,pause:6000,auto:true,captions:true});}
3if($('.tm_magzslider_big').length){$('.tm_magzslider_big').show().bxSlider({pager:false,captions:true,minSlides:3,maxSlides:4,moveSlides:1,slideWidth:371,slideMargin:20});}
4  var to = 700;
5  if($(window).width() < 670){
6      to = 3500;
7  }
8  setTimeout(function(){
9    $(".view-nous-videos .views-field-field-vignette .play-icon").each(function(){
10        var h = $(this).parent().parent().height();
11        var w = $(this).parent().parent().width();
12        
13        var t = (h/2) - ($(this).height()/2);
14        var l = (w/2) - ($(this).width()/2);
15        $(this).css("margin-top",t+"px");
16        $(this).css("margin-left",l+"px");
17    });
18    $(".view-article-les-plus-regardes .views-row").each(function(){
19        if($(this).children(".views-field-field-image-principale").length < 1){
20            $(this).children(".views-field-title").css("width","100%");
21        }
22    });
23  }, to);
24  $(window).resize(function() {
25    $(".view-nous-videos .views-field-field-vignette .play-icon").each(function(){
26        var h = $(this).parent().parent().height();
27        var w = $(this).parent().parent().width();
28
29        var t = (h/2) - ($(this).height()/2);
30        var l = (w/2) - ($(this).width()/2);
31        $(this).css("margin-top",t+"px");
32        $(this).css("margin-left",l+"px");
33    });
34  });
35
36  if($(".page-taxonomy").length > 0){
37      if($(".item-list .pager").length > 0){
38         $(".item-list .pager").parent().addClass("pager-desktop");
39         $(".view-content .col-md-8").after("<div class='item-list pager-mobile'>"+$(".pager-desktop").html()+"</div>");
40      }
41  }
42  
43  
44  var clipboard = new ClipboardJS('.copyhtml');
45  if($(".tm_center_widget #codehtml").length > 0){
46      $(".copyhtml").css("display","inline-block");
47  }else{
48      $(".copyhtml").hide();
49  }
50  $(".page-user .profile .field-name-field-newsletter .field-label").text('NEWSLETTER');
51  
52  
53    
54    var getUrlParameter = function getUrlParameter(sParam) {
55        var sPageURL = window.location.search.substring(1),
56            sURLVariables = sPageURL.split('&'),
57            sParameterName,
58            i;
59
60        for (i = 0; i < sURLVariables.length; i++) {
61            sParameterName = sURLVariables[i].split('=');
62
63            if (sParameterName[0] === sParam) {
64                return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
65            }
66        }
67    };
68
69    var autoRedirect = getUrlParameter('autoredirect');
70    if(autoRedirect == 1){
71        $("#form-subs-checkout").submit();
72    }
73    
74});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.