PageSourceSearch

https://www.sos-transphobie.org/resources/js/blog.1573551364.js

js sos-transphobie.org collected 2026-10-07 03:42:27 UTC 4,667 bytes, 178 lines download raw bytes

1
2$(document).ready(function() 
3{
4    // ???
5    //$('input, textarea').placeholder();
6    var root_blog = '/blog';
7
8    // Close alerts
9    $('.alert .close').on('click', function() 
10    {
11        $('.alert').hide();
12    });
13
14    // Close alerts
15    $('.js_confirm').on('click', function() 
16    {
17        if(!confirm($(this).prop('title')))
18        {
19            return false;
20        }
21    });
22
23    // Log external domain
24    if ( window.self !== window.top )
25    {
26        var domain = document.referrer;
27        if (domain != '')
28        {
29            $.get('/blog/main/external_domain_log.ajax.php?blog_id=<?php echo $currentBlog->id; ?>&domain='+domain);
30        }
31    }
32
33    // Tooltip
34    $('.tooltipable').tooltip({'html':true,'delay': { show: 100, hide: 500 }});
35
36    // Sidebar : expand menu on click
37    $(".lien_expandable").click(function()
38    {
39        $(this).closest('li').children('.div_expandable').toggle();
40        /*$("#div_"+$(this).attr("id")).toggle();*/
41        return false;
42    });
43
44    // Zoom on photos with fancybox
45    $("a.zoomable").attr('rel', 'photos_index_photos').fancybox({
46        'overlayOpacity' : 0.5,
47        'overlayColor'   : '#000',
48        'transitionIn'   : 'elastic',
49        'transitionOut'  : 'elastic',
50        'fitToView'      : zoom_display == 'fullscreen' ? false : true
51    });
52
53    // Search box
54    $("#recherche_inter_blogs_text").val("Rechercher dans les blogs de Blog4ever avec Google");
55
56    $("#recherche_inter_blogs_text").focus(function()
57    {
58        $("#recherche_inter_blogs_text").val("");
59    });
60    
61    $("#recherche_inter_blogs_text").focusout(function()
62    {
63        if($("#recherche_inter_blogs_text").val() == "")
64        {
65            $("#recherche_inter_blogs_text").val("Rechercher dans les blogs de Blog4ever avec Google");
66        }
67    });
68
69    // Blogmember box
70    $(".blogmember_menu li").live(
71    {
72        mouseenter: function()
73        {
74            $('ul', this).fadeIn();
75        },
76        mouseleave:function()
77        {
78            $('ul', this).fadeOut();
79        }
80    });
81
82    // Member modal
83    // Form submit
84    $("#register_modal form button[type=submit]").click(function()
85    {
86        $("#register_modal .control-group").removeClass("error");
87        $("#register_modal .help-inline").hide();
88
89        if($(".control-group input[name=email]").val() == "")
90        {
91            $(".control_email").addClass("error");
92        }
93
94        if($(".control-group input[name=pseudo]").val() == "")
95        {
96            $(".control_pseudo").addClass("error");
97        }
98
99        if($(".control-group input[name=password]").val() == "")
100        {
101            $(".control_password").addClass("error");
102        }
103
104        $.post("/inscription",$("#register_modal form").serialize(), function(data)
105        {
106            data = data.trim();
107
108            if(data == 'error_pseudo')
109            {
110                $(".control_pseudo").addClass("error");
111                $(".control_pseudo .help-inline").show();
112            }
113            else if(data == 'ok')
114            {
115                window.location.reload();
116            }
117        });
118
119        return false;
120    });
121
122    // Modal switch
123    $('.register_to_login').click(function(event)
124    {
125        event.preventDefault();
126        $('#register_modal').modal('hide');
127        $('#login_modal').modal('show');
128    });
129
130    $('.login_to_register').click(function(event)
131    {
132        event.preventDefault();
133        $('#login_modal').modal('hide');
134        $('#register_modal').modal('show');
135    });
136
137    $('#register_modal').on('shown', function () 
138    {
139        $('#message_inscription_popover').popover({html : true, container: '.modal-body'});
140    });
141
142    if(window.location.hash == '#connexion') 
143    {
144        $('#login_modal').modal('show');
145    }
146
147    $('.register-source').live('click', function() {
148        $('#register_modal input[name="source"]').val($(this).data('source'));
149    });
150
151    $('.cookie-warning button').click(function() {
152
153        $('.cookie-warning').remove();
154
155        $.ajax({
156            url:'/blog/main/cookie-warning-hide.ajax.php',
157            type:'post'
158        });
159    });
160
161    // Make a printable version
162    $('.print-link').on('click', function()
163    {
164        var print_content = $($(this).attr('data-print-content')).html();
165        var original_Content = document.body.innerHTML;
166        document.body.innerHTML = print_content;
167        window.print();
168        document.body.innerHTML = original_Content;
169    });
170
171    // Nav submenus
172    $('nav .icon-chevron-down').click(function() {
173
174        $(this).closest('li').find('ul').toggle();
175
176        return false;
177    });
178});

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.