|
@@ -75,7 +75,10 @@ Drupal.behaviors.init_timeline.attach = function (context) {
|
|
|
|
|
|
function init(){
|
|
|
|
|
|
- if(readCookie('advanced-nav') != 'yes' && readCookie('classic-nav') != 'yes'){
|
|
|
+ let isMobile = window.matchMedia("only screen and (max-width: 799px)").matches;
|
|
|
+ if(isMobile){
|
|
|
+ initClassic();
|
|
|
+ }else if(readCookie('advanced-nav') != 'yes' && readCookie('classic-nav') != 'yes'){
|
|
|
|
|
|
$.getJSON(_drupalBasePath+'perfart/ajax/home', function(data){
|
|
|
console.log('data', data);
|