Page 1 of 1

Site not respond correct

Posted: Sat Mar 21, 2020 11:25 am
by levitmic
Greetings,

I need an urgent help with my site: https://drevelina.co.il
site shows only java code

Code: Select all

$(document).ready(function()
{$("a[href*='#header']").click(function(event)
{event.preventDefault();$('html, body').stop().animate({scrollTop:$('#wb_header').offset().top},600,'easeOutCirc');});var Top_AboutOpts={delay:8000,duration:500,easing:'easeInSine',mode:'puff',direction:'',scalemode:3,pagination:true,pagination_img_default:'images/Top_About-default.png',pagination_img_active:'images/Top_About-active.png',pause:null,start:0};$("#wb_Top_About").attr('dir','ltr');$("#Top_About").carouseleffects(Top_AboutOpts);$('#About').parallax();$("a[href*='#Sample_P']").click(function(event)
{event.preventDefault();$('html, body').stop().animate({scrollTop:$('#Sample_P').offset().top},600,'linear');});$("a[href*='#Contact']").click(function(event)
{event.preventDefault();$('html, body').stop().animate({scrollTop:$('#Contact').offset().top},600,'linear');});$(document).on('click','.ThemeableMenu2-navbar-collapse.in',function(e)
{if($(e.target).is('a')&&($(e.target).attr('class')!='dropdown-toggle'))
{$(this).collapse('hide');}});$("#wb_ResponsiveMenu1 ul li a").click(function(event)
{$("#wb_ResponsiveMenu1 input").prop("checked",false);});var iOS=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);if(iOS)
{$('#About').css('background-attachment','scroll');}});(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create','UA-125084781-1','auto');ga('send','pageview');

Image

Re: Site not respond correct

Posted: Sat Mar 21, 2020 12:04 pm
by levitmic
Solved by unchecking all in JavaScript options

But in any case I would be very happy to any recommendation for improving the site

Thanks.

Re: Site not respond correct

Posted: Sat Mar 21, 2020 12:39 pm
by Pablo
This is a server configuration issue.
The landing page should not use JS.

Re: Site not respond correct

Posted: Sat Mar 21, 2020 1:04 pm
by levitmic
Pablo wrote: Sat Mar 21, 2020 12:39 pm This is a server configuration issue.
The landing page should not use JS.
How can i solve it?

Re: Site not respond correct

Posted: Sat Mar 21, 2020 3:38 pm
by Pablo
On the server remove the js file extension from the landing page settings.
Your web host may be able to help you with this.

Re: Site not respond correct

Posted: Sat Mar 21, 2020 5:27 pm
by levitmic
Pablo wrote: Sat Mar 21, 2020 3:38 pm On the server remove the js file extension from the landing page settings.
Your web host may be able to help you with this.
Pablo, do you mean for .htaccess?
like as i did for php extension

Code: Select all

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /

   #remove ext
   RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
   RewriteRule ^ %1 [R=301,L]
   #internal redirect
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME}.php -f
   RewriteRule ^(.*?)/?$ $1.php [L]
</IfModule>
If yes, how site will recognize where is php/html and where js, if name the same?

Re: Site not respond correct

Posted: Sat Mar 21, 2020 5:55 pm
by Pablo
I'm sorry, my knowledge about .htaccess is very limited.
I cannot help you with server related configuration.