Знайти помилку в скрипті
2 USDПотрібно знайти помилку в коді скрипта. Проблема в тому що сайт на Бутсрапі і звичайному html.
Якщо сторінка в корневому каталозі то все працює, але якщо вона в папці(каталозі) то перестає працювати дві речі (скоріше не добавляється клас через скрипт):
1. Не зявляється мобільне меню в моб версії.
2. У фотоальбомі не додається ширина до картинок.
===
Виконавцю дам силку на сайт: робочу та проблемну сторінку.
-------Частину коду яка відповідає за помилку знайшов, Ось він (файл з скриптом прикріплений):
(function($) {
"use strict";
/* ================ Choose your template theme color, skin and layout. ================ */
var $theme = 'light', // available values: 'light','dark'.
$skin = 'default', // available values: 'default','1','2','3','4','5','6','7','8','9'.
$layout = 'wide', // available values: 'wide','boxed'.
$bodyclass = 'bg1', // for boxed layout only, available values: patterns : 'bg1','bg2','bg3','bg4','bg5','bg6','bg7','bg8','bg9','bg10' & background images: 'bg11','bg12','bg13'.
$rtl = '0', // 0 is false and 1 is true.
$loadin = '1', // 0 is false and 1 is true.
$sticky = '1', // 0 is false and 1 is true.
$totop = '1'; // 0 is false and 1 is true.
var theme_css = $('#theme_css').attr('href'),
theme_name = theme_css.substring(theme_css.lastIndexOf("xn----7sbabhcq1a2caxdko8d9dyc.xn--j1amh/css/") + 1, theme_css.length),
th_nam = theme_name.replace('.css',''),
skin_css = $('#skin_css').attr('href'),
skin_name = skin_css.substring(skin_css.lastIndexOf("xn----7sbabhcq1a2caxdko8d9dyc.xn--j1amh/css/") + 1, skin_css.length),
sk_nam = skin_name.replace('.css',''),
theme_url = theme_css.replace(theme_name,''),
skin_url = skin_css.replace(skin_name,'');
if($theme == th_nam || th_nam == 'light'){
$('#theme_css').attr('href',theme_url+$theme+'.css');
}else{
$('#theme_css').attr('href',theme_url+th_nam+'.css');
}
if($skin == sk_nam || sk_nam == 'default'){
$('#skin_css').attr('href',skin_url+$skin+'.css');
}else{
$('#skin_css').attr('href',skin_url+sk_nam+'.css');
}
if($layout != 'wide'){
$('.pageWrapper').addClass('boxed');
if($('body').attr('class') == undefined){
$('body').addClass($bodyclass);
}
}
Applications 1
-
713 57 0 1 Здравствуйте, Руслан!
Быстро и оперативно решу вашу проблему.
Напишите мне!
Связь тут или в телеграме: @Aooo3
Current freelance projects in the category Javascript and Typescript
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 1 day 1 hour back ∙ 28 proposals |
Development of the AM Mobility platform (car service, parking, insurance, car rental)
5804 USD
We are looking for a team or an experienced Full Stack developer to create the MVP of the AM Mobility platform. AM Mobility is a unified digital ecosystem for motorists, combining in one application and web platform: parking; car service; tire fitting; car wash; car rental;… Javascript and Typescript, Web Programming ∙ 6 days 7 hours back ∙ 116 proposals |
Gsap animations
22 USD
Good day. Corrections need to be made in the current project. A specialist is needed who works well with gsap/lenis. Animation of cards needs to be done. Detailed specifications here:… Javascript and Typescript, Web Programming ∙ 6 days 13 hours back ∙ 21 proposals |
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 8 days 12 hours back ∙ 22 proposals |
Website design updateIt is necessary to update the design of the existing website using HTML, CSS, JS: refresh the appearance, make it modern and responsive for mobile devices. Smooth animations and interactive elements need to be added. HTML & CSS, Javascript and Typescript ∙ 9 days 5 hours back ∙ 97 proposals |