javascript - When I open the website on mobile device it doesn't show the index.html but some wierd menu -


when visit page via mobile device (phone) shows menu choose instead want page load index right away.

(if check via phone mean)

link: www.eufrazia.sk/sitex/

i page loaded here "www.eufrazia.sk/sitex/home" when visited via phone

i'm not sure if below code may understand, think code has it.

(function($){ window.fjscore = {         local:location.protocol == "file:",         basepath:location.pathname.slice(0, location.pathname.lastindexof('/') + 1),         defstate:'',         defstatemobiletext:'Úvod',         emptynavigationtext:'-- sekcie --',         ajaxfolder:"/ajax/",         indexfile:'index.html',         modules:{},         mobilefolowlinks:false, } 

it doesn't media queries because menu appears when navigating phone's user-agent , not when changing browser window size.

i suggest trying remove device.js file <head> element in index file , see whether errors thrown. should resolve issue.

<script type="text/javascript" src="js/jquery.js"></script>    <!-- remove -->  <script type="text/javascript" src="js/device.js"></script>	    <script type="text/javascript" src="js/bootstrap.js"></script>	  <script type="text/javascript" src="js/core.js"></script><script src="js/history.js?redirect=true&amp;basepath=/sitex/" type="text/javascript"></script>  <script type="text/javascript" src="js/script.js"></script><script type="text/javascript" src="js/jquery.easing.js"></script><script type="text/javascript" src="js/tmform.js"></script><script type="text/javascript" src="js/randomlettersgenerator.js"></script><script type="text/javascript" src="js/spin.min.js"></script><style type="text/css"></style><script type="text/javascript" src="js/jquery.touchswipe.min.js"></script><script type="text/javascript" src="js/tmmultimediagallery.js"></script>	

hope helps


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -