Loading at_core/scripts/at.layout.js +3 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ "use strict"; Drupal.behaviors.atLayoutLoad = { attach: function () { attach: function (context) { // Verify that the user agent understands media queries. if (!window.matchMedia('only screen').matches) { Loading Loading @@ -37,7 +37,7 @@ var notSmartPhone = window.matchMedia('(min-width: 320px)'); if (notSmartPhone.matches) { $('.regions').each(function() { $(context).find('.regions').once('atLayoutLoad').each(function() { //Remove empty regions first, otherwise classes will be wrong. $(this).children().filter(function() { return !($(this).find('*[class*="block"], .messages, .panel-panel')).length; Loading @@ -64,3 +64,4 @@ } }; }(jQuery, window)); //$(context) No newline at end of file at_core/scripts/min/at.layout.min.js +1 −1 Original line number Diff line number Diff line !function(a,b){"use strict";Drupal.behaviors.atLayoutLoad={attach:function(){if(b.matchMedia("only screen").matches){a.fn.switchClass=function(b,c){var d=new RegExp("\\s"+b.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(b,c){for(var e=" "+c.className+" ";d.test(e);)e=e.replace(d," ");c.className=a.trim(e)}),c?this.addClass(c):this};var c=b.matchMedia("(min-width: 320px)");c.matches&&a(".regions").each(function(){a(this).children().filter(function(){return!a(this).find('*[class*="block"], .messages, .panel-panel').length}).remove();var b=a(this).children().map(function(){return a(this).attr("data-at-region")}).get().join("-");if(b){var c="hr--"+b,d="arc--"+a(this).children.length;a(this).hasClass(c)||a(this).switchClass("arc-*",d).switchClass("hr-*",c),a(this).attr("data-at-regions","has-regions")}else a(this).parents(".page__row").remove()})}}}}(jQuery,window); !function(a,b){"use strict";Drupal.behaviors.atLayoutLoad={attach:function(c){if(b.matchMedia("only screen").matches){a.fn.switchClass=function(b,c){var d=new RegExp("\\s"+b.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(b,c){for(var e=" "+c.className+" ";d.test(e);)e=e.replace(d," ");c.className=a.trim(e)}),c?this.addClass(c):this};var d=b.matchMedia("(min-width: 320px)");d.matches&&a(c).find(".regions").once("atLayoutLoad").each(function(){a(this).children().filter(function(){return!a(this).find('*[class*="block"], .messages, .panel-panel').length}).remove();var b=a(this).children().map(function(){return a(this).attr("data-at-region")}).get().join("-");if(b){var c="hr--"+b,d="arc--"+a(this).children.length;a(this).hasClass(c)||a(this).switchClass("arc-*",d).switchClass("hr-*",c),a(this).attr("data-at-regions","has-regions")}else a(this).parents(".page__row").remove()})}}}}(jQuery,window); //# sourceMappingURL=at.layout.min.js.map No newline at end of file at_core/scripts/min/at.layout.min.js.map +1 −1 Original line number Diff line number Diff line {"version":3,"sources":["../at.layout.js"],"names":["$","window","Drupal","behaviors","atLayoutLoad","attach","matchMedia","matches","fn","switchClass","remove","add","regex","RegExp","replace","split","join","this","each","i","it","classname","className","test","trim","addClass","notSmartPhone","children","filter","find","length","active_regions","map","attr","get","hr","arc","hasClass","parents","jQuery"],"mappings":"CAIC,SAAUA,EAAGC,GAEZ,YAEAC,QAAOC,UAAUC,cACfC,OAAQ,WAGN,GAAKJ,EAAOK,WAAW,eAAeC,QAAtC,CAIAP,EAAEQ,GAAGC,YAAc,SAASC,EAAQC,GAClC,GAAIC,GAAQ,GAAIC,QACd,MAAQH,EACLI,QAAQ,MAAO,kBACfC,MAAM,KACNC,KAAK,WACN,MAAO,IAUX,OARAC,MAAKC,KAAK,SAASC,EAAGC,GAEpB,IADA,GAAIC,GAAY,IAAMD,EAAGE,UAAY,IAC9BV,EAAMW,KAAKF,IAChBA,EAAYA,EAAUP,QAAQF,EAAO,IAEvCQ,GAAGE,UAAYtB,EAAEwB,KAAKH,KAGhBV,EAAaM,KAAKQ,SAASd,GAArBM,KAIhB,IAAIS,GAAgBzB,EAAOK,WAAW,qBAElCoB,GAAcnB,SAChBP,EAAE,YAAYkB,KAAK,WAEjBlB,EAAEiB,MAAMU,WAAWC,OAAO,WACxB,OAAS5B,EAAEiB,MAAMY,KAAK,8CAA+CC,SACpEpB,QAIH,IAAIqB,GAAiB/B,EAAEiB,MAAMU,WAAWK,IAAI,WAC1C,MAAOhC,GAAEiB,MAAMgB,KAAK,oBACnBC,MAAMlB,KAAK,IAEd,IAAIe,EAAgB,CAClB,GAAII,GAAK,OAASJ,EACdK,EAAM,QAAUpC,EAAEiB,MAAMU,SAASG,MAChC9B,GAAEiB,MAAMoB,SAASF,IACpBnC,EAAEiB,MAAMR,YAAY,QAAS2B,GAAK3B,YAAY,OAAQ0B,GAExDnC,EAAEiB,MAAMgB,KAAK,kBAAmB,mBAEhCjC,GAAEiB,MAAMqB,QAAQ,cAAc5B,eAMxC6B,OAAQtC","file":"at.layout.min.js"} No newline at end of file {"version":3,"sources":["../at.layout.js"],"names":["$","window","Drupal","behaviors","atLayoutLoad","attach","context","matchMedia","matches","fn","switchClass","remove","add","regex","RegExp","replace","split","join","this","each","i","it","classname","className","test","trim","addClass","notSmartPhone","find","once","children","filter","length","active_regions","map","attr","get","hr","arc","hasClass","parents","jQuery"],"mappings":"CAIC,SAAUA,EAAGC,GAEZ,YAEAC,QAAOC,UAAUC,cACfC,OAAQ,SAAUC,GAGhB,GAAKL,EAAOM,WAAW,eAAeC,QAAtC,CAIAR,EAAES,GAAGC,YAAc,SAASC,EAAQC,GAClC,GAAIC,GAAQ,GAAIC,QACd,MAAQH,EACLI,QAAQ,MAAO,kBACfC,MAAM,KACNC,KAAK,WACN,MAAO,IAUX,OARAC,MAAKC,KAAK,SAASC,EAAGC,GAEpB,IADA,GAAIC,GAAY,IAAMD,EAAGE,UAAY,IAC9BV,EAAMW,KAAKF,IAChBA,EAAYA,EAAUP,QAAQF,EAAO,IAEvCQ,GAAGE,UAAYvB,EAAEyB,KAAKH,KAGhBV,EAAaM,KAAKQ,SAASd,GAArBM,KAIhB,IAAIS,GAAgB1B,EAAOM,WAAW,qBAElCoB,GAAcnB,SAChBR,EAAEM,GAASsB,KAAK,YAAYC,KAAK,gBAAgBV,KAAK,WAEpDnB,EAAEkB,MAAMY,WAAWC,OAAO,WACxB,OAAS/B,EAAEkB,MAAMU,KAAK,8CAA+CI,SACpErB,QAIH,IAAIsB,GAAiBjC,EAAEkB,MAAMY,WAAWI,IAAI,WAC1C,MAAOlC,GAAEkB,MAAMiB,KAAK,oBACnBC,MAAMnB,KAAK,IAEd,IAAIgB,EAAgB,CAClB,GAAII,GAAK,OAASJ,EACdK,EAAM,QAAUtC,EAAEkB,MAAMY,SAASE,MAChChC,GAAEkB,MAAMqB,SAASF,IACpBrC,EAAEkB,MAAMR,YAAY,QAAS4B,GAAK5B,YAAY,OAAQ2B,GAExDrC,EAAEkB,MAAMiB,KAAK,kBAAmB,mBAEhCnC,GAAEkB,MAAMsB,QAAQ,cAAc7B,eAMxC8B,OAAQxC","file":"at.layout.min.js"} No newline at end of file Loading
at_core/scripts/at.layout.js +3 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ "use strict"; Drupal.behaviors.atLayoutLoad = { attach: function () { attach: function (context) { // Verify that the user agent understands media queries. if (!window.matchMedia('only screen').matches) { Loading Loading @@ -37,7 +37,7 @@ var notSmartPhone = window.matchMedia('(min-width: 320px)'); if (notSmartPhone.matches) { $('.regions').each(function() { $(context).find('.regions').once('atLayoutLoad').each(function() { //Remove empty regions first, otherwise classes will be wrong. $(this).children().filter(function() { return !($(this).find('*[class*="block"], .messages, .panel-panel')).length; Loading @@ -64,3 +64,4 @@ } }; }(jQuery, window)); //$(context) No newline at end of file
at_core/scripts/min/at.layout.min.js +1 −1 Original line number Diff line number Diff line !function(a,b){"use strict";Drupal.behaviors.atLayoutLoad={attach:function(){if(b.matchMedia("only screen").matches){a.fn.switchClass=function(b,c){var d=new RegExp("\\s"+b.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(b,c){for(var e=" "+c.className+" ";d.test(e);)e=e.replace(d," ");c.className=a.trim(e)}),c?this.addClass(c):this};var c=b.matchMedia("(min-width: 320px)");c.matches&&a(".regions").each(function(){a(this).children().filter(function(){return!a(this).find('*[class*="block"], .messages, .panel-panel').length}).remove();var b=a(this).children().map(function(){return a(this).attr("data-at-region")}).get().join("-");if(b){var c="hr--"+b,d="arc--"+a(this).children.length;a(this).hasClass(c)||a(this).switchClass("arc-*",d).switchClass("hr-*",c),a(this).attr("data-at-regions","has-regions")}else a(this).parents(".page__row").remove()})}}}}(jQuery,window); !function(a,b){"use strict";Drupal.behaviors.atLayoutLoad={attach:function(c){if(b.matchMedia("only screen").matches){a.fn.switchClass=function(b,c){var d=new RegExp("\\s"+b.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(b,c){for(var e=" "+c.className+" ";d.test(e);)e=e.replace(d," ");c.className=a.trim(e)}),c?this.addClass(c):this};var d=b.matchMedia("(min-width: 320px)");d.matches&&a(c).find(".regions").once("atLayoutLoad").each(function(){a(this).children().filter(function(){return!a(this).find('*[class*="block"], .messages, .panel-panel').length}).remove();var b=a(this).children().map(function(){return a(this).attr("data-at-region")}).get().join("-");if(b){var c="hr--"+b,d="arc--"+a(this).children.length;a(this).hasClass(c)||a(this).switchClass("arc-*",d).switchClass("hr-*",c),a(this).attr("data-at-regions","has-regions")}else a(this).parents(".page__row").remove()})}}}}(jQuery,window); //# sourceMappingURL=at.layout.min.js.map No newline at end of file
at_core/scripts/min/at.layout.min.js.map +1 −1 Original line number Diff line number Diff line {"version":3,"sources":["../at.layout.js"],"names":["$","window","Drupal","behaviors","atLayoutLoad","attach","matchMedia","matches","fn","switchClass","remove","add","regex","RegExp","replace","split","join","this","each","i","it","classname","className","test","trim","addClass","notSmartPhone","children","filter","find","length","active_regions","map","attr","get","hr","arc","hasClass","parents","jQuery"],"mappings":"CAIC,SAAUA,EAAGC,GAEZ,YAEAC,QAAOC,UAAUC,cACfC,OAAQ,WAGN,GAAKJ,EAAOK,WAAW,eAAeC,QAAtC,CAIAP,EAAEQ,GAAGC,YAAc,SAASC,EAAQC,GAClC,GAAIC,GAAQ,GAAIC,QACd,MAAQH,EACLI,QAAQ,MAAO,kBACfC,MAAM,KACNC,KAAK,WACN,MAAO,IAUX,OARAC,MAAKC,KAAK,SAASC,EAAGC,GAEpB,IADA,GAAIC,GAAY,IAAMD,EAAGE,UAAY,IAC9BV,EAAMW,KAAKF,IAChBA,EAAYA,EAAUP,QAAQF,EAAO,IAEvCQ,GAAGE,UAAYtB,EAAEwB,KAAKH,KAGhBV,EAAaM,KAAKQ,SAASd,GAArBM,KAIhB,IAAIS,GAAgBzB,EAAOK,WAAW,qBAElCoB,GAAcnB,SAChBP,EAAE,YAAYkB,KAAK,WAEjBlB,EAAEiB,MAAMU,WAAWC,OAAO,WACxB,OAAS5B,EAAEiB,MAAMY,KAAK,8CAA+CC,SACpEpB,QAIH,IAAIqB,GAAiB/B,EAAEiB,MAAMU,WAAWK,IAAI,WAC1C,MAAOhC,GAAEiB,MAAMgB,KAAK,oBACnBC,MAAMlB,KAAK,IAEd,IAAIe,EAAgB,CAClB,GAAII,GAAK,OAASJ,EACdK,EAAM,QAAUpC,EAAEiB,MAAMU,SAASG,MAChC9B,GAAEiB,MAAMoB,SAASF,IACpBnC,EAAEiB,MAAMR,YAAY,QAAS2B,GAAK3B,YAAY,OAAQ0B,GAExDnC,EAAEiB,MAAMgB,KAAK,kBAAmB,mBAEhCjC,GAAEiB,MAAMqB,QAAQ,cAAc5B,eAMxC6B,OAAQtC","file":"at.layout.min.js"} No newline at end of file {"version":3,"sources":["../at.layout.js"],"names":["$","window","Drupal","behaviors","atLayoutLoad","attach","context","matchMedia","matches","fn","switchClass","remove","add","regex","RegExp","replace","split","join","this","each","i","it","classname","className","test","trim","addClass","notSmartPhone","find","once","children","filter","length","active_regions","map","attr","get","hr","arc","hasClass","parents","jQuery"],"mappings":"CAIC,SAAUA,EAAGC,GAEZ,YAEAC,QAAOC,UAAUC,cACfC,OAAQ,SAAUC,GAGhB,GAAKL,EAAOM,WAAW,eAAeC,QAAtC,CAIAR,EAAES,GAAGC,YAAc,SAASC,EAAQC,GAClC,GAAIC,GAAQ,GAAIC,QACd,MAAQH,EACLI,QAAQ,MAAO,kBACfC,MAAM,KACNC,KAAK,WACN,MAAO,IAUX,OARAC,MAAKC,KAAK,SAASC,EAAGC,GAEpB,IADA,GAAIC,GAAY,IAAMD,EAAGE,UAAY,IAC9BV,EAAMW,KAAKF,IAChBA,EAAYA,EAAUP,QAAQF,EAAO,IAEvCQ,GAAGE,UAAYvB,EAAEyB,KAAKH,KAGhBV,EAAaM,KAAKQ,SAASd,GAArBM,KAIhB,IAAIS,GAAgB1B,EAAOM,WAAW,qBAElCoB,GAAcnB,SAChBR,EAAEM,GAASsB,KAAK,YAAYC,KAAK,gBAAgBV,KAAK,WAEpDnB,EAAEkB,MAAMY,WAAWC,OAAO,WACxB,OAAS/B,EAAEkB,MAAMU,KAAK,8CAA+CI,SACpErB,QAIH,IAAIsB,GAAiBjC,EAAEkB,MAAMY,WAAWI,IAAI,WAC1C,MAAOlC,GAAEkB,MAAMiB,KAAK,oBACnBC,MAAMnB,KAAK,IAEd,IAAIgB,EAAgB,CAClB,GAAII,GAAK,OAASJ,EACdK,EAAM,QAAUtC,EAAEkB,MAAMY,SAASE,MAChChC,GAAEkB,MAAMqB,SAASF,IACpBrC,EAAEkB,MAAMR,YAAY,QAAS4B,GAAK5B,YAAY,OAAQ2B,GAExDrC,EAAEkB,MAAMiB,KAAK,kBAAmB,mBAEhCnC,GAAEkB,MAAMsB,QAAQ,cAAc7B,eAMxC8B,OAAQxC","file":"at.layout.min.js"} No newline at end of file