PageSourceSearch

https://www.michelmoawad.com/en/wp-content/themes/michelmouawad/js/app.js?ver=1.0

js michelmoawad.com collected 2026-10-09 17:13:47 UTC 5,046 bytes, 124 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3	$(".reveal-modal").appendTo(document.body);
4
5	$('#bottomwidgets>*').syncHeight({ 'updateOnResize': true});
6
7/*if($(".widget_mm_youtube").length>0){
8	if($(".widget_mm_youtube h4").length>0) $(".widget_mm_youtube iframe").css("height",($(".widget_mm_youtube").height()-50)+"px");
9	else $(".widget_mm_youtube iframe").css("height",$(".widget_mm_youtube").height()+"px");
10}*/
11  /* TABS --------------------------------- */
12  /* Remove if you don't need :) */
13
14  function activateTab($tab) {
15    var $activeTab = $tab.closest('dl').find('dd.active'),
16        contentLocation = $tab.children('a').attr("href") + 'Tab';
17
18    // Strip off the current url that IE adds
19    contentLocation = contentLocation.replace(/^.+#/, '#');
20
21    //Make Tab Active
22    $activeTab.removeClass('active');
23    $tab.addClass('active');
24
25    //Show Tab Content
26    $(contentLocation).closest('.tabs-content').children('li').removeClass('active').hide();
27    $(contentLocation).css('display', 'block').addClass('active');
28  }
29
30  $('dl.tabs dd a').on('click.fndtn', function (event) {
31    activateTab($(this).parent('dd'));
32  });
33
34  if (window.location.hash) {
35    activateTab($('a[href="' + window.location.hash + '"]').parent('dd'));
36  }
37
38  /* ALERT BOXES ------------ */
39  $(".alert-box").delegate("a.close", "click", function(event) {
40    event.preventDefault();
41    $(this).closest(".alert-box").fadeOut(function(event){
42      $(this).remove();
43    });
44  });
45
46  /* PLACEHOLDER FOR FORMS ------------- */
47  /* Remove this and jquery.placeholder.min.js if you don't need :) */
48  $('input, textarea').placeholder();
49
50  /* UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE6/7/8 SUPPORT AND ARE USING .block-grids */
51  //  $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'});
52  //  $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'left'});
53  //  $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'left'});
54  //  $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'left'});
55
56
57  /* DROPDOWN NAV ------------- */
58
59  var lockNavBar = false;
60  /* Windows Phone, sadly, does not register touch events :( */
61  if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) {
62    $('.nav-bar a.flyout-toggle').on('click.fndtn touchstart.fndtn', function(e) {
63      e.preventDefault();
64      var flyout = $(this).siblings('.flyout').first();
65      if (lockNavBar === false) {
66        $('.nav-bar .flyout').not(flyout).slideUp(500);
67        flyout.slideToggle(500, function(){
68          lockNavBar = false;
69        });
70      }
71      lockNavBar = true;
72    });
73    $('.nav-bar>li.has-flyout').addClass('is-touch');
74  } else {
75    $('.nav-bar>li.has-flyout').hover(function() {
76      $(this).children('.flyout').show();
77    }, function() {
78      $(this).children('.flyout').hide();
79    });
80  }
81
82  /* DISABLED BUTTONS ------------- */
83  /* Gives elements with a class of 'disabled' a return: false; */
84  $('.button.disabled').on('click.fndtn', function (event) {
85    event.preventDefault();
86  });
87  
88
89  /* SPLIT BUTTONS/DROPDOWNS */
90  $('.button.dropdown > ul').addClass('no-hover');
91
92  $('.button.dropdown').on('click.fndtn touchstart.fndtn', function (e) {
93    e.stopPropagation();
94  });
95  $('.button.dropdown.split span').on('click.fndtn touchstart.fndtn', function (e) {
96    e.preventDefault();
97    $('.button.dropdown').not($(this).parent()).children('ul').removeClass('show-dropdown');
98    $(this).siblings('ul').toggleClass('show-dropdown');
99  });
100  $('.button.dropdown').not('.split').on('click.fndtn touchstart.fndtn', function (e) {
101    $('.button.dropdown').not(this).children('ul').removeClass('show-dropdown');
102    $(this).children('ul').toggleClass('show-dropdown');
103  });
104  $('body, html').on('click.fndtn touchstart.fndtn', function () {
105    $('.button.dropdown ul').removeClass('show-dropdown');
106  });
107
108  // Positioning the Flyout List
109  var normalButtonHeight  = $('.button.dropdown:not(.large):not(.small):not(.tiny)').outerHeight() - 1,
110      largeButtonHeight   = $('.button.large.dropdown').outerHeight() - 1,
111      smallButtonHeight   = $('.button.small.dropdown').outerHeight() - 1,
112      tinyButtonHeight    = $('.button.tiny.dropdown').outerHeight() - 1;
113
114  $('.button.dropdown:not(.large):not(.small):not(.tiny) > ul').css('top', normalButtonHeight);
115  $('.button.dropdown.large > ul').css('top', largeButtonHeight);
116  $('.button.dropdown.small > ul').css('top', smallButtonHeight);
117  $('.button.dropdown.tiny > ul').css('top', tinyButtonHeight);
118  
119  $('.button.dropdown.up:not(.large):not(.small):not(.tiny) > ul').css('top', 'auto').css('bottom', normalButtonHeight - 2);
120  $('.button.dropdown.up.large > ul').css('top', 'auto').css('bottom', largeButtonHeight - 2);
121  $('.button.dropdown.up.small > ul').css('top', 'auto').css('bottom', smallButtonHeight - 2);
122  $('.button.dropdown.up.tiny > ul').css('top', 'auto').css('bottom', tinyButtonHeight - 2);
123
124});

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.