I have a file named custom.js, and I'm just putting
<script src="custom.js"></script>
In the required places, but I keep getting a syntax here in the console.
$(document).ready(function() {
var m = document.getElementById('customprofile');
var str = "index.php?/profile/1-brandon/";
if(window.location.href.includes(str)){
document.getElementsByTagName("html")[0].setAttribute("class", "none");
$("body").css({
"background-color": "#FFFFFF",
});
document.getElementById("elProfileTabs_content").style.backgroundColor = "rgba(13, 13, 13, .9)",
document.body.style.backgroundImage = "url('https://encrypted-tbn0.gstatic.com/images? q=tbn:ANd9GcSApUa6V0POxeHbBFzjjtsLhicnFKbQzJgXQgGcHJ_iXu4p8dhHIw')";
document.body.style.backgroundSize = "15%";
}
}
Content-Type: text/javascript, it can breaks. Additional: are you sure, yourcustom.jsis stored/uploaded relative to the path? Check your JavaScript-Console: what is the complete response (incl. Header)?