vendor: 11,960 bytes, lines 1-6
1/*! 2 Colorbox 1.6.4 3 license: MIT 4 http://www.jacklmoore.com/colorbox 5*/ 6(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=t('<button type="button"/>').attr({id:Z+"Slideshow"}),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
6; 7/** 8 * @file 9 * Colorbox module init js. 10 */ 11 12(function ($) { 13 14Drupal.behaviors.initColorbox = { 15 attach: function (context, settings) { 16 if (!$.isFunction($('a, area, input', context).colorbox) || typeof settings.colorbox === 'undefined') { 17 return; 18 } 19 20 if (settings.colorbox.mobiledetect && window.matchMedia) { 21 // Disable Colorbox for small screens. 22 var mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")"); 23 if (mq.matches) { 24 return; 25 } 26 } 27 28 // Use "data-colorbox-gallery" if set otherwise use "rel". 29 settings.colorbox.rel = function () { 30 if ($(this).data('colorbox-gallery')) { 31 return $(this).data('colorbox-gallery'); 32 } 33 else { 34 return $(this).attr('rel'); 35 } 36 }; 37 38 $('.colorbox', context) 39 .once('init-colorbox').each(function(){ 40 // Only images are supported for the "colorbox" class. 41 // The "photo" setting forces the href attribute to be treated as an image. 42 var extendParams = { 43 photo: true 44 }; 45 // If a title attribute is supplied, sanitize it. 46 var title = $(this).attr('title'); 47 if (title) { 48 extendParams.title = Drupal.checkPlain(title); 49 } 50 $(this).colorbox($.extend({}, settings.colorbox, extendParams)); 51 }); 52 53 $(context).bind('cbox_complete', function () { 54 Drupal.attachBehaviors('#cboxLoadedContent'); 55 }); 56 } 57}; 58 59})(jQuery); 60; 61/** 62 * @file 63 * Colorbox module style js. 64 */ 65 66(function ($) { 67 68Drupal.behaviors.initColorboxDefaultStyle = { 69 attach: function (context, settings) { 70 $(context).bind('cbox_complete', function () { 71 // Only run if there is a title. 72 if ($('#cboxTitle:empty', context).length == false) { 73 $('#cboxLoadedContent img', context).bind('mouseover', function () { 74 $('#cboxTitle', context).slideDown(); 75 }); 76 $('#cboxOverlay', context).bind('mouseover', function () { 77 $('#cboxTitle', context).slideUp(); 78 }); 79 } 80 else { 81 $('#cboxTitle', context).hide(); 82 } 83 }); 84 } 85}; 86 87})(jQuery); 88; 89(function($){ 90/** 91 * To make a form auto submit, all you have to do is 3 things: 92 * 93 * ctools_add_js('auto-submit'); 94 * 95 * On gadgets you want to auto-submit when changed, add the ctools-auto-submit 96 * class. With FAPI, add: 97 * @code 98 * '#attributes' => array('class' => array('ctools-auto-submit')), 99 * @endcode 100 * 101 * If you want to have auto-submit for every form element, 102 * add the ctools-auto-submit-full-form to the form. With FAPI, add: 103 * @code 104 * '#attributes' => array('class' => array('ctools-auto-submit-full-form')), 105 * @endcode 106 * 107 * If you want to exclude a field from the ctool-auto-submit-full-form auto submission, 108 * add the class ctools-auto-submit-exclude to the form element. With FAPI, add: 109 * @code 110 * '#attributes' => array('class' => array('ctools-auto-submit-exclude')), 111 * @endcode 112 * 113 * Finally, you have to identify which button you want clicked for autosubmit. 114 * The behavior of this button will be honored if it's ajaxy or not: 115 * @code 116 * '#attributes' => array('class' => array('ctools-use-ajax', 'ctools-auto-submit-click')), 117 * @endcode 118 * 119 * Currently only 'select', 'radio', 'checkbox' and 'textfield' types are supported. We probably 120 * could use additional support for HTML5 input types. 121 */ 122 123Drupal.behaviors.CToolsAutoSubmit = { 124 attach: function(context) { 125 // 'this' references the form element 126 function triggerSubmit (e) { 127 if ($.contains(document.body, this)) { 128 var $this = $(this); 129 if (!$this.hasClass('ctools-ajaxing')) { 130 $this.find('.ctools-auto-submit-click').click(); 131 } 132 } 133 } 134 135 // the change event bubbles so we only need to bind it to the outer form 136 $('form.ctools-auto-submit-full-form', context) 137 .add('.ctools-auto-submit', context) 138 .filter('form, select, input:not(:text, :submit)') 139 .once('ctools-auto-submit') 140 .change(function (e) { 141 // don't trigger on text change for full-form 142 if ($(e.target).is(':not(:text, :submit, .ctools-auto-submit-exclude)')) { 143 triggerSubmit.call(e.target.form); 144 } 145 }); 146 147 // e.keyCode: key 148 var discardKeyCode = [ 149 16, // shift 150 17, // ctrl 151 18, // alt 152 20, // caps lock 153 33, // page up 154 34, // page down 155 35, // end 156 36, // home 157 37, // left arrow 158 38, // up arrow 159 39, // right arrow 160 40, // down arrow 161 9, // tab 162 13, // enter 163 27 // esc 164 ]; 165 // Don't wait for change event on textfields 166 $('.ctools-auto-submit-full-form input:text, input:text.ctools-auto-submit', context) 167 .filter(':not(.ctools-auto-submit-exclude)') 168 .once('ctools-auto-submit', function () { 169 // each textinput element has his own timeout 170 var timeoutID = 0; 171 $(this) 172 .bind('keydown keyup', function (e) { 173 if ($.inArray(e.keyCode, discardKeyCode) === -1) { 174 timeoutID && clearTimeout(timeoutID); 175 } 176 }) 177 .keyup(function(e) { 178 if ($.inArray(e.keyCode, discardKeyCode) === -1) { 179 timeoutID = setTimeout($.proxy(triggerSubmit, this.form), 500); 180 } 181 }) 182 .bind('change', function (e) { 183 if ($.inArray(e.keyCode, discardKeyCode) === -1) { 184 timeoutID = setTimeout($.proxy(triggerSubmit, this.form), 500); 185 } 186 }); 187 }); 188 } 189} 190})(jQuery); 191; 192/** 193 * @file 194 * Some basic behaviors and utility functions for Views. 195 */ 196(function ($) { 197 198 Drupal.Views = {}; 199 200 /** 201 * JQuery UI tabs, Views integration component. 202 */ 203 Drupal.behaviors.viewsTabs = { 204 attach: function (context) { 205 if ($.viewsUi && $.viewsUi.tabs) { 206 $('#views-tabset').once('views-processed').viewsTabs({ 207 selectedClass: 'active' 208 }); 209 } 210 211 $('a.views-remove-link').once('views-processed').click(function(event) { 212 var id = $(this).attr('id').replace('views-remove-link-', ''); 213 $('#views-row-' + id).hide(); 214 $('#views-removed-' + id).attr('checked', true); 215 event.preventDefault(); 216 }); 217 /** 218 * Here is to handle display deletion 219 * (checking in the hidden checkbox and hiding out the row). 220 */ 221 $('a.display-remove-link') 222 .addClass('display-processed') 223 .click(function() { 224 var id = $(this).attr('id').replace('display-remove-link-', ''); 225 $('#display-row-' + id).hide(); 226 $('#display-removed-' + id).attr('checked', true); 227 return false;
228 }); 229 } 230 }; 231 232 /** 233 * Helper function to parse a querystring. 234 */ 235 Drupal.Views.parseQueryString = function (query) { 236 var args = {}; 237 var pos = query.indexOf('?'); 238 if (pos != -1) { 239 query = query.substring(pos + 1); 240 } 241 var pairs = query.split('&'); 242 for (var i in pairs) { 243 if (typeof(pairs[i]) == 'string') { 244 var pair = pairs[i].split('='); 245 // Ignore the 'q' path argument, if present. 246 if (pair[0] != 'q' && pair[1]) { 247 args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = decodeURIComponent(pair[1].replace(/\+/g, ' ')); 248 } 249 } 250 } 251 return args; 252 }; 253 254 /** 255 * Helper function to return a view's arguments based on a path. 256 */ 257 Drupal.Views.parseViewArgs = function (href, viewPath) { 258 259 // Provide language prefix. 260 if (Drupal.settings.pathPrefix) { 261 var viewPath = Drupal.settings.pathPrefix + viewPath; 262 } 263 var returnObj = {}; 264 var path = Drupal.Views.getPath(href); 265 // Ensure we have a correct path. 266 if (viewPath && path.substring(0, viewPath.length + 1) == viewPath + '/') { 267 var args = decodeURIComponent(path.substring(viewPath.length + 1, path.length)); 268 returnObj.view_args = args; 269 returnObj.view_path = path; 270 } 271 return returnObj; 272 }; 273 274 /** 275 * Strip off the protocol plus domain from an href. 276 */ 277 Drupal.Views.pathPortion = function (href) { 278 // Remove e.g. http://example.com if present. 279 var protocol = window.location.protocol; 280 if (href.substring(0, protocol.length) == protocol) { 281 // 2 is the length of the '//' that normally follows the protocol. 282 href = href.substring(href.indexOf('/', protocol.length + 2)); 283 } 284 return href; 285 }; 286 287 /** 288 * Return the Drupal path portion of an href. 289 */ 290 Drupal.Views.getPath = function (href) { 291 href = Drupal.Views.pathPortion(href); 292 href = href.substring(Drupal.settings.basePath.length, href.length); 293 // 3 is the length of the '?q=' added to the url without clean urls. 294 if (href.substring(0, 3) == '?q=') { 295 href = href.substring(3, href.length); 296 } 297 var chars = ['#', '?', '&']; 298 for (var i in chars) { 299 if (href.indexOf(chars[i]) > -1) { 300 href = href.substr(0, href.indexOf(chars[i])); 301 } 302 } 303 return href; 304 }; 305 306})(jQuery); 307; 308(function ($) { 309 310/** 311 * A progressbar object. Initialized with the given id. Must be inserted into 312 * the DOM afterwards through progressBar.element. 313 * 314 * method is the function which will perform the HTTP request to get the 315 * progress bar state. Either "GET" or "POST". 316 * 317 * e.g. pb = new progressBar('myProgressBar'); 318 * some_element.appendChild(pb.element); 319 */ 320Drupal.progressBar = function (id, updateCallback, method, errorCallback) { 321 var pb = this; 322 this.id = id; 323 this.method = method || 'GET'; 324 this.updateCallback = updateCallback; 325 this.errorCallback = errorCallback; 326 327 // The WAI-ARIA setting aria-live="polite" will announce changes after users 328 // have completed their current activity and not interrupt the screen reader. 329 this.element = $('<div class="progress" aria-live="polite"></div>').attr('id', id); 330 this.element.html('<div class="bar"><div class="filled"></div></div>' + 331 '<div class="percentage"></div>' + 332 '<div class="message"> </div>'); 333}; 334 335/** 336 * Set the percentage and status message for the progressbar. 337 */ 338Drupal.progressBar.prototype.setProgress = function (percentage, message) { 339 if (percentage >= 0 && percentage <= 100) { 340 $('div.filled', this.element).css('width', percentage + '%'); 341 $('div.percentage', this.element).html(percentage + '%'); 342 } 343 $('div.message', this.element).html(message); 344 if (this.updateCallback) { 345 this.updateCallback(percentage, message, this); 346 } 347}; 348 349/** 350 * Start monitoring progress via Ajax. 351 */ 352Drupal.progressBar.prototype.startMonitoring = function (uri, delay) { 353 this.delay = delay; 354 this.uri = uri; 355 this.sendPing(); 356}; 357 358/** 359 * Stop monitoring progress via Ajax. 360 */ 361Drupal.progressBar.prototype.stopMonitoring = function () { 362 clearTimeout(this.timer); 363 // This allows monitoring to be stopped from within the callback. 364 this.uri = null; 365}; 366 367/** 368 * Request progress data from server. 369 */ 370Drupal.progressBar.prototype.sendPing = function () { 371 if (this.timer) { 372 clearTimeout(this.timer); 373 } 374 if (this.uri) { 375 var pb = this; 376 // When doing a post request, you need non-null data. Otherwise a 377 // HTTP 411 or HTTP 406 (with Apache mod_security) error may result. 378 $.ajax({ 379 type: this.method, 380 url: this.uri, 381 data: '', 382 dataType: 'json', 383 success: function (progress) { 384 // Display errors. 385 if (progress.status == 0) { 386 pb.displayError(progress.data); 387 return; 388 } 389 // Update display. 390 pb.setProgress(progress.percentage, progress.message); 391 // Schedule next timer.
392 pb.timer = setTimeout(function () { pb.sendPing(); }, pb.delay); 393 }, 394 error: function (xmlhttp) { 395 pb.displayError(Drupal.ajaxError(xmlhttp, pb.uri)); 396 } 397 }); 398 } 399}; 400 401/** 402 * Display errors on the page. 403 */ 404Drupal.progressBar.prototype.displayError = function (string) { 405 var error = $('<div class="messages error"></div>').html(string); 406 $(this.element).before(error).hide(); 407 408 if (this.errorCallback) { 409 this.errorCallback(this); 410 } 411}; 412 413})(jQuery); 414; 415/** 416 * @file 417 * Handles AJAX fetching of views, including filter submission and response. 418 */ 419(function ($) { 420 421 /** 422 * Attaches the AJAX behavior to exposed filter forms and key views links. 423 */ 424 Drupal.behaviors.ViewsAjaxView = {}; 425 Drupal.behaviors.ViewsAjaxView.attach = function() { 426 if (Drupal.settings && Drupal.settings.views && Drupal.settings.views.ajaxViews) { 427 $.each(Drupal.settings.views.ajaxViews, function(i, settings) { 428 Drupal.views.instances[i] = new Drupal.views.ajaxView(settings); 429 }); 430 } 431 }; 432 433 Drupal.views = {}; 434 Drupal.views.instances = {}; 435 436 /** 437 * JavaScript object for a certain view. 438 */ 439 Drupal.views.ajaxView = function(settings) { 440 var selector = '.view-dom-id-' + settings.view_dom_id; 441 this.$view = $(selector); 442 443 // Retrieve the path to use for views' ajax. 444 var ajax_path = Drupal.settings.views.ajax_path; 445 446 // If there are multiple views this might've ended up showing up multiple 447 // times. 448 if (ajax_path.constructor.toString().indexOf("Array") != -1) { 449 ajax_path = ajax_path[0]; 450 } 451 452 // Check if there are any GET parameters to send to views. 453 var queryString = window.location.search || ''; 454 if (queryString !== '') { 455 // Remove the question mark and Drupal path component if any. 456 var queryString = queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/, ''); 457 if (queryString !== '') { 458 // If there is a '?' in ajax_path, clean url are on and & should be 459 // used to add parameters. 460 queryString = ((/\?/.test(ajax_path)) ? '&' : '?') + queryString; 461 } 462 } 463 464 this.element_settings = { 465 url: ajax_path + queryString, 466 submit: settings, 467 setClick: true, 468 event: 'click', 469 selector: selector, 470 progress: { 471 type: 'throbber' 472 } 473 }; 474 475 this.settings = settings; 476 477 // Add the ajax to exposed forms. 478 this.$exposed_form = $('#views-exposed-form-' + settings.view_name.replace(/_/g, '-') + '-' + settings.view_display_id.replace(/_/g, '-')); 479 this.$exposed_form.once(jQuery.proxy(this.attachExposedFormAjax, this)); 480 481 // Store Drupal.ajax objects here for all pager links. 482 this.links = []; 483 484 // Add the ajax to pagers. 485 this.$view 486 .once(jQuery.proxy(this.attachPagerAjax, this)); 487 488 // Add a trigger to update this view specifically. In order to trigger a 489 // refresh use the following code. 490 // 491 // @code 492 // jQuery('.view-name').trigger('RefreshView'); 493 // @endcode 494 // Add a trigger to update this view specifically. 495 var self_settings = this.element_settings; 496 self_settings.event = 'RefreshView'; 497 var self = this; 498 this.$view.once('refresh', function () { 499 self.refreshViewAjax = new Drupal.ajax(self.selector, self.$view, self_settings); 500 }); 501 }; 502 503 Drupal.views.ajaxView.prototype.attachExposedFormAjax = function() { 504 var button = $('input[type=submit], button[type=submit], input[type=image]', this.$exposed_form); 505 button = button[0]; 506 507 // Call the autocomplete submit before doing AJAX. 508 $(button).click(function () { 509 if (Drupal.autocompleteSubmit) { 510 Drupal.autocompleteSubmit(); 511 } 512 }); 513 514 this.exposedFormAjax = new Drupal.ajax($(button).attr('id'), button, this.element_settings); 515 }; 516 517 /** 518 * Attach the ajax behavior to each link. 519 */ 520 Drupal.views.ajaxView.prototype.attachPagerAjax = function() { 521 this.$view.find('ul.pager > li > a, ol.pager > li > a, th.views-field a, .attachment .views-summary a') 522 .each(jQuery.proxy(this.attachPagerLinkAjax, this)); 523 }; 524 525 /**
526 * Attach the ajax behavior to a single link. 527 */ 528 Drupal.views.ajaxView.prototype.attachPagerLinkAjax = function(id, link) { 529 var $link = $(link); 530 var viewData = {}; 531 var href = $link.attr('href'); 532 // Don't attach to pagers inside nested views. 533 if ($link.closest('.view')[0] !== this.$view[0] && 534 $link.closest('.view').parent().hasClass('attachment') === false) { 535 return; 536 } 537 538 // Provide a default page if none has been set. This must be done 539 // prior to merging with settings to avoid accidentally using the 540 // page landed on instead of page 1. 541 if (typeof(viewData.page) === 'undefined') { 542 viewData.page = 0; 543 } 544 545 // Construct an object using the settings defaults and then overriding 546 // with data specific to the link. 547 $.extend( 548 viewData, 549 this.settings, 550 Drupal.Views.parseQueryString(href), 551 // Extract argument data from the URL. 552 Drupal.Views.parseViewArgs(href, this.settings.view_base_path) 553 ); 554 555 // For anchor tags, these will go to the target of the anchor rather 556 // than the usual location. 557 $.extend(viewData, Drupal.Views.parseViewArgs(href, this.settings.view_base_path)); 558 559 this.element_settings.submit = viewData; 560 this.pagerAjax = new Drupal.ajax(false, $link, this.element_settings); 561 this.links.push(this.pagerAjax); 562 }; 563 564 Drupal.ajax.prototype.commands.viewsScrollTop = function (ajax, response, status) { 565 // Scroll to the top of the view. This will allow users 566 // to browse newly loaded content after e.g. clicking a pager 567 // link. 568 var offset = $(response.selector).offset(); 569 // We can't guarantee that the scrollable object should be 570 // the body, as the view could be embedded in something 571 // more complex such as a modal popup. Recurse up the DOM 572 // and scroll the first element that has a non-zero top. 573 var scrollTarget = response.selector; 574 while ($(scrollTarget).scrollTop() == 0 && $(scrollTarget).parent()) { 575 scrollTarget = $(scrollTarget).parent(); 576 } 577 // Only scroll upward. 578 if (offset.top - 10 < $(scrollTarget).scrollTop()) { 579 $(scrollTarget).animate({scrollTop: (offset.top - 10)}, 500); 580 } 581 }; 582 583})(jQuery); 584; 585 586<!-- Customize contact forms in modal --> 587 588//FUNCTION TO GET AND DISPLAY CONTACT INFO FROM DATATAG 589function customContactModal(){ 590 591 var trigger = jQuery('[data-target="#warningModal"]'); 592 trigger.click(function() { 593 jQuery('#warningModal').detach(); 594 var elt = jQuery('<div class="modal" id="warningModal" tabindex="-1" role="dialog" aria-labelledby="warningModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> </div> </div></div>'); 595 var close_bt = '<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>'; 596 var title = jQuery(this).attr('wpcf-geographical-warning-modal-title'); 597 if (!title) title = 'Download disclamer'; 598 elt.find('.modal-content').append('<div class="modal-header">'+close_bt+' <h4 class="modal-title" id="exampleModalLabel">'+title+'</h4></div>'); 599 if (jQuery(this).attr('wpcf-warning-modal-type') != '1') { 600 warningcontent = jQuery(this).attr( "wpcf-advanced-warning-modal-text" ); 601 if (!warningcontent){ 602 var introduction = jQuery(this).attr('wpcf-geographical-warning-modal-introduction'); 603 if (!introduction) introduction = '<p>Due to restrictions under applicable securities laws, the information herein is not for release, publication or distribution, directly or indirectly, in whole or in part, in certain jurisdictions. Please provide us with the following information :</p> <p><select name="country" style="margin-right:15px;"></select><input type="text" placeholder="Calling Code *"/> <p>By clicking the Submit button you certify that you are an individual resident in thecountry stipulated by you above and that you have read and understood this notice.</p><p> The information contained in this website does not constitute an offer to sell, or the solicitation of an offer to acquire or subscribe for, securities in any jurisdiction in which, or to any person to whom, such offer or solicitation is unlawful.</p>'; 604
605 var whenok = jQuery(this).attr('wpcf-geographical-warning-modal-when-ok'); 606 if (!whenok) whenok = '<p>THE MATERIALS CONTAINED HEREIN ARE NOT FOR RELEASE, PUBLICATION OR DISTRIBUTION, DIRECTLY OR INDIRECTLY, IN WHOLE OR IN PART, INTO OR WITHIN THE UNITED STATES (INCLUDING ITS TERRITORIES AND POSSESSIONS, ANY STATE OF THE UNITED STATES AND THE DISTRICT OF COLUMBIA), AUSTRALIA, CANADA, JAPAN OR ANY OTHER JURISDICTION WHERE TO DO SO WOULD CONSTITUTE A VIOLATION OF THE RELEVANT LAWS OR REGULATIONS OF SUCH JURISDICTION.</p><p> The following information is exclusively intended for persons who are not residents of the United States and who are not physically located in the United States. The information contained herein and on the pages that follow does not constitute an offer of securities for sale or a solicitation of an offer to purchase securities in the United States or in any jurisdiction in which such an offer or solicitation would be unlawful. The securities referred to herein and on the pages that follow have not been and will not be registered under the US Securities Act of 1933 (the "Securities Act"), or with any securities regulatory authority of any state or other jurisdiction of the United States, and may not be offered, sold, resold, pledged, taken up, exercised, renounced, delivered, distributed or transferred, directly or indirectly, into or within the United States except pursuant to an exemption from, or in a transaction not subject to, the registration requirements of the Securities Act and in compliance with any applicable securities laws of any state or other jurisdiction of the United States. There will be no public offer of the securities referred to herein and on the pages that follow in the United States, Australia, Canada or Japan. The securities referred to herein and on the pages that follow may not be offered, sold, resold, pledged, taken up, exercised, renounced, delivered, distributed or transferred, directly or indirectly, in Australia, Canada or Japan or to any resident or citizen of Australia, Canada or Japan. The offer and sale of the securities referred to herein and on the pages that follow have not been and will not be registered under the applicable securities laws of Australia, Canada or Japan. Potential users of this information are requested to inform themselves about and to observe any such restrictions. </p><p> The public exchange offer referenced in the following information will not be made, directly or indirectly, in or into the United States, or by use of the United States mails, or by any means or instrumentality (including, without limitation, the post, facsimile transmission, telex and telephone or electronic transmission by way of the internet or otherwise) of United States commerce, or of any facility of a United States national securities exchange. The offer cannot be accepted by any such use, means or instrumentality or from within the United States. </p><p> Making press announcements and other documents available in electronic format does not constitute an offer to sell or the solicitation of an offer to buy securities. Further, it does not constitute a recommendation by us or any other party to sell or buy securities. </p><p> If you are not permitted to view materials on this webpage or are in any doubt as to whether you are permitted to view these materials, please exit this webpage. </p><p> The information on the pages that follow may contain forward-looking statements. Any statement other than a statement of historical fact is a forward-looking statement. Actual results may differ materially from those expressed or implied by any forward-looking statement. Altice and SFR Group do not undertake any obligation to update or revise any forward-looking statements, whether as a result of new information, future events, or otherwise. You should not place undue reliance on any forward-looking statement, which speaks only as of the date of its issuance. </p><p> By clicking "I understand and agree" below, you represent, warrant, and agree that you (1) have read and understood the information set out above; (2) agree to be bound by its terms; (3) do not have a registered address in, and are not resident or located in, the United States, Australia, Canada or Japan; (4) are permitted under applicable laws and regulations to receive the information contained in the pages that follow; and (5) agree that you will not transmit or otherwise send any information contained in this website to any person in the United States or to publications with a general circulation in the United States.</p>'; 607 var whennotallowed = jQuery(this).attr('wpcf-geographical-warning-modal-when-not-allowed'); 608 if (!whennotallowed) whennotallowed = '<p>The information included in this section is restricted due to applicable securities laws in your country of residence. The information in this section of the website is, therefore, not available to persons located in your country of residence.</p>'; 609 var whencodemismatch = jQuery(this).attr('wpcf-geographical-warning-modal-when-code-mismatch'); 610 if (!whencodemismatch) whencodemismatch = '<p>
610The telephone country code you declared does not correspond with your country of residency.</p>'; 611 content = '<div class="modal-body">'+introduction+'<a class="btn btn-primary" type="button">Submit</a> </p></div> <div class="modal-body ok" style="display:none;">'+whenok+'</div> <div class="modal-body error1" style="display:none;">'+whencodemismatch+' </div> <div class="modal-body error2" style="display:none;">'+whennotallowed+'</div> <div class="modal-footer ok" style="display: none;"> <a type="button" class="btn btn-primary dl" href="" target="_blank">I understand, proceed to Download</a> <a type="button" class="btn btn-primary close cancel" data-dismiss="modal" href="#">Cancel</a> </div> <div class="modal-footer error1" style="display: none;"> <a type="button" class="btn btn-primary close cancel" href="#" data-dismiss="modal">Close</a> </div> <div class="modal-footer error2" style="display: none;"> <a type="button" class="btn btn-primary close cancel" href="#" data-dismiss="modal">Close</a> </div>' 612 } 613 else { 614 content = warningcontent; 615 } 616 elt.find('.modal-content').append(content); 617 jQuery('body').append(elt); 618 jQuery('.ok,.error1,.error2').hide(); 619 jQuery(theModal+' .modal-body:gt(0)').hide(); 620 var prefixes = [["Afghanistan","\\+?93",1],["Afrique du Sud","\\+?27",1],["Albania","\\+?355",1],["Algeria","\\+?213",1],["American Samoa","\\+?1-684",1],["Andorra","\\+?376",1],["Angola","\\+?244",1],["Anguilla","\\+?1-264",1],["Antarctica","\\+?672",1],["Antigua","\\+?1-268",1],["Argentina","\\+?54",1],["Armenia","\\+?374",1],["Aruba","\\+?297",1],["Ascension","\\+?247",1],["Australia","\\+?61",1],["Australian External Territories","\\+?672",1],["Austria","\\+?43",1],["Azerbaijan","\\+?994",1],["Bahamas","\\+?1-242",1],["Bahrain","\\+?973",1],["Bangladesh","\\+?880",1],["Barbados","\\+?1-246",1],["Barbuda","\\+?1-268",1],["Belarus","\\+?375",1],["Belgium","\\+?32",1],["Belize","\\+?501",1],["Benin","\\+?229",1],["Bermuda","\\+?1-441",1],["Bhutan","\\+?975",1],["Bolivia","\\+?591",1],["Bosnia & Herzegovina","\\+?387",1],["Botswana","\\+?267",1],["Brazil","\\+?55",1],["British Virgin Islands","\\+?1-284",1],["Brunei Darussalam","\\+?673",1],["Bulgaria","\\+?359",1],["Burkina Faso","\\+?226",1],["Burundi","\\+?257",1],["Cambodia","\\+?855",1],["Cameroon","\\+?237",1],["Canada","\\+?1",0],["Cape Verde Islands","\\+?238",1],["Cayman Islands","\\+?1-345",1],["Central African Republic","\\+?236",1],["Chad","\\+?235",1],["Chatham Island (New Zealand)","\\+?64",1],["Chile","\\+?56",1],["China (PRC)","\\+?86",1],["Cocos-Keeling Islands","\\+?61",1],["Colombia","\\+?57",1],["Comoros","\\+?269",1],["Congo","\\+?242",1],["Congo, Dem. Rep. of\u00a0 (former Zaire)","\\+?243",1],["Cook Islands","\\+?682",1],["Costa Rica","\\+?506",1],["C\u00f4te d'Ivoire (Ivory Coast)","\\+?225",1],["Croatia","\\+?385",1],["Cuba","\\+?53",1],["Cuba (Guantanamo Bay)","\\+?5399",1],["Cura\u00e7ao","\\+?599",1],["Cyprus","\\+?357",1],["Czech Republic","\\+?420",1],["Denmark","\\+?45",1],["Diego Garcia","\\+?246",1],["Djibouti","\\+?253",1],["Dominica","\\+?1-767",1],["Dominican Republic","\\+?1-809 ",1],["Dominican Republic","\\+?1-829",1],["East Timor","\\+?670",1],["Easter Island","\\+?56",1],["Ecuador","\\+?593",1],["Egypt","\\+?20",1],["El Salvador","\\+?503",1],["Ellipso (Mobile Satellite service)","\\+?17625",1],["EMSAT (Mobile Satellite service)","\\+?88213",1],["Equatorial Guinea","\\+?240",1],["Eritrea","\\+?291",1],["Estonia","\\+?372",1],["Ethiopia","\\+?251",1],["Falkland Islands (Malvinas)","\\+?500",1],["Faroe Islands","\\+?298",1],["Fiji Islands","\\+?679",1],["Finland","\\+?358",1],["France","\\+?33",1],["French Antilles","\\+?596",1],["French Guiana","\\+?594",1],["French Polynesia","\\+?689",1],["Gabonese Republic","\\+?241",1],["Gambia","\\+?220",1],["Georgia","\\+?995",1],["Germany","\\+?49",1],["Ghana","\\+?233",1],["Gibraltar","\\+?350",1],["Globalstar (Mobile Satellite Service)","\\+?8818",1],["Globalstar (Mobile Satellite Service)","\\+?8819",1],["Greece","\\+?30",1],["Greenland","\\+?299",1],["Grenada","\\+?1-473",1],["Guadeloupe","\\+?590",1],["Guam","\\+?1-671",1],["Guantanamo Bay","\\+?5399",1],["Guatemala","\\+?502",1],["Guinea-Bissau","\\+?245",1],["Guinea","\\+?224",1],["Guyana","\\+?592",1],["Haiti","\\+?509",1],["Honduras","\\+?504",1],["Hong Kong","\\+?852",1],["Hungary","\\+?36",1],["ICO Global (Mobile Satellite Service)","\\+?17621",1],["Iceland","\\+?354",1],["India","\\+?91",1],["Indonesia","\\+?62",1],["Inmarsat (Atlantic Ocean - East)","\\+?871",1],["Inmarsat (Atlantic Ocean - West)","\\+?874",1],["Inmarsat (Indian Ocean)","\\+?873",1],["Inmarsat (Pacific Ocean)","\\+?872",1],["Inmarsat SNAC","\\+?870",1],["International Freephone Service","\\+?800",1],["International Shared Cost Service (ISCS)","\\+?808",1],["Iran","\\+?98",1],["Iraq","\\+?964",1],["Ireland","\\+?353",1],["Iridium (Mobile Satellite service)","\\+?17633",1],["Israel","\\+?972",1],["Italy","\\+?39",1],["Jamaica","\\+?1-876",1],["Japan","\\+?81",0],["Jordan","\\+?962",1],["Kazakhstan","\\+?7",1],["Kenya","\\+?254",1],["Kiribati","\\+?686",1],["Korea (North)","\\+?850",1],["Korea (South)","\\+?82",1],["Kuwait","\\+?965",1],["Kyrgyz Republic","\\+?996",1],["Laos","\\+?856",1],["Latvia","\\+?371",1],["Lebanon","\\+?961",1],["Lesotho","\\+?266",1],["Liberia","\\+?231",1],["Libya","\\+?218",1],["Liechtenstein","\\+?423",1],["Lithuania","\\+?370",1],["Luxembourg","\\+?352",1],["Macao","\\+?853",1],["Macedonia (Former Yugoslav Rep of.)","\\+?389",1],["Madagascar","\\+?261",1],["Malawi","\\+?265",1],["Malaysia","\\+?60",1],["Maldives","\\+?960",1],["Mali Republic","\\+?223",1],["Malta","\\+?356",1],["Marshall Islands","\\+?692",1],["Martinique","\\+?596",1],["Mauritania","\\+?222",1],["Mauritius","\\+?230",1],["Mayotte Island","\\+?262",1],["Mexico","\\+?52",1],["Micronesia, (Federal States of)","\\+?691",1],["Midway Island","\\+?1-808",1],["Moldova","\\+?373",1],["Monaco","\\+?377",1],["Mongolia","\\+?976",1],["Montenegro","\\+?382",1],["Montserrat","\\+?1-664",1],["Morocco","\\+?212",1],["Mozambique","\\+?258",1],["Myanmar","\\+?95",1],["Namibia","\\+?264",1],["N
620auru","\\+?674",1],["Nepal","\\+?977",1],["Netherlands","\\+?31",1],["Netherlands Antilles","\\+?599",1],["Nevis","\\+?1-869",1],["New Caledonia","\\+?687",1],["New Zealand","\\+?64",1],["Nicaragua","\\+?505",1],["Niger","\\+?227",1],["Nigeria","\\+?234",1],["Niue","\\+?683",1],["Norfolk Island","\\+?672",1],["Northern Marianas Islands (Saipan, Rota, & Tinian)","\\+?1-670",1],["Norway","\\+?47",1],["Oman","\\+?968",1],["Pakistan","\\+?92",1],["Palau","\\+?680",1],["Palestinian Settlements","\\+?970",1],["Panama","\\+?507",1],["Papua New Guinea","\\+?675",1],["Paraguay","\\+?595",1],["Peru","\\+?51",1],["Philippines","\\+?63",1],["Poland","\\+?48",1],["Portugal","\\+?351",1],["Puerto Rico","\\+?1-787",1],["Puerto Rico","\\+?1-939",1],["Qatar","\\+?974",1],["R\u00e9union Island","\\+?262",1],["Romania","\\+?40",1],["Russia","\\+?7",1],["Rwandese Republic","\\+?250",1],["St. Helena","\\+?290",1],["St. Kitts\/Nevis","\\+?1-869",1],["St. Lucia","\\+?1-758",1],["St. Pierre & Miquelon","\\+?508",1],["St. Vincent & Grenadines","\\+?1-784",1],["Samoa","\\+?685",1],["San Marino","\\+?378",1],["S\u00e3o Tom\u00e9 and Principe","\\+?239",1],["Saudi Arabia","\\+?966",1],["Senegal","\\+?221",1],["Serbia","\\+?381",1],["Seychelles Republic","\\+?248",1],["Sierra Leone","\\+?232",1],["Singapore","\\+?65",1],["Slovak Republic","\\+?421",1],["Slovenia","\\+?386",1],["Solomon Islands","\\+?677",1],["Somali Democratic Republic","\\+?252",1],["South Africa","\\+?27",1],["Spain","\\+?34",1],["Sri Lanka","\\+?94",1],["Sudan","\\+?249",1],["Suriname","\\+?597",1],["Swaziland","\\+?268",1],["Sweden","\\+?46",1],["Switzerland","\\+?41",1],["Syria","\\+?963",1],["Taiwan","\\+?886",1],["Tajikistan","\\+?992",1],["Tanzania","\\+?255",1],["Thailand","\\+?66",1],["Thuraya (Mobile Satellite service)","\\+?88216",1],["Timor Leste","\\+?670",1],["Togolese Republic","\\+?228",1],["Tokelau","\\+?690",1],["Tonga Islands","\\+?676",1],["Trinidad & Tobago","\\+?1-868",1],["Tunisia","\\+?216",1],["Turkey","\\+?90",1],["Turkmenistan","\\+?993",1],["Turks and Caicos Islands","\\+?1-649",1],["Tuvalu","\\+?688",1],["Uganda","\\+?256",1],["Ukraine","\\+?380",1],["United Arab Emirates","\\+?971",1],["United Kingdom","\\+?44",1],["United States of America","\\+?1",0],["US Virgin Islands","\\+?1-340",1],["Universal Personal Telecommunications (UPT)","\\+?878",1],["Uruguay","\\+?598",1],["Uzbekistan","\\+?998",1],["Vanuatu","\\+?678",1],["Vatican City","\\+?379",1],["Venezuela","\\+?58",1],["Vietnam","\\+?84",1],["Wake Island","\\+?808",1],["Wallis and Futuna Islands","\\+?681",1],["Yemen","\\+?967",1],["Zambia","\\+?260",1],["Zanzibar","\\+?255",1],["Zimbabwe","\\+?263",1]]; 621 var theModal = jQuery(this).data( "target" ); 622 jQuery(theModal+' .modal-body:eq(0) select').empty(); 623 jQuery(theModal+' .modal-body:eq(0) select').append(jQuery('<option index="-1">Your country of residency</option>')); 624 for (i=0; i<prefixes.length; i++) 625 jQuery(theModal+' .modal-body:eq(0) select').append(jQuery('<option index="'+i+'">'+prefixes[i][0]+'</option>')); 626 jQuery(theModal+' .modal-body:eq(0)').show(); 627 628 jQuery(theModal+' .modal-body:eq(0) a[type=button]').click(function() { 629 idx = jQuery("#warningModal .modal-body:eq(0) select option:selected").attr('index'); 630 if (jQuery(theModal+' input').eq(0).val()==''||idx<0) 631 return; 632 jQuery(theModal+' .modal-body:eq(0)').hide(); 633 if (jQuery("#warningModal .modal-body:eq(0) input[type=text]").val().match('^'+prefixes[idx][1]+'$')) { 634 if (prefixes[idx][2]) { 635 jQuery('.ok').show(); 636 } else { 637 jQuery('.error2').show(); 638 } 639 } 640 else { 641 jQuery('.error1').show(); 642 } 643 }); 644 } else { 645 warningcontent = jQuery(this).attr( "wpcf-basic-warning-modal-text" ); 646 if (!warningcontent) warningcontent = jQuery(this).attr( "data-content" ); 647 if (!warningcontent) warningcontent = 'I understand that the materials relating to the proposed merger of Altice S.A. with Altice N.V. are available for consultation in accordance with Luxembourg law and are not to be forwarded to any person or address in the United States of America. Failure to comply with this restriction may result in a violation of the Securities Act of 1933 or the applicable laws of other jurisdictions. I understand that the materials relating to the proposed transfer of substantially all the assets and liabilities of Altice S.A. to Altice Luxembourg S.A. are available for consultation in accordance with Luxembourg law and are not to be forwarded to any person or address in the United States of America. Failure to comply with this restriction may result in a violation of the Securities Act of 1933 or the applicable laws of other jurisdictions.'; 648 content = '<div class="modal-body">'+warningcontent+'</div><div class="modal-footer ok"> <a type="button" class="btn btn-primary dl" href="" target="_blank">I understand, proceed to Download</a> <a type="button" class="btn btn-primary close cancel" data-dismiss="modal">Cancel</a> </div>'
649 elt.find('.modal-content').append(content); 650 jQuery('body').append(elt); 651 652 } 653 var theModal = jQuery(this).data( "target" ); 654 downloadvar = jQuery(this).attr( "data-download" ) 655 656 jQuery(theModal+' .modal-footer.ok .dl').attr('href', downloadvar); 657 658 // Prepends a html element for the overlay inside the modal 659 jQuery(theModal).prepend('<div class="modal-overlay"></div>'); 660 661 // Adds class modal-open to fix scroll when modal is opened 662 jQuery('body').addClass('modal-open'); 663 664 jQuery(theModal+' button.close, '+theModal+' a[type="button"].close, ' + theModal+' .modal-overlay').click(function () { 665 jQuery(theModal+' .modal-footer.ok .dl').attr('href', downloadvar); 666 jQuery('#warningModal').remove(); 667 jQuery('body').removeClass('modal-open'); 668 }); 669 }); 670} 671 672(function ($) { 673 Drupal.behaviors.warningModal = { 674 attach: function (context, settings) { 675 jQuery(document).ready(function(){ 676 customContactModal(); 677 678 $('a.pressrelease-download[data-target="#warningModal"]').attr("href", "#warningModal"); 679 }); 680 } 681 }; 682}(jQuery)); 683;
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.