PageSourceSearch

https://www.imt-atlantique.fr/modules/custom/mines_main/js/newhome.js?v=0

js imt-atlantique.fr collected 2026-10-01 10:39:50 UTC 2,764 bytes, 74 lines download raw bytes

1(function($, Drupal, once){
2  Drupal.behaviors.newhome = {
3    attach: function (context, settings) {
4      $(once('home3', '.block-plugin-id--blocs3-home', context)).each(function () {
5        var mql = window.matchMedia("(min-width: 949px)");
6        var mob = 'true';
7        if (mql.matches) {
8          mob = 'false';
9        }
10        var langCode = drupalSettings.path.currentLanguage;
11        var lng = '';
12        if (langCode !== 'undefined' && langCode === 'en') {
13          lng = '/en';
14        }
15        ajaxObject = Drupal.ajax({
16          url: lng + '/mines_main/get3blochome/' + mob,
17        });
18        ajaxObject.execute().done(function () {
19
20        }).fail(function () {
21
22        });
23      });
24      $(once('home3', '.new-campus-para-contener', context)).each(function () {
25        $(this).on('click', '.field-paragraph--field-texte-unik-2', function() {
26          if (!$(this).hasClass('selected')) {
27            $(this).closest('.new-campus-para-titles').find('.field-paragraph--field-texte-unik-2').removeClass('selected').addClass('notselected');
28            $(this).removeClass('notselected').addClass('selected');
29            let id = $(this).closest('.new-campus-para-title').data('campusindex');
30            $(this).closest('.new-campus-para-contener').find('.new-campus-para-image').removeClass('selected').addClass('notselected');
31            $(this).closest('.new-campus-para-contener').find('.new-campus-para-image[data-campusindex="' + id + '"]').removeClass('notselected').addClass('selected');
32          }
33        });
34      });
35
36      $(once('homeactu', '.block-plugin-id--block-alaune-home', context)).each(function () {
37        var mql = window.matchMedia("(min-width: 949px)");
38        if (mql.matches) {
39          var langCode = drupalSettings.path.currentLanguage;
40          var lng = '';
41          if (langCode !== 'undefined' && langCode === 'en') {
42            lng = '/en';
43          }
44          ajaxObject = Drupal.ajax({
45            url: lng + '/mines_main/getactuhome',
46          });
47          ajaxObject.execute().done(function () {
48
49          }).fail(function () {
50
51          });
52        }
53      });
54      $(once('homeactu', '.block-plugin-id--strate-home', context)).each(function () {
55        var mql = window.matchMedia("(min-width: 949px)");
56        if (mql.matches) {
57          var langCode = drupalSettings.path.currentLanguage;
58          var lng = '';
59          if (langCode !== 'undefined' && langCode === 'en') {
60            lng = '/en';
61          }
62          ajaxObject = Drupal.ajax({
63            url: lng + '/mines_main/getstratehome',
64          });
65          ajaxObject.execute().done(function () {
66
67          }).fail(function () {
68
69          });
70        }
71      });
72    }
73  }
74})(jQuery, Drupal, once);

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.