PageSourceSearch

https://www.textimania.fr/js/tout_sauf_achat.js

js textimania.fr collected 2026-10-06 17:48:46 UTC 1,622 bytes, 47 lines download raw bytes

1var menu_mobile_actif = false;
2
3$(function() {
4
5    function basculer_menu() {
6        if($('#navig').length != 0) {
7            var items_menu = $('#menu').children('li[onmouseover]').children('a');
8            
9            if(items_menu.length != 0) {
10                if(!menu_mobile_actif)
11                    items_menu.bind('click', function(e) {
12                        $(this).siblings('.smenu').toggleClass('actif');
13                        e.preventDefault();
14                    });
15                else items_menu.unbind('click');
16                
17                menu_mobile_actif = !menu_mobile_actif;
18            }
19        }
20    }
21    
22	function redimensionner_fenetre() {
23		var message = window.getComputedStyle(document.body, ':before').getPropertyValue('content');
24		var menu_mobile = (message.indexOf('menu_mobile') >= 0) ? true : false;
25		
26		if(menu_mobile && !menu_mobile_actif) basculer_menu();
27		else if(!menu_mobile && menu_mobile_actif) basculer_menu();
28	}
29    
30    function gerer_menu() {
31        var top = $('#top');
32        var navig = $('#navig');
33        
34        if(top.length != 0 && navig.length != 0) {
35            $('<a id="ouvrir_menu" class="gestion_menu fa fa-bars" href="#navig" title="Ouvrir le menu"><span class="invisible">Menu</span></a>').appendTo(top);
36            $('<a id="fermer_menu" class="gestion_menu fa fa-times" href="#" title="Fermer le menu"><span class="invisible">Menu</span></a>').prependTo(navig);
37        }
38    }
39    
40    function initialiser() {
41        gerer_menu();
42        $(window).resize(redimensionner_fenetre).resize();
43    }
44    
45    initialiser();
46
47});

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.